Communication system and method for improving LoRa real-time performance

Through the collaborative work of LoRa central control equipment and relay equipment, multiple downlink channels are used to transmit messages in parallel, which solves the problem of poor real-time data transmission in the LoRa communication system and achieves more efficient data transmission and stability.

CN113613186BActive Publication Date: 2024-10-15CLOVER (SHAOXING) INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110765036.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-06
Publication Date
2024-10-15
Estimated Expiration
2041-07-06

AI Technical Summary

Technical Problem

The existing LoRa communication system delivers messages through the only downlink channel, resulting in poor real-time performance of data transmission and the inability to take into account both long-distance transmission and low power consumption.

Method used

Using LoRa central control device and multiple LoRa relay devices, by receiving uplink packet messages and forwarding them to the LoRa central control device, the central control device determines the target downlink channel according to the channel parameters, and the relay device transmits messages in parallel through multiple downlink channels, improving Real-time data transmission.

Benefits of technology

It improves the real-time nature of data transmission, reduces data packet loss rate, and enhances system stability and communication coverage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113613186B_ABST
    Figure CN113613186B_ABST
Patent Text Reader

Abstract

The present invention discloses a communication system and method for improving the real-time performance of LoRa. The present invention forwards an uplink packet message sent by a LoRa terminal to a LoRa central control device through a LoRa relay device. The central control device determines a message to be sent according to the uplink packet message, and sends the message to be sent to a first preset number of LoRa relay devices; the LoRa central control device determines a target downlink channel from a second preset number of downlink channels corresponding to the relay device according to the message to be sent; the LoRa relay device sends the message to be sent to each terminal through the target downlink channel. Since the present invention selects a target downlink channel from multiple downlink channels of multiple relay devices, and sends the message to be sent to each terminal through the target downlink channel, compared with the prior art that queues and sends messages through a unique downlink channel, resulting in poor real-time performance of data transmission, the present invention improves the real-time performance of the system for data transmission and reduces the data packet loss rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technologies, and in particular to a communication system and method for improving the real-time performance of LoRa. Background Art

[0002] At present, with the continuous development of Internet of Things technology and the increasing quality of life, people have more and more demands for intelligence. The application of various traditional communication transmission technologies in various Internet of Things industries gradually cannot meet people's needs. The existing traditional communication technologies such as WIFI, Bluetooth, Zigbee and traditional wide area network technologies such as 2G / 3G / 4G wireless technologies can realize network interconnection and intercommunication of various LoRa terminal devices, but they cannot take into account long-distance transmission and low-power transmission at the same time. The existing technology of communicating through LoRa mainly transmits data through independent channels, and the data sent to the LoRa terminal can only be sent through fixed channels, resulting in poor real-time data transmission.

