CN110493856A - Data frame retransmission method, device, equipment and the storage medium of wireless network suspend mode - Google Patents

Data frame retransmission method, device, equipment and the storage medium of wireless network suspend mode Download PDF

Info

Publication number
CN110493856A
CN110493856A CN201910796485.2A CN201910796485A CN110493856A CN 110493856 A CN110493856 A CN 110493856A CN 201910796485 A CN201910796485 A CN 201910796485A CN 110493856 A CN110493856 A CN 110493856A
Authority
CN
China
Prior art keywords
frame
window
gateway node
suspend mode
data frame
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
CN201910796485.2A
Other languages
Chinese (zh)
Other versions
CN110493856B (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.)
CSG Electric Power Research Institute
China Southern Power Grid Co Ltd
Research Institute of Southern Power Grid Co Ltd
Original Assignee
China Southern Power Grid Co Ltd
Research Institute of Southern Power Grid 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 China Southern Power Grid Co Ltd, Research Institute of Southern Power Grid Co Ltd filed Critical China Southern Power Grid Co Ltd
Priority to CN201910796485.2A priority Critical patent/CN110493856B/en
Publication of CN110493856A publication Critical patent/CN110493856A/en
Application granted granted Critical
Publication of CN110493856B publication Critical patent/CN110493856B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power 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
    • 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

Abstract

This application discloses the data frame retransmission methods of wireless network suspend mode, including judge whether gateway node enables suspend mode, if it is set equal with sleep time for length of window, in next step, be otherwise provided as default value and terminate process;Data frame is sent to gateway node, receives window period into first;Judge whether to have received frame or information, if it is executes the 5th step;Judge whether the first reception window terminates, if it is, terminating process, if it is not, then executing third step;Judge whether to receive the reply frame that gateway node is sent, if it is, terminating the first reception window and terminating process;Judge whether to have received gateway node and issue the frame of other nodes and without subsequent frame, if it is, being not provided with the second reception window terminates process;Setting second receives window, then waits a window time, and this method can be such that the terminal node working time shortens, energy consumption reduces, and present invention also provides related device, equipment and storage mediums.

Description

