CN108965063A - A kind of abnormality eliminating method of sweep check, gateway and server - Google Patents

A kind of abnormality eliminating method of sweep check, gateway and server Download PDF

Info

Publication number
CN108965063A
CN108965063A CN201810958127.2A CN201810958127A CN108965063A CN 108965063 A CN108965063 A CN 108965063A CN 201810958127 A CN201810958127 A CN 201810958127A CN 108965063 A CN108965063 A CN 108965063A
Authority
CN
China
Prior art keywords
gateway
message
time
sweep
default
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
CN201810958127.2A
Other languages
Chinese (zh)
Other versions
CN108965063B (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.)
Suzhou Lingxi Internet Of Things Technology Co Ltd
Original Assignee
Suzhou Lingxi Internet Of Things Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Lingxi Internet Of Things Technology Co Ltd filed Critical Suzhou Lingxi Internet Of Things Technology Co Ltd
Priority to CN201810958127.2A priority Critical patent/CN108965063B/en
Publication of CN108965063A publication Critical patent/CN108965063A/en
Application granted granted Critical
Publication of CN108965063B publication Critical patent/CN108965063B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Monitoring And Testing Of Exchanges (AREA)
  • Small-Scale Networks (AREA)

Abstract

A kind of abnormality eliminating method of sweep check, gateway and server.The described method comprises the following steps: application server AS starts overtime timer after having sent test frequency sweep response message, if overtime timer is overtime, the AS is sent to gateway restores gateway default configuration message;After the gateway receives the recovery gateway default configuration message, restore default original state, and return to gateway to AS and restore default configuration confirmation message;After the AS receives the gateway recovery default configuration confirmation message, test is exited, restores default original state.The present invention establishes timeout mechanism using timer, and Lora terminal, gateway and AS can be made to be restored to default initialization state.

Description

