Data transmission method and device for wireless device

By adjusting the installation position of wireless devices and using devices with high communication quality as target devices for data transmission, the power consumption problem of 5G mobile monitoring equipment is solved, communication quality and usage are improved, and the overall power consumption of the equipment is reduced.

CN113596879BActive Publication Date: 2024-09-13ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110870062.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-30
Publication Date
2024-09-13
Estimated Expiration
2041-07-30

AI Technical Summary

Technical Problem

5G mobile monitoring equipment suffers large communication losses due to poor signal quality or low usage. Existing technologies cannot effectively solve the power consumption problem.

Method used

By determining the remaining power and communication quality of the wireless device, adjusting the installation location of the device, using the device with high communication quality as the target device, responsible for the data transmission of itself and other devices, and forwarding the data from the device with poor communication quality to the target device, reducing Unnecessary power consumption.

Benefits of technology

It improves the communication quality of wireless devices, reduces overall power consumption, extends the use time of the device, and solves the problem of communication loss caused by poor signal quality and low usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113596879B
    Figure CN113596879B
Patent Text Reader

Abstract

The present invention discloses a data transmission method and device for wireless devices. The method includes: determining the remaining power of multiple wireless devices installed at multiple different locations; adjusting the installation location of each wireless device according to the remaining power of the multiple wireless devices and the communication quality at different locations; determining the wireless device at the location where the communication quality exceeds the preset threshold as the target device, and determining the wireless device at the location where the communication quality does not exceed the preset threshold as the non-target device; controlling the non-target device to transmit the collected data to the target device, and forwarding the data to the communication base station through the target device. The present invention solves the technical problem in the related art that the communication loss is large due to the poor signal quality of the wireless device or the low utilization rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data security protocols, and in particular to a data transmission method and device for a wireless device. Background Art

[0002] 5G monitoring equipment is widely used in all walks of life, especially 5G mobile devices that are easy to deploy. The built-in battery powers the entire device, allowing the device to interact with the platform anytime and anywhere, and send the real-time collected monitoring data back to the platform for analysis and monitoring. While this solution provides convenience for the monitoring industry, it also brings a problem: high power consumption! The device cannot be used for a long time.

[0003] Since it is a mobile monitoring device, there is no continuous power supply. Therefore, maximizing the reduction of device power consumption without affecting the function of the device is an urgent problem that needs to be solved.

[0004] The power consumption of the cellular 5G module accounts for a large proportion of the overall power consumption of the device. Figure 1 is a schematic diagram of the installation structure of the wireless monitoring device according to the prior art, such as Figure 1 As shown:

[0005] Devices D and E have poor signal strength due to their installation locations, and the cellular modules have been operating in low-speed modes such as 2G and 3G.

[0006] And transmit the code stream to the platform at a very low rate. Poor signal and low speed will cause the module to work at high transmission power for a long time, which will eventually increase power consumption.

[0007] In another case, the signal coverage of the Unicom network connected to device A is very good and the transmission rate is very high. However, since device A does not send more data per unit time, the module is in idle mode most of the time, causing a lot of unnecessary power consumption.

[0008] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0009] The embodiments of the present invention provide a data transmission method and apparatus for a wireless device, so as to at least solve the technical problem in the related art that a large communication loss is caused by poor signal quality or low utilization rate of the wireless device.

[0010] According to one aspect of an embodiment of the present invention, a method for data transmission of a wireless device is provided, comprising: determining the remaining power of a plurality of wireless devices installed at a plurality of different locations; adjusting the installation location of each wireless device according to the remaining power of the plurality of wireless devices and the communication quality at different locations; determining a wireless device at a location where the communication quality exceeds a preset threshold as a target device, and determining a wireless device at a location where the communication quality does not exceed the preset threshold as a non-target device; controlling the non-target device to transmit the collected data to the target device, and forwarding the data to a communication base station through the target device.

[0011] Optionally, before adjusting the installation position of each wireless device according to the remaining power of the multiple wireless devices and the communication quality at different locations, it also includes: collecting communication signals of each wireless device, and determining communication parameters corresponding to the communication signals, wherein the communication parameters include at least: signal-to-noise ratio and percentage of available resources; determining the communication quality of the location of each wireless device according to the communication mode of each wireless device and the communication parameters.

[0012] Optionally, determining the communication quality of each wireless device at its location based on the communication mode of each wireless device and the communication parameters includes: calculating the communication quality by the following formula; Q=a*b, wherein Q is the communication quality, a is the quality coefficient of the communication mode of the wireless device at the location, b is the communication parameter of the wireless device at the location, and b=x*r, x is the signal-to-noise ratio of the communication signal of the wireless device at the location, and x is the percentage of available resources for the communication signal of the wireless device at the location.

