Relay networking method, wireless relay communication network, and video surveillance system
By switching to a target device with higher transmission capabilities in the wireless relay communication network, the problem of degradation of transmission capabilities caused by environmental changes is solved, and the anti-interference ability of the network and the data transmission stability of the equipment are improved.
Patent Information
- Application Number
- CN202211649367.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2042-12-21
AI Technical Summary
The connection relationship between devices outside the wireless network range and devices in the relay mode is fixed, resulting in a decrease in transmission capacity when the environment changes, affecting the transmission capacity of other devices. Especially in video surveillance systems, the reduction in transmission capacity of relay equipment affects the stability of the entire network.
By obtaining the target transmission capability between the relay device and the connected device, and comparing it with the preset transmission threshold, when the target transmission capability is less than the threshold, it switches to a target device with higher transmission capability, and the target device improves the transmission capability within the communication range of the relay device.
It improves the anti-interference capability of the wireless relay communication network, reduces the impact of environmental changes on transmission capabilities, and stabilizes data transmission between devices.
Smart Images

Figure CN115955706B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communications, and in particular to a relay networking method, a wireless relay communication network, and a video surveillance system. Background Art
[0002] When a device within range of a wireless network connects to the wireless network and turns on relay mode, other devices outside the wireless network can connect to the wireless network by communicating with the device in relay mode. This allows you to extend the range of your wireless network by turning on relay mode.
[0003] Currently, the connection between devices outside the wireless network range and devices in relay mode is typically manually set up, and the connection is fixed once established. Changes in the communication environment of a wireless device in relay mode, such as a change in location, an increase in connected devices, or obstruction, can reduce the transmission capacity of the wireless device. This fixed connection can affect the transmission capacity of other devices connected to the wireless device.
[0004] For example, the monitoring devices in a video surveillance system are usually connected to the same wireless network. Monitoring devices outside the wireless network can access the same wireless network through a relay device. When there are too many monitoring devices connected to the relay device, or there is an obstruction between the monitoring device and the relay device, the transmission capacity of the relay device may be reduced, thereby affecting the transmission capacity of other devices connected to the relay device. Summary of the Invention
[0005] In view of this, the present application aims to provide a relay networking method and a wireless relay communication network, and a video surveillance system to improve the anti-interference ability of the wireless relay communication network to the environment and reduce the situation where the transmission capacity of the relay equipment decreases due to environmental changes.
[0006] In the first aspect, an embodiment of the present application provides a relay networking method, including: obtaining a target transmission capacity for data transmission between a relay device and a connected device, the relay device and the connected device being different devices connected for communication in a wireless network; comparing the target transmission capacity with a preset transmission threshold; when it is determined that the target transmission capacity is less than the preset transmission threshold, switching the relay device to a communication connection with the target device; the target device is within the communication range of the relay device, and the transmission capacity between the target device and the relay device is greater than the target transmission capacity.
[0007] In an embodiment of the present application, if the target transmission capacity between the relay device and the connected device is less than the preset transmission threshold, it indicates that the transmission capacity of the relay device in the wireless relay communication network is reduced, and the reduction in transmission capacity is usually caused by the environment. At this time, the relay device is switched to connect with the target device, and the transmission capacity between the target device and the relay device is greater than the target transmission capacity. Thus, the transmission capacity of the relay device in the wireless relay communication network can be improved. Among them, when the relay device is switched from a connected device to a target device, the number of devices in the communication link where the connected device is located is reduced, and the data transmission capacity of the communication link where the connected device is located can be improved. At the same time, since the transmission capacity between the target device and the relay device is greater than the target transmission capacity, the transmission capacity of the relay device in the wireless relay communication network can be improved, thereby comprehensively improving the transmission capacity of the wireless relay communication network. By increasing the transmission capacity of each device in the wireless relay communication network by switching the connection device, it is possible to effectively cope with the situation where the transmission capacity changes due to environmental changes, and improve the anti-interference ability of the wireless relay communication network to the environment.
[0008] In one embodiment, obtaining a target transmission capacity for data transmission between a relay device and a connected device includes: obtaining a first transmission capacity, where the first transmission capacity is the transmission capacity for direct data transmission between the relay device and the connected device; obtaining a second transmission capacity of the connected device, where the second transmission capacity is the transmission capacity between the device and a preset device, and all devices in the wireless network are directly or indirectly connected to the preset device for communication; and determining the smaller value between the first transmission capacity and the second transmission capacity as the target transmission capacity.
[0009] In the embodiments of the present application, the maximum transmission capacity in the wireless relay communication network is limited by the worst transmission capacity of the device. Therefore, the smaller value between the first transmission capacity and the second transmission capacity can be determined as the target transmission capacity. The first transmission capacity and the second transmission capacity are transmission capacities from different perspectives. By determining the target transmission capacity by obtaining the first transmission capacity and the second transmission capacity, the transmission capacity of data transmission between the relay device and other devices can be determined from multiple perspectives. As a result, the determined target transmission capacity can be made more accurate, reducing the occurrence of frequent switching of connected devices and improving the anti-interference capability of the wireless relay communication network.
[0010] In one embodiment, obtaining the first transmission capability includes: respectively calculating the RSS I (Received Signal Strength Index) value and the remaining bandwidth value of data transmission between the relay device and the connected device; and determining the smaller value between the RSS I value and the remaining bandwidth value as the first transmission capability.
[0011] In the embodiments of the present application, both the RSS I value and the remaining bandwidth value can represent the transmission capacity between devices. The maximum transmission capacity in a wireless relay communication network is limited by the worst transmission capacity of the device. Therefore, the smaller value between the RSS I value and the remaining bandwidth value can be determined as the first transmission capacity. The first transmission capacity for data transmission between a relay device and a connected device is determined from different perspectives to improve the accuracy of the first transmission capacity.
[0012] In one embodiment, obtaining the second transmission capability of the connected device includes: obtaining a beacon packet sent by the connected device, wherein the device in the wireless networking is configured to actively send the beacon packet outward, and the beacon packet is configured to carry the second transmission capability of the device that sends the beacon packet; and obtaining the second transmission capability of the connected device based on the beacon packet.
[0013] In an embodiment of the present application, the devices in the wireless networking are configured to actively send beacon packets outward, and the beacon packets are configured to carry the second transmission capability of the device. This can improve the efficiency of determining the second transmission capability of the connected device, thereby reducing the time that the wireless relay communication network operates at a low transmission capability, improving the communication efficiency between the devices in the wireless relay communication network, and improving the stability and anti-interference capability of the wireless relay communication network.
[0014] In one embodiment, obtaining the target transmission capacity for data transmission between the relay device and the connected device includes: obtaining a first transmission capacity, the first transmission capacity being the transmission capacity for direct data transmission between the relay device and the connected device; obtaining a second transmission capacity of the connected device, the second transmission capacity being the transmission capacity between the device and a preset device, and the connected device is communicatively connected to the preset device; determining the minimum value among the first transmission capacity, the second transmission capacity and a preset third transmission capacity as the target transmission capacity, the third transmission capacity being the maximum transmission capacity for data transmission of a preset limiting device, and the third transmission capacity being determined based on the cascade condition of the preset device, and the relay device and the connected device are both directly or indirectly communicatively connected to the preset device.
[0015] In this embodiment of the present application, the third transmission capacity is a preset maximum transmission capacity that limits the transmission of data between devices. The transmission capacity of data between devices cannot exceed the third transmission capacity. By setting the third transmission capacity, excessive data volume can be prevented from being transmitted between devices, thereby reducing network congestion and improving the stability of data transmission between devices.
[0016] In one embodiment, obtaining the target transmission capacity for data transmission between the relay device and the connected device includes: periodically obtaining the target transmission capacity to obtain multiple target transmission capacities; accordingly, comparing the target transmission capacity with the preset transmission threshold includes: comparing the multiple target transmission capacities with the preset transmission threshold respectively; when it is determined that the multiple target transmission capacities are all less than the preset transmission threshold, determining that the target transmission capacity for data transmission between the relay device and the connected device is less than the preset transmission threshold.
[0017] In an embodiment of the present application, the target transmission capacity is periodically obtained, and the obtained multiple target transmission capacities are compared with the preset transmission threshold. When the multiple target transmission capacities are all less than the preset transmission threshold, it is determined that the target transmission capacity for data transmission between the relay device and the connected device is less than the preset transmission threshold. In this way, accidental situations when obtaining a single target transmission capacity can be avoided, the accuracy of the data can be improved, and the accuracy of judging whether to switch the connection can be improved.
[0018] In one embodiment, before switching the relay device to a communication connection with the target device, the method further includes: determining all unconnected devices within the communication range of the relay device; respectively determining the second transmission capabilities corresponding to all the unconnected devices; respectively comparing the second transmission capabilities of all the unconnected devices with the target transmission capability; and determining the unconnected device whose second transmission capability is greater than the target transmission capability as the target device.
[0019] In an embodiment of the present application, an unconnected device whose second transmission capacity is greater than the target transmission capacity is determined as a target device. As a result, after the relay device switches to connect with the target device, the transmission capacity can be improved, thereby improving the anti-interference capability of the wireless relay network.
[0020] In one embodiment, determining that the unconnected device whose second transmission capacity is greater than the transmission capacity is the target device includes: determining the device type of the connected device and the device type of each of the unconnected devices; determining the switching threshold corresponding to the device type of the connected device and the device type of the unconnected device based on the device type of the connected device, the device type of the unconnected device, and a preset relationship between the device type and the switching threshold; and determining the unconnected device whose second transmission capacity is greater than the target transmission capacity and exceeds the corresponding switching threshold as the target device.
[0021] In an embodiment of the present application, a switching threshold is set, and only unconnected devices whose second transmission capacity is greater than the target transmission capacity and exceeds the corresponding switching threshold are determined as target devices. In this way, the situation where the transmission capacity is not greatly improved before and after the switching can be avoided. At the same time, the situation of repeated switching can be effectively reduced, thereby improving the stability of data transmission.
[0022] In a second aspect, an embodiment of the present application provides a wireless relay communication network, comprising: a wireless router for providing a wireless communication network; a plurality of relay devices, each of the relay devices being directly or indirectly connected to the wireless router for communication; and each of the relay devices being used to execute the relay networking method as described in any one of the first aspects.
[0023] In a third aspect, an embodiment of the present application provides a video surveillance system, a network video recorder and a network camera group, wherein the network camera group includes multiple network cameras; the network video recorder and any network camera in the network camera group are in the same wireless network; wherein each of the network cameras has a relay function, and each of the network cameras is used to execute any one of the methods described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 A schematic diagram of the structure of a wireless relay communication network provided in an embodiment of the present application;
[0026] Figure 2 A schematic diagram of the structure of a video surveillance system provided in an embodiment of the present application;
[0027] Figure 3 A flowchart of a relay networking method provided in an embodiment of the present application;
[0028] Figure 4 A schematic diagram of the transmission capabilities provided in an embodiment of the present application.
[0029] Icon: Network video recorder 210; Network camera group 220. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solutions and advantages of this application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0031] See also Figure 1 , Figure 1 A schematic diagram of the structure of a wireless relay communication network provided in an embodiment of the present application. The wireless relay communication network includes a wireless router and a relay device.
[0032] A wireless router is used to provide a wireless communication network. For example, a wireless router can provide a Wi-Fi (Wireless Fidelity) network to devices within the signal range, so that the devices within the signal range can communicate via Wi-Fi.
[0033] A relay device refers to an electronic device with wireless relay function. Through the relay device, the coverage range of the wireless communication network can be extended so that electronic devices outside the signal range of the wireless router can connect to the wireless communication network.
[0034] like Figure 1 As shown, the circle range represents the signal range of the wireless router. The wireless relay communication network may include multiple relay devices. The relay devices within the signal range of the wireless router can directly communicate with the wireless router. The relay devices outside the signal range of the wireless router can communicate with the wireless router through other relay devices to connect to the wireless communication network provided by the wireless router.
[0035] In the embodiment of the present application, the relay device can implement the relay networking method provided in the present application. The process of the relay device implementing the relay networking method will be described in detail later and will not be expanded here.
[0036] See also Figure 2 , Figure 2 A schematic diagram of the structure of a video surveillance system provided in an embodiment of the present application.
[0037] In the present application, the wireless relay communication network can be applied to a video surveillance system. The video surveillance system includes an IPC (IP Camera) group and an NVR (Network Video Recorder). The IPC group includes multiple IPCs.
[0038] In a video surveillance system, any NVR or I PC can be a relay device. In this application, any I PC in the video surveillance system can be used to execute the relay networking method provided by this application. Next, the relay networking method provided by this application will be described using a video surveillance system as an example.
[0039] See also Figure 3 , Figure 3 This is a flow chart of a relay networking method provided in an embodiment of the present application. The relay networking method includes:
[0040] S110: Obtain a target transmission capability for data transmission between the relay device and the connected device.
[0041] Transmission capacity represents the efficiency of data transmission between two devices, that is, the amount of data that can be transmitted in the same amount of time.
[0042] In this embodiment, the relay device can obtain the data transmission capacity between other devices connected to it and obtain the target transmission capacity. Figure 2 As shown, when I PC2 is a relay device, I PC2 can obtain the transmission capability between itself and I PC1 or IPC4, or I PC2 can obtain the transmission capability of indirect communication with NVR.
[0043] In some embodiments, the relay device may periodically obtain the target transmission capacity between the relay device and the same connected device. For example, the target transmission capacity is obtained every 75 seconds. By periodically obtaining the target transmission capacity, target transmission capacities collected at multiple different time points can be obtained. By comparing the multiple target transmission capacities, the changes in the transmission capacity between the relay device and the connected device can be determined.
[0044] In one embodiment, obtaining a target transmission capacity for data transmission between a relay device and a connected device includes: obtaining a first transmission capacity; obtaining a second transmission capacity of the connected device, where the second transmission capacity is the transmission capacity between the device and a preset device; and determining the smaller value between the first transmission capacity and the second transmission capacity as the target transmission capacity.
[0045] See also Figure 4 , Figure 4 A schematic diagram of the transmission capabilities provided in an embodiment of the present application.
[0046] The transmission capability includes at least a first transmission capability and a second transmission capability. The first transmission capability is the transmission capability for direct data transmission between the relay device and the connected device, and the second transmission capability is the transmission capability between the device and the preset device. All devices in the wireless network are directly or indirectly connected to the preset device.
[0047] The first transmission capability may represent a situation in which data is transmitted between the relay device and a device directly connected in communication. For example, for IPC2, if the devices directly connected in communication are IPC1 and IPC4, the first transmission capability may be the transmission capability between IPC2 and IPC1, or the transmission capability between IPC2 and IPC4.
[0048] In one embodiment, obtaining the first transmission capability includes: respectively calculating an RSS I value and a remaining bandwidth value for data transmission between the relay device and the connected device; and determining the smaller value between the RSS I value and the remaining bandwidth value as the first transmission capability.
[0049] In this embodiment, the RSSI value is a received signal strength indicator, which, to a certain extent, can represent the transmission capacity between the relay device and the connected device. The bandwidth value is used to represent the data that the device can receive, and the remaining bandwidth value represents the amount of data the device can currently receive. To a certain extent, the remaining bandwidth value can be used to represent the transmission capacity between the relay device and the connected device. The calculation of the RSSI value and the remaining bandwidth value can refer to existing technologies and is not detailed here.
[0050] It is understood that the transmission capacity of a device is limited by its worst transmission capacity and cannot exceed the worst transmission capacity. Therefore, when determining the first transmission capacity, the RSSI value and the remaining bandwidth value can be compared, and the smaller value between the two can be determined as the first transmission capacity. For example, if the RSSI value is 30 and the remaining bandwidth value is 40, the first transmission capacity of the device is 30.
[0051] Among them, when making a comparison, since the RSS I value and the remaining bandwidth value are parameters on different dimensions, their units, meanings, etc. are different. When making a comparison, the RSS I value and the remaining bandwidth value can be normalized first to convert the RSS I value and the remaining bandwidth value to the same dimension so that they can be compared.
[0052] The second transmission capability represents the transmission capability between the current device and the preset device.
[0053] In this embodiment, the preset device can be used to receive data from any device in the wireless relay communication network. In a video surveillance system, the NVR can manage the audio and video information collected by all I PCs. Each I PC communicates with the NVR directly or indirectly. Therefore, in a video surveillance system, the preset device can be the NVR.
[0054] In this embodiment, when the connected device is in direct communication connection with the preset device, the second transmission capability of the connected device is equal to the first transmission capability between the connected device and the preset device.
[0055] When the connected device is indirectly connected to the preset device, the second transmission capability of the connected device is the smaller of the first transmission capability between the connected device and the intermediate device and the first transmission capability between the intermediate device and the preset device. Figure 4 As shown, the second transmission capability of I PC2 is the smaller value between the first transmission capability between I PC2 and I PC1 and the first transmission capability between NVR and I PC1.
[0056] In one embodiment, obtaining the second transmission capability includes: obtaining a beacon packet sent by a connected device, wherein the device in the wireless network is configured to actively send beacon packets outward, and the beacon packets are configured to carry the second transmission capability of the device sending the beacon packet; obtaining the second transmission capability of the connected device based on the beacon packet.
[0057] In this embodiment, the hostapd (a user-mode daemon process used for AP and authentication server) code of each device in the wireless relay communication network can be modified so that the device carries the second transmission capability of the device in the WI FI beacon packet sent outward. Other devices can periodically search for the beacon packet through the net link protocol and obtain the second transmission capability of the device by parsing the beacon packet.
[0058] For example, I PC1 can send a beacon packet outward, I PC2 can search the beacon packet sent by I PC1 and parse it to obtain the second transmission capability of I PC1. I PC1 is directly connected to NVR for communication, and the second transmission capability of I PC1 is equal to the first transmission capability between I PC1 and NVR.
[0059] Similarly, when data is transmitted between devices in a wireless relay communication network, data cannot be transmitted at a value exceeding the worst transmission capacity, such as the short board theory. Therefore, during actual transmission, the smaller of the first transmission capacity and the second transmission capacity can be determined as the target transmission capacity for data transmission between the relay device and the connected device.
[0060] In one embodiment, the transmission capability further includes a third transmission capability, which is a maximum transmission capability of each device in the wireless relay communication network that is limited by a preset device to perform data transmission, and the third transmission capability is determined based on the cascading status of the preset devices.
[0061] It is understood that devices have limited transmission capabilities. Excessive transmission capacity between one device and another may affect the transmission capacity between that device and other devices. In this embodiment, by setting a maximum transmission capacity, i.e., a third transmission capacity, this prevents excessive data volume from being transmitted between devices in a wireless relay communication network, reduces network congestion, and improves the data transmission capacity of each device in the wireless relay communication network.
[0062] In this embodiment, the third transmission capability can be set according to the number of cascades in the wireless relay communication network. For example, Figure 2 As shown, I PC1 is the first level, I PC2 and I PC3 are the second level, and I PC4 is the third level. Changes in I PC4's data transmission will affect the data transmission of I PC2 and I PC1. Therefore, a third transmission capacity can be set based on the remaining bandwidth values of I PC1 and I PC2, so that I PC4 transmits data according to the third transmission capacity, avoiding the impact of excessive transmission capacity on the data transmission of other devices in the wireless relay communication network. Specifically, when the number of cascades is large, the maximum transmission capacity of each cascaded device can be appropriately reduced, that is, the third transmission capacity can be reduced, so that all devices in the wireless relay communication network can perform stable data transmission. Alternatively, when the number of cascades is small, the third transmission capacity can be increased to improve the transmission efficiency of each device in the wireless relay communication network.
[0063] In this embodiment, the relay device can obtain the third transmission capability information by querying the preset device or by the preset device. In the video surveillance system, the IPC can query the NVR or receive the third transmission capability information from the NVR.
[0064] In one embodiment, obtaining a target transmission capacity for data transmission between a relay device and a connected device includes: obtaining a first transmission capacity, where the first transmission capacity is the transmission capacity for direct data transmission between the relay device and the connected device; obtaining a second transmission capacity of the connected device, where the second transmission capacity is the transmission capacity between the device and a preset device, and the connected device is communicatively connected to the preset device; and determining the minimum value among the first transmission capacity, the second transmission capacity, and a preset third transmission capacity as the target transmission capacity, where the third transmission capacity is the maximum transmission capacity of the preset device.
[0065] As described above, when a third transmission capability is provided, the minimum value among the first transmission capability, the second transmission capability, and the third transmission capability can be determined as the target transmission capability. The methods for obtaining the first transmission capability, the second transmission capability, and the third transmission capability can be referred to above and will not be described in detail here.
[0066] In one embodiment, when the relay device obtains the second transmission capability of a connected device, it can simultaneously search for the second transmission capability of other devices in the wireless relay communication network that are not connected to the relay device, and determine the first transmission capability between the relay device and devices in the wireless relay communication network that are not connected to the relay device, and determine the smaller value between the first transmission capability and the second transmission capability as the transmission capability between the unconnected device and the relay device.
[0067] For example, Figure 2 As shown, while obtaining the second transmission capability of IPC2, IPC4 can simultaneously search for beacon packets sent by IPC3 to obtain the second transmission capability of IPC3. Furthermore, the first transmission capability for direct communication between IPC4 and IPC3 is calculated. The second transmission capability of IPC3 is compared with the first transmission capability for direct communication between IPC4 and IPC3, and the smaller value is determined as the transmission capability for data transmission between IPC4 and IPC3. At step S120, the target transmission capability is compared with a preset transmission threshold.
[0068] In this embodiment, the preset transmission threshold may be a certain percentage of the transmission capacity of the relay device under normal conditions. For example, if the percentage is 75% and the transmission capacity of the relay device under normal conditions is 80, the preset transmission threshold may be 60. The above is merely an example and should not be construed as limiting the present application.
[0069] In one embodiment, multiple target transmission capabilities are compared with preset transmission thresholds respectively; when it is determined that multiple target transmission capabilities are all less than the preset transmission threshold, it is determined that the target transmission capacity for data transmission between the relay device and the connected device is less than the preset transmission threshold.
[0070] The relay device can obtain the target transmission capacity for data transmission between the relay device and the connected device at intervals. In this embodiment, when judging whether the target transmission capacity is less than the preset transmission threshold, the target transmission capacities obtained at different time points can be compared with the target transmission capacity. If the target transmission capacities obtained at different time points are all less than the preset transmission threshold, it can be determined that the target transmission capacity for data transmission between the relay device and the connected device is less than the preset transmission threshold. By comparing multiple times, it is possible to avoid the situation where a single comparison causes inaccurate data due to sudden events such as object occlusion and data fluctuation. In some embodiments, when any target transmission capacity is less than the preset transmission threshold, the frequency of the relay device obtaining the target transmission capacity can be increased to improve the efficiency of confirming whether the target transmission capacity has changed, so as to switch the relay device to communicate with other devices as soon as possible, thereby reducing the time that each relay device in the wireless relay communication network is in low transmission capacity.
[0071] S130: When it is determined that the target transmission capacity is less than the preset transmission threshold, the relay device is switched to a communication connection with the target device.
[0072] In this embodiment, the target device is within the communication range of the relay device, and the transmission capacity between the target device and the relay device is greater than the target transmission capacity. By switching the relay device to connect to the target device, the transmission capacity of the relay device in the wireless relay communication network can be improved. Furthermore, after the relay device switches to connect to the target device, the number of devices in the communication link originally containing the relay device can be reduced, thereby improving the transmission capacity of each device in the communication link.
[0073] For example, Figure 2 In the wireless relay communication network shown, if the transmission capacity between IPC4 and IPC3 is greater than the target transmission capacity between IPC4 and IPC2, IPC4 can be switched to connect with IPC3.
[0074] In one embodiment, before switching the relay device to a communication connection with the target device, the method further includes: determining all unconnected devices within the communication range of the relay device; respectively determining the second transmission capabilities corresponding to all unconnected devices; respectively comparing the second transmission capabilities of all unconnected devices with the target transmission capability; and determining that the unconnected device whose second transmission capability is greater than the transmission capability is the target device.
[0075] Since the second transmission capability represents the transmission capability between the device and the preset device, when comparing the transmission capabilities of multiple devices, the preset device can be used as a reference, and the second transmission capability can effectively reflect the transmission capability differences of each device.
[0076] When a relay device needs to increase its transmission capacity in a wireless relay communication network by switching to connect with a target device, the transmission capacity between the relay device and the target device should be greater than the target transmission capacity, otherwise switching back and forth may occur. In this embodiment, the second transmission capacity of all unconnected devices within the communication range of the relay device can be compared, indicating that the relay device is able to communicate with the relay device within the communication range. The second transmission capacity of all unconnected devices is compared with the target transmission capacity, thereby determining that the unconnected device whose second transmission capacity is greater than the target transmission capacity is the target device.
[0077] In some embodiments, if there are multiple unconnected devices whose second transmission capabilities are greater than the target transmission capability, the unconnected device with the largest second transmission capability may be determined as the target device.
[0078] In one embodiment, when determining the target device, it is also possible to: determine the device type of the connected device and the device type of the unconnected device; determine the switching threshold corresponding to the device type of the connected device and the device type of the unconnected device based on the device type of the connected device, the device type of the unconnected device, and the preset relationship between the device type and the switching threshold; and determine the unconnected device whose second transmission capacity is greater than the transmission capacity and exceeds the corresponding switching threshold as the target device.
[0079] If the transmission capacity between the target device and the relay device is similar to the target transmission capacity, switching the relay device to connect to the target device is meaningless and will not improve transmission capacity. For example, if the target transmission capacity between the relay device and the connected device is 80, and the transmission capacity between the relay device and the target device is 85, switching the relay device to connect to the target device will not effectively improve the relay device's transmission capacity in the wireless relay communication network. Furthermore, the target transmission capacity may be the result of a single data fluctuation. If the target device's second transmission capacity is similar to the target transmission capacity, switching back and forth may occur.
[0080] In this embodiment, a switching threshold can be set. The switching threshold represents the conditions for switching. When the second transmission capacity of the unconnected device is greater than the target transmission capacity and exceeds the switching threshold, the unconnected device is identified as a target device for switching. For example, the switching threshold can be 10%. When the target transmission capacity is 80, the second transmission capacity of the unconnected device must be greater than 80×(1+10%)=88 in order to determine the unconnected device as a target device. It will be understood that the above switching threshold is only an example and should not be considered as a limitation.
[0081] Furthermore, since different types of devices exist in the wireless relay communication network, for example, when the wireless relay communication network is applied in a video surveillance system, the video surveillance system includes an NVR and an I PC. Then, it is possible that an I PC is connected to an NVR and then switches to being connected to an I PC, or an I PC is connected to an I PC and then switched to being connected to an NVR. In addition, an I PC is first connected to an IPC and then switched to being connected to another I PC. Figure 2 As shown, I PC4 is connected to I PC2, and it is necessary to switch to connecting I PC4 to I PC3.
[0082] In a wireless relay communication network, different devices may be affected differently by the environment. For example, the transmission capacity of an NVR is less affected by environmental interference, while the transmission capacity of an IPC is more affected by the environment. Therefore, in this embodiment, different switching thresholds can be pre-set for different types of devices. For example, when an IPC is connected to an NVR and needs to switch to a connection with an IPC, the transmission capacity between the IPCs should be much greater than the transmission capacity between the IPCs and the NVR. For example, the switching threshold for switching to an IPC can be 30%, 40%, or other data. When an IPC is connected to an IPC and needs to switch to a connection with an NVR, the transmission capacity between the IPCs and the NVR can be greater than the transmission capacity between the IPCs and the IPCs. For example, the switching threshold for switching to an NVR can be 5%, 10%, etc. When an I PC switches from being connected to one I PC to being connected to another I PC, such as I PC4 switching from being connected to I PC2 to being connected to IPC3, the switching threshold may be the same as the switching threshold for switching from being connected to an NVR to being connected to an I PC. The second transmission capacity of the same unconnected device may be calculated multiple times, and the second transmission capacity of the unconnected device calculated multiple times may be compared with the target transmission capacity and the switching threshold respectively. If the second transmission capacity of the unconnected device calculated multiple times is greater than the target transmission capacity and exceeds the switching threshold, the unconnected device may be determined to be the target device.
[0083] In an embodiment of the present application, if the target transmission capacity between the relay device and the connected device is less than the preset transmission threshold, it indicates that the transmission capacity of the relay device in the wireless relay communication network is reduced, and the reduction in transmission capacity is usually caused by the environment. At this time, the relay device is switched to connect with the target device, and the transmission capacity between the target device and the relay device is greater than the target transmission capacity. Thus, the transmission capacity of the relay device in the wireless relay communication network can be improved. Among them, when the relay device is switched from a connected device to a target device, the number of devices in the communication link where the connected device is located is reduced, and the data transmission capacity of the communication link where the connected device is located can be improved. At the same time, since the transmission capacity between the target device and the relay device is greater than the target transmission capacity, the transmission capacity of the relay device in the wireless relay communication network can be improved, thereby comprehensively improving the transmission capacity of the wireless relay communication network. By increasing the transmission capacity of each device in the wireless relay communication network by switching the connection device, it is possible to effectively cope with the situation where the transmission capacity changes due to environmental changes, and improve the anti-interference ability of the wireless relay communication network to the environment.
[0084] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
[0085] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
Claims
1. A relay networking method, characterized in that: include: Obtaining a target transmission capacity for data transmission between a relay device and a connected device, wherein the relay device and the connected device are different devices connected for communication in a wireless network; The target transmission capacity is determined based on the RSSI value and the remaining bandwidth value; comparing the target transmission capacity with a preset transmission threshold; When it is determined that the target transmission capacity is less than the preset transmission threshold, switching the relay device to a communication connection with the target device; the target device is within the communication range of the relay device, and the transmission capacity between the target device and the relay device is greater than the target transmission capacity; Before switching the relay device to a communication connection with the target device, the method further includes: determining all unconnected devices within the communication range of the relay device; respectively determining a second transmission capability corresponding to each of the unconnected devices; respectively comparing the second transmission capabilities of all the unconnected devices with the target transmission capability; and determining an unconnected device having a second transmission capability greater than the target transmission capability as the target device; the second transmission capability being the transmission capability between the device and a preset device, and all devices in the wireless network are directly or indirectly connected to the preset device for communication; The determining that the unconnected device whose second transmission capacity is greater than the transmission capacity is the target device includes: determining the device type of the connected device and the device type of each of the unconnected devices; determining the switching threshold corresponding to the device type of the connected device and the device type of the unconnected device based on the device type of the connected device, the device type of the unconnected device, and a preset relationship between the device type and the switching threshold; and determining the unconnected device whose second transmission capacity is greater than the target transmission capacity and exceeds the corresponding switching threshold as the target device.
2. The method according to claim 1, characterized in that The acquiring of the target transmission capability for data transmission between the relay device and the connected device includes: Acquire a first transmission capability, where the first transmission capability is a transmission capability for direct data transmission between the relay device and the connected device; Acquire a second transmission capability of the connected device; A smaller value between the first transmission capacity and the second transmission capacity is determined as the target transmission capacity.
3. The method according to claim 2, characterized in that The acquiring the first transmission capability includes: respectively calculating an RSSI value and a remaining bandwidth value for data transmission between the relay device and the connected device; A smaller value between the RSSI value and the remaining bandwidth value is determined as the first transmission capability.
4. The method according to claim 2, characterized in that The acquiring the second transmission capability of the connected device includes: Obtaining a beacon packet sent by the connected device, wherein the device in the wireless network is configured to actively send the beacon packet, and the beacon packet is configured to carry the second transmission capability of the device sending the beacon packet; A second transmission capability of the connected device is acquired based on the beacon packet.
5. The method according to claim 1, characterized in that The acquiring of the target transmission capability for data transmission between the relay device and the connected device includes: Acquire a first transmission capability, where the first transmission capability is a transmission capability for direct data transmission between the relay device and the connected device; Acquire a second transmission capability of the connected device, where the second transmission capability is a transmission capability between the device and a preset device, and the connected device is in communication with the preset device; The minimum value among the first transmission capacity, the second transmission capacity and the preset third transmission capacity is determined as the target transmission capacity, the third transmission capacity is the maximum transmission capacity of the preset limiting device for data transmission, the third transmission capacity is determined based on the cascade situation of the preset device, and the relay device and the connected device are both directly or indirectly communicated with the preset device.
6. The method according to claim 1, characterized in that The acquiring of the target transmission capability for data transmission between the relay device and the connected device comprises: periodically acquiring the target transmission capability to obtain a plurality of target transmission capabilities; Accordingly, comparing the target transmission capability with a preset transmission threshold includes: The multiple target transmission capabilities are compared with the preset transmission threshold respectively; when it is determined that the multiple target transmission capabilities are all less than the preset transmission threshold, it is determined that the target transmission capacity for data transmission between the relay device and the connected device is less than the preset transmission threshold.
7. A wireless relay communication network, characterized in that: include: Wireless router, used to provide wireless communication network; A plurality of relay devices, each of the relay devices being directly or indirectly connected to the wireless router for communication; Each of the relay devices is used to execute the relay networking method according to any one of claims 1 to 6.
8. A video surveillance system, characterized in that: include: A network video recorder and a network camera group, wherein the network camera group includes a plurality of network cameras; The network video recorder and any network camera in the network camera group are in the same wireless network; Each of the network cameras has a relay function, and each of the network cameras is used to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Bridge establishment method and device, network video recorder and readable storage medium
CN112311644A