A kind of abnormality eliminating method of sweep check, gateway and server
Technical field
The present invention relates to Lora technical field more particularly to a kind of abnormality eliminating methods of sweep check, terminal and service Device.
Background technique
LoRaWAN is a set of communications protocol and system architecture for the design of LoRa electric communication network.Lora communication system System generally comprises terminal, base station, network server, this four parts of application server.Star network is used between base station and terminal Network topology is able to due to the long range characteristic of LoRa, between them using single-hop transmission.Terminal node can be issued multiple simultaneously Forward process is then done to the LoRaWAN protocol data between network server and terminal in base station, base station, by LoRaWAN data point It has not been carried on LoRa radio frequency transmission and TCP/IP.
Terminal in Lora communication system is divided into three classes: Class A, Class B, Class C.The terminal of Class A is adopted With the on-demand reported data of ALOHA agreement.Two of short duration downlink reception windows can be all closely followed after each uplink, realized with this double To transmission.This operation is most power saving.The terminal of Class A could issue number to it after having to wait for terminal reported data According to application scenarios are usually dustbin monitoring, smoke alarm, gas-monitoring etc..For the terminal of Class B, in addition to The random reception window of Class A, can also at the appointed time open reception window.In order to which terminal can at the appointed time be opened Window is received, terminal needs the beacon synchronous from gateway receiving time.The terminal of Class B is in terminal fixed reception window Data are issued to it, the delay issued increases, and application scenarios are usually valve control aqueous vapor ammeter etc..The terminal of Class C Substantially always on reception window, is only momentarily closed when sending.Shape is persistently received since the terminal of Class C is in State can issue data to terminal at any time.Its application scenarios is usually Street lamps control etc..The terminal of Class C can compare Class A and Class B more power consumption.
Fig. 1 and Fig. 2 respectively illustrates the timing diagram of the uplink and downlink of the terminal of Class A and Class C.Class C and Class A is substantially identical, and only during Class A suspend mode, it, which is all opened, receives window RX2.
Fig. 3 shows the timing diagram of the uplink and downlink of the terminal of Class B.The time slot of Class B is then more complex, it has one A synchronization time slot beacon, there are one the reception window ping time slots of fixed cycle.As Fig. 3 example in, the beacon period It is 128 seconds, the ping period is 32 seconds.
LoRaWAN regulation data frame type has Confirmed or two kinds of Unconfirmed, that is, needs response and be not required to Want acknowledgement type.Manufacturer can need to select suitable type according to application.There are two types of data packet formats by LoRa: showing and hidden Whether formula mainly comprising byte number, encoding rate and uses the information such as CRC wherein the header of display data packet is shorter.Such as Fig. 4, LoRa data packet includes: Preamble (lead code), Header (header of optional type), Payload (Data payload).
What is transmitted under the environment of internet of things of the workshop Lora mainly includes the transmission of switching value and quantity of state using data, these It can be transmitted in Lora communication system by way of short message using data.
After the completion of the deployment of Lora network, need to obtain signal quality, the message quality of network, packet loss and others are commented Estimate the index of network performance, this just needs to test network, and sweep check is one of usual way of testing characteristics of network, By sweep check, the band noise disturbed condition in certain band limits can be checked, for selecting suitable frequency range;It can also check Signal communication ability of the region under given pace in each spatial dimension eliminates communication dead angle.
It needs to send test packet and response message between terminal and server in sweep check, but in communication abnormality In the case where, message can not be received and dispatched between terminal, gateway and server, terminal, gateway and server can not quickly recover to just Beginning state, this brings trouble to test job, therefore in the case where communication abnormality, needs to solve terminal, gateway and service The technical issues of how device quickly recovers to original state.
Summary of the invention
For the present invention proposes the abnormality eliminating method, gateway and server of a kind of sweep check. In the method, in communication abnormality, LoRa terminal can not receive response message, and AS can not receive frequency sweep control message, In order to allow AS, gateway can be restored to default original state, need using some exception handlings.At this time using timing Device establishes timeout mechanism, and Lora terminal, gateway and AS can be made to be restored to default initialization state.
To achieve the above object, the present invention provides a kind of abnormality eliminating method of sweep check, this method includes following Step:
Application server AS starts overtime timer, if overtime timer after having sent test frequency sweep response message Time-out, the AS is sent to gateway restores gateway default configuration message;
After the gateway receives the recovery gateway default configuration message, restore default original state, and return to net to AS It closes and restores default configuration confirmation message;
After the AS receives the gateway recovery default configuration confirmation message, test is exited, restores default original state.
According to another aspect of the present invention, the method also includes:
The time-out time of overtime timer is set, and the time-out time is defined as follows: message number * frequency number * (estimation Time interval+specified redundancy time for sending of transmitting-receiving time+ping message).
According to another aspect of the present invention, the method also includes:
Dynamic adjusts the time-out time of timer, specifically: the serial number of current message is carried in Ping message, AS is being received To after the Ping message, the quantity of remaining Ping message is calculated, and reconfigures the time-out time of overtime timer, it is described The time-out time reconfigured=residue Ping message quantity * (time interval that the transmitting-receiving time+ping message of estimation is sent + the redundancy time specified).
According to another aspect of the present invention, the method also includes:
Terminal restores default original state after sending multiple end test packets.
According to another aspect of the present invention, the method also includes:
For continuous Ping-Pong sweep check, AS starts timer, institute after receiving the last one Ping message The timing of timer is stated using fixed value;If overtime timer is overtime, AS restores gateway default setting, exits test shape State.
According to another aspect of the present invention, the fixed value is 5 minutes.
According to another aspect of the present invention, the present invention provides a kind of gateway of abnormality processing for sweep check, institutes Stating gateway includes processor, the processor is configured to the method for executing sweep check abnormality processing.
According to another aspect of the present invention, the present invention provides a kind of server of abnormality processing for sweep check, The server includes processor, the processor is configured to the method for executing sweep check abnormality processing.
Abnormality eliminating method, gateway and the server of sweep check provided by the invention establish overtime machine using timer System, can make Lora terminal, gateway and AS be restored to default initialization state.
By referring to the following drawings and to the detailed description of a specific embodiment of the invention, feature and advantage of the invention It will become apparent.
Detailed description of the invention
Fig. 1 and Fig. 2 is the timing diagram of the uplink and downlink of the terminal of Class A and Class C in the prior art;
Fig. 3 is the timing diagram of the uplink and downlink of the terminal of Class B in the prior art;
Fig. 4 is the structural schematic diagram of data frame in the prior art;
Fig. 5 is sweep check abnormality processing flow diagram in one embodiment of the present of invention;
Fig. 6 is in another embodiment of the invention with frequency Ping-Pong sweep check flow diagram.
Specific embodiment
In order to keep technical solution of the present invention clearer, clear, it is described in further detail, should manages below in conjunction with attached drawing Solution, the specific embodiments described herein are merely illustrative of the present invention, is not intended to limit the present invention.
For convenience, it is also indicated using transmitting terminal other than indicating server end and Lora terminal in the present invention One of server end and Lora terminal indicate another using receiving end, and even server is transmitting terminal, then Lora terminal is exactly Receiving end, if Lora terminal is transmitting terminal, server is exactly receiving end.
The present invention proposes a kind of Lora sweep check method, terminal and server.In the method, downlink sweep check by Application server AS sends the sweep check message specified number to Lora terminal, and Lora terminal is responsible for counting and collection downlink is swept The quantity and signal quality of frequency test packet, and return result to AS.Uplink sweep check is referred to from Lora terminal to AS transmission Fixed number purpose uplink sweep check message is responsible for collecting the quantity and signal quality of uplink test packet by AS.The present invention provides Method can to Lora network carry out sweep check, obtain the performance parameter of network, provide help for the network optimization.
Specifically, Lora sweep check method provided by the invention the following steps are included:
The relevant parameter of frequency sweep is arranged in Lora terminal, and the relevant parameter is passed to application server AS, and unlatching is swept Frequency works;
When uplink sweep check, Lora terminal sends the uplink sweep check message specified number to AS, and AS collects uplink The quantity and signal quality of sweep check message;
When downlink sweep check, AS sends the downlink sweep check message specified number, Lora terminal system to Lora terminal Meter and the quantity and signal quality for collecting downlink sweep check message, and return result to AS.
In view of simplifying the purpose realized, the frequency sweep process of up channel and the frequency sweep process of down channel are separated real It is existing.
In view of the needs of field work, sweep check process is responsible for configuring the related ginseng of sweep check by Lora terminal Number, and be responsible for starting and terminating sweep check by Lora terminal.
Sweep check process master control is still grasped by AS, i.e., is responsible for the unified of test result information by AS and stores, statistical Analysis, as the result is shown, the switching command and synchronic command of pilot process.
Under the bandwidth situation of 125kHz, since gateway sx1301 is merely able to be received on 8 up channels, and Under 250kHz and 500kHz bandwidth situation, gateway sx1301 is merely able to be received on a up channel, so gateway needs It to update repeatedly and receive frequency configuration file, restart packet forward task, this process also should be responsible for control by AS.
The message transmitted between AS and terminal includes three kinds: frequency sweep controls message, frequency sweep response message and sweep check report Text;
Frequency sweep controls message: Lora terminal is responsible for the configuration of sweep check relevant parameter, and is responsible for starting and terminates frequency sweep Test.And AS be responsible for the control of sweep check process with it is synchronous.So Lora terminal and AS require to send frequency sweep control message.
Frequency sweep response message: for the response of frequency sweep control message, all it is classified as frequency sweep response message.
Sweep check message: the data message for uplink and downlink test.
Sweep check method is: downlink sweep check sends the sweep check message specified number from AS to Lora terminal, Lora terminal is responsible for counting and collecting the quantity and signal quality of downlink sweep check message, and returns result to AS.Uplink Sweep check sends the uplink sweep check message specified number from Lora terminal to AS, is responsible for collecting uplink test packet by AS Quantity and signal quality.
In order to from AS frequency sweep control message can incoming terminal recommend AS issue frequency sweep control using SF12data rate System and response message, Lora terminal are arranged the special channel RX2 and are used to receive from the control of AS frequency sweep and response message.
In order to guarantee that frequency sweep control that Lora terminal is sent and response message can reach gateway and is transmitted to AS, recommend to make Frequency sweep control and response message are sent with SF12data rate, but sends frequency sweep control and response message upstream frequency, is needed It is determined according to current test item.
In the case where considering the multiple gateways of field deployment, when carrying out uplink sweep check, need to adjust simultaneously more The reception set of frequency of a gateway.
As shown in figure 5, the present invention provides a kind of abnormality eliminating methods of sweep check, in communication abnormality, LoRa terminal can not receive response message, and AS can not receive frequency sweep control message, and in order to allow AS, gateway can be restored to silent Recognize original state, needs using some exception handlings.Timeout mechanism is established using timer at this time, Lora can be made whole End, gateway and AS are restored to default initialization state.
To achieve the above object, the sweep check abnormality eliminating method the following steps are included:
Application server AS starts overtime timer, if overtime timer after having sent test frequency sweep response message Time-out, the AS is sent to gateway restores gateway default configuration message;
After the gateway receives the recovery gateway default configuration message, restore default original state, and return to net to AS It closes and restores default configuration confirmation message;
After the AS receives the gateway recovery default configuration confirmation message, test is exited, restores default original state.
Preferably, the method also includes:
The time-out time of overtime timer is set, and the time-out time is defined as follows: message number * frequency number * (estimation Time interval+specified redundancy time for sending of transmitting-receiving time+ping message).
Preferably, the method also includes:
Dynamic adjusts the time-out time of timer, specifically: the serial number of current message is carried in Ping message, AS is being received To after the Ping message, the quantity of remaining Ping message is calculated, and reconfigures the time-out time of overtime timer, it is described The time-out time reconfigured=residue Ping message quantity * (time interval that the transmitting-receiving time+ping message of estimation is sent + the redundancy time specified).
Preferably, the method also includes:
Terminal restores default original state after sending multiple end test packets.
Preferably, the method also includes:
For continuous Ping-Pong sweep check, AS starts timer, institute after receiving the last one Ping message The timing of timer is stated using fixed value;If overtime timer is overtime, AS restores gateway default setting, exits test shape State.
In order to more clearly understand the present invention, hereafter the present invention will be described in more detail for merogenesis.
1, the relevant parameter of uplink and downlink sweep check
The relevant parameter for carrying out uplink and downlink sweep check includes but is not limited to: channel frequency, channel bandwidth, data transfer rate, volume Code rate, transmission power, communication message number and communication message interval time.Channel frequency parameters may need in sweep check To change in 8 frequencies, but other parameters such as bandwidth, data transfer rate, encoding rate, transmission power, communication message number and logical Believe that message interval time must all be a fixed value.
2, frequency, frequency bandwidth and channel
The present invention can carry out sweep check to all channels of the frequency from 430.0MHz to 510MHz.Channel bandwidth is supported Tri- kinds of 125KHz, 250KHz and 500KHz.It is practical using channel bandwidth 200KHz as stepping when channel bandwidth is 125KHz, frequency Rate can distribute 399 channels from 430.1MHz to 509.7MHz.It is practical with channel bandwidth when channel bandwidth is 250KHz 400KHz is stepping, and frequency can distribute 199 channels since 430.2MHz.It is practical when channel bandwidth is 500KHz Using channel bandwidth 600KHz as stepping, frequency can distribute 133 channels since 430.3MHz.
3, data transfer rate or spreading factor, encoding rate
Spreading factor supports SF7-SF12 corresponding data rate DR5-DR0.Totally 6 rates.Gateway SX1301 chip is in uplink Receiving direction, either 125kHz, under 250kHz or 500kHz bandwidth, all support SF7-SF12 totally 6 data transfer rates.Encoding rate It is divided into 4 kinds: 4/5,4/6,4/7,4/8.
4, terminal transmission power and gateway send power
According to CN470/430 code, support TX_POWER_0 (maximum and default) to TX_POWER_7 (minimum) 8 transmissions Power.But according to the transmission power of realization code sx1276.c, the Lora terminal of Lora terminal sx1276 can be set to from Each transmission power level of 2dB to 20dB.
A variety of transmission powers that gateway is supported, are arranged by configuration file.NS can only use configuration text when sending downlink message The transmission power set in part.
5, every channel frequency sweep number of communications and communication time interval
The number of communications (test packet transmission times) and communication time interval (test report of each sweep check can be set Literary transmission time interval).
The setting of communication time interval, be in view of the sending time of message under minimum speed limit, and considers to receive window Time and mac state machine renewal time.Communication time interval is greater than the summation of these three times.In special circumstances, between communication It can shorten every the time, message can continuously be emitted with relatively closely spaced.
6, support of the gateway SX1301 chip to the above parameter
In uplink receiving direction, SX1301 chip has IF0-IF7 totally 8 receiving channels, these receiving channels are only supported 125KHz bandwidth, but most 8 upstream frequencies can be monitored.Data that can be SF7-SF12 at these frequencies all It is monitored under rate, while receiving most 8 messages.In addition there are one IF8 receiving channels for SX1301 chip, can configure At 125kHz or 250kHz 500kHz bandwidth, a frequency can only be monitored, and respective frequencies can only be monitored by setting One data rate.That is if channel width is 250kHz or 500kHz in sweep check, SX1301 once can only The message under a upstream frequency is received, does not support the sweep check simultaneously of 8 up channels.
In downlink sending direction, only one sendaisle of SX1301 can only once send a message, hair can be set Deliver newspaper literary Radio channel (channel frequency), Bandwidth (bandwidth), data rate (data transfer rate), coding rate (encoding rate), RF output power (transmission power).
All 4 kinds of coding rate are supported in SX1301 transmitting-receiving.But each transceiver channel must specify coding in advance rate.For uplink receiving, a channel cannot monitor all as IF0-IF7 while listening for all data rate coding rate.A coding rate can only once be set.
7, support of the terminal SX1276/1278 chip to the above parameter
Terminal SX1276/1278 chip is semiduplex single channel transceiver, and transmitting-receiving cannot carry out simultaneously, once can only Receive and dispatch a message.Primary transmitting-receiving all can only be in the Radio channel (channel frequency) of configured in advance, Bandwidth (band It is wide), it carries out under data rate and coding rate.Terminal SX1276/1278 chip support in 125kHz or 250kHz or Under 3 kinds of bandwidth of 500kHz and SF6-SF12 is received and dispatched under 7 data rate totally.Wherein SF6 is only supported under specific condition The high-speed traffic of lora, and gateway SX1301 chip does not support SF6, so without testing SF6 in test process.
All 4 kinds of coding rate are supported in the transmitting-receiving of terminal SX1276/1278 chip.But transmitting-receiving must all specify in advance coding rate.Primary transmitting-receiving can only support a kind of coding rate.
8, in a sweep check multiple frequency points switching mode
If being related to multiple swept frequencies during a sweep check, when needing to send multiple frequency sweep messages.Have two Kind send the mode of message: a kind of mode is to send the frequency sweep message specified number on a swept frequency, then jump again The frequency sweep message specified number is sent to next frequency, so circulation is until all frequencies;Another kind of mode is, at one A frequency sweep message is sent on swept frequency, then retransmits a frequency sweep message jumping to next frequency, is so recycled Until all frequencies.
Which kind of mode in both the above mode is used during sweep check, needs to accomplish can configure.
9, Lora system sweep check original state defines
In view of under OTAA mode, suspension is possible to triggering Auto-reconnect.It is recommended that under original state, Lora terminal with ABP mode networks, and sets fixed downstream frequency for downlink RX2, data rate is SF12.Terminal uplink rate is using silent The initial reception frequency for recognizing initial value and gateway default is consistent.
In order to guarantee that sweep check process can normally start, before starting sweep check every time, Lora terminal and gateway must Default original state must be reverted to.Each sweep check terminates, and Lora terminal and gateway should all revert to the initial shape of default State.
10, the collection of Lora system sweep check result
The test result information for needing to collect during sweep check includes: signal quality (maximum value, the minimum value of message And average value), the information such as packet loss.If being related to multiple frequency points during a frequency sweep, that test result information collected It should be that each frequency point is a.The time delay of PingPong process is not within the collection access of test result information.
Lora terminal is not done too many data and is saved, theoretically the not responsible message qualitative data for collecting each message.? In PingPong test process, AS issues the signal that the Ping message just received can be carried in the Pong message of Lora terminal Quality and simple statistical data.And Lora terminal is sent in the Ping message of AS and can carry one and receive The signal quality of Pong message and simple statistical data.In this way in PingPong interactive process, so that it may complete Lora Communicate the collection of both ends test result information.
11, Ping-Pong test method of the uplink and downlink with frequency frequency sweep
Fig. 6 is the flow diagram for carrying out uplink and downlink in the present invention and testing with the Ping-Pong of frequency frequency sweep.In Lora terminal When being in default original state with gateway, initiated by Lora terminal with frequency Ping-Pong sweep check.It is provided below with reference to Fig. 6 Some committed steps in Ping-Pong test.
Step 1, Lora terminal are responsible for configuring this relevant parameter of uplink sweep check, and in default upstream frequency and Message is controlled by frequency sweep under SF12 rate and is sent to AS.
After step 2, AS receive the control message, the uplink receiving channel of Lora gateway is configured according to configuration parameter at once, Restart the packet forward task of gateway, gateway is waited to enter swept frequency reception state;
After step 3, AS confirmation Lora gateway are ready, Rx2 downstream frequency and SF12 rate that AS is defaulted by terminal Frequency sweep response message is sent to lora terminal, it is ready to Lora terminal check, it can start to send uplink sweep check report Literary Ping message;
After step 4, Lora terminal only receive response message, it can just start to send sweep check message (Ping message), Otherwise configuration parameter can be repeatedly retransmitted, until time-out;
After step 5, Lora terminal receive response message, starting timer timing, with specified time interval, (specified is swept Frequency parameter) start to send Ping message, it is sent, Lora terminal opens Rx2 reception window under identical sweep parameters at once Mouth (test process does not open Rx1 window always);
Step 6, AS are after receiving the Ping message of Lora terminal, as early as possible with (and Ping message) identical transmission parameter, Send Pong message;
Step 7, Lora terminal retransmit a Ping message (without until timing after receiving Pong message at once Device time-out).It, can be after timing again if Lora terminal does not receive Pong message in the time-out time as defined in timer Send a Ping message;
Step 8, repeatedly, until Lora terminal has sent the Ping message of configuration parameter specified quantity.
Step 9, in Ping-Pong test process, Lora terminal be responsible for collect downlink Pong message signal strength, lose The information such as packet rate, AS are responsible for collecting the signal strength and packet loss information of uplink Ping message;
Step 10, Lora terminal pass through specified each uplink frequency sweep frequency after all uplink Ping messages are sent Rate sends sweep check with the rate of SF12 and controls message, informs that AS terminates this sweep check.Lora terminal has sent control After message, default original state is voluntarily reverted to;
After step 11, AS receive the control message for terminating sweep check, gateway is received into frequency retrieval into default configuration, weight Gateway packet forward task is opened, into default original state;
Step 12, so far, AS, gateway and Lora terminal all revert to initial default state.
In above-mentioned test method, it should be noted that:
1, when AS sends Pong message, the frequency in parameter, bandwidth, coding rate, data rate is sent and is all easy Accomplish it is consistent with Ping message, but Tx Power it is more difficult accomplish it is consistent.Because of Tx power and terminal branch that gateway is supported The Tx Power held is not consistent.And gateway, usually with maximum power transmission, there is no save energy consumption.So not having Multiple TxPower of necessity test gateway, therefore residential gateway downlink message can be sent in frequency sweep configuration parameter TxPower。
2, it needs to consider under abnormal conditions, LoRa terminal can not receive response message, and AS can not receive frequency sweep control message The case where, timeout mechanism is established using timer, in order to which Lora terminal and AS are restored to default initialization state.
Abnormality processing:
It not can be carried out normal control communication under some abnormal conditions between AS and Lora terminal, in order to allow AS, gateway energy It is enough restored to default original state, is needed using some exception handlings.Lora terminal because there is artificial intervention, It can restore default original state by manually actively terminating testing process.
Using timeout mechanism: AS is sending test starting response message, starts overtime timer, and time-out time defines such as Under: message number * frequency number * (time interval+certain redundancy time that the transmitting-receiving time+ping message of estimation is sent). If overtime timer triggers, AS restores gateway default setting, exits test mode.
The optimization of timeout mechanism: in order to guarantee that AS time-out time can be matched with the end time of sweep check as far as possible, The serial number of current message can be carried in Ping message, AS calculates remaining Ping message after receiving the Ping message Quantity, and reset overtime timer, resetting time-out time=residue Ping message quantity * (the transmitting-receiving time of estimation+ The time interval that ping message is sent+certain redundancy time).In this way during a normal PingPong, AS can be with According to the Ping message dynamic adjustment time-out time received, so that the end time of time-out time and sweep check connects as far as possible Closely.
12, continuous ping-Pong is tested
In order to which Field Force can continuously test the signal intelligence of Lora network in moving process, need to design one kind Continuous continual Ping-Pong test method.This test method carries out follow-on test just for single-frequency point, does not require more Continuous Ping-Pong test is carried out between a frequency point.
The explanation of continuous ping Pong test process and the above chapters and sections is almost the same.Continuous ping Pong test process is necessary Actively stopped by artificial.
Abnormality processing:
It not can be carried out normal control communication under some abnormal conditions between AS and Lora terminal, in order to allow AS, gateway energy It is enough restored to default original state, is needed using some exception handlings.Lora terminal because there is artificial intervention, It can restore default original state by manually actively terminating testing process.
Here the timeout mechanism used and upper chapters and sections different from.AS is after receiving the last one Ping message, starting Timer, timing use fixed value, such as 5 minutes.If overtime timer triggers, AS restores gateway default setting, moves back Test mode out.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all at this Under the design of invention, using equivalent structure transformation made by description of the invention and accompanying drawing content, or directly/it is used in it indirectly He is included in scope of patent protection of the invention relevant technical field.