[0013] Optionally, after controlling the non-target device to transmit the collected data to the target device and forwarding the data to the communication base station through the target device, it also includes: determining the number of the target devices; when the number of the target devices is multiple, monitoring the remaining power of the forwarding devices with forwarding authority among the target devices, wherein the forwarding device is the target device with the largest remaining power among the multiple target devices; when the remaining power of the forwarding device meets the replacement condition, the target device with the highest remaining power is used as the updated forwarding device.

[0014] Optionally, when there are multiple target devices, monitoring the remaining power of the forwarding device with forwarding authority among the target devices includes: determining the current power consumption of the forwarding device relative to the initial power consumption, wherein the initial power consumption is the remaining power when it starts to function as a forwarding device; when the power consumption reaches a preset difference, determining that the remaining power of the forwarding device meets a replacement condition; or determining the current remaining power of the forwarding device; and when the current remaining power of the forwarding device is lower than that of the wireless device with the highest remaining power among the target devices, determining that the remaining power of the forwarding device meets the replacement condition.

[0015] Optionally, controlling the non-target device to transmit the collected data to the target device, and forwarding the data to the communication base station through the target device includes: determining whether the cache amount of the data of the non-target device reaches a preset threshold; when the cache amount of the data of the wireless device reaches a preset threshold, packaging the cached data and transmitting it to the target device, and sending the data to the communication base station through the target device.

[0016] Optionally, adjusting the installation position of each wireless device according to the remaining power of the plurality of wireless devices and the communication quality at different positions includes: determining, according to the communication quality at different positions, a wireless device to be replaced whose remaining power does not match the installation position; determining a replacement position that matches the wireless device to be replaced according to the ranking of the remaining power of the plurality of wireless devices and the ranking of the communication quality; and prompting, according to the wireless device to be replaced and the replacement position, to replace the wireless device to be replaced to the replacement position so that all the wireless devices are installed at matching positions.

[0017] According to another aspect of an embodiment of the present invention, a data transmission device for a wireless device is also provided, including: a first determination module, used to determine the remaining power of multiple wireless devices installed at multiple different locations; an adjustment module, used to adjust the installation position of each wireless device according to the remaining power of the multiple wireless devices and the communication quality at different locations; a second determination module, used to determine a wireless device at a location where the communication quality exceeds a preset threshold as a target device, and determine a wireless device at a location where the communication quality does not exceed the preset threshold as a non-target device; and a control module, used to control the non-target device to transmit the collected data to the target device, and forward the data to a communication base station through the target device.

[0018] According to another aspect of an embodiment of the present invention, a processor is further provided, wherein the processor is used to run a program, wherein the program executes any one of the above-mentioned data transmission methods for wireless devices when running.

[0019] According to another aspect of an embodiment of the present invention, a computer storage medium is further provided, wherein the computer storage medium includes a stored program, wherein when the program is running, the device where the computer storage medium is located is controlled to execute any one of the above-mentioned data transmission methods for wireless devices.

[0020] In the embodiment of the present invention, the remaining power of multiple wireless devices installed at multiple different positions is determined; the installation position of each wireless device is adjusted according to the remaining power of the multiple wireless devices and the communication quality at different positions; the wireless device at the position where the communication quality exceeds the preset threshold is determined as the target device, and the wireless device at the position where the communication quality does not exceed the preset threshold is determined as the non-target device; the non-target device is controlled to transmit the collected data to the target device, and the target device forwards the data to the communication base station, so that the wireless device with high communication quality and high remaining power is installed at the position with good signal. As the target device, it not only undertakes the data transmission between its own device and the communication base station, but also serves as a transfer device for the data transmission between the non-target device at other positions with poor signals and the communication base station, so as to achieve the purpose of improving the communication quality of all wireless devices in the whole system by adjusting the position of the wireless device and using the adjusted target device, thereby achieving the technical effect of reducing the loss of communication resources and improving the utilization rate of communication resources, thereby solving the technical problem of large communication loss caused by poor signal quality or low utilization rate of wireless devices in the related art. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0022] Figure 1 is a schematic diagram of the installation structure of a wireless monitoring device according to the prior art;

[0023] Figure 2 is a flow chart of a data transmission method of a wireless device according to an embodiment of the present invention;

[0024] Figure 3 is a flow chart of wireless monitoring device adjustment according to an embodiment of the present invention;

[0025] Figure 4 is a flow chart of data transmission of a wireless monitoring device according to an embodiment of the present invention;

