CN112153684A - LoRa networking communication method, gateway, node, database and system - Google Patents

LoRa networking communication method, gateway, node, database and system Download PDF

Info

Publication number
CN112153684A
CN112153684A CN202011122376.1A CN202011122376A CN112153684A CN 112153684 A CN112153684 A CN 112153684A CN 202011122376 A CN202011122376 A CN 202011122376A CN 112153684 A CN112153684 A CN 112153684A
Authority
CN
China
Prior art keywords
node
nodes
configuration parameters
parameter
receiving
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
CN202011122376.1A
Other languages
Chinese (zh)
Other versions
CN112153684B (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.)
Shandong Youren Information Technology Co ltd
Original Assignee
Shandong Youren Information 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 Shandong Youren Information Technology Co ltd filed Critical Shandong Youren Information Technology Co ltd
Priority to CN202011122376.1A priority Critical patent/CN112153684B/en
Publication of CN112153684A publication Critical patent/CN112153684A/en
Application granted granted Critical
Publication of CN112153684B publication Critical patent/CN112153684B/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
    • 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)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a LoRa networking communication method, which comprises the following steps: receiving network access request information of all nodes; the RSSI value is extracted from the network access request information and is sent to a database; receiving configuration parameters which are calculated according to the RSSI values and sent from a database; and sending the configuration parameters to the corresponding nodes. The invention also discloses a gateway, a node, a database and a LoRa networking communication system. The invention improves the communication timeliness and the communication efficiency during LoRa networking communication.

Description