Claims (8)

1. a kind of abnormality eliminating method of sweep check, which is characterized in that the described method comprises the following steps:
Application server AS starts overtime timer after having sent test frequency sweep response message, if overtime timer is overtime, The AS is sent to gateway restores gateway default configuration message;
After the gateway receives the recovery gateway default configuration message, restore default original state, and extensive to AS return gateway Multiple default configuration confirmation message;
After the AS receives the gateway recovery default configuration confirmation message, test is exited, restores default original state.
2. abnormality eliminating method according to claim 1, which is characterized in that the method also includes:
The time-out time of overtime timer is set, and the time-out time is defined as follows: the message number * frequency number * (receipts of estimation Send out time interval+specified redundancy time that time+ping message is sent).
3. abnormality eliminating method according to claim 1, which is characterized in that the method also includes:
Dynamic adjusts the time-out time of timer, specifically: the serial number of current message is carried in Ping message, AS is receiving After stating Ping message, calculate the quantity of remaining Ping message, and reconfigure the time-out time of overtime timer, it is described again The time-out time quantity * of residue Ping message=(time interval that the transmitting-receiving time+ping message of estimation is sent+of configuration refers to Fixed redundancy time).
4. abnormality eliminating method according to claim 1, which is characterized in that the method also includes:
Terminal restores default original state after sending multiple end test packets.
5. abnormality eliminating method according to claim 1, which is characterized in that the method also includes:
For continuous Ping-Pong sweep check, AS starts timer after receiving the last one Ping message, described fixed When device timing use fixed value;If overtime timer is overtime, AS restores gateway default setting, exits test mode.
6. abnormality eliminating method according to claim 5, which is characterized in that the fixed value is 5 minutes.
7. a kind of gateway of the abnormality processing for sweep check, the gateway includes processor, the processor is configured to Execute the method such as the sweep check abnormality processing as performed by the gateway in claim any one of 1-6.
8. a kind of server of the abnormality processing for sweep check, the server includes processor, and the processor is matched It is set to the method executed such as the sweep check abnormality processing as performed by the server in claim any one of 1-6.
CN201810958127.2A 2018-08-22 2018-08-22 Abnormal processing method for frequency sweep test, gateway and server Active CN108965063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810958127.2A CN108965063B (en) 2018-08-22 2018-08-22 Abnormal processing method for frequency sweep test, gateway and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810958127.2A CN108965063B (en) 2018-08-22 2018-08-22 Abnormal processing method for frequency sweep test, gateway and server

