CN110708686A - System and method for improving LoRa network throughput - Google Patents
System and method for improving LoRa network throughput Download PDFInfo
- Publication number
- CN110708686A CN110708686A CN201910924420.1A CN201910924420A CN110708686A CN 110708686 A CN110708686 A CN 110708686A CN 201910924420 A CN201910924420 A CN 201910924420A CN 110708686 A CN110708686 A CN 110708686A
- Authority
- CN
- China
- Prior art keywords
- lora
- time
- stm32 controller
- address
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/70—Services for machine-to-machine communication [M2M] or machine type communication [MTC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/001—Synchronization between nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a system and a method for improving throughput of a LoRa network, wherein the system comprises an STM32 controller, a battery connected with the STM32 controller, a LoRa module connected with the STM32 controller, a LoRa gateway connected with the LoRa module and an upper computer connected with the LoRa gateway. The host computer is the time service of terminal node through the loRa gateway, and STM32 controller uses timer and real-time clock to solve the time synchronization's of multinode problem according to the current time.
Description
Technical Field
The invention relates to the technical field of communication of the Internet of things, in particular to a system and a method for improving throughput of a LoRa network.
Background
The LoRa is a low power consumption, long-distance local area network wireless standard. The method has the advantages of wide transmission distance, low power consumption, free ISM frequency band and the like. The wireless radio frequency communication system has the greatest characteristic that the wireless radio frequency communication system is longer in transmission distance than other wireless modes under the same power consumption condition, realizes low power consumption and long-distance unification, and is enlarged by 3-5 times compared with the traditional wireless radio frequency communication distance under the same power consumption condition. The method is widely applied to the fields of intelligent Internet of things, information acquisition and the like. But due to the number of gateway channels, throughput of the LoRa gateway is to be improved.
With the maturity and development of the internet of things technology, the demand of communication capacity after real world digitization is larger and larger, but the existing LoRa gateway communication parallel communication capacity in the market is limited, and the effect of scene communication with multiple connections and frequent transmission is not ideal.
Therefore, it is necessary to provide a system and a method for improving throughput of the LoRa network to solve the above problems.
Disclosure of Invention
In order to solve the problems, the invention provides a system and a method for improving throughput of an LoRa network, which solve the problems that in the prior art, the parallel communication capacity of LoRa gateway communication is limited, and the communication effect is not ideal when the communication is faced with a scene with multiple connections and frequent transmission.
In order to achieve the purpose, the invention provides the following technical scheme: the utility model provides a promote system of loRa network throughput, its includes STM32 controller, connects STM32 controller battery, connection the loRa module of STM32 controller, connection the loRa gateway of loRa module and connection the host computer of loRa gateway.
In order to achieve the above purpose, the present invention further provides a technical solution: a method for improving LoRa network throughput is characterized by comprising the following steps: s1: the STM32 controller sends a request packet with an LoRa address to the LoRa gateway at regular time through the LoRa module; s2: the upper computer calculates the space-time length of each transmission through a set spread spectrum factor and the size of a data packet, adjusts the grouping interval according to the space-time length, enables the terminal nodes to upload data in sequence, sets communication parameters for the request nodes according to the current on-network node information after the LoRa gateway receives the request packet, and transmits the current time, the grouping interval, the group number and the transmission period to the LoRa module through the LoRa gateway; s3: after receiving the information, the LoRa module judges whether the address in the information is consistent with the address of the LoRa module, transmits a message packet consistent with the address of the LoRa module to the STM32 controller, the STM32 controller uses a timer to carry out time synchronization according to the received current time, the received grouping interval, the received group number and the received sending period, synchronizes the time to the second before the sending time and updates an RTC (real time clock), and the time length of the RTC alarm clock is the sending period; s4: the RTC alarm clock interruption awakens the system from the low power consumption mode and updates the RTC alarm clock to execute functional operation; s5: and inquiring RTC time, synchronizing the time to the sending time distributed by the upper computer, and sending a data packet by the LoRa module.
In step S2, each node is assigned a different group number in an on-demand mode with an LoRa address.
In step S2, one or more terminal nodes may be set in a group according to the communication capabilities of different LoRa gateways 5, different spreading factors and different sizes of transmission packets are set according to the communication environment and the application scenario, and corresponding time in the air is calculated to perform group interval setting.
Compared with the prior art, the method for improving the throughput of the LoRa network has the beneficial effects that: the host computer is the time service of terminal node through the loRa gateway, and STM32 controller uses timer and real-time clock to solve the time synchronization's of multinode problem according to the current time.
The upper computer calculates the space-time length of each transmission through the set spreading factor and the size of the known data packet, and sets a grouping interval according to the space-time length. The upper computer appoints a group number and a sending period for the terminal node requesting information, so that the terminal node sequentially sends data, and the problem of terminal node sending conflict in a scene facing multi-connection frequent sending is solved.
The problem of inaccurate transmission interval caused by unfixed system clock initialization time after the STM32 controller is awakened from low power consumption is solved by awakening the RTC real-time clock of the STM32 controller one second in advance and waiting for the arrival of transmission time after the clock is initialized and the function operation is executed.
Drawings
Fig. 1 is a schematic structural diagram of a system for improving throughput of an LoRa network according to the present invention;
fig. 2 is a flowchart illustrating a method for improving throughput of an LoRa network according to the present invention.
Detailed Description
Fig. 1 is a schematic structural diagram of a system for improving throughput of an LoRa network according to the present invention. This system includes STM32 controller 1, the inside embedding of STM32 controller 1 has ARM Cortex-M3 treater, and battery 4 is connected to STM32 controller 1, and the loRa module 3 is connected to STM32 controller 1, and loRa module 3 carries out communication connection with loRa gateway 5, and loRa gateway 5 connects host computer 6.
Fig. 2 is a flowchart illustrating a method for improving throughput of an LoRa network according to the present invention.
The invention discloses a method for improving LoRa network throughput, which comprises the following steps:
s1: the STM32 controller 1 sends a request packet with an LoRa address to the LoRa gateway 5 through the LoRa module 3 at regular time;
s2: the upper computer 6 calculates the space-time length sent each time through the set spreading factor and the size of the data packet, adjusts the grouping interval according to the space-time length, enables the terminal nodes to upload data in sequence, and after the LoRa gateway 5 receives the request packet, the upper computer 6 sets communication parameters for the request node according to the current on-network node information, and sends the current time, the grouping interval, the group number and the sending period to the LoRa module 3 through the LoRa gateway 5.
Specifically, different group numbers are distributed to each node in an on-demand mode with an LoRa address;
specifically, one or more terminal nodes may be set in a group according to the communication capabilities of different LoRa gateways 5, different spreading factors and different sizes of transmission data packets may be set according to the communication environment and the application scenario, and corresponding time duration in the air may be calculated to perform group interval setting, so that the communication capabilities of the gateways may be improved.
S3: after receiving the information, the LoRa module 3 automatically judges whether the address in the information is consistent with the address of the self, transmits a message packet consistent with the address of the module to the STM32 controller 1, the STM32 controller 1 uses a timer to perform time synchronization according to the received current time, grouping interval, group number and sending period, synchronizes the time to the previous second of the sending time and updates the RTC, an RTC alarm clock is initialized, and the time length of the RTC alarm clock is the sending period.
In order to solve the problem of inaccurate transmission interval caused by unfixed system clock initialization time after the STM32 controller 1 wakes up from low power consumption, the invention uses the RTC real-time clock of the STM32 controller 1 to wake up one second earlier, and waits for the arrival of a transmission time point after initializing the system clock and executing functional operation.
S4: the RTC alarm clock interrupt awakens the system from the low power mode and updates the RTC alarm clock to execute the functional operation.
The STM32 controller 1 achieves the goal of low power consumption by the RTC real time clock periodically waking the STM32 controller 1 from a low power consumption mode.
S5: and inquiring RTC time, synchronizing the time to the sending time distributed by the upper computer 6, and sending a data packet by the LoRa module 3.
The time is synchronized to the sending time distributed by the upper computer 6 by inquiring the RTC time so as to realize the purpose of sending at regular time.
S6: and entering a low power consumption mode and waiting for the next round of transmission.
The RTC real-time clock of the STM32 controller 1 is biased, and partial channels should be left blank or the group interval should be increased to enable the data packets to be stably uploaded to the LoRa gateway 5.
The problem that data sent by multi-terminal node equipment is easy to collide is solved, the STM32 controller 1 sends information according to a packet number periodically through an RTC real-time clock, the number of terminal nodes which can be borne by a gateway is increased, the probability of packet collision is reduced, wireless data transmission collision is avoided, the network throughput is effectively improved, the problem that the parallel capability of the current equipment is poor is solved to a certain degree, and the number of terminal nodes which can be borne by the gateway is increased.
Of course, those skilled in the art will recognize that the above-described embodiments are illustrative only, and not intended to be limiting, and that changes and modifications may be made thereto without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (4)
1. The utility model provides a promote system of loRa network throughput, its characterized in that, it includes STM32 controller, connects STM32 controller battery, connection the loRa module of STM32 controller, connection the loRa gateway of loRa module and connection the host computer of loRa gateway.
2. A method for improving LoRa network throughput is characterized by comprising the following steps:
s1: the STM32 controller sends a request packet with an LoRa address to the LoRa gateway at regular time through the LoRa module;
s2: the upper computer calculates the space-time length of each transmission through a set spread spectrum factor and the size of a data packet, adjusts the grouping interval according to the space-time length, enables the terminal nodes to upload data in sequence, sets communication parameters for the request nodes according to the current on-network node information after the LoRa gateway receives the request packet, and transmits the current time, the grouping interval, the group number and the transmission period to the LoRa module through the LoRa gateway;
s3: after receiving the information, the LoRa module judges whether the address in the information is consistent with the address of the LoRa module, transmits a message packet consistent with the address of the LoRa module to the STM32 controller, the STM32 controller uses a timer to carry out time synchronization according to the received current time, the received grouping interval, the received group number and the received sending period, synchronizes the time to the second before the sending time and updates an RTC (real time clock), and the time length of the RTC alarm clock is the sending period;
s4: the RTC alarm clock interruption awakens the system from the low power consumption mode and updates the RTC alarm clock to execute functional operation;
s5: and inquiring RTC time, synchronizing the time to the sending time distributed by the upper computer, and sending a data packet by the LoRa module.
3. The method for improving throughput of an LoRa network of claim 2, wherein in step S2, each node is assigned a different group number by an on-demand method with an LoRa address.
4. The method for improving throughput of an LoRa network as claimed in claim 2, wherein in step S2, one or more terminal nodes may be set in a group according to communication capabilities of different LoRa gateways 5, different spreading factors and different sizes of transmitted packets are set according to communication environments and application scenarios, and corresponding time in the air is calculated to perform group interval setting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910924420.1A CN110708686A (en) | 2019-09-27 | 2019-09-27 | System and method for improving LoRa network throughput |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910924420.1A CN110708686A (en) | 2019-09-27 | 2019-09-27 | System and method for improving LoRa network throughput |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110708686A true CN110708686A (en) | 2020-01-17 |
Family
ID=69196738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910924420.1A Pending CN110708686A (en) | 2019-09-27 | 2019-09-27 | System and method for improving LoRa network throughput |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110708686A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011166418A (en) * | 2010-02-09 | 2011-08-25 | Nippon Telegr & Teleph Corp <Ntt> | Communication control method for improving throughput, communication system, and program for the same |
CN106162844A (en) * | 2016-06-03 | 2016-11-23 | 西安电子科技大学 | Implementation method based on the MAC protocol for wireless sensor networks of LoRa |
CN108093436A (en) * | 2017-12-21 | 2018-05-29 | 中兴克拉科技(苏州)有限公司 | A kind of Adaptive Rate Shape method of LPWAN Internet of Things based on Network status |
CN109412937A (en) * | 2018-11-07 | 2019-03-01 | 京信通信系统(中国)有限公司 | Gateway, LoRa network system, gateway operation method and storage medium |
-
2019
- 2019-09-27 CN CN201910924420.1A patent/CN110708686A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011166418A (en) * | 2010-02-09 | 2011-08-25 | Nippon Telegr & Teleph Corp <Ntt> | Communication control method for improving throughput, communication system, and program for the same |
CN106162844A (en) * | 2016-06-03 | 2016-11-23 | 西安电子科技大学 | Implementation method based on the MAC protocol for wireless sensor networks of LoRa |
CN108093436A (en) * | 2017-12-21 | 2018-05-29 | 中兴克拉科技(苏州)有限公司 | A kind of Adaptive Rate Shape method of LPWAN Internet of Things based on Network status |
CN109412937A (en) * | 2018-11-07 | 2019-03-01 | 京信通信系统(中国)有限公司 | Gateway, LoRa network system, gateway operation method and storage medium |
Non-Patent Citations (1)
Title |
---|
雷靖等: "基于LoRaWAN的无线低功耗抄表方法设计", 《电脑知识与技术》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113613316B (en) | Indication method and device of downlink service data | |
CN102752040B (en) | Hybrid networking and communication method based on wireless and power line carrier | |
CN111132287B (en) | Lora-based low-delay low-power-consumption downlink communication mechanism | |
WO2018126612A1 (en) | Method and device for transmitting and receiving wake-up frame | |
US11637585B2 (en) | Sleepy device operation in asynchronous channel hopping networks | |
CN109547578B (en) | Networking method for electronic price tag system | |
KR101174406B1 (en) | A Low Power MAC Architecture for Wireless Sensor Network with Wireless Power Transfer | |
CN107925964A (en) | With the power save mechanism in the WLAN largely to stand | |
US20100045422A1 (en) | Sensor network system enables highly-reliable transmission/reception of control command and efficient band | |
CN103906207A (en) | Wireless sensor network data transmission method based on self-adaptation required awakening technology | |
US10548085B2 (en) | Optimization of broadcast messaging for low-energy devices communicating with a node on a time-slotted channel hopping network | |
US20040228293A1 (en) | Method for enhanced power saving on DCF based wireless networks | |
CN110177097A (en) | Data transmission method, apparatus and system | |
CN111132337B (en) | Lora communication method combining TDMA (time division multiple Access) and CSMA (Carrier sense multiple Access) mechanisms | |
CN111465039A (en) | Wireless upgrading method based on L ora technology | |
CN110062447A (en) | A method of reducing wireless self-organization network downstream response time delay | |
CN105208671A (en) | Implementation method for high channel utilization H-MAC protocol of wireless sensor network | |
CN106714284B (en) | Sequential dormancy awakening method suitable for wireless chain topology network | |
CN104780597A (en) | Low-power communication receiving and sending control method of wireless security protection and monitoring system | |
CN104243110A (en) | Wireless sensor network data transmission method based on non-real-time response mechanism | |
CN110708686A (en) | System and method for improving LoRa network throughput | |
CN116390217A (en) | LoRa equipment ad hoc network system based on self-adaptive time synchronization scheme | |
CN103813437A (en) | Mobile wireless ad hoc network clock synchronization method based on time domain narrow pulse | |
CN109429300B (en) | Communication method and device of wireless local area network, access point equipment and site equipment | |
CN105515789B (en) | A kind of electricity saving method at interval to be weighed |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20200117 |
|
WD01 | Invention patent application deemed withdrawn after publication |