Summary of the invention
The present invention provides aerial awakening method, remote-wireless electricity LoRa transmitter and receivers, are received by reducingMachine receives lead code duration, effectively saves the energy consumption of receiver, solves problems of the prior art.
Used technical solution is the present invention to solve above-mentioned technical problem:
In a first aspect, the embodiment of the invention provides aerial awakening methods, including, remote-wireless electricity LoRa receiver connectsIt receives lead code and valid data, the lead code includes multiple leading chip segments, instruction information is carried on each leading chip segment,The instruction information is used to indicate the temporal information that intended receivers receive the valid data;The LoRa receiver parses instruction letterBreath determines that the LoRa receiver is in suspend mode or the LoRa receiver is made to enter low-power consumption mould according to the instruction informationFormula;Wherein, the power of the LoRa receiver under low-power consumption mode, lower than the power under the suspend mode;The LoRa is receivedPower of the machine under the suspend mode, lower than power in the normal mode.
In one example, which includes following any one or more: intended receivers address, lead codeThe duration of duration, current leading chip segment to valid data;Wherein, the intended receivers address is corresponding with the valid data.
In one example, the duration of the lead code is equal to the sum of the duration of all leading chip segments, and continuous multipleThe duration equivalent variation carried on leading chip segment.
In one example, which parses the instruction information, determines that the LoRa is according to the instruction informationSuspend mode makes the LoRa enter low-power consumption mode, specifically: the LoRa receiver is according in the current lead code segmentThe instruction information of carrying, determines intended receivers address, and determine the intended recipient address whether be this LoRa receiver groundLocation;In the case where the intended receivers address is not the address of this LoRa receiver, which starts suspend mode;In the case where the intended receivers address is the address of this LoRa receiver, which starts low-power consumption mode.
In one example, when the LoRa receiver starts suspend mode, which wakes up in the air, shouldPeriodically aerial wake up is realized by the timer in the LoRa.
In one example, this method further include: the LoRa receiver is according to the finger carried in the current lead code segmentShow information, determines corresponding duration information;It, should and in the case where the intended receivers address is the address of this LoRa receiverLoRa receiver starts low-power consumption mode, specifically: the case where the intended receivers address is the address of this LoRa receiverUnder, which is sent to the duration information timer in the LoRa receiver, and enters the LoRa receiverLow-power consumption mode, until the timer notifies the LoRa receiver receives should according to the duration information in the current lead code segmentValid data.
In one example, the sum of duration of multiple leading chip segment and valid data is received more than or equal to the LoRaThe aerial wake-up period of machine;Or the aerial wake-up period of LoRa receiver is the duration of multiple leading chip segment and valid dataThe sum of integral multiple.
Second aspect, the embodiment of the invention provides aerial awakening methods, including, remote-wireless electricity LoRa transmitter hairLead code and valid data are sent, which includes multiple leading chip segments, instruction information is carried on each leading chip segment,The instruction information is used to indicate the temporal information that intended receivers corresponding with the LoRa transmitter receive the valid data, with trueThe fixed receiver is in suspend mode or low-power consumption mode;Wherein, the power of the LoRa receiver under low-power consumption mode is lowIn the power under the suspend mode;The power of the LoRa receiver under the suspend mode, lower than function in the normal modeRate.
The third aspect, the embodiment of the invention provides a kind of remote-wireless electricity LoRa receivers, which is characterized in that packetInclude: receiver, for receiving lead code and valid data, which includes multiple leading chip segments, each leading chipInstruction information is carried in section, which is used to indicate the temporal information that intended receivers receive the valid data;Processor,For parsing the instruction information, according to the instruction information determine the LoRa receiver be in suspend mode or make the LoRa receiveMachine enters low-power consumption mode;Wherein, the power of the LoRa receiver under low-power consumption mode, lower than the function under the suspend modeRate;The power of the LoRa receiver under the suspend mode, lower than power in the normal mode.
Fourth aspect, the embodiment of the invention provides a kind of remote-wireless electricity LoRa transmitters, which is characterized in that packetInclude: processor is divided into multiple leading chip segments for determining intended receivers address, and by lead code, and target is connectReceipts machine address is arranged on the leading chip segment of each of multiple leading chip segments, and calculate each lead code to valid data whenIt is long, and by the setting of the obtained duration on corresponding leading chip segment;Transmitter, for sending multiple leading chip segments and havingImitate data.
Aerial awakening method, remote-wireless electricity LoRa transmitter and receiver provided in an embodiment of the present invention, design are closedReason.By way of lead code to be divided into multiple segments and carries intended receivers address, receiver is made to judge the machine in advanceWhether it is intended receivers, reduces the duration that non-target receiver receives useless lead code;It is multiple by the way that lead code to be divided intoSegment and carry remaining lead code duration information mode, so that receiver is entered low-power consumption shape according to duration information timingState reduces the duration that receiver receives remaining lead code, the power consumption of receiver is effectively reduced.
Specific embodiment
In order to clarify the technical characteristics of the invention, below by specific embodiment, and its attached drawing is combined, to this hairIt is bright to be described in detail.
Awakening technology aerial for LoRa, transmitter can carry very long lead code when sending frame.However, lead codeNo any agreement is standardized, and causes receiver that can not judge next to wait and how long just will receive actual data.ReceiverIt is receiving in the time before data, receiver is needed in lasting reception state until having received total data, leading receivingThe a large amount of loss of power, waste of resource can be made during code.In the environment of large-scale network-estabilishing because caused by aerial wake up power consumption damageMistake is particularly acute.
Therefore, lead code is divided into multiple leading chip segments by the embodiment of the present application, and can be taken after leading code segment in each of frontBand intended receivers address and duration information.Receiver judges whether the machine is intended recipient by intended receivers address in advanceMachine, to reduce the duration that non-target receiver receives useless lead code.The embodiment of the present application in lead code segment by carryingDuration information, determine the time that valid data arrive, receiver timing made to enter low power consumpting state, reduce receiver receive it is surplusThe power consumption of receiver is effectively reduced in the duration of remaining lead code.
In the embodiment of the present application, the length of leading chip segment can be all it is identical, be also possible to gradually be incremented by or passSubtract.
In the wireless network, there are multiple nodes, each node, which may act as transmitter, can also be used as receiver.In order toPower consumption is saved, receiver uses aerial awakening technology, i.e. receiver is periodically waken up automatically.Because of the time that receiver is waken upIt is extremely short, for the reception for avoiding missing valid data, longer lead code can be set before valid data, in the very short time waken upInterior, receiver can detect whether lead code, and when not detecting lead code, receiver immediately enters dormant state;DetectionWhen to lead code, receiver not secondary dormancy, but it is always maintained at normal reception state, until receiving valid data.In order toThe time that receiver is in reception state is reduced, longer lead code is separated into multiple leading chip segments by the embodiment of the present application,And intended receivers address and duration information are carried on leading chip segment, with this judge the machine whether be intended receivers andThe time to arrive apart from valid data, timing dormancy reduce the electric energy loss of receiver.
Dormant state refers in the real-time data memory to hard disk of all operations, and closes all unnecessary hardwareIn the hope of power saving.In embodiments herein, timer can be real-time clock RTC, when receiver in a dormant state when, onlyReal-time clock RTC is working, it is ensured that receiver can revive by cycle time, and other equipment are in lowest power consumption state;When connecingWhen receipts machine is in low power consumpting state, real-time clock RTC is timed according to the duration information received, when removing real-time in receiverClock RTC, other equipment are in lowest power consumption state.Whithin a period of time, the LoRa receiver under low power consumpting state, does not need weekPhase property wakes up, and master control and LoRa are under lowest power consumption state;And the LoRa receiver under dormant state, need the multiple periodProperty wake up, that is, LoRa receiver needs alternately to change in the state that normally receives and low power consumpting state under low power consumpting state,So the power of the LoRa receiver under low-power consumption mode, lower than the power under the suspend mode;The LoRa receiver existsPower under the suspend mode, lower than power in the normal mode.That is, the power consumption under Three models sorts are as follows: justNormal reception state > dormant state > low power consumpting state.
Below by the low-power consumption optimization system and method for Fig. 1-7 detailed description aerial awakening technology of LoRa.
Fig. 1 is remote-wireless electricity LoRa transmitter provided by one embodiment of the present invention and receiver schematic diagram.
The system includes LoRa transmitter 110 and multiple LoRa receivers, for example, the first receiver LoRa121, secondLoRa receiver 122, the 3rd LoRa receiver.It will be understood by those skilled in the art that Fig. 1 only symbolically shows three LoRaReceiver, in fact, the application and undocked receipts machine quantity is defined.In addition, LoRa transmitter may act as transmitterIt can also be used as receiver, LoRa receiver, which can also make receiver, can also make transmitter.
The LoRa transmitter, LoRa receiver such as wireless sensor etc., the LoRa transmitter can be received with multiple LoRaMachine wireless communication.LoRa transmitter wirelessly emits lead code and valid data, which includes multiple lead codesSegment, instruction information is carried on each leading chip segment, which is used to indicate intended receivers and receives valid dataTime.For example, the time of the reception valid data carried on the first leading chip segment is 5ms, carried in the second leading code segmentThe time for receiving valid data is 4ms, and the time of the reception valid data carried in third leading code segment is 3ms ....
LoRa receiver receives the lead code and valid data, and parses the letter of the instruction on currently received leading chip segmentBreath determines that LoRa receiver be in suspend mode and still makes the LoRa receiver into low according to the obtained temporal information of parsingPower consumption mode.
Fig. 2 is aerial awakening method flow chart provided in an embodiment of the present invention.
S201, LoRa transmitter emit lead code and valid data.
Lead code is broken down into multiple leading chip segments in LoRa transmitter, and carries and refer on each leading chip segmentShow information.
S202, LoRa receiver are periodically waken up, and detect lead code.
LoRa receiver 120 continues to use aerial awakening technology, periodically wakes up, and has checked whether lead code or valid data hairIt brings.
S203, LoRa receiver receive and parse through leading chip segment.
When LoRa transmitter 110 sends leading chip segment, when LoRa receiver 120 is by periodic wakeup, captureThe leading chip segment that LoRa transmitter 110 is sent, then LoRa receiver 120 receives and parses through the letter of the instruction on leading chip segmentBreath.
S204, LoRa receiver judge valid data intended receivers address whether the ground with this LoRa receiver 120Location is consistent.
S205, LoRa receiver 120 enters dormant state.
Specifically, if LoRa receiver 120 judges that the intended receivers address of valid data is not this LoRa receiver120 address, LoRa receiver 120 start suspend mode, and latent period wakes up in the air, repeat S202-S204 step;IfLoRa receiver 120 judges that the intended receivers address of valid data is the address of this LoRa receiver 120, then executes nextA step, that is, S206 step.
S206, LoRa receiver 120 is according to the duration information opening timing device in instruction information.
LoRa receiver 120 parses the duration T of the duration information i.e. leading chip segment to valid data, when according to thisThe timing wake-up source of a T time is arranged using real-time clock RTC for long T, LoRa receiver 120.
S207, LoRa receiver 120 enters low power consumpting state.
LoRa receiver 120 is under low power consumpting state, no longer periodic wakeup, until reach T time, during this,The power of LoRa receiver 120 is extremely low.
S208, timer wake up LoRa receiver 120 and receive valid data.
When the duration information T time of timer setting reaches, timing wake-up source wakes up LoRa receiver 120, and LoRa is receivedMachine 120 receives valid data immediately.
For example, aerial wake-up period is usually fixed, each leading if the aerial wake-up period set is 6 secondChip segment when it is 1 second a length of, the duration of valid data is also 1 second, then the total duration of leading chip segment and valid data should be setBe set to be greater than or equal to 6 seconds, if the total duration of leading chip segment and valid data is by chance set as 6 seconds, in this system beforeThe quantity of leading code segment is 5, because the sum of multiple leading chip segments and duration of valid data are that the LoRa receiver is called out in the airThe approximate number in awake period.So the quantity of leading chip segment may be 2 or 1 in example.
Fig. 3 is the frame structure diagram of lead code and valid data that one embodiment of the invention provides.
In this embodiment, the quantity of leading chip segment is 5, then carries identical target on this five leading chip segmentsReceiver address, meanwhile, the duration information carried on the first leading chip segment is 4 seconds, carry on the second leading chip segment whenLong message is 3 seconds, and the duration information carried on the leading chip segment of third is 2 seconds, the when long letter carried on the 4th leading chip segmentBreath is 1 second, and the duration information carried on the 5th leading chip segment is 0 second, is valid data after the 5th leading chip segment.WhenWhen LoRa transmitter 110 needs to send valid data into LoRa receiver 120, five first can be sent into LoRa receiver 120A leading chip segment, when LoRa transmitter 110 sends the first leading chip segment, LoRa receiver 120 in a dormant state, is sent outWhen LoRa receiver 120 came to life just past 6 seconds dormancy periods when sending the second leading chip segment, LoRa receiverInstruction information on 120 the second leading chip segments of parsing, judges whether the effective information oneself should receive, if should not be certainlyOneself receives, then immediately enters next 6 seconds dormancy periods, this implementation procedure saves the reception power consumption of 5 seconds durations;If shouldOneself is received, then parses the duration information in the second lead code, that is, 3 seconds durations is parsed, when LoRa receiver 120 uses real-time3 seconds timing wake-up source is arranged in clock RTC, then is started to receive data by RTC wake-up after 120 suspend mode of LoRa receiver 3 secondsValid data, this implementation procedure save the reception power consumption of 3 seconds durations.
Fig. 4 be another embodiment of the present invention provides lead code and valid data frame structure diagram.
In this embodiment, when the quantity of leading chip segment is 2, then the two leading chip segments and leading chip segment are neededFollowed by valid data be repeatedly sent to few 2 times, until until LoRa receiver 120 is revived.On the two leading chip segmentsIdentical intended receivers address is carried, meanwhile, the duration information carried on the first leading chip segment is 1 second, and second is leadingThe duration information carried on chip segment is 0 second, is valid data after the second leading chip segment.When LoRa transmitter 110 needsWhen sending valid data into LoRa receiver 120,2 leading chip segments can be first sent into LoRa receiver 120, work as LoRaLoRa receiver 120 is still in dormant state when transmitter 110 has sent 2 leading chip segments, then the first leading chip segmentIt retransmits once, if LoRa receiver 120 came to life just past 6 seconds dormancy periods at this time, LoRa receiver 120The instruction information on the first leading chip segment is parsed, judges whether the effective information oneself should receive, if not should oneselfIt receives, then immediately enters next 6 seconds dormancy periods, this implementation procedure saves the reception power consumption of 2 seconds durations;If should be certainlyOneself receives, then according to the duration information in the first lead code, that is, parses 1 second duration, LoRa receiver 120 uses real-time clock1 second timing wake-up source is arranged in RTC, and then starting reception data by RTC wake-up after 120 suspend mode of LoRa receiver 1 second hasData are imitated, this implementation procedure saves the reception power consumption of 1 second duration.Such implementation procedure, LoRa receiver 120 wake up after byThe of short duration time just can receive valid data.
Fig. 5 is the frame structure diagram of lead code and valid data that further embodiment of this invention provides.
In this embodiment, when the quantity of leading chip segment is 1, i.e., the first leading chip segment is lead code, it is only necessary toLead code is shortened as far as possible, the lead code and lead code followed by valid data be repeatedly sent to it is 3 times few, until waiting untilLoRa receiver 120 is revived.Intended receivers address and duration information are carried in lead code, which is 0 second, certainly,In lead code in this embodiment, instruction information can not also be carried.When LoRa transmitter 110 is needed to LoRa receiver 120When interior transmission valid data, LoRa transmitter 110 can repeat to send lead code and valid data into LoRa receiver 120, directlyThe dormancy period that have passed through 6 seconds to LoRa receiver 120 comes to life, and wakes up just can receive valid data in this way.Such executionProcess improves the efficiency that LoRa receiver 120 receives valid data.
Fig. 6 is the remote-wireless electricity LoRa transmitter and receiver schematic diagram that another embodiment of the present invention provides.
The system includes a kind of remote-wireless electricity LoRa receiver 120, which includes receiver 621With second processor 622, for the receiver 621 for receiving lead code and valid data, which includes multiple leading chipsSection, each carries instruction information on the leading chip segment, which is used to indicate intended receivers and receives the valid dataTemporal information.
The second processor 622 determines the LoRa receiver 120 according to the instruction information for parsing the instruction informationIn suspend mode or the LoRa receiver 120 is made to enter low-power consumption mode;Wherein, the LoRa receiver is in low-power consumption modeUnder power, lower than the power under the suspend mode;The power of the LoRa receiver 120 under the suspend mode is lower thanPower under normal mode.
The system further includes a kind of remote-wireless electricity LoRa transmitter 110, which includes the first processingDevice 612 and transmitter 611, the first processor 612 are used to extract the intended receivers addresses of valid data, and by the targetReceiver address is separately positioned on multiple leading chip segments, which is also used to calculate each lead code to effectiveThe duration of data, and by duration setting on corresponding leading chip segment.
The transmitter 611 is for sending multiple leading chip segments and valid data.
Fig. 7 is the remote-wireless electricity LoRa transmitter and receiver schematic diagram that another embodiment of the invention provides.
Multiple leading chip segments and valid data in LoRa transmitter 110 are successively sent into LoRa receiver 120.ItsIn, the duration of lead code is equal to the sum of the duration of all leading chip segments, and carried on continuous multiple leading chip segments whenLong equivalent variation.
The LoRa transmitter 110 is for sequentially sending multiple leading chip segments and valid data, each leading chip segmentOn carry instruction information, which includes following any one or more: intended receivers address, lead code whenLong, currently leading chip segment to valid data duration;Wherein, the intended receivers address is corresponding with the valid data.It shouldLoRa receiver 120 starts corresponding LoRa and connects for receiving multiple leading chip segments and valid data, parsing instruction information, selectionThe sleep block or low-power consumption module of receipts machine 120.
Specifically, the identification module 721 of LoRa receiver 120 parses the instruction information on leading chip segment, target is obtainedReceiver address and duration information, LoRa receiver preferentially judge whether the intended recipient address is this LoRa receiver 120Address;If not the address of this LoRa receiver 120, LoRa receiver 120 starts sleep block 722, periodically aerial to wake upAlso corresponding starting, latent period wake up module 724 in the air, and duration information abandons;If the address of this LoRa receiver 120,LoRa receiver 120 is according to duration information, the timing wake-up source for utilizing real-time clock RTC to be arranged one in LoRa receiver,And starting low-power consumption module 723, timing wake-up source timing wake-up is in the LoRa receiver of low-power consumption mode, into routine workModule 725 makes LoRa receiver enter the state for normally receiving valid data.
In original aerial awakening technology, LoRa transmitter 110 sends message to multiple LoRa receivers 120 simultaneously, moreA LoRa receiver 120 is periodically aerial to be waken up, and receives lead code when LoRa receiver 120 is in revival, then multiple LoRa connectReceipts machine 120 is intended to keep normal operating condition, until receiving valid data, can just determine whether this LoRa receiver 120Should received valid data, if it is determined that be not that this LoRa receiver 120 should be after received valid data, this LoRa receiver120 enter dormant state, and next second periodicity is waited to wake up in the air.Such implementation procedure is not belonging to this LoRa in reception and receivesMachine 120 should lead code before received valid data when, consume more electric energy, cause the waste of energy.
And optimization system provided by the embodiments of the present application, then it can by the intended receivers on leading chip segment in advanceLocation determines target LoRa receiver 120, that is to say, that the only address one of intended receivers address and the LoRa receiver 120When cause, which just understands start by set date and receives valid data, other are different with 120 addresses of target LoRa receiverThe LoRa receiver 120 of cause then immediately enters dormant state, reduces the time that LoRa receiver 120 receives useless lead code, subtractsFew energy consumption.
As shown in figure 1, in the instruction information that LoRa transmitter 110 is sent, setting 120 address of target LoRa receiver is0x01;The address of first LoRa receiver 121 is 0x01, and the address of the 2nd LoRa receiver 122 is 0x02, and the 3rd LoRa is receivedThe address of machine 123 is 0x03, and the aerial wake-up period of LoRa receiver 120 is 4 seconds.When LoRa transmitter 110 is simultaneously to firstWhen LoRa receiver 121, the 2nd LoRa receiver 122 and third receive transmission message, the 2nd LoRa receiver 122 and thirdLoRa receiver 123 receives the message that LoRa transmitter 110 is sent periodically after revival by suspend mode in 4 seconds, determinesThis message is unrelated with oneself, then the 2nd LoRa receiver 122 and the 3rd LoRa receiver 123 immediately enter dormant state, waitsThe aerial wake-up in next period is being revived after that is, suspend mode 4 seconds;And the first LoRa receiver 121 was by suspend mode in 4 seconds, it is periodicalAfter revival, the message that LoRa transmitter 110 is sent is received, determines that this message is related with oneself, the first LoRa receiver 121Then according to the duration information T on this section of leading chip segment, the timing wake-up source of a T period is set using real-time clock RTC, theOne LoRa receiver 121 enters low power consumpting state, and timing wake-up source runs the first LoRa receiver 121 under low power consumpting stateEnter normal operating condition after the T period, receives valid data.Here real-time clock RTC, that is, Real-time clock, refers toThe electronic equipment that the real time can be exported as clock, generally can be integrated circuit, therefore also referred to as clock chip;HereinIn the RTC or timer that mention, can be individual chip, be also possible to the integrated peripheral hardware of main control chip.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosureUnit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrateThe interchangeability of part and software generally describes each exemplary composition and step according to function in the above description.These functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Professional technician can use different methods to achieve the described function each specific application, but this realizationIt should not be considered as beyond the scope of the present invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can be executed with hardware, processorThe combination of software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only memory(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical fieldIn any other form of storage medium well known to interior.
The specific embodiment being somebody's turn to do above has carried out further in detail the purpose of the present invention, technical scheme and beneficial effectsDescribe in detail it is bright, it should be understood that above should be only a specific embodiment of the invention, the guarantor being not intended to limit the present inventionRange is protected, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should be included in thisWithin the protection scope of invention.