Publications (2)

Publication Number Publication Date
CN108965063A true CN108965063A (en) 2018-12-07
CN108965063B CN108965063B (en) 2022-08-16

Family

ID=64473493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810958127.2A Active CN108965063B (en) 2018-08-22 2018-08-22 Abnormal processing method for frequency sweep test, gateway and server

Country Status (1)

Country Link
CN (1) CN108965063B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037930A (en) * 2019-12-09 2021-06-25 中兴通讯股份有限公司 Radio frequency device exception handling method and device, terminal and readable storage medium
US11412449B2 (en) 2018-10-11 2022-08-09 Signify Holding B.V. Communicating in a wireless network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060276140A1 (en) * 2001-03-30 2006-12-07 Austin Mark D System and method for determining mobile communication system carrier frequency propagation characteristics
CN106993291A (en) * 2017-03-07 2017-07-28 上海东方明珠广播电视研究发展有限公司 The frequency management method and system of low-power consumption wide area network based on radio and television frequency range
WO2018125287A1 (en) * 2016-12-28 2018-07-05 Intel IP Corporation Communication terminal and method for initiating a communication
CN108418866A (en) * 2018-02-07 2018-08-17 沈磊 Lora switch detectors, facility switching detecting system and detector extraction of square root method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060276140A1 (en) * 2001-03-30 2006-12-07 Austin Mark D System and method for determining mobile communication system carrier frequency propagation characteristics
WO2018125287A1 (en) * 2016-12-28 2018-07-05 Intel IP Corporation Communication terminal and method for initiating a communication
CN106993291A (en) * 2017-03-07 2017-07-28 上海东方明珠广播电视研究发展有限公司 The frequency management method and system of low-power consumption wide area network based on radio and television frequency range
CN108418866A (en) * 2018-02-07 2018-08-17 沈磊 Lora switch detectors, facility switching detecting system and detector extraction of square root method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11412449B2 (en) 2018-10-11 2022-08-09 Signify Holding B.V. Communicating in a wireless network
CN113037930A (en) * 2019-12-09 2021-06-25 中兴通讯股份有限公司 Radio frequency device exception handling method and device, terminal and readable storage medium
CN113037930B (en) * 2019-12-09 2024-03-29 中兴通讯股份有限公司 Method, device, terminal and readable storage medium for processing abnormality of radio frequency device

