Wireless networking method for wireless kit, and device and storage medium
By combining the first and second communication modules in the wireless kit and adjusting the networking strategy according to the network topology and spatial location, the problems of disconnection, lag, and unsmoothness in the wireless kit communication process are solved, and higher performance data transmission is achieved.
Patent Information
- Application Number
- PCT/CN2025/142239
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-08
- Filing Date
- 2025-12-12
- Publication Date
- 2026-11-12
AI Technical Summary
Existing wireless kits are prone to disconnections, stuttering, and unresponsiveness during communication, especially in the 2.4GHz and 5.8GHz bands where they are significantly affected by environmental interference.
By combining the first and second communication modules, the network topology and spatial relationships are obtained, and the networking strategy between the camera and the NVR is adjusted. The second communication module is used for communication over longer distances and with higher penetration capabilities, and the target communication link is switched to improve communication quality.
It effectively reduces or avoids issues such as dropped connections, lag, and unresponsiveness during communication with wireless kits, achieving higher performance data transmission.
Smart Images

Figure CN2025142239_12112026_PF_FP_ABST
Abstract
Description
Wireless networking methods, equipment, and storage media in a wireless kit
[0001] Cross-references to related applications
[0002] This disclosure claims priority to Chinese Patent Application No. 2025105913546, filed on May 8, 2025, entitled "Wireless Networking Method, Apparatus and Storage Medium for Wireless Kit", which is incorporated herein by reference in its entirety. Technical Field
[0003] This disclosure relates to the field of video surveillance technology, and in particular to a wireless networking method, device and storage medium for a wireless kit. Background Technology
[0004] Currently, wireless kits in the video surveillance field typically include an NVR (Network Video Recorder) and multiple cameras. These wireless kits use the WiFi protocol to transmit data, meaning that each camera can communicate or transmit data with the NVR via a WiFi wireless network.
[0005] Cameras and NVRs typically communicate using the 2.4GHz or 5.8GHz frequency bands. The 2.4GHz band has a wider coverage area, but many electronic devices in the environment commonly use the 2.4GHz wireless frequency, resulting in significant interference between devices in this band. The 5.8GHz band has a smaller coverage area compared to 2.4GHz, and fewer electronic devices in the environment use the 5.8GHz wireless frequency, thus resulting in relatively less interference between devices in this band.
[0006] However, the wireless kits in the aforementioned technologies may still experience issues such as dropped connections, lag, and unresponsiveness during communication. Summary of the Invention
[0007] This disclosure provides a wireless networking method, device, and storage medium for a wireless kit, which addresses the shortcomings of existing wireless kits in communication processes, such as dropped connections, stuttering, and unsmooth communication. It adjusts the networking strategy between each camera and NVR based on the layer penetration and / or distance between each camera and NVR, enabling communication between each camera and NVR through communication methods with greater distance and higher layer penetration performance. This reduces or avoids problems such as dropped connections, stuttering, and unsmooth communication that may still occur with wireless kits.
[0008] This disclosure provides a wireless networking method for a wireless suite, applied to a network video recorder (NVR) within the wireless suite. The wireless suite includes an NVR and at least two cameras. At least one camera in each suite includes a first communication module and a second communication module. The first communication module communicates using a first communication method, and the second communication module communicates using a second communication method. The method includes:
[0009] Obtain the network topology diagram between the NVR and each camera; the network topology diagram includes the communication link between each camera and the NVR and the communication performance parameters corresponding to the communication link, the communication link being the link through which the camera communicates with the NVR using the first communication method and / or the second communication method;
[0010] Based on the communication performance parameters corresponding to the communication link between each camera and the NVR, the spatial positional relationship between each camera and the NVR is determined; the aforementioned spatial positional relationship includes the layer crossing situation between the camera and the NVR and / or the distance between the camera and the NVR;
[0011] The network topology map and spatial location relationships are sent to each camera. The network topology map and spatial location relationships are used to enable each camera to adjust the wireless networking strategy between each camera and the NVR based on the network topology map, the layer penetration situation and / or distance between each camera and the NVR, and to determine the target communication link between each camera and the NVR. The target communication link includes the link between the camera and other cameras and / or the NVR using a second communication method. The communication distance of the second communication method is greater than that of the first communication method, and the layer penetration performance of the second communication method is higher than that of the first communication method.
[0012] This disclosure also provides a wireless networking method for a wireless kit, applied to cameras in the wireless kit. The wireless kit includes an NVR and at least two cameras. At least one camera in each camera includes a first communication module and a second communication module. The first communication module communicates using a first communication method, and the second communication module communicates using a second communication method. The method includes:
[0013] The network topology diagram and spatial relationships sent by the NVR are received. The network topology diagram includes the communication link between each camera and the NVR and the corresponding communication performance parameters of the communication link. The communication link is the link through which the camera communicates with the NVR using the first communication method and / or the second communication method. The spatial relationships are determined based on the communication performance parameters corresponding to the communication link between each camera and the NVR, including the layer crossing situation between the camera and the NVR and / or the distance between the camera and the NVR.
[0014] Based on the network topology diagram, the layer penetration situation and / or distance between the camera and the NVR, the wireless networking strategy between the camera and the NVR is adjusted to determine the target communication link between the camera and the NVR. The target communication link includes the link between the camera and other cameras and / or NVRs using a second communication method, where the communication distance of the second communication method is greater than that of the first communication method, and the layer penetration performance of the second communication method is higher than that of the first communication method.
[0015] This disclosure also provides a wireless networking device for a wireless suite, applied to a network video recorder (NVR) in the wireless suite. The wireless suite includes an NVR and at least two cameras. At least one of the cameras includes a first communication module and a second communication module. The first communication module communicates using a first communication method, and the second communication module communicates using a second communication method, including the following modules:
[0016] The topology acquisition module is configured to acquire the network topology between the NVR and each camera; the network topology includes the communication link between each camera and the NVR and the communication performance parameters corresponding to the communication link, wherein the communication link is the link through which the camera communicates with the NVR using a first communication method and / or a second communication method;
[0017] The spatial position relationship determination module is configured to determine the spatial position relationship between each camera and the NVR based on the communication performance parameters corresponding to the communication link between each camera and the NVR; the spatial position relationship includes the layer crossing situation between the camera and the NVR and / or the distance between the camera and the NVR;
[0018] The transmitting module is configured to adjust the wireless networking strategy between each camera and the NVR based on the layer penetration and / or distance between each camera and the NVR, and determine the target communication link between each camera and the NVR; the target communication link includes a link between the camera and other cameras and / or NVRs using a second communication method, wherein the communication distance of the second communication method is greater than the communication distance of the first communication method, and the layer penetration performance of the second communication method is higher than that of the first communication method.
[0019] This disclosure also provides a network video recorder (NVR), including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements a wireless networking method of any of the wireless kits described above on the NVR side.
[0020] This disclosure also provides a camera, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a wireless networking method of any of the wireless kits described above for the camera side.
[0021] This disclosure also provides a wireless kit, including a network video recorder (NVR) and at least two cameras, at least one of the cameras including a first communication module and a second communication module, the first communication module communicating using a first communication method, and the second communication module communicating using a second communication method;
[0022] The above NVR configuration is for implementing a wireless networking method for any of the wireless kits on the NVR side;
[0023] The camera described above is configured to perform a wireless networking method such as any of the wireless kits on the camera side.
[0024] This disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a wireless networking method of any of the wireless kits described above for the NVR side and / or implements a wireless networking method of any of the wireless kits described above for the camera side.
[0025] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements a wireless networking method for any of the wireless kits described above on the NVR side and / or implements a wireless networking method for any of the wireless kits described above on the camera side. Attached Figure Description
[0026] Figure 1 is one of the flowcharts illustrating the wireless networking method of the NVR-side wireless kit provided in this embodiment of the present disclosure.
[0027] Figure 2 is a second schematic flowchart of the wireless networking method of the NVR-side wireless kit provided in this embodiment of the present disclosure.
[0028] Figure 3 is one of the example diagrams of the networking architecture of the wireless kit provided in the embodiments of this disclosure.
[0029] Figure 4 is a second example of the networking architecture of the wireless kit provided in this embodiment of the present disclosure.
[0030] Figure 5 is the third example diagram of the networking architecture of the wireless kit provided in this embodiment.
[0031] Figure 6 is the fourth example diagram of the networking architecture of the wireless kit provided in this embodiment of the present disclosure.
[0032] Figure 7 is the fifth example diagram of the networking architecture of the wireless kit provided in this embodiment of the present disclosure.
[0033] Figure 8 is a sixth example of the networking architecture of the wireless kit provided in this embodiment of the present disclosure.
[0034] Figure 9 is the seventh example of the networking architecture of the wireless kit provided in this embodiment.
[0035] Figure 10 is a schematic flowchart of the wireless networking method of the camera-side wireless kit provided in the embodiments of this disclosure.
[0036] Figure 11 is a schematic diagram of the wireless networking device of the NVR-side wireless kit provided in this embodiment of the present disclosure.
[0037] Figure 12 is a schematic diagram of the wireless networking device of the camera-side wireless kit provided in an embodiment of this disclosure.
[0038] Figure 13 is a schematic diagram of the structure of the NVR provided in the embodiment of this disclosure.
[0039] Figure 14 is a schematic diagram of the structure of the camera provided in an embodiment of this disclosure. Detailed Implementation
[0040] The technical solutions in this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of this disclosure, but not all embodiments.
[0041] Current wireless kits generally use the WiFi protocol for transmission, typically employing the 2.4GHz or 5.8GHz frequency bands. Because cameras need to wirelessly transmit image / video data back to the NVR for storage or preview, and because they are significantly affected by the installation environment—such as the number, thickness, and material (solid or hollow) of walls they pass through, as well as interference from surrounding electronic devices—wireless kits often experience issues like disconnections, stuttering, and unresponsiveness. Therefore, this disclosure provides a wireless networking method, device, and storage medium for a wireless kit, which can solve the aforementioned technical problems.
[0042] It should be noted that the execution subject of this disclosure embodiment may be an NVR and / or a camera, or a wireless networking device of a wireless kit in an NVR and / or a camera, or a processor in an NVR and / or a camera, or an electronic device connected to an NVR and / or a camera, etc., without specific limitations here.
[0043] The following embodiments will first take the NVR as the execution subject as an example to illustrate the wireless networking method of the wireless kit on the NVR side.
[0044] Figure 1 is a flowchart illustrating one of the wireless networking methods for the NVR-side wireless kit provided in this embodiment of the present disclosure. As shown in Figure 1, the method includes the following steps:
[0045] Step 102: Obtain the network topology diagram between the NVR and each camera; the network topology diagram includes the communication link between each camera and the NVR and the communication performance parameters corresponding to the communication link, the communication link being the link through which the camera communicates with the NVR using the first communication method and / or the second communication method.
[0046] Before describing the specific content of this embodiment, the wireless kit used in this disclosure embodiment will be described first. The wireless kit includes an NVR and at least two cameras, which can be network cameras (IPCs) or other types of cameras. At least one camera in each unit includes a first communication module and a second communication module. The first communication module communicates using a first communication method, and the second communication module communicates using a second communication method. Optionally, the NVR integrates the first and second communication modules for receiving image / video data from the cameras. Optionally, the first communication method can be WiFi, and the second communication method can be WiFi Halow; correspondingly, the first communication module can be a WiFi module, and the second communication module can be a WiFi Halow module. Optionally, each camera in the wireless kit may include the following: each camera includes both a WiFi module and a WiFi Halow module; some cameras include a WiFi module and others include both WiFi and WiFi Halow modules; some cameras include a WiFi module and others include a WiFi Halow module.
[0047] The number of cameras included in the wireless kit can be set according to actual needs, such as 2, 4, 6, 8, etc.
[0048] Regarding the second and first communication methods mentioned above, the communication distance of the second method is greater than that of the first method, and its wall-penetrating performance is also superior. In other words, compared to the first method, the second communication method has a longer transmission distance and stronger wall-penetrating performance. Therefore, adding a second communication module using the second communication method (i.e., WiFi Halow) to the camera allows for longer data transmission distances and stronger signals after passing through walls when transmitting data between the camera and the NVR. This helps avoid or reduce issues such as dropped connections, stuttering, and unresponsiveness during data transmission between the camera and the NVR.
[0049] Before the NVR communicates with each camera, a connection can be established between the NVR and each camera using both a first and a second communication method. The connection status can then be used to determine the communication links between each camera and the NVR, and the corresponding communication performance parameters can be obtained. Alternatively, the spatial relationship between the NVR and each camera can be determined during deployment. This spatial relationship can then be used to identify the communication links between each camera and the NVR, and the corresponding communication performance parameters can be predicted based on this relationship.
[0050] After obtaining the communication link between each camera and the NVR, a network topology diagram can be constructed based on these communication links. Simultaneously, communication performance parameters corresponding to each communication link can be set within this network topology diagram. These communication performance parameters can represent parameters such as signal quality or signal strength.
[0051] It is understood that the network topology diagram above can reflect the communication links between each camera and the NVR. Each communication link between a camera and the NVR may include one communication link or multiple communication links. For example, each communication link between a camera and the NVR may include a communication link that uses a first communication method, or it may include a communication link that uses a second communication method, or it may include a communication link that uses a combination of the first and second communication methods.
[0052] Step 104: Determine the spatial relationship between each camera and the NVR based on the communication performance parameters corresponding to the communication link between each camera and the NVR; the spatial relationship includes the layering situation between the camera and the NVR and / or the distance between the camera and the NVR.
[0053] In this step, after obtaining the network topology diagram between each camera and the NVR, the communication links between each camera and the NVR, as well as the communication performance parameters of each link, can be obtained. Then, the spatial relationship between each camera and the NVR can be determined using these communication performance parameters. For example, if the communication performance parameters of a camera and the NVR indicate poor communication quality, it can be determined that the camera is far from the NVR and / or the camera and the NVR are not in the same space, meaning they need to communicate through walls or floors. Conversely, if the communication performance parameters of another camera and the NVR indicate good communication quality, it can be determined that the camera is close to the NVR or the camera and the NVR are in the same space, meaning they do not need to communicate through walls or floors.
[0054] In summary, the spatial relationship between each camera and the NVR is determined by the communication performance parameters of the communication link of each camera. The spatial relationship of each camera can reflect the distance and / or the layer penetration between the camera and the NVR. The distance refers to whether the distance between the camera and the NVR exceeds the distance threshold, and the layer penetration refers to whether the camera needs to pass through a wall or whether the camera and the NVR are in the same space when communicating with each other.
[0055] Step 106: Send the network topology map and spatial location relationships to each camera; the network topology map and spatial location relationships are used to enable each camera to adjust the wireless networking strategy between each camera and the NVR according to the network topology map, the layer penetration situation and / or distance between each camera and the NVR, and determine the target communication link between each camera and the NVR; the target communication link includes the link between the camera and other cameras and / or the NVR using a second communication method, the communication distance of the second communication method is greater than the communication distance of the first communication method, and the layer penetration performance of the second communication method is higher than that of the first communication method.
[0056] In this step, an initial connection is established between each camera and the NVR. After the NVR obtains the network topology map between each camera and the NVR, the NVR can also determine the layer penetration and / or distance between each camera and the NVR based on the communication performance parameters corresponding to the communication link between each camera and the NVR. Afterward, the NVR can send the network topology map and the layer penetration and / or distance between each camera and the NVR to each camera.
[0057] After each camera establishes an initial connection with the NVR, it can communicate or transmit data with the NVR using its default communication link. After obtaining the network topology diagram sent by the NVR and the layer penetration and / or distance between each camera and the NVR, each camera can adjust its current networking strategy based on its spatial location and the layer penetration and / or distance to the NVR. For example, it can adjust its current communication link to use the optimal link for communication with the NVR. This optimal link can be designated as the target communication link between the camera and the NVR. For instance, if the communication effect is poor when the camera uses the first communication method to communicate with the NVR, the camera's communication link can be switched to its target communication link. This target communication link is the link using the second communication method to communicate with the NVR. Compared to the first communication method, the second communication method has a longer transmission distance and stronger layer penetration performance, thus improving the camera's communication effect and reducing problems such as stuttering, dropped connections, and unsmooth communication between the camera and the NVR. The above-mentioned method of switching communication links via cameras can automatically switch channels when the NVR and a certain camera are disconnected due to signal interference. This can effectively improve the communication performance of the camera and reduce problems such as stuttering, disconnection, and unsmooth communication between the camera and the NVR.
[0058] Alternatively, after obtaining the network topology map and the layer penetration and / or distance between each camera and the NVR, the NVR can also detect the network status between the NVR and each camera in real time. When there is an anomaly in the network performance between the NVR and a certain camera, the NVR can adjust the wireless networking strategy between the camera and the NVR based on the layer penetration and / or distance between the camera and the NVR, determine the target communication link between the camera and the NVR, and send a link switching command to the camera. The link switching command includes the target communication link corresponding to the camera, which is used to instruct the camera to switch from its current communication link to the target communication link.
[0059] As described above, in this embodiment, the NVR or each camera can automatically adjust the networking strategy between each camera and the NVR based on the layer penetration and / or distance between each camera and the NVR, switching each camera to the optimal communication link to communicate with the NVR, achieving seamless switching. This solves problems such as device disconnection, lag, and unsmoothness in wireless kits, achieving seamless high-performance transmission, improving product competitiveness, and bringing value to customers.
[0060] In this embodiment, the wireless kit includes an NVR and at least two cameras. At least one of the cameras includes a first communication module and a second communication module. The first communication module communicates using a first communication method, and the second communication module communicates using a second communication method. The NVR obtains a network topology diagram between the NVR and each camera, and determines the spatial relationship between each camera and the NVR based on the communication performance parameters corresponding to the communication links between each camera and the NVR in the network topology diagram. Based on the layer penetration and / or distance between each camera and the NVR in the spatial relationship, the wireless networking strategy between each camera and the NVR is adjusted to determine the target communication link between each camera and the NVR. The target communication link includes a link between the camera and other cameras and / or the NVR using the second communication method. The communication distance of the second communication method is greater than that of the first communication method, and the layer penetration performance of the second communication method is higher than that of the first communication method. In this method, the wireless networking strategy between each camera and the NVR can be adjusted according to the layer penetration and / or distance between each camera and the NVR, so that each camera and the NVR can communicate through a communication method with a longer communication distance and higher layer penetration performance. This reduces or avoids problems such as dropped connections, stuttering, and unsmooth communication that may occur during the wireless kit's communication process, and achieves high-performance communication transmission of the wireless kit.
[0061] The following examples illustrate the process of obtaining the network topology diagram between each camera and the NVR.
[0062] Figure 2 is a second schematic flowchart of the wireless networking method of the NVR-side wireless kit provided in this embodiment of the present disclosure. As shown in Figure 2, step 102 above, which obtains the network topology diagram between the NVR and each camera, may include the following steps:
[0063] Step 202: Send a first network connection signal to each camera using a first communication method and a second network connection signal to each camera using a second communication method.
[0064] Step 204: Obtain the first signal parameters fed back by each camera for the first network connection signal, and / or the second signal parameters fed back by each camera for the second network connection signal.
[0065] Step 206: Determine the communication link between each camera and the NVR, and the corresponding communication performance parameters of the communication link, based on the first signal parameters and / or the second signal parameters of each camera.
[0066] Step 208: Construct a network topology diagram between the NVR and each camera based on the communication link between each camera and the NVR, and the communication performance parameters corresponding to the communication link.
[0067] Taking WiFi as the first communication method and WiFi module as the first communication module, and WiFi Halow as the second communication method and WiFi Halow module as the second example, after each camera and NVR are powered on, the NVR starts up and establishes a connection with each camera. Specifically, the NVR can actively initiate a WiFi connection with each camera via WiFi, that is, send a WiFi signal (denoted as the first network connection signal) to each camera, establishing a WiFi network topology between each camera and the NVR, i.e., determining which cameras can communicate with the NVR via WiFi. Simultaneously, the NVR can actively initiate a WiFi Halow connection with each camera via WiFi Halow, that is, send a WiFi Halow signal (denoted as the second network connection signal) to each camera, establishing a WiFi Halow network topology between each camera and the NVR, i.e., determining which cameras can communicate with the NVR via WiFi Halow.
[0068] When the NVR establishes a connection with each camera via WiFi and WiFi Halow signals respectively, each camera can send corresponding signals back to the NVR via WiFi and / or WiFi Halow based on the received WiFi and WiFi Halow signals. These feedback signals carry relevant signal parameters, such as Received Signal Strength Indicator (RSSI) and Signal-to-Noise Ratio (SNR). These signal parameters reflect the communication quality between the NVR and the camera using the corresponding communication method.
[0069] Additionally, if the camera includes a WiFi module, it can send signal parameters corresponding to the WiFi signal back to the NVR via WiFi communication during the establishment of a WiFi connection. These can be referred to as the first signal parameters. The first signal parameters include parameters such as RSSI and SNR of the WiFi signal received by the camera. If the camera includes a WiFi Halow module, it can send signal parameters corresponding to the WiFi Halow signal back to the NVR via WiFi Halow communication during the establishment of a WiFi Halow connection. These can be referred to as the second signal parameters. The second signal parameters include parameters such as RSSI and SNR of the WiFi Halow signal received by the camera.
[0070] Through the above steps, the NVR can establish a WiFi network topology and a WiFi Halow network topology between itself and each camera, thus identifying which cameras have a second communication module that uses WiFi Halow for communication. It can then control these cameras with the second communication module to establish WiFi connections with other cameras that do not, creating a WiFi network topology between these cameras and obtaining the signal parameters of the communication links between them.
[0071] Subsequently, the NVR can obtain the WiFi communication links between the NVR and each camera, as well as the communication performance parameters of each link, by analyzing the WiFi network topology between the NVR and each camera, and the WiFi network topology between the cameras, combined with the first signal parameters fed back to the NVR by each camera via WiFi. Simultaneously, the NVR can obtain the WiFi Halow communication links between the NVR and each camera, as well as the WiFi Halow network topology, by analyzing the first signal parameters fed back to the NVR by each camera via WiFi, and the second signal parameters fed back to the NVR via WiFi Halow. Based on this, a network topology diagram can be constructed showing the communication between the NVR and each camera via WiFi and / or WiFi Halow.
[0072] In this embodiment, the NVR establishes a connection with each camera through a first communication method and a second communication method, and determines the communication link and communication performance parameters based on the signal parameters fed back by each camera based on the first communication method and the second communication method, and constructs a network topology map accordingly, so as to obtain a more accurate network topology map.
[0073] The wireless kit contains two types of cameras. The first type has both a first communication module and a second communication module. This first type of camera can establish a network topology with the NVR using either a first communication method or a second communication method. The second type of camera only has the first communication module and can only establish a network topology with the NVR using the first communication method. The process for determining the communication performance parameters of the communication links in their network topologies differs for these two types of cameras. The following explains how to determine the spatial relationship between these two types of cameras and the NVR.
[0074] Scenario 1: For cameras equipped with a first communication module and a second communication module, step 104 above, which determines the spatial relationship between each camera and the NVR based on the communication performance parameters corresponding to the communication link between each camera and the NVR, may include the following steps:
[0075] If the first camera in each camera feeds back the first signal parameter and the second signal parameter to the NVR, then the first signal attenuation degree and the second signal attenuation degree between the NVR and the first camera are determined based on the first signal parameter and the second signal parameter of the first camera.
[0076] The first signal attenuation level is determined as the communication performance parameter of the communication link when the first camera and the NVR communicate through the first communication method, and the second signal attenuation level is determined as the communication performance parameter of the communication link when the first camera and the NVR communicate through the second communication method.
[0077] The spatial relationship between the first camera and the NVR is determined based on the first signal attenuation level and the second signal attenuation level of the first camera.
[0078] Continuing with the example of WiFi as the first communication method and WiFi module as the first communication module, and WiFi Halow as the second communication method and WiFi Halow module as the second communication module, when the NVR powers on and establishes a connection with each camera, it can send both WiFi and WiFi Halow signals to each camera. Cameras with WiFi modules can receive WiFi signals and feed back the first signal parameters to the NVR via WiFi. Cameras with WiFi Halow modules can receive WiFi Halow signals and feed back the second signal parameters to the NVR via WiFi Halow. Cameras without WiFi Halow modules cannot feed back the second signal parameters to the NVR. Therefore, if the NVR receives both the first and second signal parameters from the same camera during the connection establishment process, it indicates that the camera has both a WiFi module and a WiFi Halow module, and this camera can be designated as the first camera.
[0079] Then, the first signal parameters fed back by the first camera are compared with the signal parameters (such as the strength of the transmitted WiFi signal) when the NVR sends a WiFi signal to the first camera, to obtain the degree of WiFi signal attenuation, which is recorded as the first signal attenuation degree. This first signal attenuation degree can serve as a communication performance parameter corresponding to the communication link between the first camera and the NVR when communicating via WiFi. Simultaneously, the second signal parameters fed back by the first camera are compared with the signal parameters (such as the strength of the transmitted WiFi Halow signal) when the NVR sends a WiFi Halow signal to the first camera, to obtain the degree of WiFi Halow signal attenuation, which is recorded as the second signal attenuation degree. This second signal attenuation degree can also serve as a communication performance parameter corresponding to the communication link between the first camera and the NVR when communicating via WiFi Halow.
[0080] Then, based on the attenuation levels of these two signals between the first camera and the NVR, the spatial relationship between the first camera and the NVR, such as the distance between them and the presence of interlayer penetration, can be determined. For example, if the attenuation level of the first signal is greater than that of the second signal, it indicates that the WiFi signal is attenuated more than the WiFi Halow signal. In this case, it can be roughly determined that the first camera is far from the NVR and / or that the two are not in the same space (i.e., there is interlayer penetration / wall penetration).
[0081] Scenario 2: For cameras that only have the first communication module, step 104 above, which determines the spatial relationship between each camera and the NVR based on the communication performance parameters corresponding to the communication link between each camera and the NVR, may include the following steps:
[0082] If the second camera in each camera feeds back the first signal parameter to the NVR, then the third signal parameter between the second camera and the first camera is obtained; the first camera is the camera that feeds back the first signal parameter and the second signal parameter to the NVR, and the second camera and the first camera communicate with each other through a first communication method.
[0083] The first signal parameter of the second camera is determined as the communication performance parameter of the communication link when the second camera and the NVR communicate directly through the first communication method, and the third signal parameter is determined as the communication performance parameter of the communication link when the second camera communicates through the first camera and the NVR.
[0084] Based on the first and third signal parameters of the second camera, the spatial relationship between the second camera and the NVR is determined.
[0085] As mentioned above, if the NVR receives only the first signal parameter from the same camera but not the second signal parameter during the connection establishment process with each camera, it means that the camera only has a WiFi module and can be recorded as the second camera.
[0086] Then, a WiFi connection can be established between the first camera (equipped with both a WiFi module and a WiFi Halow module) and the second camera to obtain the signal parameters for communication between the second camera and the first camera, denoted as the third signal parameter, such as RSSI, SNR, etc. Subsequently, the first signal parameter fed back by the second camera can be used as the communication performance parameter corresponding to the communication link when it communicates directly with the NVR via WiFi, or the third signal parameter can be used as the communication performance parameter corresponding to the communication link when it communicates with the NVR via the first camera.
[0087] Then, based on the first and third signal parameters of the second camera, the spatial relationship between the second camera and the NVR, such as the distance and layer penetration, can be determined. For example, the first signal parameter of the second camera can be compared with the signal parameters (such as the strength of the transmitted WiFi signal) when the NVR sends a WiFi signal to the second camera. If the difference is large, it indicates that the second camera is far from the NVR. At the same time, the communication quality between the second camera and the first camera can be judged by the third signal parameter of the second camera. If the communication quality is good, it means that the second camera and the first camera are in the same space. Therefore, the layer penetration of the first camera can also be used as the layer penetration of the second camera.
[0088] Taking a wireless kit consisting of one NVR and four cameras as an example, the NVR integrates a WiFi module and a WiFi Halow module. Two cameras integrate both WiFi and WiFi Halow modules (cameras 3 and 4 in Figure 3), and two cameras integrate WiFi modules (cameras 1 and 2 in Figure 3). Several specific scenario examples are given below based on this example:
[0089] Example 1: Cameras 1-4 are in the same space (there is no layering).
[0090] Referring to Figure 3, one of the example diagrams of the wireless kit's networking architecture, after the NVR and cameras 1-4 are powered on, the NVR starts to establish a connection with each camera, initiates a self-test scheme, and uses information such as RSSI and SNR to obtain the distance relationship between the camera and the NVR at this time. From the figure, it can be seen that camera 1 and camera 2 are installed close to the NVR; camera 3 and camera 4 are installed far away from the NVR.
[0091] At this time, Camera 1 and Camera 2 can use WiFi to transmit image / video data from the camera end to the NVR end; at this time, Camera 3 and Camera 4 can use WiFi Halow (because they are far away from the NVR, they cannot use WiFi communication) to transmit image / video data from the camera end to the NVR end.
[0092] Example 2: Cameras 1-4 are in the same space (there is no layering).
[0093] Referring to Figure 4, which shows an example of the wireless kit's network architecture, after the NVR and cameras 1-4 are powered on, the NVR initiates a connection with each camera and starts a self-test. It uses RSSI, SNR, and other information to determine the distance between the cameras and the NVR. From the figure, it can be seen that cameras 3 and 4 are installed close to the NVR; cameras 1 and 2 are installed far from the NVR. There are two possibilities in this case:
[0094] 1. At this time, both camera 1 and camera 2 can still establish a WiFi connection with the NVR, indicating that the installation locations of camera 1 and camera 2 are far away from the NVR;
[0095] 2. At this time, cameras 1 and 2 cannot establish a WiFi connection with the NVR, but cameras 1 and 2 can establish a connection with the NVR through cameras 3 and 4; at this time, it can be determined that the installation positions of cameras 1 and 2 are far away from the NVR.
[0096] Under the original transmission scheme where cameras 1 and 2 were directly connected to the NVR via WiFi, cameras 1 and 2 have now lost connection. Under the new transmission scheme, camera 1 first transmits its image / video data back to camera 3 via WiFi; camera 3 then transmits the image / video data from camera 1 back to the NVR via WiFi / WiFi Halow. Similarly, camera 2 first transmits its image / video data back to camera 4 via WiFi; camera 4 then transmits the image / video data from camera 2 back to the NVR via WiFi / WiFi Halow. At this point, cameras 3 and 4 can use WiFi / WiFi Halow to transmit their image / video data back to the NVR.
[0097] Example 3: Camera 1 and Camera 3 are in the same space, Camera 2 and Camera 4 are in the same space, and there is a layering between Camera 2 and 4 and Camera 1 and 3.
[0098] Referring to the third example diagram of the wireless kit's networking architecture shown in Figure 5, after the NVR and cameras 1-4 are powered on, the NVR starts to establish a connection with each camera, initiates a self-test scheme, and uses information such as RSSI and SNR to obtain the distance relationship between the camera and the NVR at this time. From the figure, it can be seen that camera 1 and camera 3 are in the same space, which is the first layer; camera 2 and camera 4 are in the same space, which is the second layer.
[0099] Meanwhile, camera 1 is installed close to the NVR; at this time, camera 1 can use WiFi to transmit image / video data from the camera end back to the NVR end.
[0100] Camera 3 is installed far from the NVR; in this case, camera 3 can use WiFi Halow (if it is too far from the NVR to use WiFi) to transmit image / video data from the camera to the NVR; however, according to the original transmission scheme where camera 3 is directly connected to the NVR via WiFi, camera 3 has now lost connection.
[0101] Although camera 2 is installed close to the NVR, it involves passing through a wall and one floor slab. At this time, the signal is poor. Therefore, camera 2 first transmits the image / video data from the camera end back to camera 4 via WiFi. Camera 4 then transmits the image / video data from camera 2 back to the NVR via WiFi Halow.
[0102] Camera 4 is installed far from the NVR and involves passing through a wall and one floor slab; in this case, camera 4 can use WiFi Halow to transmit image / video data from the camera to the NVR.
[0103] The above examples are merely illustrative and do not constitute a limitation on the technical solutions of the embodiments of this disclosure. As can be seen from the above examples, by adding WiFi Halow modules to the NVR and some cameras for communication, and by using WiFi Halow modules to communicate with the NVR when the distance between the camera and the NVR is far or when it involves passing through layers / walls, problems such as disconnection, stuttering, and lack of smoothness that occur when communicating between the camera and the NVR can be avoided.
[0104] In this embodiment, by determining the spatial relationship between cameras equipped with different communication modules and the NVR, the NVR can accurately switch the network of each camera accordingly, further reducing or avoiding problems such as dropped connections, lag, and unsmooth communication that may occur during the wireless kit's communication process.
[0105] Additionally, it should be noted that different countries have strict restrictions on the operating frequency and bandwidth of WiFi Halow. See the table below for the parameter settings for WiFi Halow in different countries, which provides the frequency bands, allowed bandwidth, maximum terminal transmission power, and related notes for different geographical regions. Taking region B as an example, the allowed WiFi Halow frequency band range is 902–928MHz, the allowed bandwidth is 1, 2, 4, 8, and 16; the maximum transmission power is 30dBm.
[0106] Based on this, before communicating with each camera, the NVR can adjust its parameters to meet regulatory requirements according to the relevant requirements of the area where the NVR and the camera are located. These parameters may include, for example, the operating frequency band, allowable bandwidth, and maximum transmission power.
[0107] After constructing the network topology diagram between the NVR and each camera as described above, the communication link between each camera and the NVR can be determined through the network topology diagram. As mentioned above, the communication link between each camera and the NVR may include multiple communication links. The following example illustrates how to implement the network switching process when multiple communication links are included.
[0108] In one embodiment, the camera includes a third camera and a fourth camera, wherein the third camera includes a first communication module, and the fourth camera includes a first communication module and a second communication module. The method further includes the following steps:
[0109] Based on the network topology diagram, the communication link between the third camera and the NVR that communicates directly through the first communication method is determined as the main communication link of the third camera.
[0110] Based on the network topology diagram, the communication link through which the third camera communicates with the NVR via the fourth camera is identified as the backup communication link for the third camera; the third camera communicates with the fourth camera via the first communication method, and the fourth camera communicates with the NVR via the second communication method.
[0111] If it is determined that the main communication link of the third camera is abnormal, a switching command is sent to the third camera; the switching command is used to instruct the third camera to switch its communication link from the main communication link to the backup communication link.
[0112] As shown in the network topology diagram, the communication link between each camera and the NVR may include multiple communication links. The network path reliability (also known as network performance) of each communication link can be determined based on its communication performance parameters. The network path reliability characterizes the trustworthiness of the communication link and reflects whether it can be used for normal communication. Subsequently, during network switching, the network switching can be achieved based on the network communication reliability of each communication link.
[0113] In this embodiment, the camera includes the two types of cameras mentioned above. The camera that only includes the first communication module is referred to as the third camera in this embodiment, and the camera that includes the first communication module and the second communication module is referred to as the fourth camera in this embodiment. That is, the third camera and the NVR can only communicate through the first communication method, while the fourth camera and the NVR can communicate through either the first communication method or the second communication method.
[0114] For example, referring to the fourth example diagram of the wireless kit's network architecture shown in Figure 6, and the fifth example diagram of the wireless kit's network architecture shown in Figure 7, cameras 1 and 2 are the third cameras in this embodiment, and cameras 3 and 4 are the fourth cameras in this embodiment. Cameras 1 and 3 are located in the first layer, and cameras 2 and 4 are located in the second layer. Cameras 1 and 2 transmit back images to the NVR via WiFi, while cameras 3 and 4 transmit back images to the NVR via WiFi Halow. The communication link between cameras 1 and 2 directly connected to the NVR via WiFi can serve as the primary communication link between cameras 1 and 2. Camera 1 can also communicate with camera 3 via WiFi, and then transmit its back images to the NVR via camera 3. This communication link can serve as a backup communication link for camera 1. Similarly, camera 2 can also communicate with camera 4 via WiFi, and then transmit its back images to the NVR via camera 4. This communication link can also serve as a backup communication link for camera 2.
[0115] Camera 1 and Camera 2 use the main communication link to communicate with the NVR by default. If the main communication link of Camera 1 and Camera 2 malfunctions, such as due to WiFi signal interference or conflict, causing severe WiFi signal attenuation, Camera 1 and Camera 2 will be unable to communicate with the NVR normally via the main communication link WiFi. In this case, the network path reliability (also known as network performance) of Camera 1 and Camera 2 can be used to switch Camera 1 and Camera 2 from the main communication link to their backup communication link to achieve seamless network switching.
[0116] At this time, camera 1 seamlessly switches its communication link and transmits the image back to camera 3 via WiFi; camera 3 combines the images from camera 1 and camera 3 and transmits them to the NVR via WiFi Halow; camera 2 seamlessly switches its communication link and transmits the image back to camera 4 via WiFi; camera 4 combines the images from camera 2 and camera 4 and transmits them to the NVR via WiFi Halow.
[0117] In this embodiment, by determining the main communication link and backup communication link of the camera, and switching the camera from the main communication link to the backup communication link when the main communication link of the camera is abnormal, it can ensure that the camera can communicate normally. This can further avoid problems such as disconnection, lag, and unsmoothness in the communication process between the camera and the NVR.
[0118] In the actual communication process between each camera and the NVR, considering the maximum bitrate limitation of the wireless kit when transmitting data between each camera and the NVR, it is necessary to consider what bitrate each camera uses to communicate with the NVR. The following example illustrates this process.
[0119] In one embodiment, the above method further includes the following steps:
[0120] Obtain the maximum bitrate allowed to be transmitted by the wireless kit and the target bitrate that each camera can transmit, and calculate the bitrate sum based on the target bitrate that each camera can transmit;
[0121] If it is determined that the maximum bitstream is less than the sum of the bitstreams, and if the target camera in each camera is detected to be triggered to transmit, a first bitstream and a second bitstream are calculated based on the maximum bitstream and the target bitstream; the first bitstream is the same as the target bitstream and is greater than the second bitstream.
[0122] Send a third control command to the target camera and a fourth control command to the non-target cameras in the camera; the third control command is used to instruct the target camera to transmit data using a first bitstream, and the fourth control command is used to instruct the non-target cameras to transmit data using a second bitstream.
[0123] For example, continuing with a wireless kit consisting of one NVR and four cameras, assuming the maximum throughput of the NVR in the wireless kit can reach 16Mbps, considering factors such as actual attenuation, we take a 60% margin, and the actual maximum transmittable bit rate is 9.6Mbps.
[0124] Assuming that the bitrate of cameras 1 to 4 is 2Mbps, then the 2Mbps bitrate of all 4 cameras can meet the requirements, and there is no need to reduce the bitrate.
[0125] Assuming cameras 1-4 each have a bitrate of 4Mbps, the 4Mbps bitrate from all four cameras is insufficient. In this case, based on alarm urgency, priority can be given to the human detection path. For example, if camera 1 is triggered by human detection (i.e., camera 1 is the target camera and its transmission is triggered), then camera 1 will transmit its full bitrate at 4Mbps (target bitrate / first bitrate). The remaining cameras 2-4 (non-target cameras) will transmit at a reduced bitrate of 1.86Mbps (second bitrate). Subsequently, if camera 1 is no longer triggered by human detection, and the remaining cameras 2-4 have no other triggers, then cameras 1-4 will all transmit at a reduced bitrate of 2.4Mbps.
[0126] In this embodiment, by prioritizing the transmission of full-stream data to high-priority cameras based on the urgency of each camera's alarm, while reducing the bitrate of data transmission to other low-priority cameras, the accuracy of alarms can be improved.
[0127] In the actual communication process between each camera and the NVR, it is considered that the data transmission between each camera and the NVR may include keyframe data (denoted as I-frame image or I-frame data) and non-keyframe data (denoted as P-frame image or P-frame data). Keyframe data is independently encoded into a complete image through intra-frame compression; its loss will cause all subsequent frames to fail, resulting in problems such as black screens. Furthermore, its large data volume leads to high transmission latency. Non-keyframe data records the difference from the previous frame, approximately 1 / 5 to 1 / 3 of the keyframe data, and it can only be decoded after the keyframe data arrives. Based on this, considering the limited bandwidth of WiFi Halow and the significant impact of keyframe data, this embodiment proposes a scheme that prioritizes the transmission of keyframe data. The following embodiments will illustrate this.
[0128] In some embodiments, the above method further includes the following steps:
[0129] The network performance of the main communication link of the third camera is determined based on the communication performance parameters corresponding to the communication link between the third camera and the NVR.
[0130] When the network performance of the main communication link of the third camera is lower than a threshold, a first control command is sent to the third camera; the first control command is used to instruct the third camera to send non-critical frame data through the main communication link and to send critical frame data through the backup communication link.
[0131] Receive non-critical frame data sent by the third camera through the main communication link, and receive critical frame data sent by the third camera through the backup communication link.
[0132] Referring to Figure 8, Example 6 of the wireless kit's network architecture, and continuing with the example of cameras 1 and 2 as the third camera and cameras 3 and 4 as the fourth camera, the reliability of the corresponding network path (also known as network performance) can be determined by the communication performance parameters of the main communication links of cameras 1 and 2, and it can be determined whether the network performance of the main communication link is lower than a threshold (the specific value can be set according to the actual situation). If the network performance of the main communication link of camera 2 is lower than the threshold, it is determined that the communication quality of the direct WiFi connection between camera 2 and the NVR is poor. In this case, in order to accurately transmit I-frame data to the NVR, the networking strategy of camera 2 can be switched.
[0133] The switched networking strategy includes: NVR controls camera 2 to transmit its own P-frame data to NVR via WiFi, and its own I-frame data to camera 4 via WiFi, and then camera 4 transmits the data to NVR via WiFi Halow.
[0134] In this embodiment, the I-frame data from the camera is transmitted to the NVR through a backup communication link with better transmission performance, while the P-frame data is transmitted to the NVR through the main communication link. This avoids problems such as device black screen caused by failure of key frame data transmission from the camera.
[0135] In the actual communication process between each camera and the NVR, it is considered that when transmitting data between each camera and the NVR, a main bitstream and a secondary bitstream may be transmitted. The main bitstream bitrate is mainly used for local storage and high-definition display, and the bitstream is relatively large. The secondary bitstream bitrate is mainly used for network transmission and mobile display, and the bitstream is relatively small. Therefore, it is necessary to prioritize the transmission of the secondary bitstream. Based on this, this embodiment proposes a scheme to prioritize the transmission of the secondary bitstream. The following embodiment will explain this.
[0136] In some embodiments, the above method further includes the following steps:
[0137] The network performance of the main communication link of the third camera is determined based on the communication performance parameters corresponding to the communication link between the third camera and the NVR.
[0138] If the network performance of the main communication link of the third camera is lower than a threshold, a second control command is sent to the third camera; the second control command is used to instruct the third camera to send the main code stream through the main communication link and to send the auxiliary code stream through the backup communication link.
[0139] Receive the main stream sent by the third camera through the main communication link, and receive the auxiliary stream sent by the third camera through the backup communication link.
[0140] Referring to the example network architecture diagram seven of the wireless kit shown in Figure 9, continuing with the example of cameras 1 and 2 as the third camera and cameras 3 and 4 as the fourth camera, the reliability of the corresponding network path (also known as network performance) can be determined by the communication performance parameters of the main communication links of cameras 1 and 2, and it can be determined whether the network performance of the main communication link is lower than a threshold (the specific value can be set according to the actual situation). If the network performance of the main communication link of camera 2 is lower than the threshold, it is determined that the communication quality of the communication link between camera 2 and NVR via WiFi direct connection is poor. At this time, in order to accurately transmit the auxiliary code stream to the NVR, the networking strategy of camera 2 can be switched.
[0141] The network strategy after the switch includes: NVR controls camera 2 to transmit its main bitstream to NVR via WiFi, and its secondary bitstream to camera 4 via WiFi, and then camera 4 transmits it to NVR via WiFi Halow.
[0142] In this embodiment, the camera's secondary bitstream is transmitted to the NVR through a backup communication link with better transmission performance, while the primary bitstream is transmitted to the NVR through the primary communication link. This avoids problems such as poor device display caused by the failure of the camera's secondary bitstream transmission.
[0143] The above embodiments illustrate the wireless networking method of the wireless kit on the NVR side. The following embodiments will use the camera as the execution subject to illustrate the wireless networking method of the wireless kit on the camera side.
[0144] Figure 10 is a flowchart illustrating the wireless networking method of the camera-side wireless kit provided in this embodiment of the present disclosure. As shown in Figure 10, the method includes the following steps:
[0145] Step 302: Receive the network topology map and spatial location relationships sent by the NVR; the network topology map includes the communication link between each camera and the NVR and the communication performance parameters corresponding to the communication link. The communication link is the link through which the camera communicates with the NVR using the first communication method and / or the second communication method. The spatial location relationships are determined based on the communication performance parameters corresponding to the communication link between each camera and the NVR, including the layer crossing situation between the camera and the NVR and / or the distance between the camera and the NVR.
[0146] The process of obtaining and determining the network topology and spatial relationships can be found in the explanation of the above-mentioned NVR side embodiment, and will not be repeated here.
[0147] Step 304: Based on the network topology diagram, the layer penetration situation and / or distance between the camera and the NVR, adjust the wireless networking strategy between the camera and the NVR to determine the target communication link between the camera and the NVR; the target communication link includes the link between the camera and other cameras and / or NVRs using a second communication method, the communication distance of the second communication method is greater than the communication distance of the first communication method, and the layer penetration performance of the second communication method is higher than that of the first communication method.
[0148] Specifically, for each camera, after receiving the network topology map sent by the NVR and the layer crossing situation and / or distance between each camera and the NVR, it can adjust its own wireless networking strategy accordingly, that is, adjust its own communication link and determine the optimal target communication link for its own communication.
[0149] For details on the specific process of adjusting the wireless networking strategy, please refer to the explanation of the above-mentioned NVR side implementation, which will not be repeated here.
[0150] In this embodiment, the wireless kit includes an NVR and at least two cameras. At least one camera in each unit includes a first communication module and a second communication module. The first communication module communicates using a first communication method, and the second communication module communicates using a second communication method. The NVR obtains a network topology diagram between itself and each camera, and determines the spatial relationship between each camera and the NVR based on the communication performance parameters corresponding to the communication links between each camera and the NVR in the network topology diagram. The camera can adjust the wireless networking strategy between itself and the NVR based on the layer penetration and / or distance between each camera and the NVR in the spatial relationship, and determine the target communication link between the camera and the NVR. The target communication link includes links between the camera and other cameras and / or the NVR that communicate using the second communication method. The communication distance of the second communication method is greater than that of the first communication method, and the layer penetration performance of the second communication method is higher than that of the first communication method. In this method, the wireless networking strategy between each camera and NVR can be adjusted according to the layer penetration and / or distance between each camera and NVR, enabling each camera and NVR to communicate through a communication method with a longer communication distance and higher layer penetration performance. This reduces or avoids problems such as dropped connections, stuttering, and unsmooth communication that may occur during the wireless kit's communication process, thus achieving high-performance communication transmission of the wireless kit.
[0151] In some embodiments, the camera includes a third camera and a fourth camera, wherein the third camera includes a first communication module, and the fourth camera includes a first communication module and a second communication module. The method further includes:
[0152] The main communication link and backup communication link corresponding to the third camera are determined based on the network topology diagram. The main communication link is the communication link between the third camera and the NVR that communicates directly through the first communication method. The backup communication link is the communication link between the third camera and the NVR through the fourth camera. The third camera communicates with the fourth camera through the first communication method, and the fourth camera communicates with the NVR through the second communication method.
[0153] If it is determined that the main communication link of the third camera is abnormal, the communication link of the third camera will be switched from the main communication link to the backup communication link.
[0154] In this embodiment, the specific process of switching communication links for the camera can be found in the explanation of the above-mentioned NVR side embodiment, and will not be repeated here.
[0155] In some embodiments, the above method further includes:
[0156] The network performance of the main communication link of the third camera is determined based on the communication performance parameters corresponding to the communication link between the third camera and the NVR.
[0157] When the network performance of the main communication link of the third camera is below a threshold, non-critical frame data is sent to the NVR through the main communication link of the third camera, and critical frame data is sent to the NVR through the backup communication link of the third camera.
[0158] In this embodiment, the specific process of the camera determining the strategy for sending key frame data and non-key frame data can be found in the explanation of the above NVR side embodiment, and will not be repeated here.
[0159] In some embodiments, the above method further includes:
[0160] The network performance of the main communication link of the third camera is determined based on the communication performance parameters corresponding to the communication link between the third camera and the NVR.
[0161] If the network performance of the main communication link of the third camera is lower than the threshold, the main stream is sent to the NVR through the main communication link of the third camera and the auxiliary stream is sent to the NVR through the backup communication link of the third camera.
[0162] In this embodiment, the specific process of the camera determining the strategy for sending the main bitstream and the secondary bitstream can be found in the explanation of the above NVR side embodiment, and will not be repeated here.
[0163] The wireless networking device of the wireless kit provided in the embodiments of this disclosure will be described below. The wireless networking device of the wireless kit described below and the wireless networking method of the wireless kit described above can be referred to in correspondence with each other.
[0164] Figure 11 is a schematic diagram of the wireless networking device of the NVR-side wireless kit provided in this embodiment of the present disclosure. This device is applied to the NVR in the wireless kit, which includes an NVR and at least two cameras. At least one camera in each kit includes a first communication module and a second communication module. The first communication module communicates using a first communication method, and the second communication module communicates using a second communication method. Referring to Figure 11, the device may include:
[0165] The topology acquisition module 410 is configured to acquire the network topology between the NVR and each camera; the network topology includes the communication link between each camera and the NVR and the communication performance parameters corresponding to the communication link, wherein the communication link is the link through which the camera communicates with the NVR using a first communication method and / or a second communication method;
[0166] The spatial position relationship determination module 420 is configured to determine the spatial position relationship between each camera and the NVR based on the communication performance parameters corresponding to the communication link between each camera and the NVR; the spatial position relationship includes the layer crossing situation between the camera and the NVR and / or the distance between the camera and the NVR;
[0167] The sending module 430 is configured to send a network topology map and spatial location relationships to each camera. The network topology map and spatial location relationships are used to enable each camera to adjust the wireless networking strategy between each camera and the NVR based on the network topology map, the layer penetration situation and / or distance between each camera and the NVR, and to determine the target communication link between each camera and the NVR. The target communication link includes a link between the camera and other cameras and / or the NVR using a second communication method. The communication distance of the second communication method is greater than that of the first communication method, and the layer penetration performance of the second communication method is higher than that of the first communication method.
[0168] Figure 12 is a schematic diagram of the wireless networking device for a camera-side wireless kit provided in an embodiment of this disclosure. This device is applied to cameras within the wireless kit, which includes an NVR and at least two cameras. At least one camera in each kit includes a first communication module and a second communication module. The first communication module communicates using a first communication method, and the second communication module communicates using a second communication method. Referring to Figure 12, the device may include:
[0169] The receiving module 510 is configured to receive the network topology map and spatial position relationship sent by the NVR. The network topology map includes the communication link between each camera and the NVR and the communication performance parameters corresponding to the communication link. The communication link is the link through which the camera communicates with the NVR using a first communication method and / or a second communication method. The spatial position relationship is determined according to the communication performance parameters corresponding to the communication link between each camera and the NVR, including the layer crossing situation between the camera and the NVR and / or the distance between the camera and the NVR.
[0170] The wireless networking adjustment module 520 is configured to adjust the wireless networking strategy between the camera and the NVR based on the network topology, the layer penetration situation and / or distance between the camera and the NVR, and determine the target communication link between the camera and the NVR. The target communication link includes a link between the camera and other cameras and / or NVRs that uses a second communication method to communicate. The communication distance of the second communication method is greater than that of the first communication method, and the layer penetration performance of the second communication method is higher than that of the first communication method.
[0171] It should be noted that the apparatus provided in this embodiment can implement all the method steps implemented in the above method embodiment and can achieve the same technical effect. Therefore, the parts and beneficial effects that are the same as those in the method embodiment will not be described in detail here.
[0172] In one embodiment, this disclosure also provides a wireless kit, including a network video recorder (NVR) and at least two cameras, at least one of the cameras including a first communication module and a second communication module, the first communication module communicating using a first communication method and the second communication module communicating using a second communication method;
[0173] The above NVR configuration is for implementing a wireless networking method for any of the wireless kits on the NVR side;
[0174] The camera described above is configured to perform a wireless networking method such as any of the wireless kits on the camera side.
[0175] Figure 13 illustrates a schematic diagram of the physical structure of an NVR. As shown in Figure 13, the NVR may include a processor 610, a communications interface 620, a memory 630, and a communication bus 640. The processor 610, communications interface 620, and memory 630 communicate with each other via the communication bus 640. The processor 610 can call logical instructions in the memory 630 to execute the wireless networking method of the NVR-side wireless kit.
[0176] Furthermore, the logical instructions in the aforementioned memory 630 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 this disclosure, in essence, or the part that contributes to the prior art, or a part 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 each embodiment of this disclosure. The aforementioned storage medium includes: a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., each of these media capable of storing program code.
[0177] Figure 14 illustrates a schematic diagram of the physical structure of a camera. As shown in Figure 14, the camera may include: a processor 710, a communications interface 720, a memory 730, and a communication bus 740. The processor 710, communications interface 720, and memory 730 communicate with each other via the communication bus 740. The processor 710 can call logical instructions in the memory 730 to execute the wireless networking method of the camera-side wireless kit.
[0178] Furthermore, the logical instructions in the aforementioned memory 730 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 this disclosure, in essence, or the part that contributes to the prior art, or a part 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 each embodiment of this disclosure. The aforementioned storage medium includes: a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., each of which can store program code.
[0179] On the other hand, this disclosure also provides a computer program product, which includes a computer program that can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer is able to execute the wireless networking method of the wireless suite provided by each of the above-described methods on the NVR side and / or the camera side.
[0180] In another aspect, this disclosure also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the wireless networking method of the wireless suite provided by each of the above-described methods on the NVR side and / or the camera side.
[0181] 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.
[0182] 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 part that contributes to the prior art, can be embodied in the form of a software product. 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 each embodiment or some parts of the embodiments.
[0183] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this disclosure, and are not intended to limit them. Although this disclosure 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 each of the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such 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 each embodiment of this disclosure.
Claims
1. A wireless networking method for a wireless kit, applied to a network video recorder (NVR) in the wireless kit, the wireless kit including an NVR and at least two cameras, at least one of the cameras including a first communication module and a second communication module, the first communication module communicating using a first communication method, and the second communication module communicating using a second communication method, the method comprising: Obtain the network topology diagram between the NVR and each of the cameras; The network topology diagram includes communication links between each camera and the NVR and communication performance parameters corresponding to the communication links. The communication links are links through which the camera communicates with the NVR using the first communication method and / or the second communication method. Based on the communication performance parameters corresponding to the communication link between each camera and the NVR, determine the spatial positional relationship between each camera and the NVR; The spatial relationship includes the layering situation between the camera and the NVR and / or the distance between the camera and the NVR; The network topology map and the spatial location relationships are sent to each camera; the network topology map and the spatial location relationships are used to enable each camera to adjust the wireless networking strategy between each camera and the NVR according to the network topology map, the layer crossing situation and / or distance between each camera and the NVR, and to determine the target communication link between each camera and the NVR; The target communication link includes a link between the camera and other cameras and / or the NVR that uses the second communication method to communicate. The communication distance of the second communication method is greater than that of the first communication method, and the layer penetration performance of the second communication method is higher than that of the first communication method.
2. The wireless networking method of the wireless kit according to claim 1, wherein, The step of obtaining the network topology map between the NVR and each of the cameras includes: The first communication method is used to send a first network connection signal to each of the cameras respectively, and the second communication method is used to send a second network connection signal to each of the cameras respectively; Obtain the first signal parameter fed back by each of the cameras in response to the first network connection signal, and / or the second signal parameter fed back by each camera in response to the second network connection signal; Based on the first signal parameters and / or second signal parameters of each camera, determine the communication link between each camera and the NVR, and the communication performance parameters corresponding to the communication link; Based on the communication link between each camera and the NVR, and the communication performance parameters corresponding to the communication link, a network topology diagram between the NVR and each camera is constructed.
3. The wireless networking method of the wireless kit according to claim 2, wherein, Determining the spatial relationship between each camera and the NVR based on the communication performance parameters corresponding to the communication link between each camera and the NVR includes: If the first camera in each of the cameras feeds back a first signal parameter and a second signal parameter to the NVR, then the first signal attenuation degree and the second signal attenuation degree between the NVR and the first camera are determined based on the first signal parameter and the second signal parameter of the first camera. The first signal attenuation level is determined as the communication performance parameter of the communication link when the first camera and the NVR communicate through the first communication method, and the second signal attenuation level is determined as the communication performance parameter of the communication link when the first camera and the NVR communicate through the second communication method. The spatial relationship between the first camera and the NVR is determined based on the first signal attenuation level and the second signal attenuation level of the first camera.
4. The wireless networking method of the wireless kit according to claim 2, wherein, Determining the spatial relationship between each camera and the NVR based on the communication performance parameters corresponding to the communication link between each camera and the NVR includes: If the second camera in each of the cameras feeds back the first signal parameter to the NVR, then the third signal parameter between the second camera and the first camera is obtained; the first camera is the camera that feeds back the first signal parameter and the second signal parameter to the NVR, and the second camera and the first camera communicate with each other through the first communication method; The first signal parameter of the second camera is determined as the communication performance parameter of the communication link when the second camera and the NVR communicate directly through the first communication method, and the third signal parameter is determined as the communication performance parameter of the communication link when the second camera communicates with the NVR through the first camera; The spatial relationship between the second camera and the NVR is determined based on the first signal parameters and the third signal parameters of the second camera.
5. The wireless networking method of the wireless kit according to any one of claims 1 to 4, wherein, The camera includes a third camera and a fourth camera. The third camera includes the first communication module, and the fourth camera includes the first communication module and the second communication module. The method further includes: Based on the network topology diagram, the communication link between the third camera and the NVR that communicates directly through the first communication method is determined as the main communication link of the third camera. According to the network topology diagram, the communication link through which the third camera communicates with the NVR via the fourth camera is determined as the backup communication link of the third camera; the third camera communicates with the fourth camera via a first communication method, and the fourth camera communicates with the NVR via a second communication method; If it is determined that the main communication link of the third camera is abnormal, a switching command is sent to the third camera; the switching command is used to instruct the third camera to switch its communication link from the main communication link to the backup communication link.
6. The wireless networking method of the wireless kit according to claim 5, wherein, The method further includes: The network performance of the main communication link of the third camera is determined based on the communication performance parameters corresponding to the communication link between the third camera and the NVR. When the network performance of the main communication link of the third camera is lower than a threshold, a first control command is sent to the third camera; the first control command is used to instruct the third camera to send non-critical frame data through the main communication link and to send critical frame data through the backup communication link. Receive non-critical frame data sent by the third camera through the main communication link, and receive critical frame data sent by the third camera through the backup communication link.
7. The wireless networking method of the wireless kit according to claim 5, wherein, The method further includes: The network performance of the main communication link of the third camera is determined based on the communication performance parameters corresponding to the communication link between the third camera and the NVR. If the network performance of the main communication link of the third camera is lower than a threshold, a second control command is sent to the third camera; the second control command is used to instruct the third camera to send the main code stream through the main communication link and to send the auxiliary code stream through the backup communication link. Receive the main code stream sent by the third camera through the main communication link, and receive the auxiliary code stream sent by the third camera through the backup communication link.
8. The wireless networking method of the wireless kit according to claim 5, wherein, The method further includes: Obtain the maximum bitrate allowed to be transmitted by the wireless kit and the target bitrate that each camera can transmit, and calculate the bitrate sum based on the target bitrate that each camera can transmit; In cases where the maximum bitstream is determined to be less than the sum of the bitstreams, and transmission of the target camera in the camera is triggered, a first bitstream and a second bitstream are calculated based on the maximum bitstream and the target bitstream; the first bitstream is the same as the target bitstream and is greater than the second bitstream. A third control command is sent to the target camera and a fourth control command is sent to a non-target camera among the cameras; the third control command is used to instruct the target camera to transmit data using the first bitstream, and the fourth control command is used to instruct the non-target camera to transmit data using the second bitstream.
9. A wireless networking method for a wireless kit, applied to cameras in the wireless kit, the wireless kit including a network video recorder (NVR) and at least two cameras, at least one of the cameras including a first communication module and a second communication module, the first communication module communicating using a first communication method, and the second communication module communicating using a second communication method, the method comprising: Receive the network topology map and spatial relationships sent by the NVR; The network topology diagram includes communication links between each camera and the NVR and communication performance parameters corresponding to the communication links. The communication link is a link through which the camera communicates with the NVR using the first communication method and / or the second communication method. The spatial position relationship is determined according to the communication performance parameters corresponding to the communication links between each camera and the NVR, including the layer crossing situation between the camera and the NVR and / or the distance between the camera and the NVR. Based on the network topology diagram, the layer penetration and / or distance between the camera and the NVR, the wireless networking strategy between the camera and the NVR is adjusted to determine the target communication link between the camera and the NVR; The target communication link includes a link between the camera and other cameras and / or the NVR that uses the second communication method to communicate. The communication distance of the second communication method is greater than that of the first communication method, and the layer penetration performance of the second communication method is higher than that of the first communication method.
10. The wireless networking method of the wireless kit according to claim 9, wherein, The camera includes a third camera and a fourth camera, wherein the camera is the third camera, the third camera includes the first communication module, and the fourth camera includes the first communication module and the second communication module. The method further includes: Based on the network topology diagram, the main communication link and backup communication link corresponding to the third camera are determined; the main communication link is the communication link between the third camera and the NVR that communicates directly through the first communication method; the backup communication link is the communication link between the third camera and the NVR through the fourth camera, wherein the third camera communicates with the fourth camera through the first communication method, and the fourth camera communicates with the NVR through the second communication method. If it is determined that the main communication link of the third camera is abnormal, the communication link of the third camera will be switched from the main communication link to the backup communication link.
11. The wireless networking method of the wireless kit according to claim 10, wherein, The method further includes: The network performance of the main communication link of the third camera is determined based on the communication performance parameters corresponding to the communication link between the third camera and the NVR. If the network performance of the main communication link of the third camera is lower than a threshold, non-critical frame data is sent to the NVR through the main communication link of the third camera, and critical frame data is sent to the NVR through the backup communication link of the third camera.
12. The wireless networking method of the wireless kit according to claim 10, wherein, The method further includes: The network performance of the main communication link of the third camera is determined based on the communication performance parameters corresponding to the communication link between the third camera and the NVR. If the network performance of the main communication link of the third camera is lower than a threshold, the main stream is sent to the NVR through the main communication link of the third camera and the auxiliary stream is sent to the NVR through the backup communication link of the third camera.
13. The wireless networking method of the wireless kit according to claim 10, wherein, The method further includes: The target camera in the camera receives a third control command sent by the NVR, obtains a first bitstream according to the third control command, and transmits data using the first bitstream; Alternatively, a non-target camera in the camera system receives a fourth control command sent by the NVR, obtains a second bitstream according to the fourth control command, and transmits data using the second bitstream. The first bitstream and the second bitstream are calculated by the NVR based on the maximum bitstream and the target bitstream that each camera can transmit, when the maximum bitstream allowed to be transmitted by the wireless kit is less than the sum of the bitstreams, and when the target camera in the camera is detected to be triggered to transmit. The sum of the bitstreams is calculated based on the target bitstream of each camera. The first bitstream is the same as the target bitstream and is greater than the second bitstream.
14. A wireless networking device for a wireless suite, applied to a network video recorder (NVR) in the wireless suite, the wireless suite including an NVR and at least two cameras, at least one of the cameras including a first communication module and a second communication module, the first communication module communicating using a first communication method, and the second communication module communicating using a second communication method, the device comprising: The topology acquisition module is configured to acquire the network topology map between the NVR and each of the cameras; The network topology diagram includes communication links between each camera and the NVR and communication performance parameters corresponding to the communication links. The communication links are links through which the camera communicates with the NVR using the first communication method and / or the second communication method. The spatial location relationship determination module is configured to determine the spatial location relationship between each camera and the NVR based on the communication performance parameters corresponding to the communication link between each camera and the NVR; The spatial relationship includes the layering situation between the camera and the NVR and / or the distance between the camera and the NVR; The sending module is configured to send the network topology map and the spatial location relationship to each camera; the network topology map and the spatial location relationship are used to enable each camera to adjust the wireless networking strategy between each camera and the NVR according to the network topology map, the layer crossing situation and / or distance between each camera and the NVR, and to determine the target communication link between each camera and the NVR; The target communication link includes a link between the camera and other cameras and / or the NVR that uses the second communication method to communicate. The communication distance of the second communication method is greater than that of the first communication method, and the layer penetration performance of the second communication method is higher than that of the first communication method.
15. A wireless networking device for a wireless kit, applied to cameras in the wireless kit, the wireless kit including a network video recorder (NVR) and at least two cameras, at least one of the cameras including a first communication module and a second communication module, the first communication module communicating using a first communication method, and the second communication module communicating using a second communication method, the device comprising: The receiving module is configured to receive the network topology map and spatial location relationships sent by the NVR; The network topology diagram includes communication links between each camera and the NVR and communication performance parameters corresponding to the communication links. The communication link is a link through which the camera communicates with the NVR using the first communication method and / or the second communication method. The spatial position relationship is determined according to the communication performance parameters corresponding to the communication links between each camera and the NVR, including the layer crossing situation between the camera and the NVR and / or the distance between the camera and the NVR. The wireless networking adjustment module is configured to adjust the wireless networking strategy between the camera and the NVR based on the network topology map, the layer penetration situation and / or distance between the camera and the NVR, and determine the target communication link between the camera and the NVR; The target communication link includes a link between the camera and other cameras and / or the NVR that uses the second communication method to communicate. The communication distance of the second communication method is greater than that of the first communication method, and the layer penetration performance of the second communication method is higher than that of the first communication method.
16. A network video recorder (NVR) configured to perform a wireless networking method of the wireless suite as described in any one of claims 1 to 8.
17. A camera configured to perform a wireless networking method of a wireless kit as described in any one of claims 9 to 13.
18. A wireless kit comprising a network video recorder (NVR) and at least two cameras, wherein at least one of the cameras comprises a first communication module and a second communication module, the first communication module communicating using a first communication method and the second communication module communicating using a second communication method; The NVR is configured to perform the wireless networking method of the wireless kit as described in any one of claims 1 to 8; The camera is configured to perform the wireless networking method of the wireless kit as described in any one of claims 9 to 13.
19. A non-transitory computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the wireless networking method of the wireless kit as described in any one of claims 1 to 8 and / or to implement the wireless networking method of the wireless kit as described in any one of claims 9 to 13.
20. A computer program product comprising a computer program that, when executed by a processor, implements the wireless networking method of the wireless kit as described in any one of claims 1 to 8 and / or implements the wireless networking method of the wireless kit as described in any one of claims 9 to 13.
