Cascade wifi module communication method and video monitoring system
By broadcasting channel occupancy duration events and mode switching in Wi-Fi module communication, the communication between the IPC and NVR is optimized, solving the communication failure problem caused by obstacle damage and improving network transmission efficiency and image quality.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ZHEJIANG UNIVIEW TECH CO LTD
- Filing Date
- 2024-11-22
- Publication Date
- 2026-05-22
AI Technical Summary
In the field of security monitoring, the communication between the Wi-Fi modules of IPC and NVR is prone to failure due to obstacles, resulting in reduced communication speed and decreased live video quality. Existing repeater solutions increase channel conflicts and contention backoff, reducing network transmission efficiency.
By broadcasting a channel occupancy duration event to the lower-level Wi-Fi module in access point mode, instructing it to stop communication requests, and switching modes to establish a connection after the channel occupancy duration, combined with the recovery request after communication with the upper-level module, the communication process of the Wi-Fi module is optimized.
Significantly reduces channel collisions, improves network transmission efficiency, ensures live video quality and smoothness, and avoids communication rate reduction caused by contention backoff.
Smart Images

Figure CN122073744A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of security monitoring technology, and in particular to a cascaded Wi-Fi module communication method and a video monitoring system. Background Technology
[0002] In the field of security monitoring, when using Wi-Fi modules for networking, both network cameras (IP CAMERA, IPC) and network video recorders (NVR) are equipped with Wi-Fi modules.
[0003] Because the actual transmission power of the Wi-Fi module is lost when passing through obstacles and along the transmission path, communication failures can easily occur between the farthest station (IPC1) and the access point (AP) (NVR1), thus affecting the throughput of the entire Wi-Fi network.
[0004] The conventional solution to this problem is to introduce IPC2 as a repeater between IPC1 and NVR1. However, due to the half-duplex communication mode of the Wi-Fi module itself—meaning it can only transmit or receive at a time, not simultaneously—IPC1 will experience contention backoff when IPC2, acting as a station, sends data to NVR1. This will cause the Wi-Fi network to reduce its original communication rate when IPC2 acts as a repeater, sacrificing both live stream quality and smoothness. Summary of the Invention
[0005] This invention provides a cascaded Wi-Fi module communication method and a video surveillance system to address the deficiencies in related technologies.
[0006] This invention provides a cascaded Wi-Fi module communication method, applied to a target Wi-Fi module that has enabled access point mode and site mode, comprising: In access point mode, a first event is broadcast to the lower-level Wi-Fi module that has enabled site mode; the first event carries the channel occupancy duration of the target Wi-Fi module in site mode; the first event is used to instruct the lower-level Wi-Fi module to stop sending communication requests during the channel occupancy duration. Switch from access point mode to site mode, and in site mode, establish a communication connection with the upstream Wi-Fi module that has access point mode enabled.
[0007] According to a cascaded Wi-Fi module communication method provided by the present invention, in the site mode, a communication connection is established with the upstream Wi-Fi module that has enabled access point mode, followed by: After completing communication with the upstream Wi-Fi module, the site mode is switched to access point mode, and in access point mode, a second event is broadcast to the downstream Wi-Fi module; the second event is used to notify the downstream Wi-Fi module to resume communication.
[0008] According to a cascaded Wi-Fi module communication method provided by the present invention, in the step of establishing a communication connection with an upstream Wi-Fi module in access point mode in station mode, the method further includes: After completing communication with the upstream Wi-Fi module, the site mode is switched to access point mode, and in access point mode, the communication request sent by the downstream Wi-Fi module after the channel occupancy time is reached is received.
[0009] According to a cascaded Wi-Fi module communication method provided by the present invention, the step of broadcasting a first event to a lower-level Wi-Fi module in access point mode and enabling site mode includes the following prior steps: Determine the communication requirements to the upstream Wi-Fi module in site mode, and determine the communication duration based on the communication requirements; Based on the communication duration, the channel occupancy duration is determined.
[0010] This invention also provides a cascaded Wi-Fi module communication method, applied to a downstream Wi-Fi module that has enabled site mode, comprising: In site mode, a first event broadcast by the target Wi-Fi module is received; the first event carries the channel occupancy duration of the target Wi-Fi module in site mode; The first event is parsed, and communication requests to the target Wi-Fi module are stopped during the channel occupancy period.
[0011] According to a cascaded Wi-Fi module communication method provided by the present invention, the step of stopping sending communication requests to the target Wi-Fi module during the channel occupancy period includes: After the channel occupancy period, a communication request is sent to the target Wi-Fi module; or, Receive a second event sent by the target Wi-Fi module, the second event being used to notify the lower-level Wi-Fi module to resume communication request; The second event is parsed, and a communication request is sent to the target Wi-Fi module.
[0012] The present invention also provides a video surveillance system, comprising: a first network camera, a second network camera, and a network video recorder; The first network camera has a built-in target Wi-Fi module for executing the above-mentioned cascaded Wi-Fi module communication method applied to the target Wi-Fi module; The second network camera has a built-in lower-level Wi-Fi module for executing the cascaded Wi-Fi module communication method applied to the lower-level Wi-Fi module described above; The network video recorder has a built-in upstream Wi-Fi module.
[0013] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the cascaded Wi-Fi module communication method as described above.
[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the cascaded Wi-Fi module communication method as described above.
[0015] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the cascaded Wi-Fi module communication method as described above.
[0016] The cascaded Wi-Fi module communication method and video surveillance system provided by this invention are applied to target Wi-Fi modules that are in access point mode and site mode. In this method, when the target Wi-Fi module is in access point mode, it broadcasts a first event to the lower-level Wi-Fi module to instruct the lower-level Wi-Fi module to stop sending communication requests during the channel occupancy period. This allows the target Wi-Fi module to better manage the lower-level Wi-Fi modules and avoids the problem of contention backoff and failure to establish a communication connection in time when the lower-level Wi-Fi module sends communication requests to the target Wi-Fi module during the channel occupancy period. This significantly reduces channel conflicts when the target Wi-Fi module is in site mode, avoids the reduction in communication rate of the Wi-Fi network due to contention backoff, improves the overall network transmission efficiency, and ensures the quality and smoothness of the live video feed. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in this invention or related technologies, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a schematic diagram of the structure of an existing video surveillance system.
[0019] Figure 2 This is a schematic diagram of the communication process of an existing video surveillance system.
[0020] Figure 3 This is one of the timing diagrams of the communication process in existing video surveillance systems.
[0021] Figure 4 This is the second time sequence diagram of the communication process in an existing video surveillance system.
[0022] Figure 5 This is one of the flowcharts illustrating the cascaded Wi-Fi module communication method provided by the present invention.
[0023] Figure 6 This is a schematic diagram of the timing process in the cascaded Wi-Fi module communication method provided by the present invention.
[0024] Figure 7 This is a schematic diagram of the communication process in the cascaded Wi-Fi module communication method provided by the present invention.
[0025] Figure 8 This is the second flowchart illustrating the cascaded Wi-Fi module communication method provided by the present invention.
[0026] Figure 9 This is one of the structural schematic diagrams of the cascaded Wi-Fi module communication device provided by the present invention.
[0027] Figure 10 This is the second structural schematic diagram of the cascaded Wi-Fi module communication device provided by the present invention.
[0028] Figure 11 This is a structural schematic diagram of the video surveillance system provided by the present invention.
[0029] Figure 12 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0030] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0031] like Figure 1As shown, the conventional solution to the communication failure between IPC1 and NVR1 is to introduce IPC2 as a repeater between IPC1 and NVR1, with the Wi-Fi module 1 in IPC1 enabled in station mode, the Wi-Fi module 2 in IPC2 enabled in both AP and station modes, and the Wi-Fi module 3 in NVR1 enabled in AP mode.
[0032] The communication process is as follows: Figure 2 As shown, in station mode, Wi-Fi module 2 establishes a communication connection with Wi-Fi module 3 for a duration of T1. When Wi-Fi module 1 needs to send data to Wi-Fi module 2, it detects that the channel status of Wi-Fi module 2 is occupied, performs contention backoff, and waits for a backoff duration of D1 before retransmitting the communication request. After Wi-Fi module 2 completes communication with Wi-Fi module 3, Wi-Fi module 2 switches to AP mode. If the backoff duration of Wi-Fi module 1 has been reached at this time, it directly communicates with Wi-Fi module 2; if the backoff duration of Wi-Fi module 1 has not been reached, it must wait for the backoff duration to be reached before it can retransmit the communication request to communicate with Wi-Fi module 2. The timing process of this communication is as follows: Figure 3 As shown, Figure 3 The diagram shows the situation where the backoff time of Wi-Fi module 1 is not reached after Wi-Fi module 2 and Wi-Fi module 3 have completed communication.
[0033] In particular, such as Figure 4 As shown, if Wi-Fi module 2 switches back to station mode and communicates with Wi-Fi module 3 during the waiting backoff time of Wi-Fi module 1, then Wi-Fi module 1 will continue to compete for backoff after the backoff time is reached, and the backoff time D2 of this competition backoff will be longer than the backoff time D1 of the previous competition backoff.
[0034] Therefore, it can be seen that because the channel of Wi-Fi module 2 is occupied in station mode, Wi-Fi module 1 will frequently engage in contention backoff, which increases the probability of channel collision. Moreover, frequent contention backoff and retries will reduce the overall network transmission efficiency, especially under high load conditions, where the problem becomes more pronounced, sacrificing not only the quality of the live stream but also reducing the smoothness of the live stream.
[0035] Based on this, an embodiment of the present invention provides a communication method for cascaded Wi-Fi modules.
[0036] Figure 5 This is a flowchart illustrating a cascaded Wi-Fi module communication method provided in an embodiment of the present invention, as shown below. Figure 5 As shown, this method is applied to a target Wi-Fi module that has enabled access point mode and site mode, and includes: S11, In access point mode, a first event is broadcast to the lower-level Wi-Fi module that has enabled site mode; the first event carries the channel occupancy duration of the target Wi-Fi module in site mode; the first event is used to instruct the lower-level Wi-Fi module to stop sending communication requests during the channel occupancy duration. S12, switch the access point mode to the site mode, and in the site mode, establish a communication connection with the upstream Wi-Fi module that has enabled the access point mode.
[0037] Specifically, the cascaded Wi-Fi module communication method provided in this embodiment of the invention uses a target Wi-Fi module that has enabled access point mode and station mode as its execution subject. The target Wi-Fi module can act as a relay module to provide access points for lower-level Wi-Fi modules, thereby enabling communication with the upper-level Wi-Fi module. It is understood that the cascaded Wi-Fi module in this embodiment of the invention can include lower-level Wi-Fi modules, target Wi-Fi modules, and upper-level Wi-Fi modules. The lower-level Wi-Fi modules can at least enable station mode, the target Wi-Fi modules can simultaneously enable station mode and AP mode, and the upper-level Wi-Fi modules can at least enable AP mode. Here, the number of target Wi-Fi modules can be multiple, and each target Wi-Fi module can correspond to one or more lower-level Wi-Fi modules and one or more upper-level Wi-Fi modules. Each target Wi-Fi module can act as the execution subject to execute the cascaded Wi-Fi module communication method in this embodiment of the invention.
[0038] First, step S11 is executed. When the target Wi-Fi module needs to communicate and transmit data with the upstream Wi-Fi module in station mode, the channel occupancy duration in station mode can be determined. This channel occupancy duration refers to the communication duration between the target Wi-Fi module and the upstream Wi-Fi module in station mode. Subsequently, a first event carrying this channel occupancy duration can be generated and broadcast to the downstream Wi-Fi module in AP mode. This first event instructs the downstream Wi-Fi module to stop sending communication requests within the channel occupancy duration. This means that the target Wi-Fi module cannot communicate with the downstream Wi-Fi module during the channel occupancy duration, but can communicate with the downstream Wi-Fi module after the channel occupancy duration has elapsed.
[0039] After receiving the first event, the lower-level Wi-Fi module parses the first event and confirms that it will stop sending communication requests during the channel occupancy period.
[0040] Then, step S12 is executed, where the target Wi-Fi module switches from AP mode to station mode, and in station mode, it establishes a communication connection with the upstream Wi-Fi module to achieve data transmission.
[0041] It is understandable that the target data transmitted by the target Wi-Fi module in station mode when establishing a communication connection with the upstream Wi-Fi module is the data that the electronic device in which the target Wi-Fi module resides needs to transmit. If the electronic device in which the target Wi-Fi module resides is an IPC, then the target data is the video data captured by the IPC. The electronic devices in which the downstream Wi-Fi module, the target Wi-Fi module, and the upstream Wi-Fi module reside can be of the same type, such as all being IPCs, or they can be of different types. For example, the downstream Wi-Fi module and the target Wi-Fi module can be IPCs, and the upstream Wi-Fi module can be an NVR. No specific limitation is made here.
[0042] The cascaded Wi-Fi module communication method provided in this embodiment of the invention is applied to a target Wi-Fi module that has enabled access point mode and site mode. In this method, when the target Wi-Fi module is in access point mode, it broadcasts a first event to the lower-level Wi-Fi module to instruct the lower-level Wi-Fi module to stop sending communication requests during the channel occupancy period. This allows the target Wi-Fi module to better manage the lower-level Wi-Fi module and avoids the problem of contention backoff and failure to establish a communication connection in time when the lower-level Wi-Fi module sends a communication request to the target Wi-Fi module during the channel occupancy period. This significantly reduces channel conflicts when the target Wi-Fi module is in site mode, avoids the reduction in communication rate of the Wi-Fi network due to contention backoff, improves the overall network transmission efficiency, and ensures the quality and smoothness of the live video.
[0043] Based on the above embodiments, the step of establishing a communication connection with the upstream Wi-Fi module in access point mode in site mode includes: After completing communication with the upstream Wi-Fi module, the site mode is switched to access point mode, and in access point mode, a second event is broadcast to the downstream Wi-Fi module; the second event is used to notify the downstream Wi-Fi module to resume communication.
[0044] Specifically, after establishing and completing communication with the upstream Wi-Fi module, the target Wi-Fi module can switch from station mode to access point (AP) mode. The timing sequence of this communication process is as follows: Figure 6As shown, the target Wi-Fi module is in station mode from time 0 to T1. After completing communication with the upstream Wi-Fi module, it switches to AP mode. Subsequently, a second event is generated. This second event notifies the downstream Wi-Fi module to resume communication.
[0045] Upon receiving the second event, the lower-level Wi-Fi module parses it and confirms that the communication request can be resumed. Afterward, the lower-level Wi-Fi module can send a communication request to the target Wi-Fi module. The target Wi-Fi module can then establish a communication connection with the lower-level Wi-Fi module in AP mode and receive data sent by the lower-level module.
[0046] In this embodiment of the invention, by broadcasting a second event to a lower-level Wi-Fi module through the target Wi-Fi module, the lower-level Wi-Fi module can be notified to resume communication requests and promptly establish a communication connection with the target Wi-Fi module to transmit data.
[0047] Based on the above embodiments, the step of establishing a communication connection with the upstream Wi-Fi module in access point mode in site mode further includes: After completing communication with the upstream Wi-Fi module, the site mode is switched to access point mode, and in access point mode, the communication request sent by the downstream Wi-Fi module after the channel occupancy time is reached is received.
[0048] Specifically, after establishing and completing communication with the upstream Wi-Fi module, the target Wi-Fi module can switch from station mode to access point (AP) mode. Since communication is complete and the channel occupancy period has ended, the downstream Wi-Fi module can automatically resume communication by sending a communication request to the target Wi-Fi module.
[0049] After that, the target Wi-Fi module can receive communication requests sent by the lower-level Wi-Fi module after the channel occupancy period, and establish a communication connection with the lower-level Wi-Fi module to transmit data.
[0050] In this embodiment of the invention, a lower-level Wi-Fi module can actively send a communication request after the channel occupancy period ends, which can achieve a fast connection between the lower-level Wi-Fi module and the target Wi-Fi module, reduce the communication latency of the Wi-Fi network, and improve the communication speed.
[0051] Based on the above embodiments, the step of broadcasting a first event to a lower-level Wi-Fi module that has enabled site mode in access point mode includes the following prior steps: Determine the communication requirements to the upstream Wi-Fi module in site mode, and determine the communication duration based on the communication requirements; Based on the communication duration, the channel occupancy duration is determined.
[0052] Specifically, before broadcasting the first event to the lower-level Wi-Fi module in AP mode, the target Wi-Fi module can first determine its communication requirements with the upper-level Wi-Fi module in station mode. These communication requirements refer to the target Wi-Fi module's need to communicate and transmit data to the upper-level Wi-Fi module.
[0053] Subsequently, the required communication duration can be determined based on the amount of data to be transmitted in the communication requirements. Then, the channel occupancy duration can be determined based on this communication duration. This communication duration can be used directly as the channel occupancy duration, or the product of the communication duration and a weight greater than 1 can be used as the channel occupancy duration. This allows sufficient time for communication between the target Wi-Fi module and the upstream Wi-Fi module.
[0054] The cascaded Wi-Fi module communication method provided in this embodiment of the invention describes the overall communication process as follows: Figure 7 As shown, the target Wi-Fi module determines its communication needs with the superior Wi-Fi module in station mode and determines the channel occupancy duration.
[0055] When the target Wi-Fi module is in AP mode, it broadcasts a first event to the lower-level Wi-Fi modules, instructing them to stop sending communication requests during the channel occupancy period. Upon receiving the first event, the lower-level Wi-Fi modules parse it and confirm that they will stop sending communication requests during the channel occupancy period.
[0056] The target Wi-Fi module switches to station mode and communicates with the upstream Wi-Fi module in station mode.
[0057] After the target Wi-Fi module completes communication with the upstream Wi-Fi module, it switches from station mode to access point (AP) mode. In AP mode, it broadcasts a second event to the downstream Wi-Fi module, notifying it to resume communication. The downstream Wi-Fi module parses the second event, resumes the communication request, and the target Wi-Fi module communicates with the downstream Wi-Fi module in AP mode.
[0058] like Figure 8 As shown, based on the above embodiments, this embodiment of the invention also provides a cascaded Wi-Fi module communication method, which is applied to a lower-level Wi-Fi module and includes: S21, in site mode, receive a first event broadcast by the target Wi-Fi module; the first event carries the channel occupancy duration of the target Wi-Fi module in site mode; S22, parse the first event, and stop sending communication requests to the target Wi-Fi module during the channel occupancy period.
[0059] Specifically, the cascaded Wi-Fi module communication method provided in this embodiment of the invention is executed by a lower-level Wi-Fi module that has enabled site mode. This lower-level Wi-Fi module can transmit data to the upper-level Wi-Fi module through the target Wi-Fi module.
[0060] First, step S21 is executed. In station mode, the lower-level Wi-Fi module receives a first event broadcast by the target Wi-Fi module in AP mode. This first event can be used to instruct the lower-level Wi-Fi module to stop sending communication requests during the channel occupancy period. This means that the target Wi-Fi module cannot communicate with the lower-level Wi-Fi module during the channel occupancy period, but can communicate with the lower-level Wi-Fi module after the channel occupancy period.
[0061] Then, step S22 is executed, the lower-level Wi-Fi module parses the first event, confirms that it stops sending communication requests during the channel occupancy period, and stops sending communication requests to the target Wi-Fi module during the channel occupancy period.
[0062] The cascaded Wi-Fi module communication method provided in this embodiment of the invention is applied to a lower-level Wi-Fi module in station mode. In this method, the lower-level Wi-Fi module receives a first event broadcast by the target Wi-Fi module in station mode. By parsing the first event, it confirms that it will stop sending communication requests during the channel occupancy period. This avoids the problem of contention backoff and inability to establish a communication connection in time when the lower-level Wi-Fi module sends a communication request to the target Wi-Fi module during the channel occupancy period. It significantly reduces channel conflicts when the target Wi-Fi module is in station mode, avoids the reduction in communication rate of the Wi-Fi network due to contention backoff, improves the overall network transmission efficiency, and ensures the quality and smoothness of the live video.
[0063] Based on the above embodiments, the step of stopping sending communication requests to the target Wi-Fi module during the channel occupancy period, followed by: After the channel occupancy period, a communication request is sent to the target Wi-Fi module; or, Receive a second event sent by the target Wi-Fi module, the second event being used to notify the lower-level Wi-Fi module to resume communication request; The second event is parsed, and a communication request is sent to the target Wi-Fi module.
[0064] Specifically, after ceasing to send communication requests to the target Wi-Fi module during the channel occupancy period, a communication request can be sent to the target Wi-Fi module again after the channel occupancy period ends. Since the target Wi-Fi module completes its communication connection with the upstream Wi-Fi module after the channel occupancy period and switches to AP mode, the downstream Wi-Fi module can then proactively establish a communication connection with the target Wi-Fi module to send data, improving data transmission efficiency and saving data transmission time.
[0065] In addition, after switching to AP mode, the target Wi-Fi module can proactively send a second event to the downstream Wi-Fi module to notify it to resume communication. Therefore, the downstream Wi-Fi module can also receive the second event sent by the target Wi-Fi module, parse it to confirm the resumption of communication, and then send a communication request to the target Wi-Fi module, thus ensuring that contention avoidance does not occur.
[0066] like Figure 9 As shown, based on the above embodiments, this embodiment of the invention provides a cascaded Wi-Fi module communication device, applied to a target Wi-Fi module that has enabled access point mode and site mode, comprising: The first broadcast module 91 is used to broadcast a first event to a lower-level Wi-Fi module that has enabled site mode in access point mode; the first event carries the channel occupancy duration of the target Wi-Fi module in site mode; the first event is used to instruct the lower-level Wi-Fi module to stop sending communication requests during the channel occupancy duration. The first communication module 92 is used to switch the access point mode to the site mode, and in the site mode, establish a communication connection with the upstream Wi-Fi module that has enabled the access point mode.
[0067] Based on the above embodiments, a second communication module is also included, used for: After completing communication with the upstream Wi-Fi module, the site mode is switched to access point mode, and in access point mode, a second event is broadcast to the downstream Wi-Fi module; the second event is used to notify the downstream Wi-Fi module to resume communication.
[0068] Based on the above embodiments, the second communication module is further configured to: After completing communication with the upstream Wi-Fi module, the site mode is switched to access point mode, and in access point mode, the communication request sent by the downstream Wi-Fi module after the channel occupancy time is reached is received.
[0069] Based on the above embodiments, a channel occupancy duration determination module is also included, used for: Determine the communication requirements to the upstream Wi-Fi module in site mode, and determine the communication duration based on the communication requirements; Based on the communication duration, the channel occupancy duration is determined.
[0070] Specifically, the functions of each module in the cascaded Wi-Fi module communication device provided in this embodiment of the invention correspond one-to-one with the operation flow of each step in the above-mentioned method embodiment with the target Wi-Fi module as the execution subject, and the achieved effect is also the same. For details, please refer to the above embodiments, and this will not be repeated in this embodiment of the invention.
[0071] like Figure 10 As shown, based on the above embodiments, this embodiment of the invention also provides a cascaded Wi-Fi module communication device, applied to a lower-level Wi-Fi module that has enabled site mode, including: The second broadcast module 101 is used to receive a first event broadcast by the target Wi-Fi module in site mode; the first event carries the channel occupancy duration of the target Wi-Fi module in site mode; The third communication module 102 is used to parse the first event and stop sending communication requests to the target Wi-Fi module during the channel occupancy period.
[0072] Based on the above embodiments, the third communication module is further used for: After the channel occupancy period, a communication request is sent to the target Wi-Fi module; or, Receive a second event sent by the target Wi-Fi module, the second event being used to notify the lower-level Wi-Fi module to resume communication request; The second event is parsed, and a communication request is sent to the target Wi-Fi module.
[0073] Specifically, the functions of each module in the cascaded Wi-Fi module communication device provided in this embodiment of the invention correspond one-to-one with the operation flow of each step in the method class embodiment with the lower-level Wi-Fi module as the execution subject, and the achieved effect is also the same. For details, please refer to the above embodiments, and this will not be repeated in this embodiment of the invention.
[0074] like Figure 11 As shown, this embodiment of the invention also provides a video surveillance system, including: a first network camera IPC3, a second network camera IPC4, and a network video recorder NVR2; The first network camera IPC3 has a built-in target Wi-Fi module, which is used to execute the above-mentioned cascaded Wi-Fi module communication method with the target Wi-Fi module as the execution subject; The second network camera IPC4 has a built-in lower-level Wi-Fi module, which is used to execute the above-mentioned cascaded Wi-Fi module communication method with the lower-level Wi-Fi module as the execution subject. The NVR2 network video recorder has a built-in upstream Wi-Fi module.
[0075] In the video surveillance system provided in this embodiment of the invention, IPC3 can collect video data, establish a communication connection with the upper-level Wi-Fi module built into NVR2 through the station mode of its built-in target Wi-Fi module, and send video data to the upper-level Wi-Fi module. NVR2 receives video data through the upper-level Wi-Fi module and can perform subsequent processing on the video data.
[0076] The IPC4 can also capture video data. After the target Wi-Fi module built into the IPC3 completes communication with the upstream Wi-Fi module, it can establish a communication connection with the target Wi-Fi module and send video data to the upstream Wi-Fi module through the target Wi-Fi module. The NVR2 receives video data through the upstream Wi-Fi module and can perform subsequent processing on the video data.
[0077] The video surveillance system provided in this embodiment of the invention has a target Wi-Fi module, a lower-level Wi-Fi module, and a higher-level Wi-Fi module built into the first network camera, the second network camera, and the network video recorder, respectively. The first network camera can act as a repeater to forward the video data collected by the second network camera to the network video recorder. This can improve the transmission efficiency of the Wi-Fi network in the video surveillance system and ensure the quality and smoothness of the live video feed.
[0078] Figure 12 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 12 As shown, the electronic device may include a processor 110, a communications interface 120, a memory 130, and a communication bus 140, wherein the processor 110, the communications interface 120, and the memory 130 communicate with each other via the communication bus 140. The processor 110 can call logical instructions in the memory 130 to execute the cascaded Wi-Fi module communication method provided in the above embodiments.
[0079] Furthermore, the logical instructions in the aforementioned memory 130 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to related technologies, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0080] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer is able to execute the cascaded Wi-Fi module communication method provided by the above methods.
[0081] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the cascaded Wi-Fi module communication method provided in the above embodiments.
[0082] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0083] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of software products. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0084] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A communication method for cascaded Wi-Fi modules, characterized in that, Applied to target Wi-Fi modules that enable access point mode and site mode, including: In access point mode, a first event is broadcast to the lower-level Wi-Fi module that has enabled site mode; the first event carries the channel occupancy duration of the target Wi-Fi module in site mode; the first event is used to instruct the lower-level Wi-Fi module to stop sending communication requests during the channel occupancy duration. Switch from access point mode to site mode, and in site mode, establish a communication connection with the upstream Wi-Fi module that has access point mode enabled.
2. The cascaded Wi-Fi module communication method according to claim 1, characterized in that, In site mode, a communication connection is established with the upstream Wi-Fi module that has enabled access point mode, followed by: After completing communication with the upstream Wi-Fi module, the site mode is switched to access point mode, and in access point mode, a second event is broadcast to the downstream Wi-Fi module; the second event is used to notify the downstream Wi-Fi module to resume communication.
3. The cascaded Wi-Fi module communication method according to claim 1, characterized in that, In the site mode, a communication connection is established with the upstream Wi-Fi module that has enabled access point mode, and then the process further includes: After completing communication with the upstream Wi-Fi module, the site mode is switched to access point mode, and in access point mode, the communication request sent by the downstream Wi-Fi module after the channel occupancy time is reached is received.
4. The cascaded Wi-Fi module communication method according to any one of claims 1-3, characterized in that, In access point mode, the first event is broadcast to the lower-level Wi-Fi module that has enabled site mode, prior to which the following is included: Determine the communication requirements to the upstream Wi-Fi module in site mode, and determine the communication duration based on the communication requirements; Based on the communication duration, the channel occupancy duration is determined.
5. A communication method for cascaded Wi-Fi modules, characterized in that, Sub-Wi-Fi modules used to enable site mode include: In site mode, a first event broadcast by the target Wi-Fi module is received; the first event carries the channel occupancy duration of the target Wi-Fi module in site mode; The first event is parsed, and communication requests to the target Wi-Fi module are stopped during the channel occupancy period.
6. The cascaded Wi-Fi module communication method according to claim 5, characterized in that, The step of stopping sending communication requests to the target Wi-Fi module during the channel occupancy period includes: After the channel occupancy period, a communication request is sent to the target Wi-Fi module; or, Receive a second event sent by the target Wi-Fi module, the second event being used to notify the lower-level Wi-Fi module to resume communication request; The second event is parsed, and a communication request is sent to the target Wi-Fi module.
7. A video surveillance system, characterized in that, include: First network camera, second network camera, and network video recorder; The first network camera has a built-in target Wi-Fi module for executing the cascaded Wi-Fi module communication method as described in any one of claims 1-4; The second network camera has a built-in lower-level Wi-Fi module for executing the cascaded Wi-Fi module communication method as described in claim 5 or 6; The network video recorder has a built-in upstream Wi-Fi module.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the cascaded Wi-Fi module communication method as described in any one of claims 1-6.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the cascaded Wi-Fi module communication method as described in any one of claims 1-6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the cascaded Wi-Fi module communication method as described in any one of claims 1-6.