Also Published As

Publication number Publication date
CN108965063B (en) 2022-08-16

Similar Documents

Publication Publication Date Title
Capuzzo et al. Confirmed traffic in LoRaWAN: Pitfalls and countermeasures
Li et al. How agile is the adaptive data rate mechanism of LoRaWAN?
Reynders et al. A LoRaWAN module for ns-3: Implementation and evaluation
CN110572481B (en) Intelligent electromechanical equipment data interaction method based on LoRa communication
JP2012508496A (en) Data rate adaptation method for multicast communication
CN109067892A (en) Big data transmission method, terminal and server in a kind of Lora communication system
CN102340352B (en) A kind of method of light mouth speed auto-negotiation and device
CN108650688B (en) Frequency sweep test method and Lora gateway
US10848562B1 (en) Test system for the mobile IoT network and test method using such a test system
CN109587023A (en) A kind of LoRa ad hoc network method and system
CN108965063A (en) A kind of abnormality eliminating method of sweep check, gateway and server
CN109039820A (en) A kind of Lora sweep check method, terminal and server
CN108650686A (en) A kind of Ping-Pong test methods, terminal and the server of frequency sweep
KR20160131532A (en) Adaptive Bidirectional Forwarding Detection protocol and equipment for maximizing service availability in network system
CN113938239B (en) Method for improving anti-interference capability of wireless communication, communication equipment and storage medium
Lan Experimental study of thread mesh network for wireless building automation systems
CN109039551A (en) A kind of Lora message reassembly abnormality eliminating method, transmitting terminal and receiving end
Ganji et al. Characterizing the performance of wifi in dense iot deployments
Cui et al. Throughput optimization of the improved p-CSMA protocol in PLC network
CN111182508B (en) LoRa communication network and communication method thereof
KR20220008834A (en) Active test systems for mobile IOT networks and test methods using such test systems
CN110958162A (en) BLE cascade network, link detection method, equipment and terminal thereof
Sinha et al. A wireless transmission control protocol for CDPD
To Energy Saving Protocols for the Internet of Things
Piechowiak et al. Simulations of the MAC Layer in the LoRaWAN Networks

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