[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of the present invention is to provide a communication system and method for improving the real-time performance of LoRa, aiming to solve the technical problem in the prior art of queuing and sending messages through a unique downlink channel, resulting in poor real-time performance of data transmission.

[0005] To achieve the above object, the present invention provides a communication system for improving the real-time performance of LoRa, wherein the communication system for improving the real-time performance of LoRa comprises: a LoRa central control device, a plurality of LoRa relay devices and a plurality of LoRa terminals;

[0006] The LoRa relay device is used to receive uplink packet messages sent by each LoRa terminal;

[0007] The LoRa relay device is also used to forward the uplink packet message to the LoRa central control device;

[0008] The LoRa central control device is used to determine the message to be sent according to the uplink packet message, and send the message to be sent to a first preset number of the LoRa relay devices;

[0009] The LoRa central control device is further used to determine a target downlink channel from a second preset number of downlink channels corresponding to the LoRa relay device according to the message to be sent;

[0010] The LoRa relay device is also used to send the message to be sent to each LoRa terminal through the target downlink channel.

[0011] Optionally, the LoRa central control device is also used to obtain current channel parameter information of each downlink channel;

[0012] The LoRa central control device is further used to set the sending time interval corresponding to the message to be sent according to the current channel parameter information;

[0013] The LoRa relay device is also used to send the message to be sent to each LoRa terminal according to the sending time interval.

[0014] Optionally, the LoRa central control device is further used to extract channel bandwidth information, spreading factor information and load length information from the current channel parameter information;

[0015] The LoRa central control device is further used to determine the air transmission time corresponding to the message to be sent according to the channel bandwidth information, the spreading factor information and the load length information;

[0016] The LoRa central control device is also used to determine the sending time interval corresponding to the message to be sent according to the air transmission time.

[0017] Optionally, it is also used to determine the forwarding priority corresponding to the message to be sent according to the event type corresponding to the message to be sent;

[0018] The LoRa central control device is further used to sort the messages to be sent according to the forwarding priority and obtain the sorting result;

[0019] The LoRa central control device is also used to send the message to be sent to each LoRa terminal through the target downlink channel according to the sorting result.

[0020] Optionally, the LoRa central control device is further used to determine the sending time interval corresponding to the message to be sent according to the sorting result and the air transmission time;

[0021] The LoRa central control device sends the message to be sent to each LoRa terminal through the target downlink channel according to the sending time interval.

[0022] Optionally, the LoRa central control device is further used to determine the number of target LoRa relay devices according to the number of LoRa terminals, distance information between each LoRa terminal and a preset distance;

[0023] The LoRa central control device is further used to determine the LoRa relay device group according to the number of LoRa terminals, the distance information and the number of LoRa terminals that can be carried by the preset relay device;

[0024] The LoRa central control device is further used to determine a target downlink channel from the downlink channels of the LoRa relay device group according to the message to be sent.

[0025] Optionally, the LoRa central control device is further used to determine a sending strategy corresponding to the message to be sent according to the inter-group parameters corresponding to the LoRa relay device group;

[0026] The LoRa relay device is also used to send the message to be sent to each LoRa terminal according to the sending strategy and the target downlink channel.

[0027] In addition, to achieve the above-mentioned object, the present invention also provides a communication method for improving the real-time performance of LoRa in a communication system for improving the real-time performance of LoRa, and the communication method for improving the real-time performance of LoRa includes:

[0028] The LoRa relay device receives an uplink packet message sent by each LoRa terminal;

[0029] The LoRa relay device forwards the uplink packet message to the LoRa central control device;

[0030] The LoRa central control device determines a message to be sent according to the uplink packet message, and sends the message to be sent to a first preset number of the LoRa relay devices;

[0031] The LoRa central control device determines a target downlink channel from a second preset number of downlink channels corresponding to the LoRa relay device according to the message to be sent;

[0032] The LoRa relay device sends the message to be sent to each LoRa terminal through the target downlink channel.

[0033] Optionally, the LoRa central control device obtains current channel parameter information of each downlink channel;

[0034] The LoRa central control device sets the sending time interval corresponding to the message to be sent according to the current channel parameter information;

[0035] The LoRa relay device sends the message to be sent to each LoRa terminal according to the sending time interval.

[0036] Optionally, the LoRa central control device extracts channel bandwidth information, spreading factor information and load length information from the current channel parameter information;

[0037] The LoRa central control device determines the air transmission time corresponding to the message to be sent according to the channel bandwidth information, the spreading factor information and the load length information;

[0038] The LoRa central control device determines the sending time interval corresponding to the message to be sent according to the air transmission time.

[0039] The present invention receives the uplink packet message sent by each LoRa terminal through a LoRa relay device; the LoRa relay device forwards the uplink packet message to a LoRa central control device; the LoRa central control device determines the message to be sent according to the uplink packet message, and sends the message to be sent to a first preset number of LoRa relay devices; the LoRa central control device determines the target downlink channel from the second preset number of downlink channels corresponding to the LoRa relay device according to the message to be sent; the LoRa relay device sends the message to be sent to each LoRa terminal through the target downlink channel. Since the target downlink channel is selected from multiple downlink channels corresponding to multiple relay devices, and the message to be sent is sent to each LoRa terminal through the target downlink channel, compared with the prior art of queuing and sending messages through a unique downlink channel, the present invention improves the real-time performance of the system for data transmission and reduces the data packet loss rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A structural block diagram of a first embodiment of a communication system for improving the real-time performance of LoRa in the present invention;

[0041] Figure 2 This is a flow chart of the first embodiment of the communication system for improving the real-time performance of LoRa in the present invention.

[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0044] Reference Figure 1 , Figure 1 This is a structural block diagram of the first embodiment of the communication system based on improving the real-time performance of LoRa in the present invention.

[0045] like Figure 1 As shown, the communication system for improving the real-time performance of LoRa may include: a LoRa central control device 1001, several LoRa relay devices 1002 and several LoRa terminals 1003.

[0046] Those skilled in the art will understand that Figure 1 The structure shown in does not constitute a limitation on the communication system for improving the real-time performance of LoRa, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0047] The embodiment of the present invention provides a communication system that improves the real-time performance of LoRa. Figure 1 , Figure 1 This is a structural block diagram of the communication that improves the real-time performance of LoRa in the present invention.

[0048] In this embodiment, the communication system for improving the real-time performance of LoRa includes: a LoRa central control device 1001, a plurality of LoRa relay devices 1002 and a plurality of LoRa terminals 1003.

[0049] The LoRa relay device 1002 described in this embodiment is used to receive uplink packet messages sent by each LoRa terminal 1003.

[0050] It should be noted that the LoRa relay device 1002 may be a device connected to the LoRa central control device 1001 , and the LoRa relay device 1002 is a device used by the LoRa central control device 1001 to forward data between the LoRa terminals 1003 .

[0051] It is understandable that the LoRa terminal 1003 can be various application devices, such as: water meter, gas meter, smoke alarm, pet tracker, etc. This embodiment does not specifically limit the device type.

