CN117412363A - LoRa error-wake-prevention single-point wake-up method, device, equipment and medium - Google Patents
LoRa error-wake-prevention single-point wake-up method, device, equipment and medium Download PDFInfo
- Publication number
- CN117412363A CN117412363A CN202311481557.7A CN202311481557A CN117412363A CN 117412363 A CN117412363 A CN 117412363A CN 202311481557 A CN202311481557 A CN 202311481557A CN 117412363 A CN117412363 A CN 117412363A
- Authority
- CN
- China
- Prior art keywords
- node
- detection
- wake
- verification
- lora
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- QVFWZNCVPCJQOP-UHFFFAOYSA-N chloralodol Chemical compound CC(O)(C)CC(C)OC(O)C(Cl)(Cl)Cl QVFWZNCVPCJQOP-UHFFFAOYSA-N 0.000 title claims abstract description 54
- 238000001514 detection method Methods 0.000 claims abstract description 97
- 230000004044 response Effects 0.000 claims abstract description 63
- 230000001360 synchronised effect Effects 0.000 claims abstract description 46
- 230000006854 communication Effects 0.000 claims abstract description 41
- 238000004891 communication Methods 0.000 claims abstract description 36
- 230000005059 dormancy Effects 0.000 claims abstract description 28
- 230000008569 process Effects 0.000 claims abstract description 12
- 238000012795 verification Methods 0.000 claims description 64
- 238000012545 processing Methods 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 21
- 206010048669 Terminal state Diseases 0.000 claims description 19
- 230000002159 abnormal effect Effects 0.000 claims description 15
- 230000002618 waking effect Effects 0.000 claims description 7
- 230000005856 abnormality Effects 0.000 claims description 6
- 238000007781 pre-processing Methods 0.000 claims description 6
- 238000011835 investigation Methods 0.000 claims description 4
- 230000002265 prevention Effects 0.000 claims description 4
- 230000007246 mechanism Effects 0.000 abstract description 3
- 230000007958 sleep Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 3
- 238000001914 filtration Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
- H04W52/0248—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a single-point awakening method, a device, equipment and a medium for preventing LoRa from being awakened by mistake, a gateway encapsulates short packets in batches to form a preamble packet before issuing data, a node periodically starts detection, a hardware layer checks a synchronous word after detecting the preamble, dormancy is performed after the check fails, the residual percentage of a receiving period is checked and a response time window is calculated, the node is dormant until the time window is responded again, and the gateway sends a service data packet after receiving the response packet. In the process, only the node corresponding to the synchronous word can be awakened and performs the next response and data receiving, and other nodes directly enter dormancy when the synchronous word is not matched, so that a single-point awakening function is realized, the node is prevented from being awakened by mistake, the awakening node in the process can enter dormancy only by receiving a short packet at night, the node is not required to be in a receiving state for a long time, and a response mechanism is added to ensure the success rate of communication.
Description
Technical Field
The invention relates to the technical field of LoRa system awakening, in particular to a single-point awakening method, device, equipment and medium for preventing error awakening of LoRa.
Background
The LoRa is a low-power consumption local area network wireless standard, and is named as LoRa, and is a Long Range Radio, and the LoRa is characterized in that the LoRa is farther than other wireless modes in transmission under the same power consumption condition, so that the low-power consumption and Long Range unification is realized, and the LoRa is 3-5 times longer than the traditional wireless Radio frequency communication distance under the same power consumption. In many scenarios, the nodes are powered by batteries, and low power technology is particularly important. The node opens the receiving window or transmits data with larger power consumption, so the node is in a low power consumption dormant state as much as possible, periodically opens the receiving window to detect signals, and immediately dormant if no signal is detected, otherwise, wakes up the receiving and processing.
The existing wake-up method is mainly that a node periodically detects a preamble, and if the preamble is detected, the receiving state is continuously started until the reception of the preamble and the data is completed, and the address is judged not to enter dormancy again for the data content. In many application scenes, the nodes have more data, the LoRa transmission distance is longer, the coverage area is wide, and the gateway can send a long preamble which is not less than one period when the gateway wakes up in the air each time so as to ensure that the nodes can be waken up and the nodes in the coverage area can be waken up; however, as the number of nodes in the system is large, frequent data issuing causes frequent false wake-up, so that the power consumption is large, and the cruising ability of the product is influenced.
Specifically, the prior art node can only wait for the completion of data reception and then perform the data content judgment processing by detecting the preamble, but cannot judge whether the data is addressed to itself. The node periodically wakes up to detect the air signal, and the gateway must send a long preamble which is not less than the period in order to ensure that the node can be waken up, and after the node detects the preamble, the node cannot judge the end time of the preamble and cannot judge whether the node is self data, so the node can always receive the data until the data is received. In order to ensure the success rate of communication, the nodes respond after processing the data. Any link fails and needs to be retransmitted, and the retransmission is performed again in a large batch and is awakened by mistake, so that the power consumption is very high, and the low power consumption cannot be really realized. In the prior art, referring to fig. 1, a node periodically starts a CAD detection signal, and when a gateway sends a long preamble wake-up packet, all overlay nodes with the same radio frequency parameters will be woken up and receive data. The gateway can send the long preamble and the data content when the gateway needs to wake up in the air, wake up the nodes with the same radio frequency parameters in the coverage area, and cannot wake up the designated nodes independently, and the nodes need to finish receiving the long preamble and the data content after wake up and are in a receiving state for a long time. In the process, a large number of nodes are awakened by mistake, and the nodes are in a receiving state for a long time after being awakened, so that the power consumption is high. The response mechanism can only wait for data receiving, if the packet is lost, the long preamble needs to be repeated to wake up the communication flow, so that the loss of power consumption is increased.
In view of this, the present application is presented.
Disclosure of Invention
Accordingly, the invention aims to provide a single-point awakening method, device, equipment and medium for preventing false awakening of LoRa, which can effectively solve the problems that the power consumption is high and the cruising ability of a product is influenced because a LoRa system is frequently awakened by false in a low-power application scene and is in a receiving state for a long time.
The invention discloses a single-point awakening method for preventing false awakening of LoRa, which comprises the following steps:
configuring node serial numbers of gateways according to a preset sequence, taking the node serial numbers as node addresses, and configuring the node addresses into synchronous words, wherein each node has a unique corresponding synchronous word;
carrying out signal detection and verification processing on each node according to a preset timing period to generate a detection and verification result, wherein the detection and verification result comprises a detection and verification passing result and a detection and verification failing result;
when the detection and verification result is judged to be the detection and verification passing result, carrying out data receiving receipt, preprocessing the received data, generating a response time window, and setting a timer according to the response time window;
when the timer is finished, the node is awakened, a response packet is sent to inform the gateway of the terminal state, and the gateway can conduct abnormal check processing or communication processing according to the received terminal state.
Preferably, the synchronization word supports at most 8 bytes, wherein the synchronization word of the group preamble packet is the address of the node that wants to wake up when the gateway needs to send data.
Preferably, the signal detection and verification process is performed on each node according to a preset timing period, so as to generate a detection and verification result, specifically:
carrying out air signal detection on each node according to a preset timing period, and judging whether signals are detected or not;
if not, entering into dormancy, waiting for the next period to continue detection;
if yes, judging whether the detected signal is a preamble;
when the detected signal is judged not to be the preamble, detecting the next short packet;
when the detected signal is judged to be the preamble, checking the synchronous word of the signal;
when the synchronous word passes the check, a detection check passing result is generated;
and when the synchronous word check fails, generating a detection check failure result, entering dormancy, and waiting for the next period to be detected again.
Preferably, when the detection and verification result is judged to be the detection and verification passing result, a data receiving receipt is performed, the received data is preprocessed, a response time window is generated, and a timer is set according to the response time window, specifically:
when the detection and verification result is judged to be the detection and verification passing result, the control node receives data and obtains the remaining time percentage;
calculating according to the remaining time percentage, the wake-up period and the communication rate to generate a response time window;
setting a timer to count time and entering into dormancy.
Preferably, when the timer finishes counting, the node is awakened, and a response packet is sent to inform the gateway of the terminal state, and the gateway performs exception checking or communication processing according to the received terminal state, specifically:
when the timer finishes timing, waking up the node, and sending a response packet to inform the gateway terminal state, wherein under normal conditions, the state of the response packet is 0, which represents that the response packet can be received normally;
if the node is abnormal, reporting an abnormal code to a gateway, and reporting the abnormality to a server by the gateway so as to facilitate abnormality investigation of the node;
and when the gateway receives the normal state of the node, sending the service data to the node so as to complete the whole single-point awakening and communication process.
The invention also discloses a LoRa error-wake-preventing single-point wake-up device, which comprises:
the serial number configuration unit is used for configuring the node serial numbers of the gateways according to a preset sequence, taking the node serial numbers as node addresses and configuring the node addresses into synchronous words, wherein each node is provided with a unique corresponding synchronous word;
the verification unit is used for carrying out signal detection and verification processing on each node according to a preset timing period to generate a detection and verification result, wherein the detection and verification result comprises a detection and verification passing result and a detection and verification failing result;
the timing unit is used for receiving the receipt of the data when the detection and verification result is judged to be the detection and verification passing result, preprocessing the received data, generating a response time window and setting a timer according to the response time window;
and the communication unit is used for waking up the node when the timer finishes timing, sending a response packet to inform the gateway of the terminal state, and carrying out abnormal check processing or communication processing by the gateway according to the received terminal state.
Preferably, the verification unit is specifically configured to:
carrying out air signal detection on each node according to a preset timing period, and judging whether signals are detected or not;
if not, entering into dormancy, waiting for the next period to continue detection;
if yes, judging whether the detected signal is a preamble;
when the detected signal is judged not to be the preamble, detecting the next short packet;
when the detected signal is judged to be the preamble, checking the synchronous word of the signal;
when the synchronous word passes the check, a detection check passing result is generated;
and when the synchronous word check fails, generating a detection check failure result, entering dormancy, and waiting for the next period to be detected again.
Preferably, the timing unit is specifically configured to:
when the detection and verification result is judged to be the detection and verification passing result, the control node receives data and obtains the remaining time percentage;
calculating according to the remaining time percentage, the wake-up period and the communication rate to generate a response time window;
setting a timer to count time and entering into dormancy.
The invention also discloses LoRa error-wake-preventing single-point wake-up equipment, which comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor realizes the LoRa error-wake-preventing single-point wake-up method according to any one of the above when executing the computer program.
The invention also discloses a readable storage medium which stores a computer program, wherein the computer program can be executed by a processor of a device where the storage medium is located, so as to realize the LoRa error-wake-preventing single-point wake-up method.
In summary, when the gateway needs to wake up the node to communicate, a large number of short packets are encapsulated to form a preamble packet, the preamble includes a short preamble, a synchronization word, and a remaining percentage, the node filters in a hardware layer after detecting the short packet synchronization word, if not, immediately goes to sleep, if not, receives the remaining percentage, and calculates a response window time according to the remaining percentage, the rate, the detection period, and the like, goes to sleep until the window time reaches to resend the response packet, and the gateway resends the service data packet after receiving the response packet. In the whole process, the non-communication node can judge whether the data packet is a self data packet or not in the hardware level, and responds after the preamble packet to ensure that the awakening is successful, then the service data is transmitted, and if the awakening is unsuccessful, the preamble packet is transmitted again, and the air transmission time can be reduced to the greatest extent in the process, so that the single-point awakening, the acknowledgement and the data communication are realized, the communication success rate is ensured, and the low-power consumption error awakening prevention communication is finished. Therefore, the problem that the power consumption is high and the cruising ability of a product is influenced due to the fact that the LoRa system in the prior art is frequently and mistakenly awakened in a low-power-consumption application scene and is in a receiving state for a long time is solved.
Drawings
Fig. 1 is a schematic diagram of gateway and node signal communication in the prior art according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of a single-point wake-up method for preventing false wake-up of LoRa according to the first aspect of the present invention.
Fig. 3 is a schematic flow chart of a single-point wake-up method for preventing false wake-up of LoRa according to a second aspect of the present invention.
Fig. 4 is a schematic diagram of a preamble packet of a single-point wake-up method for preventing false wake-up by LoRa according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of wake-up at a preamble of a single-point wake-up method for preventing false wake-up by LoRa according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of wake-up at a non-preamble of a single point wake-up method for preventing false wake-up by LoRa according to an embodiment of the present invention.
Fig. 7 is a schematic diagram of post-wake verification of a single point wake method for preventing false wake by LoRa according to an embodiment of the present invention.
Fig. 8 is a wake-up communication schematic diagram of a single point wake-up method for preventing false wake-up by LoRa according to an embodiment of the present invention.
Fig. 9 is a schematic block diagram of a single-point wake-up device for preventing false wake-up by LoRa according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, based on the embodiments of the invention, which are apparent to those of ordinary skill in the art without inventive faculty, are intended to be within the scope of the invention. Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, based on the embodiments of the invention, which are apparent to those of ordinary skill in the art without inventive faculty, are intended to be within the scope of the invention.
Specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Referring to fig. 2 to 3, a first embodiment of the present invention provides a single-point wake-up method for preventing false wake-up by the single-point wake-up device (hereinafter wake-up device), and in particular, by one or more processors in the wake-up device, so as to implement the following steps:
in this embodiment, the wake-up device may be a user terminal device (such as a smart phone, a smart computer or other smart devices), and the user terminal device may establish a communication connection with a cloud server to implement data interaction.
S101, configuring a node sequence number of a gateway according to a preset sequence, taking the node sequence number as a node address, and configuring the node address into a synchronous word, wherein each node has a unique corresponding synchronous word;
specifically, in this embodiment, the synchronization word supports at most 8 bytes, where the synchronization word of the group preamble packet is the address of the node that wants to wake up when the gateway needs to send data.
In this embodiment, as shown in fig. 4, the gateway encapsulates a preamble packet before sending data, where the preamble packet includes n+1 short packets. The short packets consist of a short preamble, a sync word, and a remaining percentage, wherein the remaining percentage is a ratio of how many detection periods remain, for example, the detection period is 2 seconds, and each short packet is 200ms, and the detection period is n=10, the remaining percentage of the first short packet is 90%, and the remaining percentage of the nth short packet is 0%. The reason why the preamble of fig. 4 is one packet more than the detection period is to prevent the node from waking up in the non-preamble of the nth packet, it is necessary to continue to receive one packet of the short packet to determine the current time node. Where the remaining percentage of n+1 packets is fixed to 0xFF for the last packet explicitly and the node can then reply.
In this embodiment, step one, the nodes firstly configure the node serial numbers in order as addresses when deploying, and configure the addresses into the synchronization words, so that each node has a unique synchronization word, the synchronization word when the gateway needs to send the data group preamble packet is the address of the node which wants to wake up, and the synchronization word supports 8 bytes at most, so that 16777216 nodes are supported, and the method is sufficient to meet various application scenarios.
S102, carrying out signal detection and verification processing on each node according to a preset timing period to generate a detection and verification result, wherein the detection and verification result comprises a detection and verification passing result and a detection and verification failing result;
specifically, step S102 includes: carrying out air signal detection on each node according to a preset timing period, and judging whether signals are detected or not;
if not, entering into dormancy, waiting for the next period to continue detection;
if yes, judging whether the detected signal is a preamble;
when the detected signal is judged not to be the preamble, detecting the next short packet;
when the detected signal is judged to be the preamble, checking the synchronous word of the signal;
when the synchronous word passes the check, a detection check passing result is generated;
and when the synchronous word check fails, generating a detection check failure result, entering dormancy, and waiting for the next period to be detected again.
Specifically, in this embodiment, the node may be located in the preamble after the node is turned on and detected, and may also be located in the sync word or the data content, and various cases are described below with reference to the drawings. Fig. 5 illustrates that the node detects the wake-up of the preamble and completes the sync word matching, and the node completes the reception of the data content (the remaining percentage). And calculating the residual detection period time t1 by combining the residual percentage and the wake-up period, and calculating a short packet time t2 according to the rate, so that the residual time of the preamble packet is t=t1+t2, and after the timer is set, the node enters dormancy, and waits for the time to reach and wake up to send a response packet. Fig. 6 shows a situation when a node wakes up at a non-preamble, where the node cannot check the sync word and acquire data, so that it will continue to receive a short packet, and after checking the sync word, it will perform the operations of reading the remaining percentage and calculating the wake-up time. Fig. 7 shows a case that the check of the sync word is not matched, the node will go to sleep at the hardware level after the check of the sync word fails, and interrupt wake-up master control will not be generated, so as to realize single-point wake-up and error wake-up prevention.
In the embodiment, step two, the node periodically detects the air signal to detect whether gateway data need to be sent to the node, and other times are in a low-power-consumption sleep state; and if the signal is not detected, the device enters dormancy and waits for the next period to continue detection. Filtering the subsequent synchronous words if the detected preamble is the non-preamble, and continuing to receive until the synchronous word of the next data packet is received and checked; and the hardware layer checks the synchronous word, if the synchronous word does not pass the check, the synchronous word enters dormancy, and waits for the detection of the next period, and if the synchronous word passes the check, the synchronous word enters the next step.
S103, when the detection and verification result is judged to be the detection and verification passing result, carrying out data receiving receipt, preprocessing the received data, generating a response time window, and setting a timer according to the response time window;
specifically, step S103 includes: when the detection and verification result is judged to be the detection and verification passing result, the control node receives data and obtains the remaining time percentage;
calculating according to the remaining time percentage, the wake-up period and the communication rate to generate a response time window;
setting a timer to count time and entering into dormancy.
Specifically, in the embodiment, step three, the node receives data, obtains the remaining time percentage, calculates the response time window according to the remaining percentage, the wake-up period and the communication rate, sets a timer, and goes to sleep.
S104, when the timer is finished, waking up the node, sending a response packet to inform the gateway of the terminal state, and carrying out abnormal check processing or communication processing by the gateway according to the received terminal state.
Specifically, step S104 includes: when the timer finishes timing, waking up the node, and sending a response packet to inform the gateway terminal state, wherein under normal conditions, the state of the response packet is 0, which represents that the response packet can be received normally;
if the node is abnormal, reporting an abnormal code to a gateway, and reporting the abnormality to a server by the gateway so as to facilitate abnormality investigation of the node;
and when the gateway receives the normal state of the node, sending the service data to the node so as to complete the whole single-point awakening and communication process.
Specifically, in this embodiment, fig. 8 will illustrate the entire flow of the entire preamble packet wakeup, node reply, and gateway sending service data to the node. In fig. 8, the gateway encapsulates n+1 short packets before sending data, the node wakes up by any one of the first n short packets and receives the remaining percentage value to calculate the time point of the response window, then sleeps for waiting, responds after reaching the time window, and after receiving the response, the gateway confirms that the node is successfully waken up, and then sends the service data to the node.
In the embodiment, step four, the node is awakened by the timer and responds, the state is 0 under the normal condition, the node can normally receive, if the node is abnormal, the gateway can report the abnormal code, the gateway reports the abnormal code to the server, and then the node can be subjected to abnormal investigation. And the gateway sends the service data to the node after receiving the normal state of the node. The whole single-point awakening and communication process is completed.
The LoRa error-wake-prevention single-point wake-up method relates to the fields of low-power-consumption wide area networks, internet of things, air wake-up and the like. The method solves the problems that the LoRa system is frequently awakened by mistake in a low-power-consumption application scene, and is in a receiving state for a long time, so that the power consumption is high, and the like. In the method, a gateway firstly packages short packets in batches to form a preamble packet before transmitting data, a node periodically starts detection, a hardware layer checks a synchronous word after detecting the preamble, if the check fails, the gateway sleeps, if the check passes, the residual percentage of a receiving period and a response time window is calculated, the node sleeps to the time window and responds, and the gateway transmits a service data packet after receiving the response packet. In the process, only the node corresponding to the synchronous word can be awakened and performs the next response and data receiving, and other nodes directly enter dormancy when the synchronous word is not matched, so that a single-point awakening function is realized, the node is prevented from being awakened by mistake, the awakening node in the process can enter dormancy only by receiving a short packet at night, the node is not required to be in a receiving state for a long time, and a response mechanism is added to ensure the success rate of communication.
Namely, the technical scene of application of the LoRa error-wake-preventing single-point wake-up method is a star network, the whole system comprises a large number of LoRa nodes, a small part of gateways and a management platform, the nodes are inconvenient to perform wired deployment in many cases, and the power supply is needed by using a battery, so that low power consumption is needed. When the platform needs to send data to the node, the platform needs to wake up the node in the air first and then conduct data communication. The method adopts the scheme of short packets and synchronous words to enable the nodes to realize the filtration of the synchronous words at the hardware level, thereby completing the verification when receiving as little data as possible. The rest percentage is added to enable the designated node to calculate the response time window, the designated node is dormant and waits in the process, and the receiving window is not required to be continuously opened, so that the power consumption is reduced to the greatest extent on the basis of ensuring that the designated node is not awakened by mistake and the communication success rate is ensured.
In summary, the prior art node cannot determine information such as an address before completing data reception, so that the node can be awakened only by over-the-air awakening under the condition that radio frequency parameters are the same. The LoRa error-wake-prevention single-point wake-up method can be used for hardware level filtering only by completing synchronous word receiving of a short packet. Compared with the LoRa error-wake-preventing single-point wake-up method, the error wake-up can be avoided, and the single-point wake-up is realized. The prior art needs to finish long preamble and data reception to judge whether the data is self data, and the node is in a receiving state for a long time in the process, so that the power consumption is high. The LoRa error-wake-preventing single-point wake-up method can calculate a response time window only by completing the receiving of a short packet when the synchronous word passes the check, and then dormancy is performed until the time window and the response is performed. Compared with the awakening node of the LoRa error-awakening-preventing single-point awakening method, the awakening node is in the receiving state only for a short time, and is in the low-power-consumption state for most of the time, so that the power consumption is greatly reduced. In order to ensure that the node is awakened successfully and complete data receiving, the original technology needs to respond after the node is processed, if the node fails, the awakening communication process needs to be repeatedly executed, and the node which is awakened by mistake again, so that the loss of a battery and the pressure of the whole system are increased. The LoRa error-wake-preventing single-point wake-up method enables the node to answer the state code after the preamble packet is completed, so that the node is ensured to be in a normal state, and the node is successfully waken up, if the node is not waken up, the preamble packet is waken up again, and the node can be determined without waiting for the service data packet.
In short, compared with the prior art, the invention realizes single-point wake-up by using the synchronous word check of the hardware level, and avoids false wake-up. The LoRa error-proof single-point awakening method can calculate a response time window only by completing the receiving of a short packet after awakening, then sleeps to the time window to perform response and data receiving, and compared with the prior art, the awakening process does not need to be in a receiving state all the time, and the awakening success rate can be greatly ensured by adding the response before transmitting data. The LoRa error-wake-preventing single-point wake-up method realizes that the single-point wake-up node can calculate the response time window only by receiving a small amount of data, and the communication success rate is greatly improved by sleeping to the time window for response and subsequent communication, so that the power consumption of the node of the whole system is effectively reduced, and the system performance is improved.
Referring to fig. 9, a second embodiment of the invention provides a single-point wake-up device for preventing false wake-up of LoRa, which includes:
a sequence number configuration unit 201, configured to configure a node sequence number of a gateway according to a preset sequence, take the node sequence number as a node address, and configure the node address into a synchronization word, where each node has a unique corresponding synchronization word;
a checking unit 202, configured to perform signal detection and check processing on each node according to a preset timing period, and generate a detection and check result, where the detection and check result includes a detection and check passing result and a detection and check failing result;
a timing unit 203, configured to, when it is determined that the detection and verification result is a detection and verification passing result, perform data receiving and receiving, perform preprocessing on the received data, generate a response time window, and set a timer according to the response time window;
and the communication unit 204 is configured to wake up a node when the timer expires, send a response packet to inform the gateway of the terminal state, and perform exception checking or communication processing according to the received terminal state.
Preferably, the verification unit 202 is specifically configured to:
carrying out air signal detection on each node according to a preset timing period, and judging whether signals are detected or not;
if not, entering into dormancy, waiting for the next period to continue detection;
if yes, judging whether the detected signal is a preamble;
when the detected signal is judged not to be the preamble, detecting the next short packet;
when the detected signal is judged to be the preamble, checking the synchronous word of the signal;
when the synchronous word passes the check, a detection check passing result is generated;
and when the synchronous word check fails, generating a detection check failure result, entering dormancy, and waiting for the next period to be detected again.
Preferably, the timing unit 203 is specifically configured to:
when the detection and verification result is judged to be the detection and verification passing result, the control node receives data and obtains the remaining time percentage;
calculating according to the remaining time percentage, the wake-up period and the communication rate to generate a response time window;
setting a timer to count time and entering into dormancy.
A third embodiment of the present invention provides a single point wake-up device for preventing false wake-up of a LoRa, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements a single point wake-up method for preventing false wake-up of a LoRa according to any one of the above.
A fourth embodiment of the present invention provides a readable storage medium storing a computer program, where the computer program can be executed by a processor of a device in which the storage medium is located, so as to implement a single point wake-up method for preventing false wake-up by using a LoRa as described in any one of the above.
Illustratively, the computer programs described in the third and fourth embodiments of the present invention may be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing a specified function that describe the execution of the computer program in the one LoRa anti-false wake-up single point wake-up device. For example, the device described in the second embodiment of the present invention.
The processor may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. The general processor may be a microprocessor or the processor may be any conventional processor, etc., and the processor is a control center of the single-point wake-up method for preventing false wake-up by using various interfaces and lines to connect various parts of the whole single-point wake-up method for preventing false wake-up by using the various interfaces and lines.
The memory can be used for storing the computer program and/or the module, and the processor can realize various functions of the LoRa error-wake-preventing single-point wake-up method by running or executing the computer program and/or the module stored in the memory and calling the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, a text conversion function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, text message data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
Wherein the modules may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as a stand alone product. Based on this understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and the computer program may implement the steps of each method embodiment described above when executed by a processor. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
It should be noted that the above-described apparatus embodiments are merely illustrative, and the units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the embodiment of the device provided by the invention, the connection relation between the modules represents that the modules have communication connection, and can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above examples, and all technical solutions belonging to the concept of the present invention belong to the protection scope of the present invention.
Claims (10)
1. The single-point awakening method for preventing false awakening of LoRa is characterized by comprising the following steps of:
configuring node serial numbers of gateways according to a preset sequence, taking the node serial numbers as node addresses, and configuring the node addresses into synchronous words, wherein each node has a unique corresponding synchronous word;
carrying out signal detection and verification processing on each node according to a preset timing period to generate a detection and verification result, wherein the detection and verification result comprises a detection and verification passing result and a detection and verification failing result;
when the detection and verification result is judged to be the detection and verification passing result, carrying out data receiving receipt, preprocessing the received data, generating a response time window, and setting a timer according to the response time window;
when the timer is finished, the node is awakened, a response packet is sent to inform the gateway of the terminal state, and the gateway can conduct abnormal check processing or communication processing according to the received terminal state.
2. The method for single point wakeup of LoRa and false wakeup prevention according to claim 1, wherein the synchronization word supports a maximum of 8 bytes, and wherein the synchronization word of the group preamble packet is the address of the node that wants to wake up when the gateway needs to send data.
3. The single-point wake-up method of claim 1, wherein the signal detection and verification process is performed on each node according to a preset timing period to generate a detection and verification result, specifically:
carrying out air signal detection on each node according to a preset timing period, and judging whether signals are detected or not;
if not, entering into dormancy, waiting for the next period to continue detection;
if yes, judging whether the detected signal is a preamble;
when the detected signal is judged not to be the preamble, detecting the next short packet;
when the detected signal is judged to be the preamble, checking the synchronous word of the signal;
when the synchronous word passes the check, a detection check passing result is generated;
and when the synchronous word check fails, generating a detection check failure result, entering dormancy, and waiting for the next period to be detected again.
4. The method for single point wakeup of LoRa error proofing according to claim 3, wherein when the detection and verification result is judged to be the detection and verification passing result, a data receipt is carried out, the received data is preprocessed, a response time window is generated, and a timer is set according to the response time window, specifically:
when the detection and verification result is judged to be the detection and verification passing result, the control node receives data and obtains the remaining time percentage;
calculating according to the remaining time percentage, the wake-up period and the communication rate to generate a response time window;
setting a timer to count time and entering into dormancy.
5. The method for single point wakeup of LoRa error proofing wake-up as defined in claim 4, wherein when the timer is finished, the wake-up node sends a response packet to inform the gateway of the terminal state, and the gateway performs exception checking or communication processing according to the received terminal state, specifically:
when the timer finishes timing, waking up the node, and sending a response packet to inform the gateway terminal state, wherein under normal conditions, the state of the response packet is 0, which represents that the response packet can be received normally;
if the node is abnormal, reporting an abnormal code to a gateway, and reporting the abnormality to a server by the gateway so as to facilitate abnormality investigation of the node;
and when the gateway receives the normal state of the node, sending the service data to the node so as to complete the whole single-point awakening and communication process.
6. The utility model provides a single point awakening device is awakened to loRa mistake of preventing, which is characterized in that includes:
the serial number configuration unit is used for configuring the node serial numbers of the gateways according to a preset sequence, taking the node serial numbers as node addresses and configuring the node addresses into synchronous words, wherein each node is provided with a unique corresponding synchronous word;
the verification unit is used for carrying out signal detection and verification processing on each node according to a preset timing period to generate a detection and verification result, wherein the detection and verification result comprises a detection and verification passing result and a detection and verification failing result;
the timing unit is used for receiving the receipt of the data when the detection and verification result is judged to be the detection and verification passing result, preprocessing the received data, generating a response time window and setting a timer according to the response time window;
and the communication unit is used for waking up the node when the timer finishes timing, sending a response packet to inform the gateway of the terminal state, and carrying out abnormal check processing or communication processing by the gateway according to the received terminal state.
7. The single point wake-up device for preventing false wake-up of LoRa of claim 6, wherein the verification unit is specifically configured to:
carrying out air signal detection on each node according to a preset timing period, and judging whether signals are detected or not;
if not, entering into dormancy, waiting for the next period to continue detection;
if yes, judging whether the detected signal is a preamble;
when the detected signal is judged not to be the preamble, detecting the next short packet;
when the detected signal is judged to be the preamble, checking the synchronous word of the signal;
when the synchronous word passes the check, a detection check passing result is generated;
and when the synchronous word check fails, generating a detection check failure result, entering dormancy, and waiting for the next period to be detected again.
8. The single point wake-up device for preventing false wake-up of LoRa of claim 6, wherein the timing unit is specifically configured to:
when the detection and verification result is judged to be the detection and verification passing result, the control node receives data and obtains the remaining time percentage;
calculating according to the remaining time percentage, the wake-up period and the communication rate to generate a response time window;
setting a timer to count time and entering into dormancy.
9. A single point wake-up device for preventing false wake-up of a LoRa, comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements a single point wake-up method for preventing false wake-up of a LoRa as claimed in any one of claims 1 to 5 when the computer program is executed by the processor.
10. A readable storage medium, storing a computer program executable by a processor of a device in which the storage medium is located to implement a LoRa false wake prevention single point wake method as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311481557.7A CN117412363A (en) | 2023-11-08 | 2023-11-08 | LoRa error-wake-prevention single-point wake-up method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311481557.7A CN117412363A (en) | 2023-11-08 | 2023-11-08 | LoRa error-wake-prevention single-point wake-up method, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117412363A true CN117412363A (en) | 2024-01-16 |
Family
ID=89492356
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311481557.7A Pending CN117412363A (en) | 2023-11-08 | 2023-11-08 | LoRa error-wake-prevention single-point wake-up method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117412363A (en) |
-
2023
- 2023-11-08 CN CN202311481557.7A patent/CN117412363A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108738109B (en) | Site awakening method and site | |
EP3010289B1 (en) | Method and apparatus for controlling signal transmission and computer program product | |
CN109041181B (en) | Wireless communication method, system and gateway equipment | |
CN109951890B (en) | Data communication method, relay node, terminal node and communication system | |
US20160345294A1 (en) | Method and Apparatus for Notification of System Information Changes in a Wireless Communication System | |
CN110688133A (en) | Method, system and device for upgrading distributed firmware and electronic equipment | |
US10945207B2 (en) | Beacon signal processing system and filtering method of reducing wake-up frequency | |
CN113965904A (en) | Device registration method, device and storage medium | |
CN113038584A (en) | Data transmission method and system for wireless sensor network | |
US7720465B2 (en) | System, method and apparatus employing tones and/or tone patterns to indicate the message type in wireless sensor networks | |
CN111465086B (en) | Method and device for sending and receiving wake-up signal and electronic device | |
US10772041B2 (en) | Beacon signal processing system | |
CN108834204B (en) | Paging method, system and network equipment | |
CN117412363A (en) | LoRa error-wake-prevention single-point wake-up method, device, equipment and medium | |
CN113784232B (en) | Low-power-consumption communication method of intelligent water meter based on LoRa | |
CN108632959B (en) | Site awakening method and target site | |
CN115604796A (en) | Data transmission method, system, device and storage medium | |
CN114786243A (en) | Indication method for validity of reference signal transmission opportunity and user equipment | |
CN114786246B (en) | Communication control method, communication system, electronic device, and readable storage medium | |
CN111385167A (en) | Network connection recovery method, device, computer device and storage medium | |
CN113794992B (en) | Wireless broadcasting method, device, terminal equipment and storage medium | |
CN115037659B (en) | Method and device for controlling automobile | |
WO2023024891A1 (en) | Monitoring method, communication apparatus, chip and module device thereof | |
CN116321086A (en) | Data transmission method, gateway and Bluetooth tag | |
CN113517987B (en) | Dormancy method, dormancy device, gateway device and storage medium |
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 |