[0026] Figure 5 It is a schematic diagram of a data transmission device of a wireless device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] According to an embodiment of the present invention, a method embodiment of a data transmission method for a wireless device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0030] Figure 2 is a flow chart of a data transmission method of a wireless device according to an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:

[0031] Step S202, determining the remaining power of a plurality of wireless devices installed at a plurality of different locations;

[0032] Step S204, adjusting the installation position of each wireless device according to the remaining power of the multiple wireless devices and the communication quality at different locations;

[0033] Step S206, determining a wireless device at a location where the communication quality exceeds a preset threshold as a target device, and determining a wireless device at a location where the communication quality does not exceed the preset threshold as a non-target device;

[0034] Step S208, controlling the non-target device to transmit the collected data to the target device, and forwarding the data to the communication base station through the target device.

[0035] Through the above steps, the remaining power of multiple wireless devices installed at multiple different positions is determined; according to the remaining power of the multiple wireless devices and the communication quality at different positions, the installation position of each wireless device is adjusted; the wireless device at the position where the communication quality exceeds the preset threshold is determined as the target device, and the wireless device at the position where the communication quality does not exceed the preset threshold is determined as the non-target device; the non-target device is controlled to transmit the collected data to the target device, and the target device forwards the data to the communication base station, so that the wireless device with high communication quality and high remaining power is installed at the position with good signal. As the target device, it not only undertakes the data transmission between its own device and the communication base station, but also serves as a transfer device for the data transmission between the non-target device at other positions with poor signals and the communication base station, so as to achieve the purpose of improving the communication quality of all wireless devices in the whole system by adjusting the position of the wireless device and using the adjusted target device, thereby achieving the technical effect of reducing the loss of communication resources and improving the utilization rate of communication resources, thereby solving the technical problem of large communication loss caused by poor signal quality or low utilization rate of wireless devices in the related technology.

[0036] The above-mentioned wireless device can be a wireless monitoring device, which collects monitoring video in real time and transmits it to the communication base station by wireless transmission, which is then transmitted to the network by the communication base station and viewed by the remote terminal through the network. However, due to the instability of the communication signal between the wireless device and the base station, the data transmission efficiency between some wireless devices and the communication base station is low, resulting in long-term signal transmission with a large transmission power, resulting in high power consumption. Or some wireless devices have good communication signals and high data transmission efficiency, but their data volume is small and the usage time is insufficient, resulting in waste of power consumption.

[0037] In this embodiment, the power consumption capacity of the wireless device can be determined based on the remaining power of multiple wireless devices installed at multiple different locations. In short, the greater the remaining power, the longer the duration of data transmission at a higher transmission power. According to the communication quality of the wireless devices at each location, the wireless device with a larger remaining power is adjusted to a location with a good communication quality. The target device with a larger remaining power can transmit data of its own device and other devices with better communication quality, while other non-target devices can communicate in a communication mode with lower power consumption between wireless devices, thereby saving the power consumption of other non-target devices with less remaining power, and ensuring high-quality communication between all wireless devices and the communication base station.

[0038] The target device is a wireless device at a location where the communication quality exceeds a preset threshold, and the non-target device is a wireless device at a location where the communication quality does not exceed the preset threshold and is determined as a non-target device. The target device may be one or more, and the specific number can be determined based on the average transmission rate of the total data transmission of all wireless devices. For example, the data transmission rate of multiple target devices and the communication base station is a, and the average transmission rate of the total data transmission of all wireless devices is b, and b is greater than a, then one target device cannot meet the transmission requirements of all wireless devices, and at least two target devices need to be set to forward the data of all wireless devices to the communication base station.

[0039] It should be noted that if the communication quality of the target device exceeds the preset threshold, it can be proved that the target device has the ability to continuously transmit data to the communication device at a high power. However, there may be multiple devices with this transmission capability, and the forwarding device that needs to forward data may actually be only a part of the multiple target devices with the above capability. Therefore, the target device with sufficient power can be preferentially selected as the forwarding device to forward the data of other non-target devices to the communication base station.

[0040] Theoretically, the forwarding device can also forward data from other target devices. However, the communication quality of other target devices is good and the remaining power is sufficient to fully meet their own data transmission requirements. Therefore, the forwarding device only forwards data from non-target devices, which not only reduces the burden and power consumption of the forwarding device, but also ensures effective data transmission between all wireless devices and communication base stations.