[0052] It should be understood that the uplink packet message may be data information collected by the sensor in the LoRa terminal 1003, for example: collecting temperature and humidity sensors, ultrasonic sensors, photosensors and flame sensors, etc. This embodiment does not limit the sensor, and the uplink packet message may be a message in the form of a message processed by the protocol. The uplink packet message may be heartbeat packet information, status information and feedback information.

[0053] In a specific implementation, when the LoRa terminal 1003 is embedded with wireless connection and LoRa protocol, a LoRa node is formed. The LoRa node collects the required sensor data and sends it to the LoRa relay device 1002.

[0054] The LoRa relay device 1002 is also used to forward the uplink packet message to the LoRa central control device 1001.

[0055] It should be noted that the LoRa central control device 1001 may be a device that can control the LoRa terminal 1003 in the LoRa network. The LoRa relay device 1002 may forward the received uplink packet message to the LoRa central control device 1001 in the form of a message.

[0056] In a specific implementation, the LoRa relay device 1002 forwards the uplink packet message to the LoRa central control device 1001. In order to avoid the long distance, the remote central control device cannot directly control the LoRa terminal 1003. By adding the LoRa relay device 1002, remote data transmission can be accurately performed within a short range to achieve a wider communication range.

[0057] The LoRa central control device 1001 is used to determine the message to be sent according to the uplink packet message, and send the message to be sent to a first preset number of the LoRa relay devices 1002.

[0058] It should be noted that the first preset number may be relay devices that need to be forwarded according to the message to be sent. Relay devices may be deployed in multiple groups according to the message to be forwarded, and the relay device parameters within the group may be the same, while the device parameters between groups may be different.

[0059] In a specific implementation, the LoRa central control device 1001 can determine the message to be sent according to the uplink packet message sent by the LoRa relay device 1002, and send the message to be sent to the LoRa relay device 1002. The LoRa central control device 1001 can receive the uplink packet message forwarded by the LoRa relay device 1002 by random access of the wireless or wired network.

[0060] The LoRa central control device 1001 is further used to determine a target downlink channel from a second preset number of downlink channels corresponding to the LoRa relay device 1002 according to the message to be sent.

[0061] It should be noted that the LoRa central control device 1001 can determine the target downlink channel from the second preset number of downlink channels corresponding to the LoRa relay device according to the data type of the message to be forwarded. The data type may refer to data such as identification attributes, relationship attributes, and representation attributes contained in the message to be sent. For example, the message to be sent may be a data type corresponding to a variety of LoRa terminals 1003, or it may be associated data, such as water meter and electricity meter data are associated data. This embodiment does not impose specific restrictions on the data type.

[0062] It is understandable that the second preset number may be the number of pre-set downlink channels corresponding to the number of LoRa relay devices 1002, the downlink channel may refer to multiple downlink channels included in one LoRa relay device 1002, or multiple downlink channels included in multiple LoRa relay devices 1002, and the target downlink channel may be one or more downlink channels selected from the downlink channels corresponding to multiple LoRa relay devices 1002 as channels for forwarding messages to be sent.

[0063] In a specific implementation, the LoRa central control device 1001 selects a target downlink channel from multiple downlink channels according to the data type corresponding to the message to be sent, and sends the message to be sent to each LoRa terminal 1003 through the target downlink channel. Both uplink and downlink channels are multi-channel, and the channels can be separated by two methods, one is to separate by different frequencies, and the other is to separate by different spreading factors. Each channel can work in parallel.

[0064] The LoRa relay device 1002 is also used to send the message to be sent to each LoRa terminal 1003 through the target downlink channel.

[0065] In a specific implementation, the LoRa central control device 1001 can select a target downlink channel from multiple downlink channels according to the data type corresponding to the message to be sent, and the LoRa relay device 1002 sends the message to be sent to each LoRa terminal 1003 through the target downlink channel. The LoRa central control device 1001 can select a target downlink channel from each downlink channel according to the spreading factor corresponding to the data type, and send the message to be sent to each LoRa terminal 1003 through the target downlink channel. The spreading factor can refer to the ratio of the chip rate after spreading to the signal rate before spreading. The spreading factor can be used to reflect the spreading gain. For example, in WCDMA, the spreading factor (SF) is the serial number of the spreading code, indicating how many chips are used to represent an information symbol (bit). Its value can be 2 to the power of n, such as sf = 2, 4, 8...512. Commonly used spreading codes include OVSF codes, etc. The number of chips converted into each symbol is called the spreading factor. For a certain standard, the chip rate is constant, so a channel with a large spreading factor corresponds to a low rate, and a channel with a small spreading factor corresponds to a high rate. Channels in the same LoRa relay device 1002 can be separated by different spreading factors so that each channel can work in parallel.