LoRa networking communication method, gateway, node, database and system
Technical Field
The invention relates to the technical field of communication, in particular to a LoRa networking communication method, a gateway, a node, a database and a system.
Background
In the prior art, when an LoRa (LoRa is a low power consumption wide area network communication technology, an ultra-long distance wireless transmission technology based on a spread spectrum technology) performs networking communication, an LoRa gateway determines a communication rate of a node according to a signal quality of the node, and the better the signal quality is, the higher the communication rate can be; the worse the signal quality, the slower the communication rate. In order to ensure that all nodes can communicate, configuration parameters in the local area network are often set according to the node with the worst signal quality, and therefore the communication timeliness in the whole local area network is low. Therefore, how to improve communication timeliness and communication efficiency is an urgent problem to be solved in the research and development of the LoRa networking communication technology.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a LoRa networking communication method, a gateway, a node, a database and a system, and aims to solve the technical problem that in the prior art, when LoRa networking communication is performed, in order to ensure that nodes in a local area network can communicate, the LoRa gateway can set a communication rate according to a node with poor signal quality, so that the communication efficiency is low.
In order to achieve the above object, the present invention provides an LoRa networking communication method, including:
receiving network access request information of all nodes;
the RSSI value is extracted from the network access request information and is sent to a database;
receiving configuration parameters which are calculated according to the RSSI values and sent from a database;
and sending the configuration parameters to the corresponding nodes.
Further, after the step of receiving the configuration parameter calculated according to the RSSI value and sent from the database, the LoRa networking communication method further includes:
according to the configuration parameters corresponding to all the nodes, a parameter configuration table is obtained through sorting and stored;
respectively calculating lead code time corresponding to the nodes according to the parameter configuration table;
and sending the preamble time to the corresponding node.
Further, the requesting network entry information includes: spreading factor, bandwidth, coding rate and IQ signal;
after the step of extracting the RSSI value from the network access request information, the LoRa networking communication method further includes:
determining the bandwidth, and deriving the spreading factor according to the relationship among the RSSI value, the spreading factor and the bandwidth;
wherein, the relationship among the RSSI value, the spreading factor and the bandwidth is as follows:
Figure BDA0002731055140000021
sensitii is the RSSI value, SF is the spreading factor, BW is the bandwidth;
then, according to the derived spread spectrum factor and bandwidth, deriving a proper coding rate;
if the values of any two parameter items in the coding rate, the spreading factor and the bandwidth derived by different nodes are similar, the IQ signal is automatically adjusted to invert the IQ signal.
Further, after the step of sending the configuration parameters to the corresponding nodes, the LoRa networking communication method further includes:
polling the parameter configuration table and switching the configuration parameters according to the parameter configuration table;
receiving a lead code of a current node, and judging whether the lead code of the current node can be detected or not;
if the lead code is detected, starting to receive the data sent by the current node, and uploading the data sent by the current node to the database;
if the lead code is not detected, continuing to poll the parameter configuration table, and switching the configuration parameters according to the parameter configuration table.
Further, after the step of sending the configuration parameters to the corresponding nodes, the LoRa networking communication method further includes:
receiving data sent by a current database;
judging whether the target node is accessed to the network or not;
if the target node is accessed to the network, switching to configuration parameters of the target node, and sending the data sent by the current database to the target node;
and if the current node is not accessed to the network, continuously receiving the data sent by the current database.
Further, after the step of sending the configuration parameters to the corresponding nodes, the LoRa networking communication method further includes:
receiving lead code time information inquired by a new node;
transmitting the preamble time information to the new node;
receiving network access request information of a new node;
extracting the RSSI value of the new node from the network access request information of the new node, and sending the RSSI value of the new node to the database;
receiving a new node configuration parameter calculated according to the RSSI value of the new node;
sending the new node configuration parameters to the new node.
Further, after the step of receiving the configuration parameter calculated according to the RSSI value of the new node, the LoRa networking communication method further includes:
according to the configuration parameters corresponding to all the current nodes, sorting to obtain a current parameter configuration table and storing the current parameter configuration table;
the configuration parameters corresponding to all the current nodes comprise the configuration parameters calculated according to the RSSI values of the new nodes;
respectively calculating the current lead code time corresponding to the nodes again according to the current parameter configuration table;
and sending the configuration parameters and the current preamble time to the corresponding node.
In addition, to achieve the above object, the present invention further provides a gateway, including:
the first receiving module is used for receiving the network access request information of all the nodes;
the extraction module is used for extracting the RSSI value in the network access request information;
the first sending module is used for sending the RSSI value to a database;
the second receiving module is used for receiving the configuration parameters of all the nodes;
and the second sending module is used for sending the configuration parameters to the corresponding nodes.
Further, the gateway further comprises:
the first sorting module is used for sorting the configuration parameters corresponding to all the nodes to obtain a parameter configuration table;
and the first time module is used for respectively calculating the lead code time corresponding to the nodes according to the parameter configuration table.
Further, the gateway further comprises:
the first derivation unit is used for deriving different RSSI values to obtain the coding rate, the spreading factor and the bandwidth;
and the first adjusting unit is used for automatically adjusting the IQ signal to enable the IQ signal to be inverted when the numerical values of any two parameter items in the coding rate, the spreading factor and the bandwidth which are obtained by derivation of different nodes are similar.
Further, the gateway further comprises:
the polling module is used for polling the parameter configuration table and switching the configuration parameters according to the parameter configuration table;
a first detection module, configured to detect whether a preamble of the current node exists;
the second detection module is used for detecting whether the target node is accessed to the network;
and the storage module is used for storing the RSSI value, the configuration parameters, the parameter configuration table and the lead code time.
In addition, to achieve the above object, the present invention also provides a node, including:
the third sending module is used for sending the request network access information, the lead code for inquiring the lead code time information and the target data to the gateway;
and the third receiving module is used for receiving the configuration parameter information, the lead code time information and the node data sent by the gateway.
In addition, to achieve the above object, the present invention also provides a database, comprising:
the fourth receiving module is used for receiving the RSSI values of all the nodes;
the parameter configuration module is used for calculating configuration parameters according to the RSSI values of all the nodes;
and the fourth sending module is used for sending the configuration parameters to the gateway.
Further, the database further comprises:
the second sorting module is used for sorting the configuration parameters corresponding to all the nodes to obtain a parameter configuration table;
the second time module is used for respectively calculating lead code time corresponding to the nodes according to the parameter configuration table;
a storage module, configured to store the RSSI value, the configuration parameter, the parameter configuration table, and a preamble time;
a fifth sending module, configured to send the preamble time to the gateway.
In addition, to achieve the above object, the present invention further provides an LoRa networking communication system, including:
a gateway as described above, a node as described above and a database as described above.
The invention receives the network access request information of all nodes; the RSSI value is extracted from the network access request information and is sent to a database; according to the principle that the smaller the RSSI value is, the worse the signal quality is, and the larger the RSSI value is, the better the signal quality is, the configuration parameters are calculated according to the RSSI value; and sending the calculated configuration parameters to the corresponding nodes. Therefore, different configuration parameters are distributed to each node according to different signal qualities of each node, so that parameter distribution among the nodes is more reasonable, the technical problem that the communication efficiency is low due to the fact that the LoRa gateway sets the communication rate according to the nodes with poor signal qualities is solved, and the packet collision rate is reduced.
Drawings
FIG. 1 is a schematic flow diagram of a first embodiment of an embodiment of the present invention;
fig. 2 is a schematic diagram of a preamble of a LoRa networking communication method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of the LoRa networking communication system of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows:
receiving network access request information of all nodes;
the RSSI value is extracted from the network access request information and is sent to a database;
receiving configuration parameters which are calculated according to the RSSI values and sent from a database;
and sending the configuration parameters to the corresponding nodes.
Because the LoRa gateway determines the communication rate of the node according to the signal quality of the node, the better the signal quality is, the higher the communication rate can be; the worse the signal quality, the slower the communication rate. In order to ensure that all nodes can communicate, configuration parameters in the local area network are often set according to the node with the worst signal quality, and therefore the communication timeliness in the whole local area network is low.
The invention provides a solution, which receives the network access request information of all nodes; the RSSI value is extracted from the network access request information and is sent to a database; according to the principle that the smaller the RSSI value is, the worse the signal quality is, and the larger the RSSI value is, the better the signal quality is, the configuration parameters are calculated according to the RSSI value; and sending the calculated configuration parameters to the corresponding nodes. Therefore, different configuration parameters are distributed to each node according to different signal qualities of each node, so that parameter distribution among the nodes is more reasonable, the technical problem that communication efficiency is low due to the fact that the LoRa gateway sets the communication rate according to the node with the worst signal quality is solved, and packet collision rate is reduced.
The present invention provides a LoRa networking communication method, and referring to fig. 1, fig. 1 is a schematic flow diagram of a LoRa networking communication method according to a first embodiment of the present invention.
In this embodiment, the LoRa networking communication method is applied to a cooking device, and includes:
step S110, receiving the network access request information of all nodes.
And step S120, the RSSI value extracted from the network access request information is sent to a database.
Step S130, receiving the configuration parameters calculated according to the RSSI value from the database.
Step S140, sending the configuration parameters to the corresponding nodes.
It can be understood that, in this embodiment, in order to enable all nodes to send the network access request information to the gateway, all nodes send the network access request information to the gateway with the configuration parameters of the lowest rate. The gateway receives the network access request information of all nodes; and extracting RSSI values from the network access request information, and uniformly sending the RSSI values of all the nodes to a database when the RSSI values of all the nodes are extracted. The database correspondingly distributes configuration parameters with different rates according to different RSSI values of the nodes, and then the configuration parameters are respectively configured on corresponding node equipment, so that different nodes have specific configuration parameters. And after each node receives the corresponding configuration parameters, storing the configuration parameters and setting the parameters according to the configuration parameters. Then, when the node data is communicated, all the nodes adopt the configuration parameters of the nodes to communicate.
In the technical scheme disclosed in the embodiment, the network access request information of all nodes is received; the RSSI value is extracted from the network access request information and is sent to a database; according to the principle that the smaller the RSSI value is, the worse the signal quality is, and the larger the RSSI value is, the better the signal quality is, the configuration parameters are calculated according to the RSSI value; and sending the calculated configuration parameters to the corresponding nodes. Therefore, different configuration parameters are distributed to each node according to different signal qualities of each node, so that parameter distribution among the nodes is more reasonable, the technical problem that communication efficiency is low due to the fact that the LoRa gateway sets the communication rate according to the node with the worst signal quality is solved, and packet collision rate is reduced.
Further, a second embodiment of the LoRa networking communication method according to the present invention is proposed based on the first embodiment, and in this embodiment, after the step of receiving the configuration parameter calculated according to the RSSI value and sent from the database in step S130, the LoRa networking communication method according to the present invention further includes:
step 150, according to the configuration parameters corresponding to all the nodes, sorting to obtain a parameter configuration table and storing the parameter configuration table;
step 160, respectively calculating lead code time corresponding to the nodes according to the parameter configuration table;
and 170, sending the preamble time to the corresponding node.
The method of the LoRa networking communication is mainly divided into two types, namely single-path networking communication and multi-path networking communication. The single-path networking communication has single configuration parameter, is easy to bump a packet and has low efficiency; although the multi-path networking communication can support multi-path configuration parameters, the configuration parameters of the nodes are separated, the packet collision rate between the nodes is reduced, and the efficiency is high, the hardware cost is increased when the multi-path communication is laid, and the number of the parameter configuration is limited by the number of communication paths.
It is understood that, in the present embodiment, the configuration parameters may include a frequency point, a spreading factor, a bandwidth, a coding rate, and an IQ signal. In order to enable equipment not to be influenced by the number of communication roads, and to achieve the purpose that when the number of nodes is large, high-quality communication can still be maintained, and the packet loss rate is reduced, configuration parameters of more versions can be formed through different combinations of frequency points, spread spectrum factors, bandwidths, encoding rates and IQ signal inversion, the difference of the communication parameters is more detailed, the difference of different configuration parameters is larger, and the conditions of packet collision and packet loss caused by similarity of the configuration parameters are avoided. Of course, in order to make the communication parameters allocated by the nodes more detailed, the configuration parameters can also expand more parameter categories, thereby reducing the packet collision rate.
Further, in an embodiment, the step S160 respectively calculates preamble times corresponding to the nodes according to the parameter configuration table, and includes:
the length of the lead code sent by the node should be able to cover the time of the gateway traversing the parameter configuration table, and the time is the lead code time, and is calculated as follows:
the symbol transmission time is:
Figure BDA0002731055140000071
wherein, TsFor symbol transmission time, RSIs the symbol rate, SF is the spreading factor, BW is the bandwidth.
The gateway respectively calculates the symbol transmission time corresponding to each node according to the parameter configuration table, and the symbol transmission time corresponding to each node is respectively as follows: t iss1、Ts2、Ts3、Ts4...Tsn
By adding the symbol transmission time corresponding to each node, the preamble time is represented as:
Tpreamble=2*(Ts1+Ts2+Ts3+Ts4+...+Tsn) (3)
by symbol transmission time, the preamble time is represented as:
Tpreamble=(npreamble+4.25)TS (4)
wherein, TpreambleIs a preamble time, npreambleIs the number of nodes.
In this embodiment, in order to improve communication efficiency, therefore, the length of the preamble sent by the node should be able to cover the time when the gateway traverses the parameter configuration table, referring to fig. 2, the time is the preamble time, and all node devices send the preamble with the corresponding length by using the preamble time.
After receiving the configuration parameters and the preamble time, the node device calculates the length of the preamble according to the above reference formula, and then the preambles of the data uploaded to the gateway are all sent according to the length. When all nodes are accessed to the network for the first time, the length of the preamble code is defaulted. And the new node added subsequently needs to inquire the length of the preamble code from the gateway and set the length of the preamble code into the node equipment. And after the new node is added, the preamble time corresponding to all the nodes needs to be recalculated, and the gateway also needs to allocate the preamble time after the new node is added to all the nodes.
Further, a third embodiment of the LoRa networking communication method according to the present invention is provided based on the first embodiment, where in this embodiment, the requesting network entry information includes: spreading factor, bandwidth, coding rate and IQ signal; in step S120, the RSSI value is extracted from the network access request information, and the LoRa networking communication method further includes:
determining the bandwidth, and deriving the spreading factor according to the relationship among the RSSI value, the spreading factor and the bandwidth;
wherein, the relationship among the RSSI value, the spreading factor and the bandwidth is as follows:
Figure BDA0002731055140000081
sensitii is the RSSI value, SF is the spreading factor, BW is the bandwidth;
then, according to the derived spread spectrum factor and bandwidth, deriving a proper coding rate;
if the values of any two parameter items in the coding rate, the spreading factor and the bandwidth derived by different nodes are similar, the IQ signal is automatically adjusted to invert the IQ signal.
The parameters affecting the LoRa communication rate further include a spreading factor, a bandwidth, a coding rate, and the like. LoRaWAN (LoRaWAN is a set of communication protocol and system architecture designed for LoRa long-distance communication network, which is a Media Access Control (MAC) layer protocol.) mainly uses 125kHz signal bandwidth setting, and many gateway devices in the market borrow the 125kHz signal bandwidth setting, but after the bandwidth setting is limited, the configurable parameters are too few, so that the node devices under various signal qualities are difficult to cover, and the improvement of the communication efficiency is not facilitated.
It is understood that, in this example, the spreading factor is derived by determining the bandwidth according to the relationship between the RSSI value, the spreading factor and the bandwidth. For the convenience of understanding, only the heating time and the heating temperature are described here, and therefore, the content that the configuration parameters may include should not be limited.
Further, a second embodiment of the LoRa networking communication method according to the present invention is provided based on the second embodiment, and in the fourth embodiment, after the step of sending the configuration parameters to the corresponding nodes in step S120, the LoRa networking communication method according to the present invention further includes:
step 210, polling the parameter configuration table, and switching the configuration parameters according to the parameter configuration table;
step 220, receiving a lead code of a current node, and judging whether the lead code of the current node can be detected or not;
step 230, if the preamble is detected, beginning to receive the data sent by the current node, and uploading the data sent by the current node to the database;
and 240, if the preamble is not detected, continuing to poll the parameter configuration table, and switching the configuration parameters according to the parameter configuration table.
In this embodiment, the gateway receiving manner is to traverse the parameter configuration table to receive data. Specifically, the gateway polls the switching configuration parameters according to the parameter configuration table, detects whether a preamble exists according to the preamble detection function of the LoRa after switching one configuration parameter, and switches to the configuration parameters of the next node to continue the detection if the preamble cannot be detected in 2 symbol times under the current configuration (the configuration parameters of the node). The gateway sends data in real time by traversing the parameter configuration table. In general, after the gateway finishes sending data, the gateway will switch to a data receiving mode.
By means of the method that the parameter configuration table is calculated according to the RSSI value of the node and then the parameter configuration table is traversed, the node configuration parameters can be more reasonable, the node with excellent signals in the network is not affected by the node with poor signals, and accordingly data communication timeliness is higher. Meanwhile, the mode of detecting lead codes and judging the receiving is realized by switching the configuration parameters of the parameter configuration table through the training in turns, so that the effect of changing a single path into multiple paths can be achieved when the LoRa networking communication method is applied to a single-path communication state. The parameter configuration method and the data detection method mentioned in the embodiment are preferably used in single-channel communication equipment, but are not limited to single-channel communication equipment, and have a good effect when multiple channels are used. The detection of the preamble code receiving data is switched through one-way rotation training by the characteristic that the preamble code detection time is about 2 symbol times and the preamble code length can be set, so that the effect of changing one-way communication into multi-way communication is realized.
Further, a fifth embodiment of the LoRa networking communication method according to the present invention is provided based on the third embodiment, where in this embodiment, after the step of sending the configuration parameters to the corresponding nodes, the LoRa networking communication method further includes:
receiving data sent by a current database;
judging whether the target node is accessed to the network or not;
if the target node is accessed to the network, switching to configuration parameters of the target node, and sending the data sent by the current database to the target node;
and if the current node is not accessed to the network, continuously receiving the data sent by the current database.
In this embodiment, when a new node joins the network, it needs to first query the time of the preamble from the gateway and configure the time to the node, and the node sends a network access request and waits for the gateway to issue configuration parameters. After the new node is added, the gateway needs to poll and reconfigure the lead code time for the following node equipment, so that the phenomenon of packet loss caused by adding the new node is avoided.
Further, based on the second embodiment, a sixth embodiment of the LoRa networking communication method according to the present invention is proposed, where in this embodiment, after step S150, the method for sending the configuration parameter to the corresponding device further includes:
receiving lead code time information inquired by a new node;
transmitting the preamble time information to the new node;
receiving network access request information of a new node;
extracting the RSSI value of the new node from the network access request information of the new node, and sending the RSSI value of the new node to the database;
receiving a new node configuration parameter calculated according to the RSSI value of the new node;
sending the new node configuration parameters to the new node.
In this embodiment, when a new node joins the network, it needs to first query the time of the preamble from the gateway and configure the time to the node, and the node sends a network access request and waits for the gateway to issue configuration parameters. After the new node is added, the gateway needs to poll and reconfigure the lead code time for the following node equipment, so that the phenomenon of packet loss caused by adding the new node is avoided.
Further, based on the sixth embodiment, a seventh embodiment of the LoRa networking communication method according to the present invention is provided, where in this embodiment, after the step of receiving the configuration parameter calculated according to the RSSI value of the new node, the method for confirming the configuration parameter according to the present invention further includes:
according to the configuration parameters corresponding to all the current nodes, sorting to obtain a current parameter configuration table and storing the current parameter configuration table;
the configuration parameters corresponding to all the current nodes comprise the configuration parameters calculated according to the RSSI values of the new nodes;
respectively calculating the current lead code time corresponding to the nodes again according to the current parameter configuration table;
and sending the configuration parameters and the current preamble time to the corresponding node.
In this embodiment, when a new node joins the network, it needs to first query the time of the preamble from the gateway and configure the time to the node, and the node sends a network access request and waits for the gateway to issue configuration parameters. After the new node is added, the gateway needs to poll and reconfigure the lead code time for the following node equipment, so that the phenomenon of packet loss caused by adding the new node is avoided.
Further, based on a seventh embodiment, a seventh embodiment of the LoRa networking communication method of the present invention is proposed, and in this embodiment, the LoRa networking communication method includes the following steps:
sending request network access information to a gateway;
and receiving configuration parameter information and setting parameters according to the configuration parameters.
Further, the LoRa networking communication method further includes:
and when a new node accesses the network, sending the inquiry lead code time information to the gateway.
Further, after the step of sending the network access request information to the gateway, the LoRa networking communication method further includes:
receiving preamble time information;
sending a lead code and target data to a gateway according to the lead code time arrangement;
and receiving the node data sent by the gateway.
Further, based on the eighth embodiment, a seventh embodiment of the LoRa networking communication method of the present invention is proposed, and in this embodiment, the LoRa networking communication method includes the following steps:
receiving RSSI values of all nodes;
calculating to obtain configuration parameters of the corresponding nodes according to the RSSI values;
and sending the configuration parameters to a gateway.
Further, after the step of calculating a configuration parameter of the corresponding node according to the RSSI value, the LoRa networking communication method further includes:
according to the configuration parameters corresponding to all the nodes, a parameter configuration table is obtained through sorting and stored;
respectively calculating lead code time corresponding to the nodes according to the parameter configuration table;
transmitting the preamble time to the gateway.
Further, after the step of sending the configuration parameters to a gateway, the LoRa networking communication method further includes:
receiving an RSSI value of a new node;
calculating a new node configuration parameter according to the RSSI value of the new node;
sending the new node configuration parameters to the gateway.
Further, after the step of calculating a new node configuration parameter according to the RSSI value of the new node, the LoRa networking communication method further includes:
according to the configuration parameters corresponding to all the current nodes, sorting to obtain a current parameter configuration table and storing the current parameter configuration table;
the configuration parameters corresponding to all the current nodes comprise the configuration parameters calculated according to the RSSI values of the new nodes;
respectively calculating the current lead code time corresponding to the nodes again according to the current parameter configuration table;
and sending the configuration parameters and the current preamble time to the corresponding node.
In the embodiment, the configuration parameters are calculated by the database according to the RSSI values, so that the layout is simple and the labor is saved.
In addition, the present invention also provides a gateway, comprising:
the first receiving module is used for receiving the network access request information of all the nodes;
the extraction module is used for extracting the RSSI value in the network access request information;
the first sending module is used for sending the RSSI value to a database;
the second receiving module is used for receiving the configuration parameters of all the nodes;
and the second sending module is used for sending the configuration parameters to the corresponding nodes.
Further, the gateway further comprises:
the first sorting module is used for sorting the configuration parameters corresponding to all the nodes to obtain a parameter configuration table;
and the first time module is used for respectively calculating the lead code time corresponding to the nodes according to the parameter configuration table.
Further, the gateway further comprises:
the first derivation unit is used for deriving different RSSI values to obtain the coding rate, the spreading factor and the bandwidth;
and the first adjusting unit is used for automatically adjusting the IQ signal to enable the IQ signal to be inverted when the numerical values of any two parameter items in the coding rate, the spreading factor and the bandwidth which are obtained by derivation of different nodes are similar.
Further, the gateway further comprises:
the polling module is used for polling the parameter configuration table and switching the configuration parameters according to the parameter configuration table;
a first detection module, configured to detect whether a preamble of the current node exists;
the second detection module is used for detecting whether the target node is accessed to the network;
and the storage module is used for storing the RSSI value, the configuration parameters, the parameter configuration table and the lead code time.
It should be noted that each embodiment of the gateway is substantially the same as each embodiment of the LoRa networking communication method, and details are not described here.
In addition, the present invention also provides a node, comprising:
the third sending module is used for sending the request network access information, the lead code for inquiring the lead code time information and the target data to the gateway;
and the third receiving module is used for receiving the configuration parameter information, the lead code time information and the node data sent by the gateway.
It should be noted that each embodiment of the node is substantially the same as each embodiment of the LoRa networking communication method, and details are not described here.
In addition, the present invention further provides a database, which includes:
the fourth receiving module is used for receiving the RSSI values of all the nodes;
the parameter configuration module is used for calculating configuration parameters according to the RSSI values of all the nodes;
and the fourth sending module is used for sending the configuration parameters to the gateway.
Further, the database further comprises:
the second sorting module is used for sorting the configuration parameters corresponding to all the nodes to obtain a parameter configuration table;
the second time module is used for respectively calculating lead code time corresponding to the nodes according to the parameter configuration table;
a storage module, configured to store the RSSI value, the configuration parameter, the parameter configuration table, and a preamble time;
a fifth sending module, configured to send the preamble time to the gateway.
It should be noted that each embodiment of the database is substantially the same as each embodiment of the LoRa networking communication method, and details are not repeated here.
In addition, the present invention further provides an LoRa networking communication system, and referring to fig. 1, the LoRa networking communication system includes:
a gateway as described above, a node as described above and a database as described above.
It should be noted that each embodiment of the LoRa networking communication system is substantially the same as each embodiment of the LoRa networking communication method, and details are not repeated herein.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. The LoRa networking communication method is characterized by comprising the following steps of:
receiving network access request information of a node;
the RSSI value is extracted from the network access request information and is sent to a database;
receiving configuration parameters which are calculated according to the RSSI values and sent from a database;
and sending the configuration parameters to corresponding nodes.
2. The LoRa networking communication method according to claim 1, wherein after the step of receiving configuration parameters calculated from the RSSI values sent from a database, the LoRa networking communication method further comprises:
according to the configuration parameters corresponding to all the nodes, a parameter configuration table is obtained through sorting and stored;
respectively calculating lead code time corresponding to the nodes according to the parameter configuration table;
and sending the preamble time to the corresponding node.
3. The LoRa networking communication method according to claim 1, wherein the requesting network entry information comprises: spreading factor, bandwidth, coding rate and IQ signal;
after the step of extracting the RSSI value from the network access request information, the LoRa networking communication method further includes:
determining the bandwidth, and deriving the spreading factor according to the relationship among the RSSI value, the spreading factor and the bandwidth;
wherein, the relationship among the RSSI value, the spreading factor and the bandwidth is as follows:
Figure FDA0002731055130000011
sensitii is the RSSI value, SF is the spreading factor, BW is the bandwidth;
then, according to the derived spread spectrum factor and bandwidth, deriving a proper coding rate;
if the values of any two parameter items in the coding rate, the spreading factor and the bandwidth derived by different nodes are similar, the IQ signal is automatically adjusted to invert the IQ signal.
4. The LoRa networking communication method according to claim 2, wherein after the step of sending the configuration parameters to the corresponding nodes, the LoRa networking communication method further comprises:
polling the parameter configuration table and switching the configuration parameters according to the parameter configuration table;
receiving a lead code of a current node, and judging whether the lead code of the current node can be detected or not;
if the lead code is detected, starting to receive the data sent by the current node, and uploading the data sent by the current node to the database;
if the lead code is not detected, continuing to poll the parameter configuration table, and switching the configuration parameters according to the parameter configuration table.
5. The LoRa networking communication method according to claim 2, wherein after the step of sending the configuration parameters to the corresponding nodes, the LoRa networking communication method further comprises:
receiving lead code time information inquired by a new node;
transmitting the preamble time information to the new node;
receiving network access request information of a new node;
extracting the RSSI value of the new node from the network access request information of the new node, and sending the RSSI value of the new node to the database;
receiving a new node configuration parameter calculated according to the RSSI value of the new node;
sending the new node configuration parameters to the new node.
6. The LoRa networking communication method according to claim 5, wherein after the step of receiving the configuration parameter calculated from the RSSI value of the new node, the LoRa networking communication method further comprises:
according to the configuration parameters corresponding to all the current nodes, sorting to obtain a current parameter configuration table and storing the current parameter configuration table;
the configuration parameters corresponding to all the current nodes comprise the configuration parameters calculated according to the RSSI values of the new nodes;
respectively calculating the current lead code time corresponding to the nodes again according to the current parameter configuration table;
and sending the configuration parameters and the current preamble time to the corresponding node.
7. A gateway, characterized in that the gateway comprises:
the first receiving module is used for receiving the network access request information of all the nodes;
the extraction module is used for extracting the RSSI value in the network access request information;
the first sending module is used for sending the RSSI value to a database;
the second receiving module is used for receiving the configuration parameters of all the nodes;
a second sending module, configured to send the configuration parameters to the corresponding node;
the first sorting module is used for sorting the configuration parameters corresponding to all the nodes to obtain a parameter configuration table;
the first time module is used for respectively calculating lead code time corresponding to the nodes according to the parameter configuration table;
the first derivation unit is used for deriving different RSSI values to obtain the coding rate, the spreading factor and the bandwidth;
a first adjusting unit, for automatically adjusting the IQ signal to reverse the IQ signal when the values of any two parameter items are similar in the coding rate, spreading factor and bandwidth derived by different nodes;
the polling module is used for polling the parameter configuration table and switching the configuration parameters according to the parameter configuration table;
a first detection module, configured to detect whether a preamble of the current node exists;
the second detection module is used for detecting whether the target node is accessed to the network;
and the storage module is used for storing the RSSI value, the configuration parameters, the parameter configuration table and the lead code time.
8. A node, characterized in that the node comprises:
the third sending module is used for sending the request network access information, the lead code for inquiring the lead code time information and the target data to the gateway;
and the third receiving module is used for receiving the configuration parameter information, the lead code time information and the node data sent by the gateway.
9. A database, the database comprising:
the fourth receiving module is used for receiving the RSSI values of all the nodes;
the parameter configuration module is used for calculating configuration parameters according to the RSSI values of all the nodes;
a fourth sending module, configured to send the configuration parameter to a gateway;
the second sorting module is used for sorting the configuration parameters corresponding to all the nodes to obtain a parameter configuration table;
the second time module is used for respectively calculating lead code time corresponding to the nodes according to the parameter configuration table;
a storage module, configured to store the RSSI value, the configuration parameter, the parameter configuration table, and a preamble time;
a fifth sending module, configured to send the preamble time to the gateway.
10. An LoRa networking communication system, comprising:
a gateway according to claim 7, a node according to claim 8 and a database according to claim 8.
CN202011122376.1A 2020-10-19 2020-10-19 LoRa networking communication method, gateway, node, database and system Active CN112153684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011122376.1A CN112153684B (en) 2020-10-19 2020-10-19 LoRa networking communication method, gateway, node, database and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011122376.1A CN112153684B (en) 2020-10-19 2020-10-19 LoRa networking communication method, gateway, node, database and system