[0041] The target device with the highest remaining power among multiple target devices is determined as a forwarding device. During implementation, the target device can be granted forwarding authority to forward data from other non-target devices. While the forwarding device continues to work and consumes power rapidly, the remaining power of the forwarding device is detected. When its remaining power is lower than that of other target devices with the above capabilities, the forwarding authority can be granted to other target devices with the highest remaining power. This avoids long-term rapid consumption of a forwarding device, causing its wireless device to quickly stop working and affecting the operation of the entire wireless device system.

[0042] Optionally, before adjusting the installation position of each wireless device according to the remaining power of multiple wireless devices and the communication quality at different locations, it also includes: collecting communication signals of each wireless device, determining communication parameters corresponding to the communication signals, wherein the communication parameters include at least: signal-to-noise ratio and percentage of available resources; determining the communication quality of the location of each wireless device according to the communication mode and communication parameters of each wireless device.

[0043] Before adjusting the installation positions of each wireless device according to the remaining power of the wireless device and the communication quality at different locations, it is necessary to determine the communication quality at each location. Specifically, the communication signals of each wireless device are collected to determine the communication parameters corresponding to the communication signals, wherein the communication parameters at least include: signal-to-noise ratio and percentage of available resources; the communication quality of each wireless device at its location is determined according to the communication mode and communication parameters of each wireless device. Since the above-mentioned multiple wireless devices usually use the same model of wireless devices from the same batch, their performance is similar, and the communication quality of the wireless device at this location can represent the communication quality at this location. Therefore, the communication quality of the location is determined based on the communication quality of the wireless devices at each location before adjustment.

[0044] Specifically, according to the communication mode and communication parameters of each wireless device, determining the communication quality of each wireless device at its location includes: calculating the communication quality by the following formula; Q=a*b, where Q is the communication quality, a is the quality coefficient of the communication mode of the wireless device at the location, b is the communication parameter of the wireless device at the location, b=x*r, x is the signal-to-noise ratio of the communication signal of the wireless device at the location, and x is the percentage of available resources for the communication signal of the wireless device at the location.

[0045] In the case where the wireless device is a wireless monitoring device, the working modes of the wireless monitoring device may include 5G-SA working mode, 5G-NSA working mode, 4G-FDD working mode, 4G-TDD working mode, 3G working mode, 2G working mode, and a non-working mode of NO SERVICE. The corresponding quality coefficients a are 0.95, 0.9, 0.7, 0.62, 0.4, 0.3, and 0, respectively.

[0046] The above communication parameters are used to reflect the communication quality, and may also include parameters such as data transmission efficiency, transmission frame loss degree, etc. In this embodiment, the communication quality may be determined based on the signal-to-noise ratio and the percentage of available resources. That is, Q = a*x*r.

[0047] Optionally, after controlling the non-target device to transmit the collected data to the target device and forwarding the data to the communication base station through the target device, it also includes: determining the number of target devices; in the case where there are multiple target devices, monitoring the remaining power of the forwarding devices with forwarding authority among the target devices, wherein the forwarding device is the target device with the largest remaining power among the multiple target devices; in the case where the remaining power of the forwarding device meets the replacement conditions, the target device with the highest remaining power is used as the updated forwarding device.

[0048] If the communication quality of the target device exceeds the preset threshold, it means that the target device has the ability to forward data. Among the multiple wireless devices, there may be multiple target devices with data forwarding capabilities. As described above, the target device with the largest remaining power among the multiple target devices is selected as the forwarding device. It should be noted that the number of the forwarding devices can be one or more target devices with the largest remaining power.

[0049] The remaining power of the forwarding device is monitored in real time. When the remaining power meets the replacement conditions, the target device with the highest remaining power is used as the updated forwarding device to avoid the forwarding device from working at high power consumption for a long time, causing the forwarding device to fail to work.

[0050] Optionally, in the case where there are multiple target devices, monitoring the remaining power of the forwarding device with forwarding authority among the target devices includes: determining the current power consumption of the forwarding device relative to the initial power consumption, wherein the initial power consumption is the remaining power when it starts to function as a forwarding device; when the power consumption reaches a preset difference, determining that the remaining power of the forwarding device meets the replacement condition; or, determining the current remaining power of the forwarding device; and when the current remaining power of the forwarding device is lower than that of the wireless device with the highest remaining power among the target devices, determining that the remaining power of the forwarding device meets the replacement condition.

[0051] For example, the remaining powers of two target devices with the highest remaining power among multiple target devices are 10000 mAh and 8000 mAh respectively, and the number of forwarding devices is one, then the target device with the remaining power of 10000 mAh is set as the forwarding device.