[0066] In this embodiment, the LoRa relay device 1002 is used to receive the uplink packet message sent by each LoRa terminal 1003; the LoRa relay device 1002 is also used to forward the uplink packet message to the LoRa central control device 1001; the LoRa central control device 1001 is used to determine the message to be sent according to the uplink packet message, and send the message to be sent to a first preset number of the LoRa relay devices 1002; the LoRa central control device 1001 is also used to determine the target downlink channel from the second preset number of downlink channels corresponding to the LoRa relay device 1002 according to the message to be sent; the LoRa relay device 1002 is also used to send the message to be sent to each LoRa terminal 1003 through the target downlink channel. Since the LoRa central control device selects a target downlink channel from multiple downlink channels corresponding to multiple relay devices 1002, and sends the message to be sent to each LoRa terminal 1003 through the target downlink channel, compared with the prior art that queues and sends messages through a unique downlink channel, the present invention improves the real-time performance of the system for data transmission and reduces the data packet loss rate.

[0067] Based on the above first embodiment, a second embodiment of the communication system for improving the real-time performance of LoRa is proposed.

[0068] In this embodiment, the LoRa central control device 1001 is also used to obtain current channel parameter information of each downlink channel.

[0069] It should be noted that the current channel parameter information may be parameter information corresponding to the uplink channel and the downlink channel in the LoRa relay device 1002, and may be information such as a spreading factor, a signal bandwidth, and a coding rate. This embodiment does not specifically limit the current channel parameter information.

[0070] The LoRa central control device 1001 is also used to set the sending time interval corresponding to the message to be sent according to the current channel parameter information.

[0071] It should be noted that the sending time interval may refer to the time interval at which the LoRa central control device 1001 maintains a sending queue for each downlink channel in the LoRa relay device 1002 and the sending queue sends at regular intervals.

[0072] In the specific implementation, in order to enhance the real-time performance of data transmission, this embodiment sets the sending time interval to avoid interference caused by too small a time interval when sending data, or poor real-time performance due to too large a time interval. Therefore, the LoRa central control device 1001 obtains the current channel parameter information of each downlink channel; the LoRa central control device 1001 sets the sending time interval corresponding to the message to be sent according to the current channel parameter information; the LoRa relay device 1002 sends the message to be sent to each LoRa terminal 1003 according to the sending time interval.

[0073] The LoRa relay device 1002 is also used to send the message to be sent to each LoRa terminal 1003 according to the sending time interval.

[0074] In a specific implementation, the LoRa relay device 1002 sends the message to be sent to each LoRa terminal 1003 according to the sending time interval. In order to avoid interference in data transmission between different relay devices, the channels between different devices can be separated by different frequencies or spreading factors to avoid interference, that is, the sending time interval can be dynamically set according to the channel parameters.

[0075] Furthermore, the LoRa central control device 1001 is also used to extract channel bandwidth information, spreading factor information and load length information from the current channel parameter information; the LoRa central control device 1001 is also used to determine the air transmission time corresponding to the message to be sent according to the channel bandwidth information, the spreading factor information and the load length information; the LoRa central control device 1001 is also used to determine the sending time interval corresponding to the message to be sent according to the air transmission time.

[0076] It should be noted that the air transmission time may refer to the time spent by the air interface in processing data, and may include the data transmission delay time. The air transmission time can be calculated by the communication rate of the LoRa device in the air. The channel bandwidth information may refer to the data set corresponding to the maximum data transmission rate of the channel, that is, the maximum number of bits that can be transmitted per unit time. The channel bandwidth may refer to the upper and lower limits of the frequency allowed to pass through the channel. Increasing the channel bandwidth in the LoRa device can increase the effective data rate to shorten the transmission time. The spreading factor information may refer to the data set of the ratio of the chip rate after spreading and the signal rate before spreading. The spreading factor can be used to reflect the spreading gain. The load length information may refer to the data capacity carried by the current channel. The message to be sent does not only contain one type of data. This embodiment does not specifically limit the message type to be sent.

[0077] It is understandable that the sending time interval may refer to the time interval at which the LoRa central control device 1001 maintains a sending queue for each downlink channel in the LoRa relay device 1002 and the sending queue sends at regular intervals.

[0078] In a specific implementation, in order to improve the real-time and parallel performance of data transmission, the messages to be sent can be queued and sent, and the LoRa central control device 1001 extracts the channel bandwidth information, the spreading factor information and the load length information from the current channel parameter information; the LoRa central control device 1001 determines the air transmission time corresponding to the message to be sent according to the channel bandwidth information, the spreading factor information and the load length information, and determines the sending time interval corresponding to the message to be sent according to the air transmission time.

[0079] Furthermore, the LoRa central control device 1001 is also used to determine the forwarding priority corresponding to the message to be sent according to the event type corresponding to the message to be sent; the LoRa central control device 1001 is also used to sort the messages to be sent according to the forwarding priority and obtain the sorting result; the LoRa central control device 1001 is also used to send the message to be sent to each LoRa terminal 1003 through the target downlink channel according to the sorting result.

