A method for fast addition of LoRa nodes
By storing configuration information in the NFC module of the LoRa node and automatically reading and writing it to the database using the NFC module, the problems of error-prone and labor-intensive addition of LoRa nodes are solved, enabling fast and efficient node addition.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2026-03-27
AI Technical Summary
Existing technologies are prone to errors and require a lot of work when adding LoRa nodes. Traditional methods require manual input of device information, which is cumbersome and costly.
By storing configuration information in the NFC module of the LoRa node and reading this information using the NFC module of the gateway or configuration terminal, quick addition is achieved. DeviceEUI or DeviceAddress is used as an index to automatically write the data to the gateway database.
It reduces the probability of errors caused by manual reading, significantly reduces workload, and improves the efficiency of adding LoRa nodes.
Smart Images

Figure CN115175153B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of LoRa, and in particular to a method for quickly adding LoRa nodes. BACKGROUND
[0002] At present, the method for adding LoRa nodes in the same industry is to add node parameters one by one on the gateway web page configuration page or to import a csv file of a specific format prepared in advance to realize batch addition; such a scheme has the following problems:
[0003] 1. prone to errors: whether adding by web or batch importing, manual reading and filling of device information is required, and once an error occurs, the device addition will fail, and it is troublesome to troubleshoot.
[0004] 2. complicated and laborious: when the number of added devices is large, the traditional method is not only prone to errors, but also complicated, and there is a large amount of manpower, which is high in cost. SUMMARY
[0005] In view of the above shortcomings of the prior art, the purpose of the present application is to provide a method and device for quickly adding LoRa nodes to eliminate the error probability caused by manual reading and greatly reduce the workload of people and improve efficiency.
[0006] To achieve the above purpose, the present application provides a method for quickly adding LoRa nodes, comprising:
[0007] writing node configuration information into the NFC module of the node, the node configuration information comprising: node name, network key information, node communication parameters and cloud information connected by the node;
[0008] powering on the gateway, and the NFC module of the gateway works in the card reader mode;
[0009] placing the node close to the gateway, and the gateway sequentially reads the node configuration information in the NFC module of each node, and writes the node configuration information into the database of the gateway with DeviceEUI in the node configuration information as the index.
[0010] The present application also provides another scheme of the method for quickly adding LoRa nodes, comprising:
[0011] writing node configuration information into the NFC module of the node, the node configuration information comprising: node name, network key information, node communication parameters and cloud information connected by the node;
[0012] setting the NFC module of the configuration terminal to the card reader mode, and sequentially approaching each node and reading the node configuration information;
[0013] After collecting the node configuration information, the configuration terminal is close to the gateway, and all the collected node configuration information is written into the NFC module of the gateway with DeviceEUI or DeviceAddress as the index.
[0014] After the gateway is powered on, the node configuration information stored in the NFC module of the gateway is written into the database of the gateway.
[0015] In the above scheme, further, if multiple pieces of configuration information with the same DeviceEUI or the same DeviceAddress are read, the last reading is used as the reference to overwrite the configuration information corresponding to the original DeviceEUI or DeviceAddress.
[0016] Further, the onboarding key information includes DeviceEUI and ApplicationKey, or DeviceAddress, ApplicationSessionKey, and NetworkSessionKey.
[0017] Further, the node communication parameters include: onboarding type (OTAA onboarding / ABP onboarding), maximum transmission power, RX1 window receiving rate offset, RX2 window rate, RX2 window receiving frequency, and ClassB_Pingslot period, ClassB_Pingslot rate, and ClassB_Pingslot frequency.
[0018] Further, the cloud information to which the node is connected includes: the connection mode of the node data sent to the cloud, the cloud address, and the payload encoding and decoding mode; the connection mode includes: MQTT, HTTP, and HTTPS.
[0019] The present application has the following beneficial effects:
[0020] The method for quickly adding LoRa nodes of the present application stores node configuration information in the NFC module as a medium, so that the gateway can access the NFC of the node to obtain the node configuration information stored in the NFC module, thereby realizing the quick addition of LoRa nodes, which can eliminate the error probability caused by manual reading and greatly reduce the workload of people, thereby improving the efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0021] Figure 1 is an embodiment of the method for quickly adding LoRa nodes of the present application;
[0022] Figure 2 is another embodiment of the method for quickly adding LoRa nodes of the present application. DETAILED DESCRIPTION
[0023] To further illustrate the various embodiments, the present invention provides accompanying drawings. These drawings are part of the disclosure of the present invention, primarily used to illustrate the embodiments, and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these drawings, those skilled in the art should be able to understand other possible implementations and the advantages of the present invention.
[0024] The present invention will now be further described in conjunction with the accompanying drawings and specific embodiments.
[0025] Example 1
[0026] like Figure 1 As shown, this invention provides a method for quickly adding LoRa nodes, comprising:
[0027] (1) Write the node configuration information into the node's NFC module. In this embodiment, the node is a LoRa node, and the primary node configuration information includes: node name, network access key information, node communication parameters, and cloud information to which the node is connected. Preferably, the network access key information includes: DeviceEUI and ApplicationKey (if it is OTAA network access) or DeviceAddress, ApplicationSessionKey, and NetworkSessionKey (if it is ABP network access). The node communication parameters include: network access type (OTAA network access / ABP network access), maximum transmit power, RX1 window receive rate offset, RX2 window rate, RX2 window receive frequency, and ClassB_Pingslot period, ClassB_Pingslot rate, ClassB_Pingslot frequency, etc. The cloud information to which the node is connected includes: the connection method for sending node data to the cloud (MQTT (Message Queuing Telemetry Transport Protocol) / HTTP / HTTPS, etc.), cloud address, payload encoding / decoding method, etc.
[0028] (2) Add a LoRa node:
[0029] Power on the gateway and set its NFC module to reader mode.
[0030] The node can be powered on or off, and the node's NFC module can operate in reader mode or card emulation mode.
[0031] Bring the node close to the gateway, and the gateway will sequentially read the node configuration information from the NFC module of each node. Using the DeviceEUI in the node configuration information as an index, the gateway will write the node configuration information into its database. This completes the rapid addition of LoRa nodes under the gateway.
[0032] The gateway can access the state information of the relevant nodes in operation through the node configuration information in the database, actively read or receive the running data of the subordinate nodes, or perform new configuration operation on the subordinate nodes.
[0033] When reading the node configuration information, if multiple pieces of node configuration information with the same DeviceEUI or the same DeviceAddress are read, the last reading is used as the reference to overwrite the node configuration information corresponding to the original DeviceEUI.
[0034] Embodiment 2
[0035] As shown in Figure 2 Another scheme of the method for quickly adding LoRa nodes is provided, which includes the following steps:
[0036] (1) Write the node configuration information into the NFC module of the node. The primary node configuration information includes the node name, the network access key information, the node communication parameters, the cloud information to which the node is connected, and the like, as in Embodiment 1.
[0037] Use a smart terminal with NFC function such as a mobile phone as the configuration terminal, install a dedicated APP configuration software such as Milesight Toolbox on the configuration terminal, and use the configuration tool to conveniently perform the configuration operation, set the NFC module of the configuration terminal to the card reader mode, store and manage the node configuration information, and complete the reading or writing of the node configuration information.
[0038] (2) Collect the node configuration information through the configuration terminal.
[0039] Set the NFC module of the configuration terminal to the card reader mode, and sequentially approach the nodes and read the node configuration information.
[0040] (3) Write the collected node configuration information into the gateway.
[0041] After the collection and summary of the node configuration information are completed, approach the gateway with the configuration terminal, and write all the summarized node configuration information with the DeviceEUI or DeviceAddress information as the index into the NFC module of the gateway.
[0042] After the gateway is powered on, write the node configuration information stored in the NFC module of the gateway into the database, thereby completing the quick addition of the LoRa nodes under the gateway.
[0043] In the process of adding the LoRa nodes, the gateway and the nodes can be powered on or not. When not powered on, the gateway and the nodes work in the card simulation mode; when powered on, the NFC modules of the gateway and the nodes can work in the card reader mode or the card simulation mode.
[0044] Similarly, when reading the configuration information, if multiple pieces of configuration information with the same DeviceEUI are read, the last reading is used to overwrite the configuration information corresponding to the original DeviceEUI.
[0045] In the above embodiments, after the gateway adds the configuration information of each node, the gateway can query and manage each node in the startup state.
[0046] In Embodiment 1 and Embodiment 2, the LoRa gateway and the LoRa node are both integrated with an NFC module. The NFC module accepts NFC read-write control of an internal controller of the gateway / node or external equipment, thereby providing a transmission channel for configuration information. The NFC module is embedded with a non-volatile memory, and the stored data can be long-term saved in a power-off state.
[0047] When the LoRa gateway is powered on, the node configuration information can include some specific information of the node, such as running parameter information and alarm information, in addition to the above key information such as the network key information, the node communication parameter, and the cloud information to which the node is connected.
[0048] During configuration, the node is usually in a card simulation mode without power supply. At this time, the NFC module of the node is powered by electromagnetic waves from the gateway or the smart terminal, so that the NFC module enters a working state.
[0049] Although the present application is specifically shown and described in connection with preferred embodiments, those skilled in the art should understand that various changes in form and details can be made to the present application without departing from the spirit and scope of the present application as defined in the appended claims, and all such changes are intended to be within the protection scope of the present application.
Claims
1. A method for quickly adding LoRa nodes, characterized in that, include: The node configuration information is written into the node's NFC module, which operates in card emulation mode. The node configuration information includes: node name, network access key information, node communication parameters, and cloud information that the node is connected to. When the gateway is not powered on, the gateway's NFC module operates in card emulation mode; When the gateway is powered on, its NFC module operates in reader mode. When an unpowered node is brought close to the gateway, the gateway's NFC module generates a magnetic field to power the node's NFC module. The gateway then reads the node configuration information from the NFC module of each node in sequence, and writes the node configuration information into the gateway's database using DeviceEUI as an index.
2. The method for quickly adding LoRa nodes as described in claim 1, characterized in that, The network access key information includes: DeviceEUI and ApplicationKey, or DeviceAddress, ApplicationSessionKey and NetworkSessionKey.
3. The method for quickly adding LoRa nodes as described in claim 1, characterized in that, The node communication parameters include: network access type, maximum transmit power, RX1 window receive rate offset, RX2 window rate, RX2 window receive frequency, ClassB_Pingslot period, ClassB_Pingslot rate, and ClassB_Pingslot frequency.
4. The method for quickly adding LoRa nodes as described in claim 1, characterized in that, The cloud information for node connection includes: the connection method for node data to be sent to the cloud, the cloud address, and the payload encoding / decoding method; the connection method includes: MQTT, HTTP, and HTTPS.
5. The method for quickly adding LoRa nodes as described in claim 1, characterized in that, If multiple identical node configuration information entries for DeviceEUI are read, the last read entry will be used, overwriting the original node configuration information for DeviceEUI.
6. A method for quickly adding LoRa nodes, characterized in that, include: The node configuration information is written into the node's NFC module, which operates in card emulation mode. The node configuration information includes: node name, network access key information, node communication parameters, and cloud information that the node is connected to. The NFC module of the configuration terminal is set to card reader mode and brought close to each unpowered node in turn. The NFC module of the configuration terminal generates a magnetic field to power the NFC module of the node and reads the node configuration information. After collecting and aggregating the node configuration information, the configuration terminal is brought close to the gateway that is not powered on. When the gateway is not powered on, the gateway's NFC module works in card emulation mode. The NFC module of the configuration terminal generates a magnetic field to power the gateway's NFC module, and writes all the aggregated node configuration information into the gateway's NFC module with DeviceEUI or DeviceAddress as the index. After powering on, the gateway writes the node configuration information stored in the gateway's NFC module into the gateway's database.
7. The method for quickly adding LoRa nodes as described in claim 6, characterized in that, If multiple node configuration information entries with the same DeviceEUI or DeviceAddress are read, the last read entry will be used, overwriting the original node configuration information corresponding to the original DeviceEUI or DeviceAddress.
8. The method for quickly adding LoRa nodes as described in claim 6, characterized in that, The network access key information includes: DeviceEUI and ApplicationKey, or DeviceAddress, ApplicationSessionKey and NetworkSessionKey.
9. The method for quickly adding LoRa nodes as described in claim 6, characterized in that, The node communication parameters include: network access type, maximum transmit power, RX1 window receive rate offset, RX2 window rate, RX2 window receive frequency, ClassB_Pingslot period, ClassB_Pingslot rate, and ClassB_Pingslot frequency.
10. The method for quickly adding LoRa nodes as described in claim 6, characterized in that, The cloud information for node connection includes: the connection method for node data to be sent to the cloud, the cloud address, and the payload encoding / decoding method; the connection method includes: MQTT, HTTP, and HTTPS.
Citation Information
Patent Citations
ZigBee gateway equipment batch network-accessing method, device and equipment based on NFC
CN109548116A