Data frame retransmission method, device, equipment and the storage medium of wireless network suspend mode
Technical field
The invention belongs to data transmission of internet of things technical fields, more particularly to the data frame re-transmission side of wireless network suspend mode Method, device, equipment and storage medium.
Background technique
In recent years, Internet of Things has obtained extensive attention, and obtains significant progress, but the interconnection of Internet of Things still lacks Weary dedicated network protocol.For connection requirements such as low-power consumption, wide scope required for Internet of Things, it is (low that industry proposes LPWAN Power consumption wide area network) concept, suitable for the network technology of LPWAN, there are many kind, including LoRa, Sigfox, LTM-M and NWave Deng.
The current relative maturity of LoRa technology, reaching can be " Long with the state of large-scale network-estabilishing and application, LoRa The abbreviation of Range " means remote transmission.LoRa is a kind of radio modem technology, is suitable for long range, low-power consumption With the application of low message transmission rate.LoRa is communicated using the channel of 125kHz, and message transmission rate range is 0.3~ 50kbit/s.Due to using spread-spectrum modulation technique, LoRa can realize demodulation when signal-to-noise ratio is lower than 20dB, this has network connection Have highly sensitive, relatively reliable.LoRa overall network structure is divided into terminal, gateway, network service and the several function of application service Can, it can be carried out data transmission by LoRa wireless technology between general LoRa terminal and gateway, and gateway and core net or wide Interaction between the net of domain can be the Ethernet of wired connection by ICP/IP protocol, can also be the wireless of 3G/4G class Connection, as shown in FIG. 1, FIG. 1 is the overall network structural schematic diagrams of LoRa.The transmission of LoRaWAN agreement is broadly divided into 3 kinds of moulds Formula, is referred to as Class A, Class B and Class C, and the terminal device in all LoRaWAN agreements all allows for realizing Class A.Wherein, the terminal device of Class A is least in power-consuming in the application and allows two-way communication, and terminal sends a uplink Transmit signal after with server carry out downlink communication, with server downlink communication whenever all can only be uplink communication it Afterwards, the parameter setting of the transmission window of terminal device depends on equipment own communication needs, and the window can be finely adjusted, Along with the transmission of each uplink, terminal device can all open two reception windows, receive the content of downlink transmission, The starting time for receiving window is fixed, as shown in Fig. 2, Fig. 2 is the schematic diagram that Class mode A receives window timing, reception window Mouthful 1 (RX1) is opened after uplink modulation terminates RECEIVE_DELAY1 (unit s, ± 20 microseconds) duration, it and uplink Road uses identical channel frequency, and the data transfer rate for receiving window 1 can be adjusted according to the data transfer rate of uplink;Reception window 2 (RX2) of mouth are opened after RECEIVE_DELAY2 (unit s, ± 20 microseconds) duration after uplink modulation, its use is set The fixed frequency and data transfer rate set, channel frequency and data transfer rate can be modified by MAC order.Class B is exactly in terminal Upper to increase by one by synchronous reception window, one of the limitation of Class A is exactly that terminal sends the Aloha calculation that data use Method, this prevents client applications or server-side from getting in touch with terminal in the time determining, the purpose of Class B be exactly Except reception window after the random uplink of the terminal of Class A, allow terminal that can also open reception within the foreseeable time. Class B is to allow the gateway period to send beacon to carry out all terminals in synchronizing network, so as to terminal can Period Slot really It fixes time and to open a short reception window, be called " ping slot ".Have the terminal of Class C ability, is usually applied to The scene for abundance of powering, therefore receiving time need not be simplified, the terminal of Class C cannot execute Class B, Class C terminal It can be monitored as much as possible using RX2 window.According to the regulation of Class A, terminal is just to carry out RX2 in the transmitting-receiving of RX1 no data Reception, in order to meet this regulation, terminal can be sent in uplink to be terminated between RX1 reception window unlatching, and opening one is of short duration RX2 window, once RX1 receives close, terminal can be immediately switched to RX2 reception state, and RX2 receives window and can persistently beat It opens, except nonterminal needs to send other message.
The communication process of LoRa is broadly divided into terminal activation, OTAA networks, data transmit three parts.Wherein, terminal swashs Living specific as follows: in order to which LoRaWAN network is added, each terminal needs to initialize and activate, mode that there are two types of terminal activation, and one Kind is over the air, OTA Over The-Air Activation (OTAA), and another kind is discrete actuation Activation By Personaliztion(ABP).By over the air, OTA, terminal must carry out data friendship with network server according to networking process Mutually, if lost terminal conversation message, primary networking process must be re-started every time, terminal needs to prepare during networking Good tri- parameters of terminal EUI, APPEUI, APPkey.In some cases, terminal device can be with discrete actuation, discrete actuation It allows terminal to bypass the screening process of join request and join accept, is added directly into specified network.OTAA enters netting gear Body is as follows: regarding various servers and gateway as an entirety, is referred to as gateway, then OTAA mode networks specifically Process is that terminal node sends the request that networks, i.e. MAC type of message is join-request;Gateway receives networking request, Agree to network, and equipment be registered, establishes contacting for long address and short address, communication key is generated, by communication key Parameter packing is handed down to terminal, and MAC type of message is join-accept;Terminal device is obtained according to the MAC message issued Tri- parameters of Addr, APPSKEY, NWKSKEY.The method of data transmission is specific as follows: can be counted after being connected to the network successfully According to transmission, in data transmission procedure, it can be needed to set the duty cycle by specific MAC order according to communication, is right Message transmission rate carries out self adaptive control, modifies to channel frequency, sets etc. to window is received, if send Data information needs to confirm, receiver will send back to a data information as responding.LoRaWAN data frame structure includes PHY frame Format and mac frame format, wherein LoRa has upstream message and downstream message, and upstream message is issued by terminal, by one or Multiple gateway forwards are to network server.Contain PHDR and PHDR_CRC field in upstream message, load is guaranteed by CRC check Integrality, PHDR, PHDR_CRC and the domain load CRC are all added by RF transceiver, and uplink PHY frame format is Preamble|PHDR|PHDR_CRC|PHYPayload|CRC.Downstream message is generated by network server, by single gateway It is transmitted to single terminal.Include PHDR and PHDR_CRC field in downstream message, downlink PHY frame format is Preamble | PHDR | PHDR_CRC|PHYPayload.For mac frame format, all uplink downlink message of LoRa can all carry PHY load, and PHY is carried Lotus is started with 1 byte mac frame head (MHDR), is finally the MAC check code of 4 bytes followed by MAC load (MACPayload) (MIC), mac frame format is as shown in figure 3, Fig. 3 is the structural schematic diagram of mac frame.
In the prior art, terminal device sends the uplink timing diagram of confirmation data as schemed in the standard criterion of LoRa alliance Shown in 4, Fig. 4 is the uplink timing diagram that terminal device sends confirmation data in the standard criterion of LoRa alliance.Terminal device can be with Confirmed Data0 is sent with arbitrary velocity in any channel first, counter Cu adds 1 later, by LoRa transmission Afterwards, gateway receives the data frame, and the downlink chain for having ACK is generated after RECEIVE_DELAY (unit: s) duration Circuit-switched data frame, and carry out ack msg frame in the reception window 1 of Class mode A and be transferred to terminal device, receiving window 1 makes The channel and data rate of downlink and uplink are all the same.Later, counter Cd adds 1, if communication process is suitable Benefit, terminal device have received the return information with ACK in defined time range, then terminal device continues to send next Frame data Confirmed Data1;If failing to successfully receive the return information with ACK, need to retransfer upper one A transmission information assumes that downlink loses ACK return information herein, terminal device ACK_TIMEOUT (unit: S) Confirmed Data0 is retransmitted after duration, is retransferred to use other channel and follow and commonly be transmitted Duty cycle limitation in journey, once the data frame with ACK is correctly demodulated by terminal device, terminal device is just able to use newly Channel send a new frame data.
But gateway node can be considered when gateway node light load and carry out suspend mode, since gateway suspend mode needs The introducing asked, gateway needs are constantly switched in not dormant state and dormant state according to cycle T, existing In LoRaWAN technical standard, whether terminal device cannot adjust in a dormant state downlink reception number of windows according to gateway, such as Fruit terminal device does not receive reply frame (i.e. ACK frame, similarly hereinafter) in reception window 1 and does not receive any other information, then table Bright gateway does not normally receive data frame in a dormant state or at this time, then will not receive back receiving window 2 Multi-frame.In this case, that is to say, that after gateway suspend mode demand introduces, how terminal device reduces downlink reception window Mouth waste is a urgent problem to be solved, can extend gateway node life cycle in this way.
Summary of the invention
To solve the above problems, the present invention provides the data frame retransmission method of wireless network suspend mode, device, equipment and depositing Storage media enables to the working time of terminal node to shorten, energy consumption reduction, and the data frame that transmission can be made to fail is as early as possible Ground is retransmitted, to advantageously reduce data frame transfer delay.
The data frame retransmission method of wireless network suspend mode provided by the invention includes:
Step 1: judging whether gateway node enables suspend mode, if it is, the first reception window and second is connect The length for receiving window is set as equal with sleep time, and in next step, be otherwise provided as default value and terminate process;
Step 2: sending data frame to the gateway node, and entered for the described first period for receiving window;
Step 3: the period for receiving window described first, judges whether to have received frame or information, the is if it is executed Five steps, if it is not, then performing the next step;
Step 4: judging whether the first reception window terminates, if it is, terminating process, if it is not, then executing the Three steps;
Step 5: judging whether to have received the reply frame that the gateway node is sent, connect if it is, terminating described first It receives window and terminates process, if it is not, then performing the next step;
Step 6: judging whether to have received the gateway node issues the frame of other nodes and without subsequent frame, if it is, No longer setting second receives window, terminates process, if it is not, then performing the next step;
Step 7: setting described second receives window, and the time of a window is waited again, then terminate process.
Preferably, in the data frame retransmission method of above-mentioned wireless network suspend mode, when judging that the gateway node enables After suspend mode, further includes: setting terminal node Retransmission timeout threshold value is equal to the sleep time of the gateway node.
Preferably, in the data frame retransmission method of above-mentioned wireless network suspend mode, when judgement has received the gateway node Issue the frame of other nodes and without subsequent frame after, further includes:
Remaining data frame retransmission latency is extended for 2Tr-Tp, wherein TrFor terminal node Retransmission timeout threshold value, TpFor Time needed for sending an ACK frame.
Preferably, in the data frame retransmission method of above-mentioned wireless network suspend mode, when judgement does not receive the gateway section Point issue other nodes frame and without subsequent frame after, further includes:
Remaining data frame retransmission latency is added into Tr
The data frame retransmission arrangement of wireless network suspend mode provided by the invention includes:
First judgement part, for judging whether gateway node enables suspend mode, if it is, by the first reception window The length of mouth and the second reception window is set as equal with sleep time, and executes the function of sending component, is otherwise provided as lacking Province's value simultaneously terminates process;
The transmission component, for the gateway node send data frame, and enter it is described first receive window when Section;
Second judgement part, for it is described first receive window period, judge whether to have received frame or information, if It is the function of then executing the 4th judgement part, if it is not, then executing the function of third judgement part;
The third judgement part, for judging whether the first reception window terminates, if it is, terminate process, If it is not, then executing the function of second judgement part;
4th judgement part, the reply frame sent for judging whether to have received the gateway node, if it is, Terminate the first reception window and terminate process, if it is not, then executing the function of the 5th judgement part;
5th judgement part, for judging whether that having received the gateway node issues the frame of other nodes and without after Continuous frame terminates process if it is, no longer setting second receives window, if it is not, then executing the function of set parts;
The set parts receive window for being arranged described second, and wait the time of a window again, then terminate Process.
Preferably, in the data frame retransmission arrangement of above-mentioned wireless network suspend mode, first judgement part is also used to work as Judge that terminal node Retransmission timeout threshold value is arranged equal to the gateway node after the gateway node enables suspend mode Sleep time.
Preferably, in the data frame retransmission arrangement of above-mentioned wireless network suspend mode, the 5th judgement part is also used to work as Judgement have received the gateway node issue the frame of other nodes and without subsequent frame after, by remaining data frame retransmission latency It is extended for 2Tr-Tp, wherein TrFor terminal node Retransmission timeout threshold value, TpFor the time needed for one ACK frame of transmission.
Preferably, in the data frame retransmission arrangement of above-mentioned wireless network suspend mode, the 5th judgement part is also used to work as Judgement do not receive the gateway node issue the frame of other nodes and without subsequent frame after, by remaining data frame retransmit wait when Between add Tr
The data frame retransmission device of wireless network suspend mode provided by the invention includes:
Memory, for storing instruction;Wherein, described instruction includes the data frame weight of wireless network suspend mode any one of as above The instruction of each movement in transmission method;
Processor, for executing the instruction in the memory.
Computer readable storage medium provided by the invention is stored with computer journey on the computer readable storage medium Sequence is realized when the computer program is executed by processor such as the data frame retransmission method of any one wireless network suspend mode above Step.
As can be seen from the above description, the data frame retransmission method of above-mentioned wireless network suspend mode provided by the invention, due to packet It includes: step 1: judging whether gateway node enables suspend mode, if it is, receiving window and the second reception window for first The length of mouth is set as equal with sleep time, and in next step, be otherwise provided as default value and terminate process;Step 2: Data frame is sent to the gateway node, and entered for the described first period for receiving window;Step 3: in first reception window The period of mouth, judge whether to have received frame or information, the 5th step is if it is executed, if it is not, then performing the next step;4th Step: judging whether the first reception window terminates, if it is, terminating process, if it is not, then executing third step;Step 5: Judge whether to have received the reply frame that the gateway node is sent, if it is, terminating the first reception window and terminating to flow Journey, if it is not, then performing the next step;Step 6: judging whether to have received frame and nothing that the gateway node issues other nodes Subsequent frame terminates process, if it is not, then performing the next step if it is, no longer setting second receives window;Step 7: setting Described second receives window, and waits the time of a window again, then terminates process, therefore the first reception window of terminal device In the case that mouth does not receive reply frame and do not receive any information, illustrate that gateway is now in dormant state, then Terminal device will no longer be arranged and open the second reception window, therefore enable to the working time of terminal node to shorten, energy consumption It reduces, and the data frame that transmission can be made to fail is retransmitted as soon as possible, to advantageously reduce data frame transfer delay.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the overall network structural schematic diagram of LoRa;
Fig. 2 is the schematic diagram that Class mode A receives window timing;
Fig. 3 is the structural schematic diagram of mac frame;
Fig. 4 is the uplink timing diagram that terminal device sends confirmation data in the standard criterion of LoRa alliance;
Fig. 5 is the schematic diagram of the data frame retransmission method of wireless network suspend mode provided by the present application;
Fig. 6 is the schematic diagram of a specific example of the data frame retransmission method of wireless network suspend mode;
Fig. 7 is the schematic diagram of a preferred example of the data frame retransmission method of wireless network suspend mode;
Fig. 8 is the schematic diagram of the data frame retransmission arrangement of wireless network suspend mode provided by the present application;
Fig. 9 is the schematic diagram of the data frame retransmission device of wireless network suspend mode provided by the present application.
Specific embodiment
Core of the invention is to provide data frame retransmission method, device, equipment and the storage medium of wireless network suspend mode, The working time of terminal node is enabled to shorten, energy consumption reduction, and the data frame that transmission can be made to fail obtains as soon as possible It retransmits, to advantageously reduce data frame transfer delay.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the data frame retransmission method of wireless network suspend mode provided by the present application is as shown in figure 5, Fig. 5 is the application The schematic diagram of the data frame retransmission method of the wireless network suspend mode of offer, this method comprises the following steps:
Step 1: judging whether gateway node enables suspend mode, if it is, the first reception window and second is connect The length for receiving window is set as equal with sleep time, and in next step, be otherwise provided as default value and terminate process;
Specifically, being exactly the operating mode that the terminal node first distinguishes gateway node suspend mode and not suspend mode, adaptively really Surely number of windows and length are received, when gateway node not suspend mode, then terminal node maintains existing reception number of windows (quantity is 2) and length is constant not less than 1 and no more than, and when gateway node suspend mode, what terminal node will send after data frame first is connect The length for receiving window and the second reception window is equal to gateway node sleep time Ts, wherein Ts=Tw, TwWhen to work It is long, that is to say, that gateway node sleep time and operating time be it is equal, receive window and second for first and receive window all It is set as sleep time TsLater, when the first reception window and the second reception window would not entirely fall in the suspend mode of gateway node Section, terminal node is with regard to organic information that will receive gateway node hair.
Step 2: sending data frame to gateway node, and entered for the first period for receiving window;
Step 3: the period for receiving window first, judges whether to have received frame or information, the 5th is if it is executed Step, if it is not, then performing the next step, that is to say, that if not receiving any information when the first reception window, just say Bright data frame is not normally received by gateway node, this may be since gateway node is just collided in suspend mode or have occurred etc., So just no longer setting second receives window at this time, is returned to after the first reception window terminates, so as to timely retransmission data Frame.
Step 4: judging whether the first reception window terminates, if it is, terminating process, if it is not, then executing third Step;
That is, if not receiving frame or information, continue to return to third step execution and judge process, connects until first Receiving window terminates, and after first receives window, just terminates whole flow process, it is not necessary to be then turned on the second reception window, such energy Enough save the energy of node.
Step 5: judging whether to have received the reply frame that gateway node is sent, if it is, terminating first receives window simultaneously Terminate process, if it is not, then performing the next step;
It is just directly returned that is, receiving reply frame that gateway node is sent, because of this demonstrate that gateway node at this time In running order, this until the first reception window there is no need to finish, so as to save the energy of node.
Step 6: judging whether to have received gateway node issues the frame of other nodes and without subsequent frame, if it is, no longer Setting second receives window, terminates process, if it is not, then performing the next step;
In this step, it exactly continues to determine whether to have received net on the basis of not receiving gateway node reply frame Artis issues the frame of other nodes and without subsequent frame, wherein exactly when the flag bit of " having subsequent frame " is 0, is judged as this When without subsequent frame, then no longer setting second receive window, because even be provided with second receive window, gateway node will not be again Send out frame.
Step 7: setting second receives window, and the time of a window is waited again, then terminate process.
That is, if having received information in the first reception window but not can confirm that is that gateway node is sent, it may It is the frame or bad frame that other terminal nodes are sent), then it is arranged second and receives window, then waits the time of a window, that is, It says until the second reception window terminates.
As can be seen from the above description, the embodiment of the data frame retransmission method of above-mentioned wireless network suspend mode provided by the present application In, in the case that the first reception window of terminal device does not receive reply frame and do not receive any information, illustrate that gateway is set It is standby to be now in dormant state, then terminal device will no longer be arranged and open the second reception window, therefore enable to terminal The working time of node shortens, energy consumption reduces, and the data frame that transmission can be made to fail is retransmitted as soon as possible, thus favorably Postpone in reducing data frame transfer.
It is the data frame re-transmission side of wireless network suspend mode with reference to Fig. 6, Fig. 6 in order to which that states above-described embodiment becomes apparent from The schematic diagram of one specific example of method, includes the following steps:
1, terminal node judges whether gateway node enables suspend mode, if it is, receiving window and for first Two receive the length T of windowhIt is equal to gateway node sleep time Ts(Ts=Tw, TwFor operating time), under then executing One step;If it is not, then will receive number of windows and length is set as the default value recommended in LoRaWAN technical documentation, then tie This process of beam.
2, terminal node is after sending data frame to gateway node, into the period of the first reception window.
3, in the period for receiving window first, terminal node judges whether to have received frame or information;If so, executing the 5 steps;If not, performing the next step.
4, terminal node judges whether the first reception window terminates;If it is, no longer setting second receives window, terminate This process;If not, executing step 3.
5, terminal node judges whether to have received the reply frame that gateway node is sent;If it is, terminating the first reception window Mouth simultaneously terminates this process;If not, performing the next step.
6, terminal node judges whether that having received gateway node issues the frame of other nodes and without subsequent frame (" having subsequent frame " 0) flag bit is;If it is, no longer setting second receives window, terminate this process;If it is not, then performing the next step.
7, terminal node have received except step 5 and 6 two kinds of frames in addition to frame or information (such as other terminal nodes send Frame or bad frame)), just setting second receives window, then waits the time of a window, then terminates this process.Here it needs It is noted that frame or information at this time may be frame, the bad frame, incomplete frame that other terminal nodes are sent, then just It not can determine that gateway node also has bad frame or residual because gateway node possibly replys frame to other terminal nodes in suspend mode Lacking infull frame is gateway node hair, therefore is received in window following second, and gateway node can may also send out frame, this Second window is received need to set under situation, is received when sending out frame so as to gateway.
In a preferred embodiment of the data frame retransmission method of wireless network suspend mode, when judging that gateway node enables After suspend mode, further includes: setting terminal node Retransmission timeout threshold value is equal to the sleep time of gateway node.Specifically, By data frame Retransmission timeout threshold value TrIt is equal to sleep time Ts, after terminal node sends data frame, into the first reception window Mouthful, wait ACK frame to be received, if do not receive ACK frame, but have received gateway node sending frame and without subsequent frame, then can sentence Disconnected current gateway node out is working, and following gateway node can suspend mode TsJust task again afterwards.
In further embodiment, the frame of other nodes is issued and after without subsequent frame when judgement has received gateway node, Further include:
Remaining data frame retransmission latency is extended for 2Tr-Tp, wherein TrFor terminal node Retransmission timeout threshold value, TpFor Time needed for sending an ACK frame, the sleep period that can avoid gateway node in this way (in existing method, are retransmitted and are waited Time does not adjust, therefore can also retransmit 1 time during gateway node suspend mode, wastes number of retransmissions).
In further embodiment, when judgement do not receive gateway node issue other nodes frame and without subsequent frame it Afterwards, further includes: remaining data frame retransmission latency is added into Tr.That is, if terminal node receives window first Having received information but not can confirm that is that gateway node sends (being the frame or bad frame that other terminal nodes are sent), then will currently remain Remaining retransmission latency adds Tr, then wait a sleep time, with etc. the frame sent of gateway node to be received.
The advantages of above-described embodiment is: the adaptive adjustment data frame retransmission latency of terminal node can protected Hold the performances such as success rate, time delay it is constant under the premise of, avoid during gateway node suspend mode unnecessarily sending out frame to gateway node, So as to reduce the number of retransmissions of data frame, reduces data frame and transmit expense.The above method is in addition to that can apply in LoRa net Other than network, it is also applied to the other types of wireless network for having used node dormancy and data frame acknowledgment retransmission scheme.
It is the data frame weight of wireless network suspend mode with reference to Fig. 7, Fig. 7 in order to which illustrate above preferred embodiment becomes apparent from The schematic diagram of one preferred example of transmission method, includes the following steps:
10, terminal node judges whether gateway node enables not during network brings into operation, initialized Sleep mode;If it is, when the length Th of the first reception window and the second reception window is equal to gateway node suspend mode Long Ts(Ts=Tw, TwFor operating time), then perform the next step;It is set as if it is not, then number of windows and length will be received The default value recommended in LoRaWAN technical documentation, then terminates this process.
20, terminal node is after sending data frame to gateway node, into the period of the first reception window.
30, in the period for receiving window first, terminal node judges whether to have received frame or information;If so, executing 50th step;If not, performing the next step.
40, terminal node judges whether the first reception window terminates;If so, no longer setting second receives window, terminate This process;If not, executing the 30th step.
50, terminal node judges whether to have received the reply frame that gateway node is sent;If so, terminating first receives window And terminate this process;If not, performing the next step.
60, terminal node judges whether that having received gateway node issues the frame of other nodes and (" have subsequent without subsequent frame 0) frame " flag bit is;If it is, the data frame retransmission latency of current residual is extended for 2Tr-Tp, (wherein TpFor hair The time required to sending an ACK frame) to avoid the sleep period of gateway node, and be no longer arranged second and receive window, directly tie Shu Benci process;If it is not, then performing the next step.
70, terminal node (frame or information (such as other terminals in addition to having received two kinds of frames described in step 50,60 Node send frame or bad frame)) by the data frame retransmission latency of current residual add Tr, and be arranged the second reception window Mouthful, then the time of a window is waited, then terminate this process.
The embodiment of the data frame retransmission arrangement of wireless network suspend mode provided by the present application is as shown in figure 8, Fig. 8 is the application The schematic diagram of the data frame retransmission arrangement of the wireless network suspend mode of offer, the device include:
First judgement part 801, for judging whether gateway node enables suspend mode, if it is, first is connect The length for receiving window and the second reception window is set as equal with sleep time, and executes the function of sending component, is otherwise arranged For default value and terminate process, specifically, be exactly the operating mode that the terminal node first distinguishes gateway node suspend mode and not suspend mode, It adaptively determines and receives number of windows and length, when gateway node not suspend mode, then terminal node maintains existing reception window Quantity (quantity is not less than 1 and to be not more than 2) and length are constant, and when gateway node suspend mode, terminal node will send data The length of the first reception window and the second reception window after frame is equal to gateway node sleep time Ts, wherein Ts=Tw, TwFor operating time, that is to say, that gateway node sleep time and operating time be it is equal, receive window and second for first It receives window and is both configured to sleep time TsLater, the first reception window and the second reception window would not entirely fall in gateway Sleep period, terminal node is with regard to organic information that will receive gateway hair;
Component 802 is sent, for sending data frame to gateway node, and entered for the first period for receiving window;
Second judgement part 803, for first receive window period, judge whether to have received frame or information, if It is the function of then executing the 4th judgement part, if it is not, then executing the function of third judgement part, that is to say, that if the As soon as receive window when do not receive any information, illustrate that data frame is not normally received by gateway node, this may be by It just collides in suspend mode or have occurred in gateway node etc., then just no longer setting second receives window at this time, connects when first Receiving window terminates to be returned to later, so as to timely retransmission data frame;
Third judgement part 804, for judging whether the first reception window terminates, if it is, terminate process, if It is no, then execute the function of the second judgement part, that is to say, that if not receiving frame or information, continue return third step and hold Row judge process, until first reception window terminate, when first reception window after, just terminate whole flow process, it is not necessary to open again The second reception window is opened, node energy can be saved in this way;
4th judgement part 805, the reply frame sent for judging whether to have received gateway node, if it is, terminating First reception window simultaneously terminates process, if it is not, then executing the function of the 5th judgement part, that is to say, that receive gateway node The reply frame sent just directly returns, because this demonstrate that gateway node is in running order at this time, there is no need to until for this One reception window finishes, so as to save the energy of node;
5th judgement part issues the frame of other nodes and without subsequent frame for judging whether to have received gateway node, such as Fruit is that then no longer setting second receives window, terminates process, if it is not, then executing the function of set parts, is not receiving exactly On the basis of replying frame to gateway node, continue to determine whether that having received gateway node issues the frame of other nodes and without subsequent Frame, wherein exactly when the flag bit of " having subsequent frame " is 0, be judged as that the second reception window is then no longer arranged at this time without subsequent frame Mouthful, because even being provided with second receives window, gateway node will not send out frame again;
Set parts receive window for being arranged second, and wait the time of a window again, then terminate process, That is if having received information in the first reception window but not can confirm that is that gateway node is sent, it may be possible to other terminals The frame or bad frame that node is sent), then it is arranged second and receives window, then wait the time of a window, that is to say, that until second Until reception window terminates.
Above-mentioned apparatus enables to the working time of terminal node to shorten, energy consumption reduces, and transmission can be made to fail Data frame is retransmitted as soon as possible, to advantageously reduce data frame transfer delay.
In the preferred embodiment of the data frame retransmission arrangement of wireless network suspend mode, the first judgement part 801 is also used to work as Judge that the sleep time that terminal node Retransmission timeout threshold value is equal to gateway node is arranged after gateway node enables suspend mode, Specifically, by data frame Retransmission timeout threshold value TrIt is equal to sleep time Ts, after terminal node sends data frame, enter First receive window, wait ACK frame to be received, if do not receive ACK frame, but have received gateway node sending frame and without subsequent Frame can then judge that current gateway node is working, and following gateway node can suspend mode TsJust task again afterwards.
In further embodiment, the 5th judgement part 806 is also used to issue other sections when judgement has received gateway node Point frame and without subsequent frame after, remaining data frame retransmission latency is extended for 2Tr-Tp, wherein TrIt is super for terminal node When retransmission threshold value, TpFor the time needed for one ACK frame of transmission, the sleep period that can avoid gateway node in this way is (existing In method, retransmission latency is not adjusted, therefore can also be retransmitted 1 time during gateway node suspend mode, and number of retransmissions is wasted).
In further embodiment, the 5th judgement part 806 is also used to issue it when judgement does not receive gateway node The frame of his node and without subsequent frame after, by remaining data frame retransmission latency add Tr.That is, if terminal node Having received information in the first reception window but not can confirm that be that gateway node sends (is the frames of other terminal nodes transmissions or bad Frame), then the retransmission latency of current residual is added into Th, then wait a sleep time, with etc. gateway node hair to be received The frame come.
The advantages of above-described embodiment is: the adaptive adjustment data frame retransmission latency of terminal node can protected Hold the performances such as success rate, time delay it is constant under the premise of, avoid during gateway node suspend mode unnecessarily sending out frame to gateway node, So as to reduce the number of retransmissions of data frame, reduces data frame and transmit expense.Above-mentioned apparatus is in addition to that can apply in LoRa net Other than network, it is also applied to the other types of wireless network for having used node dormancy and data frame acknowledgment retransmission scheme.
Present invention also provides the data frame retransmission devices of wireless network suspend mode, as shown in figure 9, Fig. 9 provides for the application Wireless network suspend mode data frame retransmission device schematic diagram, which includes:
Memory 901, for storing instruction;Wherein, instruction includes the data frame weight of as above any one wireless network suspend mode The instruction of each movement in transmission method;
Processor 902, for executing the instruction in memory.
The application also provides computer readable storage medium, is stored with computer program on computer readable storage medium, The step of data frame retransmission method such as any one wireless network suspend mode above is realized when computer program is executed by processor.
Above equipment and storage medium have the advantages that same as above-mentioned apparatus and method, and details are not described herein again.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of data frame retransmission method of wireless network suspend mode characterized by comprising
Step 1: judging whether gateway node enables suspend mode, if it is, receiving window and the second reception window for first The length of mouth is set as equal with sleep time, and in next step, be otherwise provided as default value and terminate process;
Step 2: sending data frame to the gateway node, and entered for the described first period for receiving window;
Step 3: the period for receiving window described first, judges whether to have received frame or information, the 5th is if it is executed Step, if it is not, then performing the next step;
Step 4: judging whether the first reception window terminates, if it is, terminating process, if it is not, then executing third Step;
Step 5: judging whether to have received the reply frame that the gateway node is sent, if it is, terminating first reception window Mouth simultaneously terminates process, if it is not, then performing the next step;
Step 6: judging whether to have received the gateway node issues the frame of other nodes and without subsequent frame, if it is, no longer Setting second receives window, terminates process, if it is not, then performing the next step;
Step 7: setting described second receives window, and the time of a window is waited again, then terminate process.
2. the data frame retransmission method of wireless network suspend mode according to claim 1, which is characterized in that when judging the net Artis enables after suspend mode, further includes: setting terminal node Retransmission timeout threshold value is equal to stopping for the gateway node Dormancy duration.
3. the data frame retransmission method of wireless network suspend mode according to claim 2, which is characterized in that when judgement has received The gateway node issue the frame of other nodes and without subsequent frame after, further includes:
Remaining data frame retransmission latency is extended for 2Tr-Tp, wherein TrFor terminal node Retransmission timeout threshold value, TpTo send Time needed for one ACK frame.
4. the data frame retransmission method of wireless network suspend mode according to claim 3, which is characterized in that when judgement is not received Issue the frame of other nodes to the gateway node and without subsequent frame after, further includes:
Remaining data frame retransmission latency is added into Tr
5. a kind of data frame retransmission arrangement of wireless network suspend mode characterized by comprising
First judgement part, for judging whether gateway node enables suspend mode, if it is, by first receive window and The length of second reception window is set as equal with sleep time, and executes the function of sending component, is otherwise provided as default value And terminate process;
The transmission component for sending data frame to the gateway node, and entered for the described first period for receiving window;
Second judgement part judges whether to have received frame or information, if it is for receiving the period of window described first The function of the 4th judgement part is executed, if it is not, then executing the function of third judgement part;
The third judgement part, for judging whether the first reception window terminates, if it is, terminate process, if It is no, then execute the function of second judgement part;
4th judgement part, the reply frame sent for judging whether to have received the gateway node, if it is, terminating The first reception window simultaneously terminates process, if it is not, then executing the function of the 5th judgement part;
5th judgement part, for judging whether that having received the gateway node issues the frame of other nodes and without subsequent Frame terminates process if it is, no longer setting second receives window, if it is not, then executing the function of set parts;
The set parts receive window for being arranged described second, and wait the time of a window again, then terminate to flow Journey.
6. the data frame retransmission arrangement of wireless network suspend mode according to claim 5, which is characterized in that first judgement Component, which is also used to that terminal node Retransmission timeout threshold value is arranged after judging that the gateway node enables suspend mode, is equal to institute State the sleep time of gateway node.
7. the data frame retransmission arrangement of wireless network suspend mode according to claim 6, which is characterized in that the 5th judgement Component is also used to issue the frame of other nodes and after without subsequent frame when judgement has received the gateway node, by remaining data frame Retransmission latency is extended for 2Tr-Tp, wherein TrFor terminal node Retransmission timeout threshold value, TpTo send needed for an ACK frame Time.
8. the data frame retransmission arrangement of wireless network suspend mode according to claim 7, which is characterized in that the 5th judgement Component is also used to issue the frame of other nodes and after without subsequent frame when judgement does not receive the gateway node, by remaining data Frame retransmission latency adds Tr
9. a kind of data frame retransmission device of wireless network suspend mode characterized by comprising
Memory, for storing instruction;Wherein, described instruction includes the instruction of each movement in claim any one of 1-4;
Processor, for executing the instruction in the memory.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the number of the wireless network suspend mode as described in claim any one of 1-4 when the computer program is executed by processor The step of according to frame retransmission method.
CN201910796485.2A 2019-08-27 2019-08-27 Data frame retransmission method, device, equipment and storage medium for wireless network dormancy Active CN110493856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910796485.2A CN110493856B (en) 2019-08-27 2019-08-27 Data frame retransmission method, device, equipment and storage medium for wireless network dormancy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910796485.2A CN110493856B (en) 2019-08-27 2019-08-27 Data frame retransmission method, device, equipment and storage medium for wireless network dormancy