[0052] Assuming that the power consumption is 3000mAh and meets the replacement conditions, when the remaining power of the forwarding device is monitored to be 6500mAh, its power consumption is 10000-6500=3500mAh, which is greater than 3000mAh. Then the replacement conditions are met, and the forwarding authority of the forwarding device is transferred to the above-mentioned 8000mAh target device, and the target device is used as the new forwarding device.

[0053] Alternatively, if it is monitored that the current remaining power of the forwarding device is 7800mAh, which is less than the highest remaining power of 8000mAh among other target devices, it can be determined that the forwarding device meets the replacement conditions, and the forwarding authority of the forwarding device is transferred to the above-mentioned 8000mAh target device, and the target device is used as the new forwarding device.

[0054] Optionally, controlling the non-target device to transmit the collected data to the target device, and forwarding the data to the communication base station through the target device includes: determining whether the cache amount of the data of the non-target device reaches a preset threshold; when the cache amount of the data of the wireless device reaches the preset threshold, packaging the cached data and transmitting it to the target device, and sending the data to the communication base station through the target device.

[0055] The communication mode between the non-target device and the target device can be D2D communication. In order to ensure the communication quality and reduce power consumption, the data collected by the non-target device can be cached locally first. When the amount of cached data reaches a preset threshold, it is transmitted to the target device at one time, and forwarded to the communication base station by the target device. Such transmission can not only ensure the reduction of power consumption of the non-target device, and the non-target device does not need to send data continuously, but also because the target device needs to forward the data of multiple non-target devices, the non-target device transmits at intervals, which also avoids interference with the data transmission of other non-target devices and reduces the probability of data transmission errors.

[0056] Optionally, adjusting the installation position of each wireless device according to the remaining power of multiple wireless devices and the communication quality at different locations includes: determining the wireless devices to be replaced whose remaining power does not match the installation position according to the communication quality at different locations; determining the replacement position that matches the wireless devices to be replaced according to the ranking of the remaining power of the multiple wireless devices and the ranking of the communication quality; and prompting to replace the wireless devices to be replaced to the replacement position according to the wireless devices to be replaced and the replacement position, so that all the wireless devices are installed in matching positions.

[0057] When adjusting the position, the communication qualities of multiple positions can be sorted according to the quality of communication, with the best in front and the worst in the back, and the remaining power of multiple wireless devices can be sorted according to the remaining power, with the largest in front and the smallest in the back. In this way, the position and the wireless device can be matched, and the wireless device can be determined to be incompatible with the matching position, and the device can be installed in the matching position.

[0058] Specifically, when it is determined that the wireless device does not match the location, the prompt light of the wireless device is controlled to flash. At the same time, the indicator light of the wireless device currently installed at the location where the wireless device matches is controlled to flash, thereby prompting the operator to replace the two, so as to install the above wireless device at the matching location, and the wireless device installed at the matching location is controlled to issue another prompt to install at the matching location, such as controlling the green light to be always on, and the operation is cyclically performed until the green lights of all wireless devices are always on, that is, all wireless devices are installed at the matching locations.

[0059] It should be noted that the embodiment of the present application also provides an optional implementation, which is described in detail below.

[0060] This embodiment provides a method and system for reducing the power consumption and cost of 5G equipment, which is used to reduce the overall power consumption of the cellular module. The main design method is as follows:

[0061] A. Considering that the installation position of wireless monitoring equipment is fixed and cannot be adjusted in actual monitoring scenarios, first fix and power on N wireless monitoring equipment according to the actual situation of the construction area.

[0062] B. After the location is fixed, the wireless monitoring devices will calculate the network quality during the initialization phase and broadcast their respective network quality conditions and the current remaining battery power based on the D2D network.

[0063] C. The network quality calculation of wireless monitoring equipment is described in detail as follows:

[0064] The working mode, signal strength and currently available RB percentage of the cellular network at the location are counted. Each working mode of the cellular network defines a quality coefficient as shown in Table 1. Table 1 is a relationship table between the working mode and the quality coefficient:

[0065] Table 1 Relationship table of quality coefficients of working modes

[0066] Working Mode Quality coefficient 5G-SA 0.95 5G-NSA 0.9 4G-FDD 0.7 4G-TDD 0.62 3G 0.4 2G 0.3 NO SERVICE 0

[0067] The signal quality of a cellular network = the quality coefficient of the current working mode * the current signal-to-noise ratio SNR * the current available RB percentage.

[0068] Assume that wireless monitoring devices B and C work in 5G-SA mode, with a signal-to-noise ratio SNR of 0.85 and a RB percentage of 0.9.

[0069] Then the network quality of the cellular device is: 0.95*0.85*0.9=0.726 (very good).