[0080] It should be noted that the event type may be classified according to the event's harmfulness, scope of impact, and predictability. This embodiment does not impose any specific restrictions on the event type.

[0081] It is understandable that the forwarding priority can be determined according to the priority order corresponding to the event type, and the sorting result can refer to the order of forwarding generated after sorting the messages to be sent by the forwarding priority.

[0082] In a specific implementation, the LoRa central control device 1001 may determine the forwarding priority corresponding to the message to be sent according to the event type corresponding to the message to be sent, and sort the message to be sent according to the forwarding priority, obtain the sorting result, and send the message to be sent to each LoRa terminal 1003 through the target downlink channel according to the sorting result. For example: introduce a priority to the message queue and send it according to the priority. Priority 1 is the highest and 5 is the lowest. For example, if an alarm message needs to be sent at present, the priority can be set to 1.

[0083] Furthermore, the LoRa central control device 1001 is also used to determine the sending time interval corresponding to the message to be sent according to the sorting result and the air transmission time; the LoRa central control device 1001 sends the message to be sent to each LoRa terminal 1003 through the target downlink channel according to the sending time interval.

[0084] It should be noted that the sending time interval may be a time interval set according to the sorting result and the air time transmission time.

[0085] In a specific implementation, the LoRa central control device 1001 can determine the sending time interval of the message to be sent according to the sorting result corresponding to the message to be sent and the air time of transmitting the message to be forwarded, and send the message to be sent to each LoRa terminal 1003 through the target downlink channel according to the sending time interval.

[0086] In this embodiment, the LoRa central control device 1001 is also used to determine the number of target LoRa relay devices according to the number of LoRa terminals, the distance information between each LoRa terminal 1003 and the preset distance; the LoRa central control device 1001 is also used to determine the LoRa relay device group according to the number of LoRa terminals, the distance information between each LoRa terminal 1003 and the preset number of LoRa terminals that the relay device can carry; the LoRa central control device 1001 is also used to determine the target downlink channel from the downlink channel of the LoRa relay device group according to the message to be sent.

[0087] It should be noted that the number of LoRa terminals can refer to the number of terminals required to be configured in a preset area, the preset area can refer to the area corresponding to the preset scene, and the preset scene can refer to the scene determined by simulating the building according to the building area before installing the equipment. For example, the number of terminals corresponding to each area can be determined according to the architectural design requirements, such as setting the corresponding terminals at the elevator, staircase and entrance.

[0088] It is understandable that the distance information between each LoRa terminal 1003 can be determined according to the terminal requirements corresponding to the preset scene model and the architectural design. The distance information can include the distance between all terminals in the preset area, or it can include the distance information between terminals of the same type.

[0089] It should be understood that the preset distance may refer to the optimal distance range between the LoRa relay device 1002 and the terminal to ensure message forwarding efficiency. The target number of LoRa relay devices may refer to the number of LoRa relay devices required to be configured in a preset area to ensure message forwarding efficiency. The number of LoRa terminals that a preset relay device can carry may refer to the number of terminals that a single LoRa relay device 1002 can carry. The LoRa relay device group may be a LoRa relay device group obtained by dividing the LoRa relay device 1002 according to the preset distance, the number of LoRa terminals, and the number of LoRa terminals that a preset relay device can carry.

[0090] In the specific implementation, the LoRa central control device 1001 determines the number of target LoRa relay devices according to the number of LoRa terminals, the distance information between each LoRa terminal 1003 and the preset distance, and determines the LoRa relay device group according to the number of LoRa terminals, the distance information between each LoRa terminal 1003 and the number of LoRa terminals that the preset relay device can carry, and determines the target downlink channel from the downlink channels in the LoRa relay device group.

[0091] Furthermore, the LoRa central control device 1001 is also used to determine the sending strategy corresponding to the message to be sent according to the inter-group parameters corresponding to the LoRa relay device group; the LoRa relay device 1002 is also used to send the message to be sent to each LoRa terminal 1003 according to the sending strategy and the target downlink channel.

[0092] It should be noted that the sending strategy can be a simultaneous downlink strategy or a queued downlink strategy when the message to be sent is determined according to the inter-group parameters of the LoRa relay device group. For example: LoRa relay device 1: The channel width corresponding to the uplink channel is: 480M, 482M; the channel width corresponding to the downlink channel is: 500M, 502M. LoRa relay device 2: The channel width corresponding to the uplink channel is: 480M, 482M; the channel width corresponding to the downlink channel is: 500M, 502M, that is, LoRa relay device 1 and LoRa relay device 2 are grouped together to expand the communication coverage of the system. LoRa relay device 3: The channel width corresponding to the uplink channel is: 484M, 486M; the channel width corresponding to the downlink channel is: 504M, 506M. That is, LoRa relay device 3 and LoRa relay device 1 and LoRa relay device 2 are not a group, and can be downlinked at the same time without causing interference. In this embodiment, there are multiple relay devices, not limited to the number illustrated by example, and there are multiple downlink channels corresponding to the relay devices.