Publications (2)

Publication Number Publication Date
CN110493856A true CN110493856A (en) 2019-11-22
CN110493856B CN110493856B (en) 2022-03-01

Family

ID=68554454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910796485.2A Active CN110493856B (en) 2019-08-27 2019-08-27 Data frame retransmission method, device, equipment and storage medium for wireless network dormancy

Country Status (1)

Country Link
CN (1) CN110493856B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118584A (en) * 2020-11-23 2020-12-22 翱捷科技(深圳)有限公司 Gateway, LoRa network system, gateway operation method and storage medium
CN114333276A (en) * 2021-12-10 2022-04-12 浙江慧居智能物联有限公司 Control method and device for battery switch

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100232331A1 (en) * 2009-03-11 2010-09-16 Samsung Electronics Co. Ltd. Method and apparatus for controlling sleep mode operation in a communication system
CN104883723A (en) * 2015-05-07 2015-09-02 深圳洲斯移动物联网技术有限公司 Wireless communication system based on wireless sensors
CN108834213A (en) * 2018-04-04 2018-11-16 西安电子科技大学 Low downlink delays communication means and system in a kind of Internet of Things
CN110035483A (en) * 2019-04-19 2019-07-19 东信和平科技股份有限公司 A kind of water meter mould group real time valve controlling method and water meter mould group end
CN110062347A (en) * 2019-04-30 2019-07-26 南方电网科学研究院有限责任公司 A kind of low power consumption data active reporting method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100232331A1 (en) * 2009-03-11 2010-09-16 Samsung Electronics Co. Ltd. Method and apparatus for controlling sleep mode operation in a communication system
CN104883723A (en) * 2015-05-07 2015-09-02 深圳洲斯移动物联网技术有限公司 Wireless communication system based on wireless sensors
CN108834213A (en) * 2018-04-04 2018-11-16 西安电子科技大学 Low downlink delays communication means and system in a kind of Internet of Things
CN110035483A (en) * 2019-04-19 2019-07-19 东信和平科技股份有限公司 A kind of water meter mould group real time valve controlling method and water meter mould group end
CN110062347A (en) * 2019-04-30 2019-07-26 南方电网科学研究院有限责任公司 A kind of low power consumption data active reporting method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
虞阁飞: "基于 LoRa 的 LPWAN 节能技术研究", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112118584A (en) * 2020-11-23 2020-12-22 翱捷科技(深圳)有限公司 Gateway, LoRa network system, gateway operation method and storage medium
CN112118584B (en) * 2020-11-23 2021-02-19 翱捷科技(深圳)有限公司 Gateway, LoRa network system, gateway operation method and storage medium
CN114333276A (en) * 2021-12-10 2022-04-12 浙江慧居智能物联有限公司 Control method and device for battery switch