Publications (2)

Publication Number Publication Date
CN112153684A true CN112153684A (en) 2020-12-29
CN112153684B CN112153684B (en) 2023-01-06

Family

ID=73954045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011122376.1A Active CN112153684B (en) 2020-10-19 2020-10-19 LoRa networking communication method, gateway, node, database and system

Country Status (1)

Country Link
CN (1) CN112153684B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113950009A (en) * 2021-09-24 2022-01-18 启北公司 Equipment network distribution method, device and system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162844A (en) * 2016-06-03 2016-11-23 西安电子科技大学 Implementation method based on the MAC protocol for wireless sensor networks of LoRa
CN107222931A (en) * 2017-07-10 2017-09-29 深圳市信锐网科技术有限公司 A kind of LoRa communication means and system
CN107820309A (en) * 2017-12-14 2018-03-20 石家庄科林电气股份有限公司 The wake-up strategy and time slot optimizing algorithm of low power loss communication equipment
CN111211918A (en) * 2019-12-17 2020-05-29 江苏南能电气有限公司 Networking method for LoRa private protocol
CN111698717A (en) * 2020-05-26 2020-09-22 清华大学 Network transmission parameter selection method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162844A (en) * 2016-06-03 2016-11-23 西安电子科技大学 Implementation method based on the MAC protocol for wireless sensor networks of LoRa
CN107222931A (en) * 2017-07-10 2017-09-29 深圳市信锐网科技术有限公司 A kind of LoRa communication means and system
CN107820309A (en) * 2017-12-14 2018-03-20 石家庄科林电气股份有限公司 The wake-up strategy and time slot optimizing algorithm of low power loss communication equipment
CN111211918A (en) * 2019-12-17 2020-05-29 江苏南能电气有限公司 Networking method for LoRa private protocol
CN111698717A (en) * 2020-05-26 2020-09-22 清华大学 Network transmission parameter selection method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113950009A (en) * 2021-09-24 2022-01-18 启北公司 Equipment network distribution method, device and system and storage medium