[0070] D. Count the network quality and remaining battery capacity of the wireless monitoring device at the current location. For the sake of example, assume that the signal and battery capacity of the wireless monitoring device at the current location are as shown in Table 2. Table 2 is a table of network quality and remaining battery capacity of the wireless monitoring device at the location:

[0071] Table 2 Network quality and remaining battery capacity of wireless monitoring equipment at each location

[0072]

[0073]

[0074] From the above list, it can be clearly seen that the network quality at locations A, B, and C is better (the network quality is greater than a certain threshold), and similarly, the battery capacity of the devices at the current locations E, B, and D is the largest. According to the principle of installing the wireless monitoring device with the largest remaining capacity at the location with the best network quality, and the wireless monitoring device with the second largest remaining capacity at the location with the second best network quality, etc., the D2D network voice prompts the construction personnel to change the location of the wireless monitoring device.

[0075] E. After the wireless monitoring device location guidance is completed, that is, after all the locations with excellent network quality have been replaced with wireless monitoring devices with the largest battery capacity, the device indicator light will be solid green, indicating that it has started to work normally.

[0076] F. During the wireless monitoring device location guidance process, the devices at the locations with the best network quality are uniformly marked as network resource devices, which are used to send audio and video streams to themselves and other wireless monitoring devices. In this implementation, the devices at locations A, B, and C have the best signals, and these three devices are marked as network resource devices, that is, the above-mentioned target devices.

[0077] G. Non-network resource devices (the above non-target devices) will turn off the RF function of the cellular module and only turn on the D2D function to ensure the lowest power consumption. When the data of non-network resource devices such as D and E in the above figure is cached to a certain extent, it will be sent to the network resource device side through the D2D module, especially to help forward to the monitoring platform or communication base station.

[0078] H. In a certain period of time, only one network resource device has data forwarding authority. Only the forwarding device with data forwarding authority will register with the cellular network and forward data. The network resource device that does not obtain data forwarding authority will only work in D2D mode.

[0079] I. When the remaining battery capacity of the forwarding device with sending authority is less than that of the network resource device with the second largest battery capacity and the battery consumption exceeds a, the data sending authority is granted to the network resource device with the largest current capacity, and the cellular module of the forwarding device enters flight mode.

[0080] For example: Assume that the current power of the network resource device at location A is 300mAh, the network resource device at location C has the highest power of 10000mAh, and the second highest is location A with 8000mAh.

[0081] The device at position C has the permission to send data until the power reaches or falls below 8000mAh. At this time, the power consumption is 2000mAh>a, and the conditions for releasing the permission are met. The data sending permission is released to the device at position A, and so on.

[0082] The above method realizes balanced consumption of battery capacity of network resource pool equipment and maximizes battery utilization.

[0083] Figure 3 is a flowchart of adjusting the wireless monitoring device according to an embodiment of the present invention, and the method for adjusting the installation position in step D is as follows: Figure 3 As shown, first start the wireless monitoring device and initialize the cellular module, D2D module, and battery module. Count the network quality and remaining battery capacity at the current location and broadcast them through the D2D network. Determine whether the information of other wireless monitoring devices has been received. If not, sleep for 1 second and then make another judgment. If so, arrange the network quality and remaining battery capacity of all wireless monitoring devices from large to small.

[0084] During the process of moving the wireless monitoring device, the device monitors the network quality of the current location in real time. It can be assumed that the wireless monitoring devices at location A and location B are being swapped, and then it is determined whether the network quality at the location of the current wireless monitoring device A is better. If the network quality at the location of the current wireless monitoring device is better, it means that the network quality at location A is better. Then it is determined whether there are other wireless monitoring devices (including wireless monitoring device B) whose indicator lights are flashing. If so, it sleeps for 1 second and then determines again. If not, it controls the red indicator light of this wireless monitoring device A to flash, prompting the installer to prepare for the location change. Assuming that the network quality of this wireless monitoring device A is ranked M, a message is sent to the device ranked M in battery capacity, notifying the red indicator light of the wireless monitoring device to flash quickly, prompting the installer to replace the wireless monitoring device with two flashing indicators.

[0085] If the network quality of the current wireless monitoring device A is poor, that is, the network quality of location A is poor, then it is determined whether there is a D2D message notification from other wireless monitoring devices (including wireless monitoring device B) and the red indicator light flashes. If not, it sleeps for one second and determines again. If yes, the red indicator light of this wireless monitoring device flashes quickly.

[0086] After replacing the wireless monitoring device with two flashing red indicator lights, determine whether the network quality of the current wireless monitoring device is close to the network quality of position B (when not moved). If so, stop flashing the red light and turn it to a solid green light, and inform other wireless monitoring devices through D2D message broadcast. If not, sleep for one second and determine again.

[0087] Figure 4 is a flow chart of data transmission of a wireless monitoring device according to an embodiment of the present invention, such as Figure 4 As shown, after the positions of multiple devices are adjusted, the steps for data transmission are as follows:

[0088] Determine whether the current wireless monitoring device is a network resource device or a non-network resource device. If it is a network resource device, determine whether the battery capacity of this wireless monitoring device is the highest. If so, notify other network resource devices that the ID of this wireless monitoring device has data sending authority. If it has sending authority, determine whether data is currently being sent. If there is data to be sent, send the data, and count the current remaining power. Determine whether the difference between the current remaining power and the second largest battery capacity is less than the preset threshold -a. If it is less than, broadcast the message through the D2D channel, and transfer the data sending authority to the network resource device with the largest current capacity. And control the cellular module of this wireless monitoring device to turn off the radio frequency and enter a low power consumption state.

[0089] If the battery capacity of the wireless monitoring device is not the highest, determine whether it is granted data sending permission. If so, exit the flight mode and register the cellular network for network connection. If not, sleep for one second and determine again.

[0090] If the current wireless monitoring device is not a target device, the cellular module of the wireless monitoring device is controlled to turn off the radio frequency and enter a low power consumption state to determine whether there is currently cached data to be sent. If so, it is sent through the D2D channel to the forwarding device that currently has data sending authority.

[0091] This implementation method designs a wireless monitoring equipment installation guidance method, which increases the available power of network resource equipment. Through a comprehensive scheduling strategy between network resource equipment based on the remaining battery capacity, the power consumption of the 5G equipment cluster is reduced and the equipment working time is increased.

[0092] Figure 5 is a schematic diagram of a data transmission device of a wireless device according to an embodiment of the present invention. Figure 5 As shown, according to another aspect of an embodiment of the present invention, a data transmission device for a wireless device is provided, including: a first determination module 52, an adjustment module 54, a second determination module 56 and a control module 58. The device is described in detail below.

[0093] A first determination module 52 is used to determine the remaining power of multiple wireless devices installed at multiple different locations; an adjustment module 54 is connected to the above-mentioned first determination module 52, and is used to adjust the installation position of each wireless device according to the remaining power of the multiple wireless devices and the communication quality at different locations; a second determination module 56 is connected to the above-mentioned adjustment module 54, and is used to determine the wireless device at the location where the communication quality exceeds the preset threshold as the target device, and determine the wireless device at the location where the communication quality does not exceed the preset threshold as the non-target device; a control module 58 is connected to the above-mentioned second determination module 56, and is used to control the non-target device to transmit the collected data to the target device, and forward the data to the communication base station through the target device.

[0094] Through the above device, the first determination module 52 is used to determine the remaining power of multiple wireless devices installed at multiple different positions; the adjustment module 54 adjusts the installation position of each wireless device according to the remaining power of the multiple wireless devices and the communication quality at different positions; the second determination module 56 determines the wireless device at the position where the communication quality exceeds the preset threshold as the target device, and determines the wireless device at the position where the communication quality does not exceed the preset threshold as the non-target device; the control module 58 controls the non-target device to transmit the collected data to the target device, and the target device forwards the data to the communication base station, so that the wireless device with high communication quality and high remaining power is installed at the position with good signal. As the target device, it not only undertakes the data transmission between its own device and the communication base station, but also serves as a transfer device for the data transmission between the non-target device at other positions with poor signals and the communication base station, so as to achieve the purpose of improving the communication quality of all wireless devices in the whole system by adjusting the position of the wireless device and using the adjusted target device, thereby achieving the technical effect of reducing the loss of communication resources and improving the utilization rate of communication resources, thereby solving the technical problem of large communication loss caused by poor signal quality or low utilization rate of wireless devices in the related technology.

[0095] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein when the program is run, any one of the above-mentioned data transmission methods for wireless devices is executed.

[0096] According to another aspect of an embodiment of the present invention, a computer storage medium is provided, the computer storage medium includes a stored program, wherein when the program is running, the device where the computer storage medium is located is controlled to execute any one of the above-mentioned wireless device data transmission methods.