[0093] In the specific implementation, the LoRa central control device 1001 determines the sending strategy corresponding to the message to be sent according to the inter-group security parameters corresponding to the LoRa relay device group, and the LoRa relay device 1002 sends the message to be sent to each LoRa terminal 1003 according to the sending strategy and the target downlink channel.

[0094] In this embodiment, the LoRa relay device 1002 receives the uplink packet message sent by each LoRa terminal 1001; the LoRa relay device 1002 forwards the uplink packet message to the LoRa central control device 1001; the LoRa central control device 1001 determines the message to be sent according to the uplink packet message, and sends the message to be sent to the first preset number of LoRa relay devices 1002; the LoRa central control device 1001 obtains the current channel parameter information of each downlink channel; the LoRa central control device 1001 sets the sending time interval corresponding to the message to be sent according to the current channel parameter information; the LoRa relay device 1002 sends the message to be sent to each LoRa terminal 1003 according to the sending time interval. Since the LoRa central control device 1001 maintains a sending queue for each downlink channel, and the sending queue is sent at a certain interval, compared with the interference caused by the existing LoRa communication in parallel, this embodiment improves the real-time performance of the system for data transmission, reduces the data packet loss rate, and ensures the stability of data transmission.

[0095] Based on the above communication system for improving the real-time performance of LoRa, the present invention also provides a communication method for improving the real-time performance of LoRa.

[0096] Reference Figure 2 , Figure 2 This is a flow chart of a first embodiment of a communication method for improving the real-time performance of LoRa in the present invention.

[0097] In this embodiment, the communication method for improving the real-time performance of LoRa includes the following steps:

[0098] Step S10: The LoRa relay device receives uplink packet messages sent by each LoRa terminal.

[0099] It should be noted that the LoRa relay device may be a device connected to the LoRa central control device, and the LoRa relay device is a device used by the LoRa central control device to forward data between LoRa terminals.

[0100] It is understandable that the LoRa terminal can be various application devices, such as water meters, gas meters, smoke alarms, pet trackers, etc. This embodiment does not specifically limit the device type.

[0101] It should be understood that the uplink packet message can be data information collected by the sensor in the LoRa terminal, for example: collecting temperature and humidity sensors, ultrasonic sensors, photosensors and flame sensors, etc. This embodiment does not limit the sensor, and the uplink packet message can be a message in the form of a message processed by the protocol. The uplink packet message can be heartbeat packet information, status information and feedback information.

[0102] In the specific implementation, when the LoRa terminal is embedded with wireless connection and LoRa protocol, a LoRa node is formed. The LoRa node collects the required sensor data and sends it to the LoRa relay device.

[0103] Step S20: The LoRa relay device forwards the uplink packet message to the LoRa central control device.

[0104] It should be noted that the LoRa central control device can be a device that can control the LoRa terminal in the LoRa network. The LoRa relay device can forward the received uplink packet message to the LoRa central control device in the form of a message.

[0105] In the specific implementation, the LoRa relay device forwards the uplink packet message to the LoRa central control device. In order to avoid the long distance, the remote central control device cannot directly control the LoRa terminal. By adding the LoRa relay device, remote data transmission can be accurately performed within a short range to achieve a wider communication range.

[0106] Step S30: The LoRa central control device determines a message to be sent according to the uplink packet message, and sends the message to be sent to a first preset number of the LoRa relay devices.

[0107] It should be noted that the first preset number may be relay devices that need to be forwarded according to the message to be sent. Relay devices may be deployed in multiple groups according to the message to be forwarded, and the relay device parameters within the group may be the same, while the device parameters between groups may be different.

[0108] In the specific implementation, the LoRa central control device can determine the message to be sent according to the uplink packet message sent by the LoRa relay device, and send the message to be sent to the LoRa relay device. The LoRa central control device can receive the uplink packet message forwarded by the LoRa relay device through random access of the wireless or wired network.

[0109] Step S40: the LoRa central control device determines a target downlink channel from a second preset number of downlink channels corresponding to the LoRa relay device according to the message to be sent.

[0110] It should be noted that the LoRa central control device can determine the target downlink channel from the second preset number of downlink channels corresponding to the LoRa relay device according to the data type of the message to be forwarded. The data type may refer to data such as identification attributes, relationship attributes, and representation attributes contained in the message to be sent. For example, the message to be sent may be a data type corresponding to a variety of LoRa terminals, or it may be associated data, such as water meter and electricity meter data are associated data. This embodiment does not impose specific restrictions on the data type.