Also Published As

Publication number Publication date
CN112153684B (en) 2023-01-06

Similar Documents

Publication Publication Date Title
EP2932613B1 (en) Adaptive channel reuse mechanism in communication networks
CN104284408B (en) Uplink transmission power calibration method and its relevant device and system
CN108616904B (en) Wireless frequency point management method and system
JP7169499B2 (en) Carrier set determination method and device, storage medium, and electronic device
RU2006122015A (en) SYSTEM FOR PROCESSING THE RADIO PROTOCOL LEVEL DATA BLOCK
KR101030353B1 (en) Apparatus and method for navigating the path to mobile terminal in nearby communication
DE112014004498B4 (en) Devices, methods and computer program products for communication
CN104254997A (en) Transmission method for downlink data of machine type communication (MTC), base station, and user equipment
CN104065605A (en) Communication method and communication device on new carrier-type carrier
TWI531186B (en) Multiple-interface network device and selection method for transmitting network packets
CN112153684B (en) LoRa networking communication method, gateway, node, database and system
CN111556477A (en) Method for establishing decentralized Bluetooth SIG mesh network and intelligent lighting system applying same
CN106900174A (en) The data transmission method of WLAN mesh network, apparatus and system
RU2005141554A (en) METHOD AND DEVICE FOR CONTROL OF THE BROADCAST DATA TRANSMISSION SPEED IN A WIRELESS COMMUNICATION SYSTEM
CN103476029B (en) A kind of heterogeneous network soft route formula Adaptable System
CN104135736B (en) Based on cognitive spectrum monitoring and adaptive communication method
CN106851685B (en) Method and system for controlling bandwidth of mobile terminal
CN109348515A (en) The adjusting method and device of transmission in wireless network rate
CN103441931B (en) A kind of file transmitting method and device
CN110798884B (en) Terminal communication method and device
CN111491348A (en) Channel switching method and system for radio and television white spectrum cognition WiFi
CN109787856B (en) HAS bandwidth prediction method based on LTE network link state
CN110278597B (en) Communication between terminal and base station, and network access method and device of terminal
US8149803B2 (en) Apparatus for a beacon-enabled wireless network, transmission time determination method, and tangible machine-readable medium thereof
CN103368810A (en) Internet-of-things communication equipment and control method thereof and internet-of-things monitoring system

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
CB02 Change of applicant information

Address after: 250101 rooms 1103 and 1105, 11 / F, building 1, Aosheng building, 1166 Xinluo street, high tech Zone, Jinan City, Shandong Province

Applicant after: Shandong Youren networking Co.,Ltd.

Address before: 250101 rooms 1103 and 1105, 11 / F, building 1, Aosheng building, 1166 Xinluo street, high tech Zone, Jinan City, Shandong Province

Applicant before: SHANDONG YOUREN INFORMATION TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant