CN111836277A - Lora communication method, Lora node and Lora communication system - Google Patents

Lora communication method, Lora node and Lora communication system Download PDF

Info

Publication number
CN111836277A
CN111836277A CN201910681768.2A CN201910681768A CN111836277A CN 111836277 A CN111836277 A CN 111836277A CN 201910681768 A CN201910681768 A CN 201910681768A CN 111836277 A CN111836277 A CN 111836277A
Authority
CN
China
Prior art keywords
lora
node
time
gateway
real
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.)
Granted
Application number
CN201910681768.2A
Other languages
Chinese (zh)
Other versions
CN111836277B (en
Inventor
黎强
曹春恒
王雪梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Suowei Technology Co ltd
Original Assignee
Wuhan Suowei Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Suowei Technology Co ltd filed Critical Wuhan Suowei Technology Co ltd
Publication of CN111836277A publication Critical patent/CN111836277A/en
Application granted granted Critical
Publication of CN111836277B publication Critical patent/CN111836277B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0203Power saving arrangements in the radio access network or backbone network of wireless communication networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a Lora communication method, a Lora node and a Lora communication system, wherein the method comprises the following steps: the method comprises the steps that a Lora node needing real-time control obtains configuration information issued by a Lora gateway, and time synchronization is carried out on the configuration information and the Lora gateway, wherein the configuration information comprises a timestamp, a time window corresponding to data uploaded by the Lora node and a transmission cycle; switching the communication frequency of the Lora node to the Lora gateway receiving frequency in the corresponding time window of the Lora node needing real-time control, and uploading the acquired data to the Lora gateway; after the acquired data are successfully uploaded to the Lora gateway by the Lora nodes needing real-time control, the communication frequency of the Lora nodes is switched to the Lora gateway instruction sending frequency, and the control instructions issued by the Lora gateway are monitored in real time; and the receiving frequency of the Lora gateway is different from the instruction sending frequency of the Lora gateway. The invention can solve the problem that real-time control cannot be realized in Lora communication.

Description

Lora communication method, Lora node and Lora communication system
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a Lora communication method, a Lora node and a Lora communication system.
Background
The field of internet of things has a plurality of wireless communication modes, and Lora (Long Range Radio) is developed vigorously due to the characteristics of low power consumption, Long distance and strong anti-interference capability. The LoraWan protocol widely used in LORA communication is designed for operators, and the system is heavy, because most people cannot roam and charge, and only upload and download wireless data. For lightweight applications, such as timing acquisition and reporting of data of sensors, a simpler system is needed. The LoraWan protocol also has a disadvantage in that it cannot be controlled in real time. In Class a in the LoraWAN protocol, downlink interaction is performed through two time slots after data are actively uploaded, once the two time slots are missed, a next uplink time window needs to be waited, and actions such as valve control and the like which need to be performed in real time are not mentioned.
Disclosure of Invention
The invention provides a Lora communication method, a Lora node and a Lora communication system, which can solve the problem that real-time control cannot be realized in Lora communication.
The invention provides a Lora communication method, which comprises the following steps:
the method comprises the steps that a Lora node needing real-time control obtains configuration information issued by a Lora gateway, and time synchronization is carried out on the configuration information and the Lora gateway, wherein the configuration information comprises a timestamp, a time window corresponding to data uploaded by the Lora node and a transmission cycle;
the communication frequency of the Lora nodes needing real-time control is switched to the receive frequency of the Lora gateway in the corresponding time window of the Lora nodes, and the collected data are uploaded to the Lora gateway;
after the Lora node needing real-time control successfully uploads the acquired data to the Lora gateway, switching the communication frequency of the Lora node to the Lora gateway instruction sending frequency, and monitoring the control instruction issued by the Lora gateway in real time;
and the receiving frequency of the Lora gateway is different from the sending frequency of the Lora gateway instruction.
Preferably, the method further comprises the following steps:
the non-real-time control Lora node acquires the configuration information issued by the Lora gateway and synchronizes time with the Lora gateway;
the non-real-time control Lora node uploads the acquired data to the Lora gateway in a corresponding time window;
and controlling the non-real-time controlled Lora node to be kept in a sleep state within a set time period, wherein the set time period is positioned outside a time window corresponding to the non-real-time controlled Lora node.
Preferably, the method further comprises the following steps:
when the control instruction which comes from the upper computer or the cloud and is used for controlling the non-real-time controlled Lora node is cached in the Lora gateway, the non-real-time controlled Lora node receives the control instruction issued by the Lora gateway in the time window corresponding to the Lora node.
Preferably, the method further comprises the following steps:
after each Lora node uploads data to the Lora gateway, if a successful data receiving response returned by the Lora gateway is not received, the acquired data are uploaded to the Lora gateway again in a time window corresponding to the Lora node;
when each Lora node uploads the acquired data to the Lora gateway again and does not receive a successful data receiving response returned by the Lora gateway after a set number of times, sending a login request to the Lora gateway to obtain the configuration information issued by the Lora gateway again;
and after each Lora node executes the control instruction issued by the Lora gateway, sending a response of instruction execution completion to the Lora gateway so as to inform the Lora gateway to delete the executed control instruction.
Preferably, the method further comprises the following steps:
each Lora node receives node transmission power data issued by the Lora gateway and adjusts the transmission power of the node according to the node transmission power data; and the node transmitting power data is obtained by calculation according to the signal intensity and the signal-to-noise ratio transmitted by the node.
Preferably, the method further comprises the following steps:
and the Lora gateway records the time corresponding to the time synchronization between the Lora gateway and each Lora node, and after the set time length from the time, the Lora gateway re-issues a clock synchronization instruction to each Lora node so as to inform each Lora node of synchronizing the time with the Lora gateway again.
The present invention also provides a Lora node, including:
the system comprises a configuration module, a time synchronization module and a data transmission module, wherein the configuration module is used for acquiring configuration information issued by a Lora gateway and synchronizing time with the Lora gateway, and the configuration information comprises a timestamp, a time window corresponding to data uploaded by a Lora node and a transmission cycle;
the data uploading module is used for switching the communication frequency of the time window corresponding to the Lora node to the receiving frequency of the Lora gateway and uploading the acquired data to the Lora gateway;
the instruction interception module is used for switching the communication frequency of the Lora node to the Lora gateway instruction sending frequency after the Lora node successfully uploads the acquired data to the Lora gateway, and intercepting a control instruction sent by the Lora gateway in real time;
and the receiving frequency of the Lora gateway is different from the sending frequency of the Lora gateway instruction.
The present invention also provides a Lora communication system, including: the system comprises a Lora gateway and at least one Lora node needing real-time control; the Lora node needing real-time control comprises:
the first configuration module is used for acquiring configuration information issued by the Lora gateway and synchronizing time with the Lora gateway, wherein the configuration information comprises a timestamp, a time window corresponding to data uploaded by the Lora node and a transmission period;
the first data uploading module is used for switching the communication frequency of the Lora nodes needing real-time control to the receive frequency of the Lora gateway in a time window corresponding to the Lora nodes needing real-time control and uploading collected data to the Lora gateway;
the first instruction interception module is used for switching the communication frequency of the Lora nodes needing real-time control to the Lora gateway instruction sending frequency and intercepting the control instruction issued by the Lora gateway in real time after the Lora nodes needing real-time control successfully upload the acquired data to the Lora gateway;
and the receiving frequency of the Lora gateway is different from the sending frequency of the Lora gateway instruction.
Preferably, the system also comprises at least one non-real-time control Lora node; the Lora node of non-real-time control includes:
the second configuration module is used for acquiring the configuration information issued by the Lora gateway and synchronizing time with the Lora gateway;
the second data uploading module is used for acquiring data in the data acquisition time and uploading the acquired data to the Lora gateway in a time window corresponding to the non-real-time control Lora node;
and the sleep control module is used for controlling the non-real-time controlled Lora node to be kept in a sleep state within a set time period, and the set time period is positioned outside a time window corresponding to the non-real-time controlled Lora node.
Preferably, the non-real-time controlled Lora node further includes:
and the second instruction interception module is used for caching a control instruction which comes from an upper computer or a cloud and is used for controlling the non-real-time controlled Lora node in the Lora gateway, and the non-real-time controlled Lora node receives the control instruction issued by the Lora gateway in a time window corresponding to the Lora node.
In the Lora communication method, the Lora node and the Lora communication system, the Lora node uploads the collected data to the Lora gateway and then switches the communication frequency to the Lora gateway instruction sending frequency, so that the control instruction issued by the Lora gateway can be monitored in real time and executed, and real-time control of the Lora gateway is achieved.
Drawings
FIG. 1 is a flow chart of a Lora communication method provided by the present invention;
fig. 2 is a flowchart of a communication method of Lora nodes that need to be controlled in real time according to an embodiment of the present invention;
fig. 3 is a flowchart of a communication method of a Lora node controlled in non-real time according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of the calculation of the time window provided by the present invention;
FIG. 5 is a functional block diagram of a Lora communication system provided by the present invention;
fig. 6 is a schematic diagram of the Lora network provided by the present invention during operation.
Detailed Description
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention and do not limit the application scope of the present invention, and it is obvious for a person skilled in the art to apply the present invention to other similar scenes according to the drawings without creative efforts.
As used in this specification and the appended claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to be inclusive in the plural, unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements. The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment". Relevant definitions for other terms will be given in the following description.
The invention provides a Lora communication method, as shown in fig. 1, comprising the following steps:
the method comprises the steps that a Lora node needing real-time control obtains configuration information issued by a Lora gateway, and time synchronization is carried out on the configuration information and the Lora gateway, wherein the configuration information comprises a timestamp, a time window corresponding to data uploaded by the Lora node and a transmission cycle; here, the Lora node that needs to be controlled in real time may initiate a login request to the Lora gateway, and the Lora gateway issues the configuration information to the Lora node according to the login request.
And the communication frequency of the Lora node needing real-time control is switched to the receiving frequency of the Lora gateway in the corresponding time window of the Lora node, and the acquired data is uploaded to the Lora gateway.
After the data collected by the Lora nodes needing real-time control are successfully uploaded to the Lora gateway, the communication frequency of the Lora nodes is switched to the Lora gateway instruction sending frequency, and the control instructions issued by the Lora gateway are monitored in real time.
Wherein, the Lora gateway receiving frequency is different with Lora gateway instruction sending frequency, and foretell Lora gateway is the single channel Lora gateway to this Lora gateway still is connected with upper computer terminal or high in the clouds.
The Lora communication method further includes the steps of:
the non-real-time control Lora node acquires configuration information issued by the Lora gateway and synchronizes time with the Lora gateway;
the non-real-time control Lora node acquires data in data acquisition time and uploads the acquired data to the Lora gateway in a corresponding time window;
and controlling the non-real-time controlled Lora node to be kept in a sleep state within a set time period, wherein the set time period is positioned outside a time window corresponding to the non-real-time controlled Lora node.
Generally, the Lora nodes can be divided into Lora nodes needing real-time control and Lora nodes needing non-real-time control, in another embodiment, a flow of a communication method of the Lora nodes needing real-time control is shown in fig. 2, and a flow of a communication method of the Lora nodes needing non-real-time control is shown in fig. 3; all the Lora nodes needing real-time control start to acquire data when reaching the whole-point acquisition time, and start to upload the data in a time window, but the time for receiving and executing the instructions is not limited; all non-real-time controlled Lora nodes start to collect data at the initial moment of a transmission cycle, upload the data in a time window, and keep in a sleep state at other times.
The time window corresponding to the data uploaded by the Lora node may be obtained by calculation according to the total number of the Lora nodes and the transmission period, the specific calculation method may refer to fig. 4, and the maximum number of nodes in fig. 4 is also the total number of the Lora nodes.
The Lora communication method further includes the following steps:
when the control instruction which comes from the upper computer or the cloud and is used for controlling the non-real-time controlled Lora node is cached in the Lora gateway, the non-real-time controlled Lora node receives the control instruction issued by the Lora gateway in the time window corresponding to the Lora node, and the control instruction is executed after being received.
The Lora communication method further includes the following steps:
after each Lora node uploads data to the Lora gateway, if a data receiving success response returned by the Lora gateway is not received, the acquired data are uploaded to the Lora gateway again in a time window corresponding to the Lora node; after each Lora node uploads data to the Lora gateway, if a data receiving success response returned by the Lora gateway is received, the Lora node is considered to successfully upload the data to the Lora gateway;
when each Lora node uploads the acquired data to the Lora gateway again and does not receive a successful data receiving response returned by the Lora gateway after a set number of times, sending a login request to the Lora gateway to obtain the configuration information issued by the Lora gateway again;
and after each Lora node executes the control instruction issued by the Lora gateway, sending a response of instruction execution completion to the Lora gateway so as to inform the Lora gateway to delete the executed control instruction.
The Lora communication method further includes the following steps:
each Lora node receives node transmission power data issued by the Lora gateway and adjusts the transmission power of the node according to the node transmission power data; and the node transmitting power data is obtained by calculation according to the signal intensity and the signal-to-noise ratio transmitted by the node.
And the Lora gateway also records the time corresponding to the time synchronization between the Lora gateway and each Lora node, and after the set time length from the time, the clock synchronization instruction is issued to each Lora node again so as to inform each Lora node of the time synchronization with the Lora gateway again.
The present invention also provides a Lora node, which includes: the device comprises a configuration module, a data uploading module and an instruction interception module.
The configuration module is used for acquiring configuration information issued by the Lora gateway, synchronizing time with the Lora gateway, wherein the configuration information comprises a timestamp, a time window corresponding to data uploaded by the Lora node and a transmission cycle.
And the data uploading module is used for switching the communication frequency of the time window corresponding to the Lora node to the receiving frequency of the Lora gateway and uploading the acquired data to the Lora gateway.
The instruction interception module is used for switching the communication frequency of the Lora node to the instruction sending frequency of the Lora gateway after the collected data are successfully uploaded to the Lora gateway by the Lora node, and intercepting the control instruction issued by the Lora gateway in real time.
And the receiving frequency of the Lora gateway is different from the instruction sending frequency of the Lora gateway.
The present invention also provides a Lora communication system corresponding to the above communication method, where the communication system includes the following components as shown in fig. 5: the system comprises a Lora gateway and at least one Lora node which needs to be controlled in real time, wherein the Lora gateway does not use an SX1301Lora gateway chip and adopts an Sx1276/1278 single-channel Lora chip. The gateway has interfaces such as 4G/WIFI/internet access and the like, and has the capability of accessing the internet. The Lora gateway is responsible for collecting data of the Lora nodes, uploading the data to a cloud end or an upper computer, receiving control instructions of the cloud end or the upper computer and sending the control instructions to the designated Lora nodes.
Wherein, the Lora node that needs real-time control includes: the system comprises a first configuration module, a first data uploading module and a first instruction interception module.
The first configuration module is used for acquiring configuration information issued by the Lora gateway, and synchronizing time with the Lora gateway, wherein the configuration information comprises a timestamp, a time window corresponding to data uploaded by the Lora node and a transmission period.
The first data uploading module is used for switching the communication frequency of the Lora nodes needing real-time control to the Lora gateway receiving frequency in the time window corresponding to the Lora nodes needing real-time control, and uploading collected data to the Lora gateway.
The first instruction interception module is used for switching the communication frequency of the Lora nodes needing real-time control to the Lora gateway instruction sending frequency after the collected data are successfully uploaded to the Lora gateway by the Lora nodes needing real-time control, intercepting the control instruction issued by the Lora gateway in real time, and executing the instruction after receiving the control instruction.
And the receiving frequency of the Lora gateway is different from the instruction sending frequency of the Lora gateway.
The Lora node needing real-time control adopts external power supply power, and is provided with interfaces such as a relay, 485, IIC and the like, and is externally connected with a sensor and various devices. This Lora node has two effects, both need the data of periodic acquisition sensor or equipment and upload, also need to respond to the instruction of host computer or high in the clouds immediately, makes movements such as switchgear, equipment mode switch.
The Lora communication system further comprises at least one non-real-time controlled Lora node as shown in fig. 5; wherein, non-real time control's Lora node includes: the system comprises a second configuration module, a second data uploading module and a sleep control module.
The second configuration module is used for acquiring the configuration information issued by the Lora gateway and synchronizing time with the Lora gateway.
And the second data uploading module is used for acquiring data in data acquisition time and uploading the acquired data to the Lora gateway in a time window corresponding to the non-real-time control Lora node.
The sleep control module is used for controlling the non-real-time controlled Lora node to keep in a sleep state within a set time period, and the set time period is positioned outside a time window corresponding to the non-real-time controlled Lora node.
The non-real-time control Lora node is also a low-power-consumption Lora node, the low-power-consumption Lora node is powered by a battery, adopts an STM8 low-power-consumption chip and is provided with I2C and RS485 interfaces, and the low-power-consumption Lora node is used for collecting environmental data such as temperature, pressure, temperature and humidity and other sensing data. The main requirements are that the time points acquired by each node are synchronous, and the data are periodically acquired and uploaded at low frequency (for example, each time of 3 min).
In order to prolong the battery service time of the low-power-consumption Lora node, the power consumption needs to be reduced as much as possible. The power consumption of the low-power consumption Lora node mainly includes MCU (micro controller Unit) power consumption, Lora chip power consumption, and power consumption of other peripherals. In order to reduce power consumption, the MCU and the Lora chip are in a sleep mode for a long time and wake up to work at regular time. The low-power consumption Lora node is externally connected with a low-power consumption sensor, the sensor is powered by IO (Input/Output) of the MCU, and the power supply of the sensor is turned off when the MCU sleeps, so that the electric quantity is further saved.
As shown in fig. 6, when the Lora network operates, node configuration and node login are required, and then the node performs operations of uploading data and executing instructions.
Node configuration, namely configuring low-power-consumption Lora nodes and Lora nodes needing real-time control in a system through an upper computer terminal, wherein each piece of configuration information comprises a node ID (unique in the system), a node type (low-power-consumption nodes or real-time control nodes), a sensor type (temperature, pressure and equipment) and additional parameters;
the node logs in, namely the Lora node sends a login request to the Lora gateway, if the node is an unconfigured node, the Lora gateway considers that the node is an illegal node, and the Lora gateway does not respond; if the node is configured, the Lora gateway responds to the node request and issues other configuration information of the node to the node; after the nodes are successfully logged in, data acquisition and uploading are carried out periodically, and for the real-time control nodes, control instructions of an upper computer or a cloud terminal are required to be executed.
When logging in the Lora node, the Lora gateway allocates a time window for the node and issues a timestamp and the time window; the Lora node adjusts the local time according to the timestamp to realize clock synchronization; and calculating sleep time according to the time window and sleeping, so that all the nodes are awakened at the same time to acquire data, and are awakened to upload the data when the time window is independent.
The Lora node (including real-time responding Lora node and non-real-time responding Lora node) also includes a transmission power adjusting module; the transmission power adjusting module is also used for adjusting the transmission power of the Lora node according to the node transmission power data after receiving the node transmission power data issued by the Lora gateway; and the node transmitting power data is obtained by calculation according to the signal intensity and the signal-to-noise ratio transmitted by the node.
The power consumption of each time of sending of the Lora node can be reduced by adjusting the transmitting power of the Lora node, when the node logs in, the Lora node transmits with the maximum power, the Lora gateway records the signal strength and the signal-to-noise ratio of the Lora node, the most suitable transmitting power of the Lora node is calculated according to the signal strength and the signal-to-noise ratio of the preset times, when the Lora node uploads data next time, configuration information is sent to the Lora node through the Lora gateway, new transmitting power is sent to the Lora node, and the Lora node adjusts the transmitting power; correspondingly, if the adjusted signal strength is detected to be at the receiving limit of the Lora gateway or the condition of occasional communication failure exists, an instruction is issued to enable the Lora node to increase the transmitting power.
All the communication parameters of the Lora nodes are the same as those of the Lora gateway, and in order to prevent communication conflict between the nodes, the message communication is carried out in a time division multiplexing mode. The low-power-consumption Lora nodes adopt a time division multiplexing mode to carry out message communication, and the Lora gateways respectively communicate with different low-power-consumption Lora nodes in different time windows; and the Lora gateway divides each transmission cycle into a plurality of corresponding time windows according to the number of the maximum low-power Lora nodes.
The first data uploading module and/or the second data uploading module are/is further used for uploading the acquired data to the Lora gateway again in a time window corresponding to the Lora node if a successful data receiving response returned by the Lora gateway is not received after the Lora node uploads the data to the Lora gateway.
And the first configuration module and/or the second configuration module are further used for sending a login request to the Lora gateway to reacquire the configuration information issued by the Lora gateway when the acquired data is uploaded to the Lora gateway again by each Lora node and a response of successful data reception returned by the Lora gateway is not received after the data is set for times.
After the low-power-consumption Lora node uploads the data in each time window, the Lora gateway issues an OK response (namely a successful data receiving response) to the low-power-consumption Lora node; if the data received by the Lora gateway is wrong, no response is made, and if the low-power Lora node does not receive the OK response issued by the Lora, retransmission is made; and if the effective data of the node is not received by the Lora gateway through two transmission periods, the low-power-consumption Lora node is considered to be disconnected, and the upper computer terminal is informed.
In order to reduce the power consumption of the low-power-consumption Lora nodes, the sending time and the receiving time of the Lora nodes are required to be reduced, and the parameters of the Lora nodes are adjusted to reduce the power consumption. In order to reduce the sending time and the receiving time of the Lora node, communication messages between the gateway and the node are simplified. The communication messages of the gateway and the nodes are as follows:
NodeId(1) Cmd(1) Payload(n) Crc(1)
NodeId: a node ID, which uniquely represents a node in the network, 1 byte;
cmd: the type of data;
PayLoad: payload, data collected by the sensor;
crc Cyclic redundancy check to ensure data accuracy.
0 OK, Normal response
1 Data, Data upload
2 Config, configuration issue
3 Sync, time synchronization
4 Rebot, node restart
5 Disable, node Disable
6 Action, data instruction
For the security of submitting data, each Lora node is distributed with a different secret key and is simply encrypted.
Time synchronization is particularly important in the networks described herein. And after the Lora node logs in to obtain the timestamp, the Lora node and the gateway are synchronized in time. Due to the problem of crystal oscillator temperature drift, the time between the node and the gateway and between the node and the gateway must deviate along with the time. The gateway records the time corresponding to the time synchronization of each time and the node, and when the current time synchronization exceeds a certain time, the node data is uploaded and a clock synchronization instruction is issued to the node data, and the time is resynchronized.
The non-real-time controlled Lora node further comprises: and the second instruction interception module.
And the second instruction interception module is used for caching a control instruction which comes from an upper computer or a cloud and is used for controlling the non-real-time controlled Lora node in the Lora gateway, and the non-real-time controlled Lora node receives the control instruction issued by the Lora gateway in a time window corresponding to the Lora node.
The first instruction interception module and/or the second instruction interception module are further configured to send a response of instruction execution completion to the Lora gateway after each Lora node executes the control instruction issued by the Lora gateway.
For the low-power-consumption Lora node, the instruction of the upper computer or the cloud end does not need to be responded in real time. When receiving an instruction sent by an upper computer terminal, the Lora gateway does not send the instruction to the low-power-consumption Lora node immediately, but caches the instruction, and sends the instruction serving as a response to the corresponding low-power-consumption Lora node when the low-power-consumption Lora node uploads data; the low-power-consumption Lora node receives the instruction and then executes the instruction, and replies an OK response (namely a response for completing the instruction execution) to the Lora gateway; and after receiving the response, the Lora gateway considers that the instruction is successfully executed and clears the cache, otherwise, the Lora gateway continues to issue the instruction when the next time window of the low-power Lora node uploads data.
For the real-time control Lora node needing real-time response, the power consumption is not needed to be considered, and the Lora node can sleep for a long time due to the fact that the power is supplied by the external power supply. And after the real-time control Lora node acquires the configuration information, time synchronization is firstly carried out, then the real-time control Lora node is switched to a receiving mode, and an instruction issued by a gateway is intercepted. In order to avoid that the system is busy for a long time when receiving communication messages of the gateway and other nodes, the real-time control Lora node adopts different frequencies from normal data uploading and issuing during the instruction interception. For the gateway, when receiving an instruction sent by an upper computer or a cloud, the frequency of the Lora node is switched and controlled in real time, and then the instruction is directly sent to the corresponding node. And after the real-time control Lora node receives the instruction and successfully executes the action, replying OK to the gateway. And if the gateway does not receive the reply, retransmitting until the Lora node is controlled to reply in real time or the maximum retransmission times is reached.
Similar to the low-power-consumption Lora node, the real-time control Lora node also performs data acquisition at the whole point and uploads data in a time window. The difference is that at the beginning of the time window, the real-time node needs to switch the frequency to the frequency received by the gateway, that is, the frequency uploaded by the normal data, and after the data is uploaded successfully, the frequency is switched back to the frequency receiving the instruction (that is, the frequency sent by the Lora gateway instruction), and the instruction of the gateway is continuously monitored. Thus, the requirements of timing data uploading and real-time response are met.
In summary, according to the Lora communication method, the Lora node and the Lora communication system provided by the present invention, after the Lora node uploads the collected data to the Lora gateway, the communication frequency is switched to the Lora gateway instruction sending frequency, so that the instruction issued by the Lora gateway can be monitored in real time, and the real-time control of the Lora gateway is realized.
Furthermore, after the non-real-time control Lora node is awakened in the corresponding time window, the acquired data are uploaded to the Lora gateway and kept in a sleep state in a set time period outside the time window, so that power consumption is reduced, and an energy-saving effect is achieved.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A Lora communication method, comprising the steps of:
the method comprises the steps that a Lora node needing real-time control obtains configuration information issued by a Lora gateway, and time synchronization is carried out on the configuration information and the Lora gateway, wherein the configuration information comprises a timestamp, a time window corresponding to data uploaded by the Lora node and a transmission cycle;
the communication frequency of the Lora nodes needing real-time control is switched to the receive frequency of the Lora gateway in the corresponding time window of the Lora nodes, and the collected data are uploaded to the Lora gateway;
after the Lora node needing real-time control successfully uploads the acquired data to the Lora gateway, switching the communication frequency of the Lora node to the Lora gateway instruction sending frequency, and monitoring the control instruction issued by the Lora gateway in real time;
and the receiving frequency of the Lora gateway is different from the sending frequency of the Lora gateway instruction.
2. The Lora communication method according to claim 1, further comprising the steps of:
the non-real-time control Lora node acquires the configuration information issued by the Lora gateway and synchronizes time with the Lora gateway;
the non-real-time control Lora node uploads the acquired data to the Lora gateway in a corresponding time window;
and controlling the non-real-time controlled Lora node to be kept in a sleep state within a set time period, wherein the set time period is positioned outside a time window corresponding to the non-real-time controlled Lora node.
3. The Lora communication method according to claim 2, further comprising the steps of:
when the control instruction which comes from the upper computer or the cloud and is used for controlling the non-real-time controlled Lora node is cached in the Lora gateway, the non-real-time controlled Lora node receives the control instruction issued by the Lora gateway in the time window corresponding to the Lora node.
4. The Lora communication method according to claim 1, further comprising the steps of:
after each Lora node uploads data to the Lora gateway, if a successful data receiving response returned by the Lora gateway is not received, the acquired data are uploaded to the Lora gateway again in a time window corresponding to the Lora node;
when each Lora node uploads the acquired data to the Lora gateway again and does not receive a successful data receiving response returned by the Lora gateway after a set number of times, sending a login request to the Lora gateway to obtain the configuration information issued by the Lora gateway again;
and after each Lora node executes the control instruction issued by the Lora gateway, sending a response of instruction execution completion to the Lora gateway so as to inform the Lora gateway to delete the executed control instruction.
5. The Lora communication method according to claim 1, further comprising the steps of:
each Lora node receives node transmission power data issued by the Lora gateway and adjusts the transmission power of the node according to the node transmission power data; and the node transmitting power data is obtained by calculation according to the signal intensity and the signal-to-noise ratio transmitted by the node.
6. The Lora communication method according to claim 1, further comprising the steps of:
and the Lora gateway records the time corresponding to the time synchronization between the Lora gateway and each Lora node, and after the set time length from the time, the Lora gateway re-issues a clock synchronization instruction to each Lora node so as to inform each Lora node of synchronizing the time with the Lora gateway again.
7. A Lora node, comprising:
the system comprises a configuration module, a time synchronization module and a data transmission module, wherein the configuration module is used for acquiring configuration information issued by a Lora gateway and synchronizing time with the Lora gateway, and the configuration information comprises a timestamp, a time window corresponding to data uploaded by a Lora node and a transmission cycle;
the data uploading module is used for switching the communication frequency of the time window corresponding to the Lora node to the receiving frequency of the Lora gateway and uploading the acquired data to the Lora gateway;
the instruction interception module is used for switching the communication frequency of the Lora node to the Lora gateway instruction sending frequency after the Lora node successfully uploads the acquired data to the Lora gateway, and intercepting a control instruction sent by the Lora gateway in real time;
and the receiving frequency of the Lora gateway is different from the sending frequency of the Lora gateway instruction.
8. A Lora communication system, comprising: the system comprises a Lora gateway and at least one Lora node needing real-time control; the Lora node needing real-time control comprises:
the first configuration module is used for acquiring configuration information issued by the Lora gateway and synchronizing time with the Lora gateway, wherein the configuration information comprises a timestamp, a time window corresponding to data uploaded by the Lora node and a transmission period;
the first data uploading module is used for switching the communication frequency of the Lora nodes needing real-time control to the receive frequency of the Lora gateway in a time window corresponding to the Lora nodes needing real-time control and uploading collected data to the Lora gateway;
the first instruction interception module is used for switching the communication frequency of the Lora nodes needing real-time control to the Lora gateway instruction sending frequency and intercepting the control instruction issued by the Lora gateway in real time after the Lora nodes needing real-time control successfully upload the acquired data to the Lora gateway;
and the receiving frequency of the Lora gateway is different from the sending frequency of the Lora gateway instruction.
9. The Lora communication system according to claim 8, further comprising at least one non-real time controlled Lora node; the Lora node of non-real-time control includes:
the second configuration module is used for acquiring the configuration information issued by the Lora gateway and synchronizing time with the Lora gateway;
the second data uploading module is used for acquiring data in the data acquisition time and uploading the acquired data to the Lora gateway in a time window corresponding to the non-real-time control Lora node;
and the sleep control module is used for controlling the non-real-time controlled Lora node to be kept in a sleep state within a set time period, and the set time period is positioned outside a time window corresponding to the non-real-time controlled Lora node.
10. The Lora communication system according to claim 9, wherein the non-real time controlled Lora node further comprises:
and the second instruction interception module is used for caching a control instruction which comes from an upper computer or a cloud and is used for controlling the non-real-time controlled Lora node in the Lora gateway, and the non-real-time controlled Lora node receives the control instruction issued by the Lora gateway in a time window corresponding to the Lora node.
CN201910681768.2A 2019-04-19 2019-07-26 Lora communication method, lora node and Lora communication system Active CN111836277B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910317705.9A CN110072247A (en) 2019-04-19 2019-04-19 A kind of LoRa network of low-power consumption and real-time
CN2019103177059 2019-04-19

Publications (2)

Publication Number Publication Date
CN111836277A true CN111836277A (en) 2020-10-27
CN111836277B CN111836277B (en) 2024-01-26

Family

ID=67368114

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910317705.9A Withdrawn CN110072247A (en) 2019-04-19 2019-04-19 A kind of LoRa network of low-power consumption and real-time
CN201910681768.2A Active CN111836277B (en) 2019-04-19 2019-07-26 Lora communication method, lora node and Lora communication system

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201910317705.9A Withdrawn CN110072247A (en) 2019-04-19 2019-04-19 A kind of LoRa network of low-power consumption and real-time

Country Status (1)

Country Link
CN (2) CN110072247A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822735A (en) * 2020-12-31 2021-05-18 广州技象科技有限公司 Gateway switching management method, device, equipment and storage medium based on Internet of things
CN112954782A (en) * 2021-03-26 2021-06-11 珠海瑞德电子科技有限公司 Motor control method and device based on LoRa unit
CN113676862A (en) * 2021-08-19 2021-11-19 全球能源互联网欧洲研究院 Converter valve safety monitoring system and method
CN113938998A (en) * 2021-09-30 2022-01-14 深圳市三航物联科技有限公司 Communication control method, acquisition terminal and communication system based on Lora

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290574B (en) * 2019-08-13 2022-01-25 厦门四信通信科技有限公司 Data transmission method, device, equipment, system and storage medium
CN112399425B (en) * 2019-08-16 2023-03-24 武汉所为科技有限公司 Lora communication method and Lora communication system
CN110568793A (en) * 2019-09-16 2019-12-13 江苏大学 sow shed Internet of things system based on time division multiplexing networking and fault tree and control method thereof
CN110572841B (en) * 2019-09-17 2022-08-12 河南世友信息技术有限公司 Networking method of master-slave low-power-consumption wireless ad hoc network
CN110972222B (en) * 2019-11-26 2021-12-10 武汉慧联无限科技有限公司 Downlink gateway selection method, device and computer storage medium
CN110662250B (en) * 2019-11-29 2020-04-17 武汉慧联无限科技有限公司 Information processing method, related device and storage medium
CN111372215B (en) * 2020-03-16 2022-06-03 南京荣泰电气自动化有限公司 LORA-based single-channel synchronous information acquisition system and method
CN112489403A (en) * 2020-10-22 2021-03-12 武汉所为科技有限公司 Remote meter reading method and device
CN113848791B (en) * 2021-09-29 2023-06-06 金陵科技学院 Low-power consumption general agricultural environment monitoring terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851785A (en) * 2017-03-15 2017-06-13 福州东日信息技术有限公司 A kind of wireless communications method and system
CN107590987A (en) * 2017-10-23 2018-01-16 天津云拓网络科技有限公司 A kind of long-distance meter-reading system based on low-power consumption Internet of Things
CN107820334A (en) * 2017-11-07 2018-03-20 深圳市中兴物联科技有限公司 A kind of radio network gateway
CN109246636A (en) * 2018-08-06 2019-01-18 广东优世联合控股集团股份有限公司 Method for receiving ⒉ 4G communication-based sensing data by Lora gateway and repeater
CN109862068A (en) * 2018-12-12 2019-06-07 四川长虹电器股份有限公司 A kind of LORA data acquisition control system based on TDMA

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851785A (en) * 2017-03-15 2017-06-13 福州东日信息技术有限公司 A kind of wireless communications method and system
CN107590987A (en) * 2017-10-23 2018-01-16 天津云拓网络科技有限公司 A kind of long-distance meter-reading system based on low-power consumption Internet of Things
CN107820334A (en) * 2017-11-07 2018-03-20 深圳市中兴物联科技有限公司 A kind of radio network gateway
CN109246636A (en) * 2018-08-06 2019-01-18 广东优世联合控股集团股份有限公司 Method for receiving ⒉ 4G communication-based sensing data by Lora gateway and repeater
CN109862068A (en) * 2018-12-12 2019-06-07 四川长虹电器股份有限公司 A kind of LORA data acquisition control system based on TDMA

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822735A (en) * 2020-12-31 2021-05-18 广州技象科技有限公司 Gateway switching management method, device, equipment and storage medium based on Internet of things
CN112822735B (en) * 2020-12-31 2022-02-01 广州技象科技有限公司 Gateway switching management method, device, equipment and storage medium based on Internet of things
CN112954782A (en) * 2021-03-26 2021-06-11 珠海瑞德电子科技有限公司 Motor control method and device based on LoRa unit
CN113676862A (en) * 2021-08-19 2021-11-19 全球能源互联网欧洲研究院 Converter valve safety monitoring system and method
CN113938998A (en) * 2021-09-30 2022-01-14 深圳市三航物联科技有限公司 Communication control method, acquisition terminal and communication system based on Lora

Also Published As

Publication number Publication date
CN111836277B (en) 2024-01-26
CN110072247A (en) 2019-07-30

Similar Documents

Publication Publication Date Title
CN111836277B (en) Lora communication method, lora node and Lora communication system
US8134942B2 (en) Communication protocol for low-power network applications and a network of sensors using the same
US11265814B2 (en) Implementation method of low power consumption internet of things based on proxy apparatus
JP6816021B2 (en) Positioning system
JP6982632B2 (en) Detection and operation of wakeup receivers with a limited range
EP2547166B1 (en) Method for controlling discontinuous reception in mobile communication device and corresponding terminal
US10326518B1 (en) Repeater and node utilization
CN102740427B (en) Method for awakening wireless sensor, wireless sensor and wireless sensor system
US20200305229A1 (en) Wireless sensor management method, and wireless communication system
KR20170017865A (en) Network range extender with multi-rf radio support for plurality of network interfaces
KR101845534B1 (en) Internet of things wireless communication system based long range
TWI543658B (en) Node device and method for communication
US20220150831A1 (en) Wakeup Radio for Low Power Nodes in Bluetooth
CN104936273A (en) Synchronous sleep low power consumption communication method for Mesh self-organization wireless sensor network
CN109792688A (en) Manage the sleep cycle in wireless communication system
CN111405640B (en) Low-power-consumption wireless networking communication method
CN111836332A (en) Lora chain network communication method, Lora gateway and Lora chain network communication system
CN110572841A (en) Networking method of master-slave low-power-consumption wireless ad hoc network
US10687390B2 (en) Node bridge
Qin et al. Cross-interface scheduling toward energy-efficient device-to-gateway communications in IoT
GB2556844A (en) Random access repeater, relay system and relay method therefor
CN108650701A (en) A kind of method and apparatus of data transmission
US20200382931A1 (en) Low-power wireless mesh network
CN112135268A (en) Data transmission method of wireless networking system and wireless networking system
CN204836236U (en) Low -power consumption thing networking framework based on act on behalf of equipment

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