[0111] It can be understood that the second preset number can be the number of pre-set downlink channels corresponding to the number of LoRa relay devices, the downlink channel can refer to multiple downlink channels included in one LoRa relay device, or multiple downlink channels included in multiple LoRa relay devices, and the target downlink channel can be one or more downlink channels selected from the downlink channels corresponding to multiple LoRa relay devices as the channel for forwarding the message to be sent.

[0112] In the specific implementation, the LoRa central control device selects a target downlink channel from multiple downlink channels according to the data type corresponding to the message to be sent, and sends the message to be sent to each LoRa terminal through the target downlink channel. Both uplink and downlink channels are multi-channel, and the channels can be separated by two methods, one is to separate by different frequencies, and the other is to separate by different spreading factors. Each channel can work in parallel.

[0113] Step S50: The LoRa relay device sends the message to be sent to each LoRa terminal through the target downlink channel.

[0114] In a specific implementation, the LoRa central control device can select a target downlink channel from multiple downlink channels according to the data type corresponding to the message to be sent, and the LoRa relay device sends the message to be sent to each LoRa terminal through the target downlink channel. The LoRa central control device can select a target downlink channel from each downlink channel according to the spreading factor corresponding to the data type, and send the message to be sent to each LoRa terminal through the target downlink channel. The spreading factor can refer to the ratio of the chip rate after spreading and the signal rate before spreading. The spreading factor can be used to reflect the spreading gain. For example, in WCDMA, the spreading factor (SF) is the serial number of the spreading code, indicating how many bits of chips are used to represent an information symbol (bit). Its value can be 2 to the power of n, such as sf = 2, 4, 8...512. Commonly used spreading codes include OVSF codes, etc. The number of chips converted into each symbol is called the spreading factor. For a certain standard, the chip rate is constant, so a channel with a large spreading factor corresponds to a low rate, and a channel with a small spreading factor corresponds to a high rate. Channels in the same LoRa relay device can be separated by different spreading factors, so that each channel can work in parallel.

[0115] Furthermore, the LoRa central control device obtains current channel parameter information of each downlink channel; the LoRa central control device sets a sending time interval corresponding to the message to be sent according to the current channel parameter information; and the LoRa relay device sends the message to be sent to each LoRa terminal according to the sending time interval.

[0116] It should be noted that the current channel parameter information may be parameter information corresponding to the uplink channel and the downlink channel in the LoRa relay device, and may be information such as a spreading factor, a signal bandwidth, and a coding rate. This embodiment does not specifically limit the current channel parameter information.

[0117] It is understandable that the sending time interval may refer to the time interval at which the LoRa central control device maintains a sending queue for each downlink channel in the LoRa relay device and the sending queue sends at regular intervals.

[0118] It should be understood that the LoRa relay device sends the message to be sent to each LoRa terminal according to the sending time interval. In order to avoid interference in data transmission between different relay devices, the channels between different devices can be separated by different frequencies or spreading factors to avoid interference, that is, the sending time interval can be dynamically set according to the channel parameters.

[0119] In the specific implementation, in order to enhance the real-time performance of data transmission, this embodiment sets the sending time interval to avoid interference caused by too small time interval when sending data, or poor real-time performance due to too large time interval. Therefore, the LoRa central control device can obtain the current channel parameter information of each downlink channel; the LoRa central control device sets the sending time interval corresponding to the message to be sent according to the current channel parameter information; the LoRa relay device sends the message to be sent to each LoRa terminal according to the sending time interval.

[0120] Furthermore, the LoRa central control device extracts channel bandwidth information, spreading factor information and load length information from the current channel parameter information; the LoRa central control device determines the air transmission time corresponding to the message to be sent according to the channel bandwidth information, the spreading factor information and the load length information; the LoRa central control device determines the sending time interval corresponding to the message to be sent according to the air transmission time.

[0121] It should be noted that the air transmission time may refer to the time spent by the air interface in processing data, and may include the data transmission delay time. The air transmission time can be calculated by the communication rate of the LoRa device in the air. The channel bandwidth information may refer to the data set corresponding to the maximum data transmission rate of the channel, that is, the maximum number of bits that can be transmitted per unit time. The channel bandwidth may refer to the upper and lower limits of the frequency allowed to pass through the channel. Increasing the channel bandwidth in the LoRa device can increase the effective data rate to shorten the transmission time. The spreading factor information may refer to the data set of the ratio of the chip rate after spreading and the signal rate before spreading. The spreading factor can be used to reflect the spreading gain. The load length information may refer to the data capacity carried by the current channel. The message to be sent does not only contain one type of data. This embodiment does not specifically limit the message type to be sent.

[0122] In the specific implementation, in order to improve the real-time and parallelism of data transmission, the LoRa central control device can extract the channel bandwidth information, spreading factor information and load length information from the current channel parameter information by queuing the messages to be sent; the LoRa central control device determines the air transmission time corresponding to the message to be sent according to the channel bandwidth information, spreading factor information and load length information, and determines the sending time interval corresponding to the message to be sent according to the air transmission time.

[0123] In this embodiment, the LoRa relay device receives the uplink packet message sent by each LoRa terminal; the LoRa relay device forwards the uplink packet message to the LoRa central control device; the LoRa central control device determines the message to be sent according to the uplink packet message, and sends the message to be sent to the first preset number of LoRa relay devices; the LoRa central control device obtains the current channel parameter information of each downlink channel; the LoRa central control device sets the sending time interval corresponding to the message to be sent according to the current channel parameter information; the LoRa relay device sends the message to be sent to each LoRa terminal according to the sending time interval. Since the LoRa central control device maintains a sending queue for each downlink channel, and the sending queue sends at regular intervals, compared with the interference caused by the existing LoRa communication in parallel, this embodiment improves the real-time performance of the system for data transmission and reduces the data packet loss rate.

[0124] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0125] 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.

[0126] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0127] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A communication system for improving the real-time performance of LoRa, characterized in that: The communication system for improving the real-time performance of LoRa includes: a LoRa central control device, a plurality of LoRa relay devices and a plurality of LoRa terminals; The LoRa relay device is used to receive uplink packet messages sent by each LoRa terminal; The LoRa relay device is also used to forward the uplink packet message to the LoRa central control device; The LoRa central control device is used to determine the message to be sent according to the uplink packet message; The LoRa central control device is also used to determine the number of target LoRa relay devices according to the number of LoRa terminals, the distance information between each LoRa terminal and the preset distance; The LoRa central control device is further used to determine the LoRa relay device group according to the number of LoRa terminals, the distance information and the number of LoRa terminals that can be carried by the preset relay device; The LoRa central control device is further used to determine a target downlink channel from the downlink channels of the LoRa relay device group according to the message to be sent; The LoRa central control device is further used to determine the forwarding priority corresponding to the message to be sent according to the event type corresponding to the message to be sent; The LoRa central control device is further used to sort the messages to be sent according to the forwarding priority and obtain the sorting result; The LoRa central control device is also used to obtain current channel parameter information of each downlink channel; The LoRa central control device is also used to extract channel bandwidth information, spreading factor information and load length information from the current channel parameter information; The LoRa central control device is further used to determine the air transmission time corresponding to the message to be sent according to the channel bandwidth information, the spreading factor information and the load length information; The LoRa central control device is further used to determine the sending strategy corresponding to the message to be sent according to the inter-group parameters corresponding to the LoRa relay device group, and the sending strategy includes any one of a simultaneous downlink strategy and a queued downlink strategy; The LoRa central control device is further used to determine the sending time interval corresponding to the message to be sent according to the sorting result and the air transmission time; The LoRa relay device is further used to send the message to be sent to each LoRa terminal through the target downlink channel according to the sorting result; The LoRa relay device is further used to send the message to be sent to each LoRa terminal through the target downlink channel according to the sending time interval; The LoRa relay device is also used to send the message to be sent to each LoRa terminal according to the sending strategy and the target downlink channel.

2. A communication method for improving the real-time performance of LoRa based on the communication system for improving the real-time performance of LoRa according to any one of claims 1, characterized in that: The method comprises: The LoRa relay device receives an uplink packet message sent by each LoRa terminal; The LoRa relay device forwards the uplink packet message to the LoRa central control device; The LoRa central control device determines the message to be sent according to the uplink packet message; The LoRa central control device determines the number of target LoRa relay devices according to the number of LoRa terminals, the distance information between each LoRa terminal and the preset distance; The LoRa central control device determines the LoRa relay device group according to the number of LoRa terminals, the distance information and the number of LoRa terminals that can be carried by the preset relay device; The LoRa central control device determines a target downlink channel from the downlink channels of the LoRa relay device group according to the message to be sent; The LoRa central control device determines the forwarding priority corresponding to the message to be sent according to the event type corresponding to the message to be sent; The LoRa central control device sorts the messages to be sent according to the forwarding priority and obtains the sorting result; The LoRa central control device obtains current channel parameter information of each downlink channel; The LoRa central control device extracts channel bandwidth information, spreading factor information and load length information from the current channel parameter information; The LoRa central control device determines the air transmission time corresponding to the message to be sent according to the channel bandwidth information, the spreading factor information and the load length information; The LoRa central control device determines the sending strategy corresponding to the message to be sent according to the inter-group parameters corresponding to the LoRa relay device group, and the sending strategy includes any one of a simultaneous downlink strategy and a queued downlink strategy; The LoRa central control device determines the sending time interval corresponding to the message to be sent according to the sorting result and the air transmission time; The LoRa relay device sends the message to be sent to each LoRa terminal according to the sorting result, the sending time interval, the sending strategy and the target downlink channel.