A multi-device data transmission method and system based on low power consumption wide area network
By classifying channels in low-power wide area networks and using the empty data reporting mechanism, the busy and idle problems of terminal equipment data reporting are solved, the data transmission quality is improved and data loss is avoided.
Patent Information
- Application Number
- CN202411204057.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2044-08-30
AI Technical Summary
In low-power wide area networks, data reporting of terminal devices is prone to busy and idle times, resulting in data loss of some terminal devices, especially in scenarios such as smart buildings and smart grids, where data loss has a great impact.
By classifying the channel into a first type channel and a second type channel, the terminal device reports empty data through the second type channel after the reporting failure, including its own address information. After receiving empty data, the service equipment issues a short-term reporting gap. The terminal equipment adjusts the reporting time according to the short-term reporting gap to avoid data loss.
The quality of data transmission in low-power wide area networks is improved, the timeliness and transmission quality of service data is ensured, data loss is avoided, and communication windows are optimized.
Smart Images

Figure CN119012267B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data transmission, and in particular to a multi-device data transmission method and system based on a low power consumption wide area network. Background Art
[0002] Low-Power Wide-Area Network (LPWAN) is widely used in IoT scenarios due to its long-distance transmission and low power consumption. The specific implementation of LPWAN includes EC-GSM, LTECat-m, NB-IoT, etc. operating in the licensed frequency band; and LoRa, SigFox, etc. operating in the unlicensed frequency band.
[0003] In existing application scenarios, the gateway of the low-power wide area network can support the forwarding and processing of reported data from a large number of terminal devices under ideal conditions. However, in actual operation, the amount of data reported by the terminal each time is not fixed, which makes the duration of the reporting window not fixed, and the reporting time of multiple devices is difficult to be evenly distributed, so there will be busy and idle times for the gateway receiving data. Even for multi-channel gateways, it is possible that the data of some terminal devices will be lost during busy times due to the continuous occupation of the channel. For scenarios such as smart buildings and smart power grids, the number of terminal devices is large, the total amount of data sent is large, and there are certain requirements for the quality and timeliness of the received data, so the impact of data loss is relatively large. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a multi-device data transmission method and system based on a low power wide area network, so as to improve the data transmission quality in the low power wide area network.
[0005] In order to solve the above technical problems, a technical solution adopted by the present invention is:
[0006] A multi-device data transmission method based on a low power wide area network comprises the following steps:
[0007] The terminal device traverses the first type of channels from the preset channel list to report the service data. If the report fails, the traversal continues. If the report succeeds, the traversal stops.
[0008] If all the first-type channels fail to report, the terminal device reports empty data through the second-type channel, and the empty data includes the first address information of the terminal device;
[0009] After receiving the empty data, the service device sends a short reporting interval according to the first address information;
[0010] The terminal device receives the short reporting gap and reports through the first type channel according to the short reporting gap.
[0011] In order to solve the above technical problems, another technical solution adopted by the present invention is:
[0012] A multi-device data transmission system based on a low power wide area network includes a terminal device and a service device; the terminal device includes a first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor; the service device includes a second memory, a second processor, and a second computer program stored in the second memory and executable on the second processor;
[0013] When the first processor executes the first computer program, the following is achieved:
[0014] From the preset channel list, traverse the first type of channels to report service data. If the report fails, continue traversing. If the report succeeds, stop traversing.
[0015] If all the first-type channels fail to report, the terminal device reports empty data through the second-type channel, and the empty data includes the first address information of the terminal device;
[0016] receiving the short reporting gap, and reporting through the first type channel according to the short reporting gap;
[0017] When the second processor executes the second computer program, the following is achieved:
[0018] After receiving the empty data, a short reporting interval is issued according to the first address information.
[0019] The beneficial effects of the present invention are as follows: reporting channels are classified into first-type channels and second-type channels, and terminal devices perform normal reporting through the first-type channels. If the reporting fails, instead of directly sleeping and waiting for the next reporting as in the prior art, data including its own first address information is reported through the second-type channel. Since empty data does not include business data, the amount of data sent is small and the receiving window occupied by the service device is small. Therefore, within the same length of time, the service device can process more empty data than business data. For terminal devices that fail to report normally, the service device goes down after receiving the empty data. A short reporting gap is sent, and the terminal device continues to report through the first type of channel according to the short reporting gap. That is, for the terminal device that fails to send, the reporting gap is adjusted to avoid the loss of the business data that should be reported in this reporting gap, and at the same time avoid the problem of increasing the amount of reported data when the business data is reported in the next reporting gap, affecting the quality of the business data and further extending the communication window with the service device; because the short reporting gap is much shorter than the normal reporting gap, the terminal device that fails to report can complete the reporting attempt within the two reporting intervals of the terminal device that successfully reports, thereby ensuring the timeliness and transmission quality of the business data. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A flowchart of a multi-device data transmission method based on a low power wide area network according to an embodiment of the present invention;
[0021] Figure 2 A schematic diagram of the structure of a multi-device data transmission system based on a low power wide area network according to an embodiment of the present invention;
[0022] Description of labels:
[0023] 1. Terminal device; 11. First processor; 12. First memory; 2. Service device; 21. Second processor; 22. Second memory; 3. A multi-device data transmission system based on low power wide area network. DETAILED DESCRIPTION
[0024] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.
[0025] Please refer to Figure 1 , a multi-device data transmission method based on low power wide area network, comprising the steps of:
[0026] The terminal device traverses the first type of channels from the preset channel list to report the service data. If the report fails, the traversal continues. If the report succeeds, the traversal stops.
[0027] If all the first-type channels fail to report, the terminal device reports empty data through the second-type channel, and the empty data includes the first address information of the terminal device;
[0028] After receiving the empty data, the service device sends a short reporting interval according to the first address information;
[0029] The terminal device receives the short reporting gap and reports through the first type channel according to the short reporting gap.
[0030] From the above description, it can be seen that the beneficial effects of the present invention are: the reporting channels are classified into the first type of channels and the second type of channels, and the terminal device reports normally through the first type of channels. If the reporting fails, it does not directly sleep and wait for the next report as in the prior art, but reports the data including its own first address information through the second type of channel. Because the empty data does not include business data, the amount of data sent is small and the receiving window occupied by the service device is small. Therefore, within the same length of time, the service device can process more empty data than the business data. For the terminal device that fails to report normally, the service device receives the empty data. According to the short reporting interval sent later, the terminal device continues to report through the first type of channel according to the short reporting interval, that is, for the terminal device that fails to send, the reporting interval is adjusted to avoid the loss of the business data that should be reported in this reporting interval, and at the same time avoid the problem of increasing the amount of reported data when the business data is reported in the next reporting interval, affecting the quality of business data and further extending the communication window with the service device; because the short reporting interval is much shorter than the normal reporting interval, the terminal device that fails to report can complete the reporting attempt within the two reporting intervals of the terminal device that successfully reports, thereby ensuring the timeliness and transmission quality of the business data.
[0031] Furthermore, the service data includes first address information and service information of the terminal device;
[0032] Also includes:
[0033] After receiving the service data, the service device searches whether corresponding empty data is stored according to the first address information;
[0034] If so, a normal reporting interval is issued according to the first address information and the stored empty data is deleted.
[0035] From the above description, it can be seen that if the service data is successfully received, the first address information is used to check whether the corresponding empty data is stored. If so, it means that a short reporting gap has been sent to the terminal device. At this time, a normal reporting gap is sent according to the first address information to allow the terminal device to restore the normal reporting gap. After ensuring that the service data has been successfully reported, the reporting gap of the terminal device is restored to further reduce the energy consumption in the terminal device and avoid the terminal device occupying the channel. The empty data is deleted, indicating that the corresponding terminal device has restored the normal reporting gap. If the service data is received normally in the future, the normal reporting gap will no longer be sent, further shortening the communication window length with the terminal device to avoid occupation.
[0036] Furthermore, it also includes:
[0037] After receiving the service data, the service device sends a peace frame according to the first address information.
[0038] From the above description, it can be seen that for the terminal devices that have reported successfully, the service device sends a calm frame. The calm frame allows the terminal device to stop reporting within a preset time period, thereby reserving the resources required for reporting for the terminal devices that have not reported successfully. The service device can give priority to processing the terminal devices that have not reported successfully.
[0039] Furthermore, it also includes:
[0040] The terminal device receives and stores the configured first address information, where the first address information is obtained according to the priority of the terminal device;
[0041] After receiving the empty data, the service device sends a short reporting interval according to the first address information, including:
[0042] The service device parses the first address information in the empty data to obtain the priority of the terminal device;
[0043] The service device matches the short reporting interval according to the priority, and issues the short reporting interval according to the first address information.
[0044] From the above description, it can be seen that different types of equipment have different degrees of priority. For example, infrastructure water and electricity failures have a higher priority. When setting the first address information of the terminal device, the priority information is incorporated. The service device can then obtain the priority information during parsing and issue different short-term reporting intervals based on the priority, thereby implementing subsequent processing of reporting failures based on priority.
[0045] Furthermore, the higher the priority is, the shorter the short reporting interval is.
[0046] From the above description, it can be seen that a shorter short-term reporting interval is configured for a terminal device with a high priority to increase the probability of it encountering an idle reporting channel, thereby increasing the probability of its successful reporting; a longer short-term reporting interval is configured for a device with a low priority to allow a terminal device with a high priority to report first.
[0047] Further, the terminal device traverses the first type of channels from the preset channel list to report the service data, including:
[0048] If the terminal device receives the reply information from the service device within the first preset time period, the report is successful; otherwise, the report fails.
[0049] From the above description, it can be seen that the reply information is set in the communication protocol between the terminal device and the service device. When the terminal device receives the reply information, it means that the report is successful. The terminal device can further sleep and wait for the next report, so that the result of each report can be confirmed.
[0050] Furthermore, after receiving the empty data, the service device also sends the second address information of the service device;
[0051] The reporting according to the short reporting interval includes:
[0052] The terminal reports to the service device corresponding to the second address information according to the short reporting interval.
[0053] From the above description, it can be seen that when the terminal reports according to the short reporting interval, it reports to the service device corresponding to the second address information, so as to avoid the situation where the empty data corresponding to the terminal device is not stored in other service devices, resulting in the terminal device being unable to restore the normal reporting interval and wasting the terminal device energy.
[0054] Furthermore, it also includes:
[0055] The empty data lists are synchronized between the plurality of service devices.
[0056] It can be seen from the above description that by synchronizing the empty data lists between the service devices, the terminal device can normally receive the normal reporting gaps without selecting a single service device when reporting.
[0057] Furthermore, the empty data also includes a reporting failure flag;
[0058] If all the first-type channels fail to report, the terminal device reports empty data through the second-type channel, including:
[0059] If all the second-type channels fail to report, the reporting failure flag is increased by 1;
[0060] After receiving the empty data, the service device sends a short reporting interval according to the first address information, including:
[0061] After receiving the empty data, the service device matches the short reporting gap according to the reporting failure flag bit and then issues the short reporting gap.
[0062] From the above description, it can be seen that a reporting failure flag is added to the reported data. If the second type of channel also fails to report successfully, the reporting failure flag is increased by 1. After the second type of channel is reported successfully, the corresponding short-time reporting interval is matched according to the reporting failure flag, so that the terminal device with more reporting failures can report with a shorter short-time reporting interval, and the terminal device with a long waiting time can report with higher priority.
[0063] A multi-device data transmission system based on a low-power wide area network includes a terminal device and a service device; the terminal device includes a first memory, a first processor, and a first computer program stored on the first memory and executable on the first processor; the service device includes a second memory, a second processor, and a second computer program stored on the second memory and executable on the second processor; when the first processor executes the first computer program, each step implemented by the terminal device in the above-mentioned multi-device data transmission method based on a low-power wide area network is implemented; when the second processor executes the second computer program, each step implemented by the service device in the above-mentioned multi-device data transmission method based on a low-power wide area network is implemented.
[0064] The above-mentioned multi-device data transmission method based on low-power wide area network of the present invention can be applied to the transmission of device data in a low-power wide area network, and is particularly suitable for data transmission of a large number of devices, such as scenarios where a large number of switches or sensors need to transmit data, which is explained below through a specific implementation method.
[0065] Please refer to Figure 1 , Embodiment 1 of the present invention is:
[0066] A multi-device data transmission method based on a low power wide area network comprises the following steps:
[0067] S1. The terminal device traverses the first type of channels from the preset channel list to report service data. If the report fails, the traversal continues. If the report succeeds, the traversal stops.
[0068] The service data includes the first address information of the terminal device and the service information; the first address information is the unique identifier of the terminal device, and the service device can send data to a specific terminal device through the first address information; the terminal device can be embedded in a mobile terminal, and in addition to being able to interact with the service device, it can also receive data sent by the mobile terminal; for example, it is embedded in a handheld unit (HHU) and the data is monitored and reported through the application program therein; the terminal device can also be set on components such as sensors or switches to report the content collected by them;
[0069] In an optional implementation, if the report is successful, the service device receives the service data, and then sends a calm frame according to the first address information; wherein the calm frame includes a sleep time period, and after the terminal device receives the calm frame, it sleeps according to the sleep time period, and the terminal device will no longer perform a normal reporting process during the sleep period until the sleep time ends, and will report again according to a preset reporting time slot, i.e., a reporting period. In this embodiment, the reporting period is a stored short reporting gap or a normal reporting gap; then the terminal device will sleep for a period of time and stop reporting after the report is successful, and in the scenario of multiple devices reporting, channel resources can be vacated for terminal devices that have not yet reported successfully;
[0070] In an optional implementation, when the terminal device reaches a preset reporting period and reports, a random number may be obtained by a random number generator configured in the terminal or by reading the current CPU temperature, and a time point is selected in the reporting period for reporting according to the random number. When multiple terminal devices report, the reporting time of other terminal devices is avoided as much as possible;
[0071] In an optional implementation, if the terminal device receives the reply information of the service device within the first preset time period, the report is successful; otherwise, the report fails; that is, the first preset time period can be configured in the terminal device to start from the time when the terminal device sends the service data, and after the service data is reported, the terminal device keeps the receiving window open for the first preset time period, and if the terminal device receives the reply information of the service device such as the calm frame within the time period, it means that the sending is successful;
[0072] S2. When the traversal of the first type of channels is completed, if all the first type of channels fail to report, the terminal device reports empty data through the second type of channel, and the empty data includes the first address information of the terminal device; wherein the first type of channel is a service data reporting channel, and the second type of channel is an empty data reporting channel; the channel division method has a detailed process in the prior art, which will not be repeated here; in order to further reduce interference in the data interaction process, the third type of channel can also be set as the data sending channel of the service device to realize the separation of the reporting channel and the sending channel;
[0073] It can be seen that the data content of the null data is less than the business data, and in the reporting process, except for the necessary format stipulated by the communication protocol and the first address information of the terminal device itself, most of the data is business information, and the business information is the largest part of the data in the process of reporting business data; and in the case of unchanged data transmission rate, the larger the data volume, the longer the required transmission time, that is, the larger the data volume, the longer the communication between the terminal device and the service device must be maintained; therefore, within the same length of time, the larger the data volume, the fewer the number of terminal devices that the service device can handle; on all first-type channels When the report fails, it means that the amount of data reported by the terminal device at this time is large, so it does not continue to try to occupy the first type of channel, but only reports empty data to the second type of channel to complete the registration of the reporting status. That is, after the service device receives the empty data uploaded in the second type of channel, it can know that the terminal device corresponding to the empty data has failed to report this time and the terminal devices reporting at this time are dense, which belongs to the busy time situation. If there is a demand, the service device can notify the corresponding management personnel to issue an alarm for busy channels; reserve a special second type of channel, avoid long-term occupation of the second type of channel by reducing the amount of reported data, and register the reporting status of more terminal devices;
[0074] In an optional implementation, before executing S1 and S2, when configuring the terminal device, the first type channel list and the second type channel list may be directly stored in the terminal device, so that the terminal device can select a channel according to the list in the process of reporting service data and null data;
[0075] In an optional implementation, the first type of channel and the second type of channel are distinguished only because of the different types of data currently being transmitted therein, and a certain channel is not configured to transmit only a certain type of data, that is, a reporting channel list is configured in the terminal device, and the terminal device first traverses the reporting channels in the reporting channel list, and if all reports fail, then empty data is uploaded for registration; this method can ensure the utilization rate of the channel, but there may be no idle channels for empty data registration during busy hours; if the channels are directly classified, the second type of channels may be idle when the first type of channels are all occupied, but it can maximize the guarantee that the terminal device that fails to upload service data can be registered, and the channel configuration method can be adjusted according to the actual use of the device channel;
[0076] S3. After receiving the empty data, the service device sends a short reporting interval according to the first address information;
[0077] In an optional implementation, the service device may be a gateway, a client or a server, or other device having a data processing function;
[0078] In an optional implementation, after receiving the service data, the service device searches whether corresponding empty data is stored according to the first address information; if so, a normal reporting interval is issued according to the first address information and the stored empty data is deleted; wherein the normal reporting interval is longer than the short reporting interval, for example, at least three times the length of the short reporting interval, then for the terminal device that has successfully reported, its sleep time is long, and more time can be freed up for reporting by the terminal device that has not successfully reported; further, the sleep time period in the calm frame can be set to be longer than the normal reporting interval, then when empty data appears, additional calm frames can be issued, the sleep time of the terminal device that has successfully reported the service data is extended, and channel resources are freed up for the terminal device that has not successfully sent the service data;
[0079] After the service data is successfully reported, if there is corresponding empty data in the service device, the service device deletes the stored empty data after sending the normal reporting interval. Then, according to the terminal device corresponding to the empty data stored in the service device, it can intuitively know which devices have not successfully reported data. When reporting the service data next time, there is no corresponding empty data, and there is no need to repeat the sending of the normal reporting interval, which reduces the amount of interactive data.
[0080] In an optional implementation manner, after receiving the empty data, the service device further sends the second address information of the service device;
[0081] In an optional implementation, the empty data lists are synchronized between the plurality of service devices;
[0082] It can be seen that when there are a large number of terminal devices, multiple service devices can be set to receive data. In this case, after receiving the empty data, the service device not only sends a short reporting interval, but also reports its own second address information. The terminal device can report according to the second address information to avoid the situation where the short reporting interval cannot be restored to a normal reporting interval after the terminal completes the reporting of the business data, thereby consuming energy; multiple service devices can also be networked to synchronize the empty data list; for example, service devices can be networked through mesh, wireless bridging, fiber connection (FTTR, Fiber to the Room), etc.; while taking advantage of the long transmission distance and low power consumption of low-power wide area networks, timeliness is considered in the communication between service devices, combining the advantages of different networking methods;
[0083] Other methods can also be used to report the period of the terminal equipment. For example, in the NB-IoT network, a special management system can be set up to configure the terminal equipment. The management system sends the configuration information to the operator base station, which is then sent to the corresponding terminal equipment through the NB-IoT network, thus avoiding the problem of the operator base station being closed.
[0084] S4, the terminal device receives the short reporting gap, and reports through the first type channel according to the short reporting gap;
[0085] In an optional implementation, the terminal reports to the service device corresponding to the second address information according to the short reporting gap; that is, if the service device does not synchronize the empty data list, after reporting according to the second address, the normal reporting gap can be restored by matching the empty data after the service data is successfully reported;
[0086] In an optional implementation, after the service device receives the service data or empty data sent by the terminal device, it calculates the corresponding RSSI value (a received signal strength indicator value) and compares it with the preset RSSI range. If it is within the preset RSSI range, the corresponding data is saved and a reply message is sent to the device terminal. If it is not within the preset RSSI range, the corresponding service data or empty data is discarded, and no reply message is sent, so that the terminal device can determine whether its own report is successful based on whether the reply message is received.
[0087] Embodiment 2 of the present invention is:
[0088] A multi-device data transmission method based on a low power wide area network, which is different from the first embodiment in that:
[0089] The terminal device receives and stores the configured first address information, and the first address information is obtained according to the priority of the terminal device; for example, the priority can be set according to the type of terminal device, such as a terminal device that monitors components on a circuit. According to the classification of the circuit, the higher the circuit classification, the more associated devices there are after a problem occurs, and the higher the priority; the first address information is the unique identifier of the terminal device in the low-power wide area network, and the terminal device can be found during the communication process. After the terminal device receives the information sent by the service device, if the first address information in the information sent by the service device does not match the first address of the terminal device itself, the terminal device will not respond to the corresponding information, thereby realizing one-to-one communication between the service device and the terminal device, which is convenient for management; after the priority of the device is configured, different short-time reporting intervals are directly set for different priorities, and the higher the priority, the shorter the short-time reporting interval; then in the reporting process, the terminal device with a high priority can attempt to report at a higher frequency, thereby increasing the probability of successful transmission of business data;
[0090] Or, the empty data also includes a reporting failure flag; the reporting failure flag is initialized to 0, and the number of bits occupied by the reporting failure flag may correspond to the configured second type channel. For example, if there is only one second type channel, only one bit in the empty data is required as the reporting failure flag, and other setting methods are similar;
[0091] In an optional implementation, one of the priority or the reporting failure flag of the terminal device can be configured as needed as a condition for determining the short reporting gap, or both can be configured as a condition for determining the short reporting gap;
[0092] If there is a reporting failure flag, S2 includes: if all the second-type channels fail to report, the reporting failure flag is increased by 1; because after the terminal device reports empty data, if the service device successfully receives it, a short reporting gap will be returned, so if the terminal device receives the short reporting gap, if the short reporting gap is successfully received, it means that the empty data is successfully reported through the second type channel; if the short reporting gap is not received, it means that the empty data is reported through the second type channel. Failure; the reporting window mode at this time can be kept consistent with the mode when reporting business data, that is, after completing the data reporting, keep the receiving window open for the first preset time period. If a reply message from the service device such as a short reporting gap is received within the time period, it means that the sending is successful;
[0093] If only the configured priority exists, S3 includes:
[0094] The service device parses the first address information in the empty data to obtain the priority of the terminal device;
[0095] The service device matches the short-time reporting gap according to the priority, and issues the short-time reporting gap according to the first address information; that is, matches the pre-configured short-time reporting gap corresponding to the priority according to the priority in the received first address information;
[0096] If only a reporting failure flag bit exists, S3 includes: after receiving the empty data, the service device matches the short reporting gap according to the reporting failure flag bit and then issues the short reporting gap;
[0097] In an optional implementation, matching the short reporting gap according to the reporting failure flag bit includes:
[0098] S31. The initial short-time reporting gap, the minimum short-time reporting gap and the deduction unit value can be configured; the total deduction value is determined according to the product of the number of reporting failures corresponding to the reporting failure flag and the deduction unit value, and the target short-time reporting gap is obtained by subtracting the total deduction value from the initial short-time reporting gap, and compared with the minimum short-time reporting gap; if the target short-time reporting gap is greater than the minimum short-time reporting gap, the target short-time reporting gap is issued; if the target short-time reporting gap is less than the minimum short-time reporting gap, the minimum short-time reporting gap is issued; in this way, the range of the short-time reporting gap is constrained under the premise of taking into account the influence of the number of reporting failures, and the short-time reporting gap will not be too short;
[0099] If both the priority and the report failure flag are configured, S3 includes:
[0100] After receiving the empty data, the service device matches the short-time reporting gap according to the priority, and uses the short-time reporting gap as the initial short-time reporting gap; obtains the pre-configured minimum short-time reporting gap and the deduction unit value; calculates the short-time reporting gap finally issued according to the initial short-time reporting gap, the minimum short-time reporting gap and the deduction unit value; the calculation process is consistent with the calculation process when only the reporting failure flag is included (S31), which will not be repeated here;
[0101] In an optional embodiment, after configuring the first type channel list and the second type channel list before steps S1 and S2, the number of allocated first type channels and second type channels can be adjusted according to the usage of the channels; for example, the second type channel list includes 3 channels, if the total usage time of the three channels is less than the preset time, at least one of the channels can be added to the first type channel list, so as to adjust the configuration of the first type channel or the second type channel according to the actual usage and make full use of the channel resources.
[0102] Please refer to Figure 2 , Embodiment 3 of the present invention is:
[0103] A multi-device data transmission system 3 based on a low power wide area network includes a terminal device 1 and a service device 2; the terminal device 1 includes a first memory 12, a first processor 11, and a first computer program stored in the first memory 12 and executable on the first processor 11; the service device 2 includes a second memory 22, a second processor 21, and a second computer program stored in the second memory 22 and executable on the second processor 21; the characteristics are:
[0104] When the first processor 11 executes the first computer program, each step implemented by the terminal device in the multi-device data transmission method based on a low power wide area network described in Embodiment 1 or Embodiment 2 is implemented;
[0105] When the second processor 21 executes the second computer program, each step implemented by the service device in the multi-device data transmission method based on a low power wide area network described in embodiment 1 or embodiment 2 is implemented.
[0106] In summary, the present invention provides a multi-device data transmission method and system based on a low-power wide area network; the reporting channel is divided into a first type channel and a second type channel, the first type channel normally transmits business data, if within a single reporting cycle of the terminal device, all reporting attempts of the first type channel fail, then the terminal device reports empty data through the second type channel, compared with business data, empty data does not upload business information that occupies the largest amount of data; for the service device, the data receiving window of the same length can register more empty data, so as to grasp the information of the terminal device that currently fails to report, and send a short reporting gap to the terminal device that has not successfully reported the business data, the terminal device adjusts its own reporting cycle configuration according to the short reporting gap, and tries to report through the first type channel at a shorter interval, so as to improve the probability of successful reporting in the two reports of the terminal device that successfully reports; and for the terminal device that successfully reports the business data, the service device The service device sends a calm frame, which is usually set longer than the reporting period. In this way, the sleep time of the terminal device that has successfully reported is extended, and more time is left for the terminal device that has failed to report in the current reporting period to try to report. As the number of terminal devices that have successfully reported increases, channel resources will also be more abundant. For terminal devices that have registered empty data, if the service data is successfully reported, the service device sends a normal reporting interval to allow the terminal device to resume the normal reporting period, saving energy in the terminal device, and the original normal reporting interval can be restored after a successful reporting attempt. Furthermore, a hierarchical mode of short reporting intervals is also set. Different short reporting intervals can be sent according to the priority of the terminal device or the number of reporting failures, so that terminal devices with high priority or terminal devices with more reporting times can try to report at shorter intervals, thereby increasing the probability of successful reporting. The short reporting interval can also be confirmed by combining the two, taking into account different dimensions.
[0107] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A multi-device data transmission method based on low power wide area network, characterized in that: Includes steps: The terminal device traverses the first type of channels from the preset channel list to report the service data. If the report fails, the traversal continues. If the report succeeds, the traversal stops. If all the first-type channels fail to report, the terminal device reports empty data through the second-type channel, and the empty data includes the first address information of the terminal device; After receiving the empty data, the service device sends a short reporting interval according to the first address information; The terminal device receives the short reporting gap and reports through the first type channel according to the short reporting gap.
2. The multi-device data transmission method based on low power wide area network according to claim 1, characterized in that: The service data includes the first address information and service information of the terminal device; Also includes: After receiving the service data, the service device searches whether corresponding empty data is stored according to the first address information; If so, a normal reporting interval is issued according to the first address information and the stored empty data is deleted.
3. The multi-device data transmission method based on low power wide area network according to claim 1, characterized in that: Also includes: After receiving the service data, the service device sends a peace frame according to the first address information.
4. The multi-device data transmission method based on low power wide area network according to claim 1, characterized in that: Also includes: The terminal device receives and stores the configured first address information, where the first address information is obtained according to the priority of the terminal device; After receiving the empty data, the service device sends a short reporting interval according to the first address information, including: The service device parses the first address information in the empty data to obtain the priority of the terminal device; The service device matches the short reporting interval according to the priority, and issues the short reporting interval according to the first address information.
5. The multi-device data transmission method based on low power wide area network according to claim 4, characterized in that: The higher the priority, the shorter the short reporting interval.
6. The multi-device data transmission method based on low power wide area network according to claim 1, characterized in that: The terminal device traverses the first type of channels from the preset channel list to report service data, including: If the terminal device receives the reply information from the service device within the first preset time period, the report is successful; otherwise, the report fails.
7. The multi-device data transmission method based on low power wide area network according to claim 1, characterized in that: After receiving the empty data, the service device further sends the second address information of the service device; The reporting according to the short reporting interval includes: The terminal reports to the service device corresponding to the second address information according to the short reporting interval.
8. The multi-device data transmission method based on low power wide area network according to claim 1, characterized in that: Also includes: The empty data lists are synchronized between the plurality of service devices.
9. The multi-device data transmission method based on low power wide area network according to claim 1, characterized in that: The empty data also includes a reporting failure flag; If all the first-type channels fail to report, the terminal device reports empty data through the second-type channel, including: If all the second-type channels fail to report, the reporting failure flag is increased by 1; After receiving the empty data, the service device sends a short reporting interval according to the first address information, including: After receiving the empty data, the service device matches the short reporting gap according to the reporting failure flag bit and then issues the short reporting gap.
10. A multi-device data transmission system based on a low power wide area network, comprising a terminal device and a service device; the terminal device comprises a first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor; the service device comprises a second memory, a second processor, and a second computer program stored in the second memory and executable on the second processor; characterized in that: When the first processor executes the first computer program, each step implemented by the terminal device in the multi-device data transmission method based on a low power wide area network described in any one of claims 1 to 9 is implemented; When the second processor executes the second computer program, it implements the various steps implemented by the service device in the multi-device data transmission method based on a low-power wide area network as described in any one of claims 1-9.
Citation Information
Patent Citations
Industrial gateway data supplemental reporting method and industrial gateway
CN109347942A
Meter design method and device based on NB-IOT (Narrow Band Internet of Things) and system design method
CN109347989A