[0097] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0098] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0099] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0100] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0101] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0102] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0103] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A data transmission method for a wireless device, It is characterized in that include: Determine the remaining battery power of multiple wireless devices installed in multiple locations; adjusting the installation position of each wireless device according to the remaining power of the plurality of wireless devices and the communication quality at different positions; Determine a wireless device at a location where the communication quality exceeds a preset threshold as a target device, and determine a wireless device at a location where the communication quality does not exceed the preset threshold as a non-target device; Controlling the non-target device to transmit the collected data to the target device, and forwarding the data to a communication base station through the target device; According to the remaining power of the plurality of wireless devices and the communication quality at different positions, adjusting the installation position of each wireless device comprises: determining, according to the communication quality at different positions, a wireless device to be replaced whose remaining power does not match the installation position; According to the ranking of the remaining power of multiple wireless devices and the ranking of the communication quality, the replacement position matching the wireless device to be replaced is determined; according to the wireless device to be replaced and the replacement position, a prompt is given to replace the wireless device to be replaced to the replacement position so that all wireless devices are installed in matching positions.

2. The method according to claim 1, It is characterized in that Before adjusting the installation position of each wireless device according to the remaining power of the plurality of wireless devices and the communication quality at different positions, the method further includes: Collecting communication signals of each wireless device and determining communication parameters corresponding to the communication signals, wherein the communication parameters at least include: a signal-to-noise ratio and a percentage of available resources; The communication quality of each wireless device at the location is determined according to the communication mode of each wireless device and the communication parameters.

3. The method according to claim 2, It is characterized in that Determining the communication quality of each wireless device at a location according to the communication mode of each wireless device and the communication parameter includes: The communication quality is calculated by the following formula: Q=a*b In the formula, Q is the communication quality, a is the quality coefficient of the communication mode of the wireless device at the location, b is the communication parameter of the wireless device at the location, b=x*r, x is the signal-to-noise ratio of the communication signal of the wireless device at the location, and x is the percentage of available resources for the communication signal of the wireless device at the location.

4. The method according to claim 1, It is characterized in that After controlling the non-target device to transmit the collected data to the target device, and forwarding the data to the communication base station through the target device, the method further includes: determining the number of the target devices; In the case that there are multiple target devices, monitoring the remaining power of a forwarding device with forwarding authority among the target devices, wherein the forwarding device is the target device with the largest remaining power among the multiple target devices; When the remaining power of the forwarding device meets the replacement condition, the target device with the highest remaining power is used as the updated forwarding device.

5. The method according to claim 4, It is characterized in that In the case that there are multiple target devices, monitoring the remaining power of a forwarding device with forwarding authority among the target devices includes: Determine the current power consumption of the forwarding device relative to the initial power consumption, wherein the initial power consumption is the remaining power consumption when the forwarding device starts to function as a forwarding device; When the power consumption reaches a preset difference, determining that the remaining power of the forwarding device meets a replacement condition; or, Determining the current remaining power of the forwarding device; When the current remaining power of the forwarding device is lower than that of the wireless device with the highest remaining power among the target devices, it is determined that the remaining power of the forwarding device meets the replacement condition.

6. The method according to claim 1, It is characterized in that Controlling the non-target device to transmit the collected data to the target device, and forwarding the data to the communication base station through the target device includes: Determine whether the cache amount of data of the non-target device reaches a preset threshold; When the amount of data cached in the wireless device reaches a preset threshold, the cached data is packaged and transmitted to the target device, and the data is sent to a communication base station through the target device.

7. A data transmission device for a wireless device, It is characterized in that include: A first determination module is used to determine the remaining power of a plurality of wireless devices installed at a plurality of different locations; An adjustment module, configured to adjust the installation position of each wireless device according to the remaining power of the plurality of wireless devices and the communication quality at different positions; A second determination module is used to determine a wireless device at a location where the communication quality exceeds a preset threshold as a target device, and determine a wireless device at a location where the communication quality does not exceed the preset threshold as a non-target device; A control module, used to control the non-target device to transmit the collected data to the target device, and forward the data to a communication base station through the target device; The adjustment module adjusts the installation position of each wireless device according to the remaining power of the plurality of wireless devices and the communication quality at different positions in the following manner: determining the wireless device to be replaced whose remaining power does not match the installation position according to the communication quality at different positions; determining the replacement position matching the wireless device to be replaced according to the ranking of the remaining power and the communication quality of the plurality of wireless devices; and prompting the wireless device to be replaced to be replaced to the replacement position according to the wireless device to be replaced and the replacement position, so that all the wireless devices are installed at the matching positions.

8. A computer storage medium, It is characterized in that The computer storage medium includes a stored program, wherein when the program is executed, the device where the computer storage medium is located is controlled to execute the data transmission method for a wireless device according to any one of claims 1 to 6.

9. A processor, It is characterized in that The processor is used to run a program, wherein the program, when running, executes the data transmission method of the wireless device according to any one of claims 1 to 6.