Also Published As

Publication number Publication date
CN110493856B (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN102932882B (en) A kind of discontinuous receiving method and system
CN103391549B (en) A kind of Dynamic Configuration discontinuously received, terminal and base station
CN101167339B (en) Expanding universal plug and play capabilities in power constrained environment
CN100550906C (en) The flow control methods of radio link layer
US8223680B2 (en) Mesh network control using common designation wake-up
CN104969627B (en) Reduce method, equipment and the device of the power consumption in connection mode discontinuous reception
CN103906207B (en) Wireless sensor network data transmission method based on self adaptation awakening technology on demand
JP5073816B2 (en) Transfer of information packets across a wireless network and method of managing a routing node that performs the transfer
US20090323697A1 (en) Data payload transmission via control plane signaling
CN110493856A (en) Data frame retransmission method, device, equipment and the storage medium of wireless network suspend mode
JP2010518765A (en) Method and system for recovering from DRX timing asynchronous in LTE_ACTIVE
CN103391603A (en) Low power consumption transmission method for large data information in wireless sensor network
CN102217258A (en) Detection processing method, data transmitter, data receiver and communication system
CN102065575A (en) Method for constructing mesh and star hybrid topological wireless sensor network based on IEEE 802.15.4
CN103517329A (en) Data obtaining and sending method and device through STA in wireless local area network
EP2176989A1 (en) Method of preventing tcp-based denial-of-service attacks on mobile devices
CN110557232B (en) Communication mode selection method of dual-mode communication network
JPH09186739A (en) Packet communication system and packet communication control method
CN101325539A (en) Dependable communication method for LAN
Ayadi et al. Improving distributed TCP caching for wireless sensor networks
JP3998649B2 (en) Wireless terminal, access point device, data communication system, and data communication method
Tsao et al. An energy‐efficient transmission mechanism for VoIP over IEEE 802.11 WLAN
WO2008103863A1 (en) Mesh network control using common designation wake-up
WO2021155603A1 (en) Sidelink feedback method based on drx, and related apparatus
CN112511992A (en) Method, device and medium for data interaction after dormancy awakening of Bluetooth MESH low-power-consumption node

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant