CN111465039B - Wireless upgrading method based on Lora technology - Google Patents
Wireless upgrading method based on Lora technology Download PDFInfo
- Publication number
- CN111465039B CN111465039B CN202010285968.9A CN202010285968A CN111465039B CN 111465039 B CN111465039 B CN 111465039B CN 202010285968 A CN202010285968 A CN 202010285968A CN 111465039 B CN111465039 B CN 111465039B
- Authority
- CN
- China
- Prior art keywords
- upgrade
- node
- broadcast
- upgrading
- lora gateway
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- 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
- H04W28/06—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
- H04W28/065—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/16—Gateway arrangements
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention discloses a wireless upgrading method based on a Lora technology, and belongs to the technical field of wireless communication. The Lora gateway sends beacons at regular time for network synchronization; all nodes under the Lora gateway monitor the broadcast frame; under the condition of no broadcast wakeup, each node monitors a downlink wakeup frame at the beginning of a corresponding basic service period according to a wakeup group distributed during network access; if all nodes under the Lora gateway need to be upgraded, adopting a broadcast upgrading mode; otherwise, adopting a single-point upgrading mode. Receiving the upgrade package at the node and reporting receiving completion state information; and entering a local upgrading flow, and restarting the local code after upgrading operation is completed. By adopting the mode of issuing the upgrade package at regular time, the Lora node opens the receiving window to receive the upgrade package only in the time period of issuing the upgrade package, and the rest of the time is in the sleep mode, thereby effectively reducing the power consumption of the upgrade node. Other business instructions can be inserted and issued in the upgrading process, so that the upgrading business does not influence other business process processing.
Description
Technical Field
The invention relates to the technical field of wireless communication, in particular to a wireless upgrading method based on a Lora technology.
Background
With the continuous development of the internet of things technology, various intelligent terminal products emerge endlessly. The nodes in the application of the Internet of things are numerous and widely distributed, and great inconvenience is brought to the upgrading of terminal hardware. Lora (long range radio) is a radio frequency technology based on linear spread spectrum modulation, can effectively solve the contradiction between long distance and low power consumption in wireless communication, and lays a technical foundation for the development of long-distance internet of things.
The LoraWan protocol introduced by the Lora alliance has a deficiency in support of Lora terminal upgrade, which is mainly reflected in that CLASS a terminals cannot support downlink broadcast communication, and CLASS B and CLASS C can support downlink broadcast communication, but increase the power consumption of Lora terminals. In view of this, the invention provides a low-power-consumption OTA upgrading scheme based on Lora.
Disclosure of Invention
The invention aims to provide a wireless upgrading method based on a Lora technology, which aims to solve the problems of overhigh power consumption, too slow upgrading speed and the like in the existing Lora network terminal upgrading.
In order to solve the technical problem, the invention provides a wireless upgrading method based on the Lora technology, which comprises the following steps:
step 1, the Lora gateway sends beacons regularly for network synchronization; monitoring the broadcast frame by all nodes under the Lora gateway; under the condition of no broadcast wakeup, each node monitors a downlink wakeup frame at the beginning of a corresponding basic service period according to a wakeup group distributed during network access;
if all nodes under the Lora gateway need to be upgraded, turning to the step S2 to adopt a broadcast upgrading mode; otherwise, turning to step S3 to adopt a single-point upgrade mode:
step S2, the Lora gateway issues the broadcast wake-up frame, then issues the broadcast command or the broadcast data frame, and issues the command for preparing upgrade when needing to upgrade;
step S21, after the node is awakened by the upgrading command, monitoring an upgrading awakening frame at the starting time of the basic service period; after receiving the upgrade awakening frame, opening a receiving window to receive upgrade data; the Lora gateway splits the upgrade file into n packets, and sequentially transmits the upgrade packets in the beacon period;
step S22, sequentially calling the nodes in the network by a single-point awakening mode, and asking the nodes to inform whether the upgrade package is completely received;
step S23, if a certain node is called and Lora gateway does not receive corresponding response information, the node is considered to be failed to upgrade; the node receives all the upgrade packages and reports receiving completion state information when being called;
step S3, the Lora gateway issues a single point wake-up frame to wake up only the node to be upgraded and transmit the upgrade data;
after the Lora gateway issues all the upgrade packages to the corresponding nodes, inquiring whether a package loss exists or not from the nodes: if the node checks that the node finds that the node has packet loss, reporting a packet loss list when being inquired by the Lora gateway; the Lora gateway retransmits the lost data packet to the node according to the packet loss list; the node receives the upgrade package and reports the receiving completion state information;
and step S4, entering a local upgrading process, and restarting the local code after finishing the upgrading operation.
Optionally, the step S1 includes:
the beacon period is divided into beacon time zone, broadcast time zone, several basic service periods and reserved time zone; all nodes under the Lora gateway listen to the broadcast frame at the start of the broadcast time zone.
Optionally, the Lora gateway sends the broadcast wakeup frame at the start time of the broadcast time zone in the beacon period.
Optionally, the step S22 further includes: and if the missing packet exists, the node sends a missing packet list to the Lora gateway, and the Lora gateway sequentially issues the missing upgrade packet to the node in a single-point upgrade mode according to the missing packet list.
The invention provides a wireless upgrading method based on a Lora technology.A Lora gateway sends beacons at regular time for network synchronization; all nodes under the Lora gateway monitor the broadcast frame; under the condition of no broadcast wakeup, each node monitors a downlink wakeup frame at the beginning of a corresponding basic service period according to a wakeup group distributed during network access; if all nodes under the Lora gateway need to be upgraded, adopting a broadcast upgrading mode; otherwise, adopting a single-point upgrading mode: receiving the upgrade package at the node and reporting receiving completion state information; and entering a local upgrading flow, and restarting the local code after upgrading operation is completed. By adopting the mode of issuing the upgrade package at regular time, the Lora node opens the receiving window to receive the upgrade package only in the time period of issuing the upgrade package, and the rest of the time is in the sleep mode, so that the power consumption of the upgrade node can be effectively reduced. In addition, in the upgrading process, other service instructions can be issued alternatively, so that the upgrading service does not affect other service flow processing.
Drawings
Fig. 1 is a schematic diagram of beacon period division;
FIG. 2 is a schematic diagram of a broadcast wakeup timing sequence;
fig. 3 is a timing diagram illustrating the transmission of an upgrade packet during a beacon period.
Detailed Description
The wireless upgrade method based on Lora technology according to the present invention will be described in detail with reference to the accompanying drawings and specific embodiments. Advantages and features of the present invention will become apparent from the following description and from the claims. It is to be noted that the drawings are in a very simplified form and are not to precise scale, which is merely for the purpose of facilitating and distinctly claiming the embodiments of the present invention.
Example one
The invention provides a wireless upgrading method based on a Lora technology, which comprises the following steps:
step 1, the Lora gateway sends beacons regularly for network synchronization; after the nodes under the Lora gateway successfully access the network, synchronization with the Lora gateway is completed. The Beacon Period (Beacon Period) is divided into a Beacon time zone (BA, Beacon Area), a Broadcast time zone (Broadcast), several basic service periods (busipeiod), and a reserved time zone (Guard Area), as shown in fig. 1. After the broadcast time zone follows the beacon time zone, all nodes under the Lora gateway listen to the broadcast frame at the start time of the broadcast time zone. Under the condition of no broadcast wakeup, each node monitors a downlink wakeup frame at the beginning of a corresponding basic service period according to a wakeup group distributed during network access;
if all nodes under the Lora gateway need to be upgraded, adopting a broadcast upgrading mode:
the Lora gateway sends a broadcast wakeup frame at the starting time of a broadcast time zone in a beacon period, then sends a broadcast command or a broadcast data frame, and sends an update preparation command when updating is needed; the broadcast wakeup timing is shown in fig. 2;
after being awakened by the upgrade command, the node monitors an upgrade awakening frame at the starting moment of a basic service period shown in figure 1; after receiving the upgrade awakening frame, opening a receiving window to receive upgrade data; the Lora gateway splits the upgrade file into n packets, and sequentially transmits the upgrade packets in a beacon period, wherein the time sequence of the upgrade packets is shown in fig. 3, and the detailed communication time sequence in the basic service period is the same as that in fig. 2;
by adopting the communication mode of waking up first and then receiving, the normal service communication function can not be influenced in the upgrading process. For example, in the upgrading process, an important piece of application data needs to be sent to a certain node, and then at the starting time of the last basic service cycle, a single-point wake-up frame is sent, only the corresponding node is woken up, and then the application data is sent. After the single-point data transmission is completed, the upgrade package can be continuously transmitted in the next basic service period. And the issuing process of the upgrading data packet does not need node response.
After the Lora gateway finishes sending the upgrade package, sequentially calling the nodes in the network in a single-point awakening mode, and asking the nodes to inform whether the upgrade package is completely received; if the missing packet exists, the node sends a missing packet list to the Lora gateway, and the Lora gateway sequentially issues the missing upgrade packet to the node in a single-point upgrade mode according to the missing packet list;
if a certain node is called and the Lora gateway does not receive corresponding response information, the node is considered to be failed to be upgraded; the node receives all the upgrade packages and reports receiving completion state information when being called; then, entering a local upgrading flow, and restarting the local code after upgrading is finished;
if all nodes under the Lora gateway do not need to be upgraded completely, adopting a single-point upgrading mode:
the single-point upgrade is similar to the broadcast upgrade time sequence, except that the single-point upgrade does not use the broadcast wakeup time zone in the beacon period, and the Lora gateway issues a single-point wakeup frame and only wakes up the node to be upgraded to perform upgrade data transmission;
after the Lora gateway issues all the upgrade packages to the corresponding nodes, inquiring whether a package loss exists or not from the nodes: if the node checks that the node finds that the node has packet loss, reporting a packet loss list when being inquired by the Lora gateway; the Lora gateway retransmits the lost data packet to the node according to the packet loss list; the node receives the upgrade package completion and reports the receiving completion state information; and entering a local upgrading flow, and restarting the local code after upgrading operation is completed.
The above description is only for the purpose of describing the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and any variations and modifications made by those skilled in the art based on the above disclosure are intended to fall within the scope of the appended claims.
Claims (4)
1. A wireless upgrading method based on Lora technology is characterized by comprising the following steps:
step S1, the Lora gateway sends beacons regularly for network synchronization; all nodes under the Lora gateway monitor the broadcast frame; under the condition of no broadcast wakeup, each node monitors a downlink wakeup frame at the beginning of a corresponding basic service period according to a wakeup group distributed during network access;
if all nodes under the Lora gateway need to be upgraded, turning to the step S2 to adopt a broadcast upgrading mode; otherwise, turning to step S3 to adopt a single-point upgrade mode:
step S2, the Lora gateway issues the broadcast wake-up frame, then issues the broadcast command or the broadcast data frame, and issues the command for preparing upgrade when needing to upgrade;
step S21, after the node is awakened by the upgrading command, monitoring an upgrading awakening frame at the starting time of the basic service period; after receiving the upgrade awakening frame, opening a receiving window to receive upgrade data; the Lora gateway splits the upgrade file into n packets, and sequentially transmits the upgrade packets in the beacon period;
step S22, sequentially calling the nodes in the network by a single-point awakening mode, and asking the nodes to inform whether the upgrade package is completely received;
step S23, if a certain node is called and Lora gateway does not receive corresponding response information, the node is considered to be failed to upgrade; the node receives all the upgrade packages and reports receiving completion state information when being called;
step S3, the Lora gateway issues a single point wake-up frame to wake up only the node to be upgraded and transmit the upgrade data;
after the Lora gateway issues all the upgrade packages to the corresponding nodes, inquiring whether a package loss exists or not from the nodes: if the node checks that the node finds that the node has packet loss, reporting a packet loss list when being inquired by the Lora gateway; the Lora gateway retransmits the lost data packet to the node according to the packet loss list; the node receives the upgrade package completion and reports the receiving completion state information;
and step S4, entering a local upgrading process, and restarting the local code after finishing the upgrading operation.
2. The Lora technology-based wireless upgrade method according to claim 1, wherein the step S1 includes:
the beacon period is divided into beacon time zone, broadcast time zone, several basic service periods and reserved time zone; all nodes under the Lora gateway listen to the broadcast frame at the start of the broadcast time zone.
3. The Lora technology-based wireless upgrade method according to claim 1, wherein the Lora gateway sends broadcast wakeup frames at a start time of a broadcast time zone in a beacon period.
4. The Lora technology-based wireless upgrade method according to claim 1, wherein the step S22 further comprises: and if the missing packet exists, the node sends a missing packet list to the Lora gateway, and the Lora gateway sequentially issues the missing upgrade packet to the node in a single-point upgrade mode according to the missing packet list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010285968.9A CN111465039B (en) | 2020-04-13 | 2020-04-13 | Wireless upgrading method based on Lora technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010285968.9A CN111465039B (en) | 2020-04-13 | 2020-04-13 | Wireless upgrading method based on Lora technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111465039A CN111465039A (en) | 2020-07-28 |
CN111465039B true CN111465039B (en) | 2022-08-02 |
Family
ID=71680631
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010285968.9A Active CN111465039B (en) | 2020-04-13 | 2020-04-13 | Wireless upgrading method based on Lora technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111465039B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114448799B (en) * | 2022-01-30 | 2023-06-30 | 合肥美的电冰箱有限公司 | Remote upgrading method, device, main control board, household electrical appliance and storage medium |
CN116056068A (en) * | 2023-01-17 | 2023-05-02 | 深圳锐越微技术有限公司 | Network remote upgrading system and method |
CN116954643B (en) * | 2023-06-02 | 2024-04-05 | 深圳市华芯控股有限公司 | On-demand and multicast firmware upgrading method based on CAN bus ad hoc network system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051674A (en) * | 2012-11-23 | 2013-04-17 | 深圳市航天泰瑞捷电子有限公司 | Method and device for remotely upgrading wireless communication module as well as handheld unit (HHU) |
CN108173685A (en) * | 2017-12-26 | 2018-06-15 | 金卡智能集团股份有限公司 | Upgrade method, system and corresponding terminal device and server based on LoRa communications |
CN109450719A (en) * | 2018-12-29 | 2019-03-08 | 东信和平科技股份有限公司 | A kind of node upgrade method and system based on lorawan agreement |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR3047384B1 (en) * | 2016-01-28 | 2018-11-23 | Sagemcom Broadband Sas | METHOD FOR SYNCHRONIZING A GATEWAY IN A LORA NETWORK |
US10735261B2 (en) * | 2018-07-12 | 2020-08-04 | Qualcomm Incorporated | Smart upgrade of connected devices in a mesh network |
-
2020
- 2020-04-13 CN CN202010285968.9A patent/CN111465039B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051674A (en) * | 2012-11-23 | 2013-04-17 | 深圳市航天泰瑞捷电子有限公司 | Method and device for remotely upgrading wireless communication module as well as handheld unit (HHU) |
CN108173685A (en) * | 2017-12-26 | 2018-06-15 | 金卡智能集团股份有限公司 | Upgrade method, system and corresponding terminal device and server based on LoRa communications |
CN109450719A (en) * | 2018-12-29 | 2019-03-08 | 东信和平科技股份有限公司 | A kind of node upgrade method and system based on lorawan agreement |
Non-Patent Citations (1)
Title |
---|
基于LoRa的终端代码高效更新方法;秦军等;《信息通信》;20180915(第09期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111465039A (en) | 2020-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111465039B (en) | Wireless upgrading method based on Lora technology | |
EP2547166B1 (en) | Method for controlling discontinuous reception in mobile communication device and corresponding terminal | |
KR100936190B1 (en) | Scheduling data transmissions to improve power efficiency in a wireless network | |
AU2005287985B2 (en) | A method of supporting operation of sleep mode in a wideband radio access system | |
US8223680B2 (en) | Mesh network control using common designation wake-up | |
US8423657B2 (en) | Time slot allocation method for reducing consumption of energy in wireless sensor network | |
US11637585B2 (en) | Sleepy device operation in asynchronous channel hopping networks | |
CN109547578B (en) | Networking method for electronic price tag system | |
CN104703263A (en) | Method and apparatus for controlling discontinuous reception in a wireless communication system | |
CN104144481A (en) | Multimode beacon and multimode beacon control system and method | |
US7167732B2 (en) | Method for enhanced power saving on DCF based wireless networks | |
CN111132291B (en) | LPWAN synchronous awakening method based on LoRa | |
CN101472272A (en) | Control method, system and equipment for dormancy state | |
WO2015148065A1 (en) | Systems and methods for optimizing power consumption associated with processing group addressed messages | |
WO2017054092A1 (en) | Method and system for paging user equipment | |
US10306556B2 (en) | Access point notification of wireless stations about availability of data | |
CN109429300B (en) | Communication method and device of wireless local area network, access point equipment and site equipment | |
WO2022083418A1 (en) | Energy saving signal transmission method and apparatus | |
CN115604796A (en) | Data transmission method, system, device and storage medium | |
CN109121190B (en) | Communication method and device of wireless local area network, access point equipment and site equipment | |
CN100401702C (en) | Maintaining synchronization between a QoS access point and q0s stations in an ieee 802.11e wlan | |
CN109121191B (en) | Communication method and device of wireless local area network, access point equipment and site equipment | |
CN112738877B (en) | Wireless device synchronization method in connectionless state, wireless device, and storage medium | |
US9223744B1 (en) | Scheduled service periods in wireless mesh networks | |
CN113784232B (en) | Low-power-consumption communication method of intelligent water meter based on LoRa |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |