CN110430621A - The communication means and system of detection system - Google Patents

The communication means and system of detection system Download PDF

Info

Publication number
CN110430621A
CN110430621A CN201910712476.0A CN201910712476A CN110430621A CN 110430621 A CN110430621 A CN 110430621A CN 201910712476 A CN201910712476 A CN 201910712476A CN 110430621 A CN110430621 A CN 110430621A
Authority
CN
China
Prior art keywords
message
radio network
collector
channel
network gateway
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
CN201910712476.0A
Other languages
Chinese (zh)
Other versions
CN110430621B (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.)
XIPAIAI AUTOMATIC METER ENGINEERING UC SHANGHAI
Original Assignee
XIPAIAI AUTOMATIC METER ENGINEERING UC SHANGHAI
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 XIPAIAI AUTOMATIC METER ENGINEERING UC SHANGHAI filed Critical XIPAIAI AUTOMATIC METER ENGINEERING UC SHANGHAI
Priority to CN201910712476.0A priority Critical patent/CN110430621B/en
Publication of CN110430621A publication Critical patent/CN110430621A/en
Application granted granted Critical
Publication of CN110430621B publication Critical patent/CN110430621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/382Monitoring; Testing of propagation channels for resource allocation, admission control or handover
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Abstract

The embodiment of the invention discloses the communication means of detection system and systems.This method uses LoRa communication mode, it include: after the first radio network gateway starts, first message is sent in channel to be detected, if not receiving the second message of other radio network gateways feedback in the first preset duration, channel to be detected then is determined as current operating channel, after the starting of first collector, third message is sent in channel to be searched, if the first collector determines that the current remaining capacity of radio network gateway is greater than 0 according to the 4th message that the radio network gateway received is sent, then channel to be searched is determined as currently to connecting channel, and communication linkage is established to connecting channel and radio network gateway currently.The embodiment of the present invention is by using above-mentioned technical proposal, radio network gateway in detection system can actively establish inequality channel after actuation, and it is connected into idle channel automatically after collector starting, to rapidly and accurately realize that the multichannel at same scene uses, expand field network scale.

Description

The communication means and system of detection system
Technical field
The present embodiments relate to field of communication technology more particularly to the communication means and system of detection system.
Background technique
Low-power Wide Area Network (Low-Power Wide-Area Network, LPWAN) is a kind of used in Internet of Things, can To carry out the wireless network of long range communication with low bit rate.(Long Range, LoRa) is in the LPWAN communication technology at a distance One kind, be a kind of overlength distance wireless transmission scheme, the program has the advantages such as remote and strong interference immunity, at present It is widely used in the detection system of all trades and professions, in particular for the field network of detection system.
The field network of detection system mainly includes collector and radio network gateway, and collector can connect multiple sensors and will Collected data are sent to radio network gateway by LoRa communication.Currently, LoRa wireless communication module generally all has There are multiple channels available, interchannel, in order to meet the network size of field network, can use multichannel there is no interference LoRa communication effectively promotes network capacity in the case where guaranteeing that data transmitting and receiving is not interfere with each other.However, In actual application, it is necessary to realize that radio network gateway establishes the unduplicated inequality of working channel with other work on the spot gateways Channel, meanwhile, collector also needs to be connected into idle channel, the two processes require artificial manual setting at present and complete, but by Collector quantity is more on site, and setting up procedure is complicated, therefore scene promotes the use of and has difficulties, field network size limit Bottleneck still fails to obtain effective solution.
Summary of the invention
The embodiment of the invention provides the communication means of detection system and systems, can optimize the logical of existing detection system Letter scheme.
In a first aspect, the embodiment of the invention provides a kind of communication means of detection system, using LoRa communication mode, packet It includes:
After the starting of first radio network gateway, first message is sent in channel to be detected, the first message is used to indicate reception Second message is fed back to the second radio network gateway of the first message to first radio network gateway;
If first radio network gateway does not receive the second message in the first preset duration, by described wait detect Channel is determined as current operating channel;
After the starting of first collector, third message is sent in channel to be searched, the third message, which is used to indicate, to be received The third radio network gateway of the third message feeds back the 4th message to first collector, includes described in the 4th message The current remaining capacity information of third radio network gateway;
If first collector determines that current remaining capacity is greater than 0 according to the 4th message received, by institute It states channel to be searched to be determined as currently to connecting channel, and is currently established to connecting channel and the third radio network gateway described Communication linkage.
Second aspect is established the embodiment of the invention provides a kind of detection system based on LoRa communication mode, including multiple Radio network gateway and multiple collectors;
At least one gateway in the multiple radio network gateway includes:
First message sending module, for sending first in channel to be detected after affiliated the first radio network gateway starting Message, the first message be used to indicate receive the first message the second radio network gateway it is anti-to first radio network gateway Present second message;
Working channel determining module, for not receiving described in the first preset duration in first radio network gateway When two message, the channel to be detected is determined as current operating channel;
At least one collector in the multiple collector includes:
Second message sending module, for sending third in channel to be searched and disappearing after affiliated the first collector starting Breath, the third message, which is used to indicate, receives the third radio network gateway of the third message to first collector feedback the Four message include the current remaining capacity information of the third radio network gateway in the 4th message;
Communication linkage establishes module, for being determined currently in the current collector according to the 4th message received Residual capacity be greater than 0 when, the channel to be searched is determined as currently to connecting channel, and it is described currently to connecting channel with The third radio network gateway establishes communication linkage.
The communication plan of the detection system provided in the embodiment of the present invention, it is wireless in system using LoRa communication mode After gateways and starting, first message is sent in channel to be detected, other radio network gateways for receiving first message can be wireless to first Gateway feeds back second message and illustrates the channel to be detected if the radio network gateway does not receive second message in certain time length It is unoccupied, channel to be detected is determined as current operating channel, after collector starting, third is sent in channel to be searched and disappears Breath, the radio network gateway for receiving third message can feed back the 4th message to collector, include current remaining capacity in the 4th message Channel to be searched is determined as working as by information if collector determines that current remaining capacity is greater than 0 according to the 4th message received It is preceding to establish communication linkage with corresponding radio network gateway to connecting channel to connecting channel, and currently.By using above-mentioned technology Scheme, the radio network gateway in detection system can actively establish inequality channel after actuation, and be connected into automatically after collector starting Idle channel expands field network scale to rapidly and accurately realize that the multichannel at same scene uses.
Detailed description of the invention
Fig. 1 is a kind of detection system field network structural schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the communication means for detection system that the embodiment of the present invention one provides;
Fig. 3 is a kind of flow diagram of the communication means of detection system provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of automatic setting procedure schematic diagram of gateway channels provided by Embodiment 2 of the present invention;
Fig. 5 is that a kind of collector provided by Embodiment 2 of the present invention searches for gateway flow diagram automatically;
Fig. 6 is a kind of flow diagram of the communication means for detection system that the embodiment of the present invention three provides;
Fig. 7 is radio network gateway and collector communication process schematic diagram under a kind of cochannel that the embodiment of the present invention three provides;
Fig. 8 is a kind of structural block diagram for detection system that the embodiment of the present invention four provides.
Specific embodiment
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.It is understood that It is that specific embodiment described herein is used only for explaining the present invention rather than limiting the invention.It further needs exist for illustrating , only the parts related to the present invention are shown for ease of description, in attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing or method described as flow chart.Although each step is described as the processing of sequence by flow chart, many of these Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated when completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, subroutine, subprogram etc..
Fig. 1 is a kind of detection system field network structural schematic diagram provided in an embodiment of the present invention, as shown in Figure 1, this is existing It mainly include radio network gateway, collector and sensor in the network of field.Collector can acquire sensor according to default timing strategies The data of acquisition, and realize the function of sending collected sensing data to radio network gateway.Generally, a collector Multiple sensors can be connected, radio network gateway is then sent the data to by LoRa communication.The nothing of installation at the scene Gauze closes, and major function is the data for receiving collection in worksite device and sending, and carries out data summarization.One radio network gateway generally connects Several collectors form star topology network.Field network based on LoRa communication mode involved in the embodiment of the present invention, The process of data communication being mainly accomplished that between collector and radio network gateway, summarizes concentration for field data.It utilizes LoRa communication forms the communication of star topology network implementations field network, and the principle of LoRa communication is easy Existing communication contention aware, causes the transmitting-receiving mistake of data, the reliability and accuracy of data transmission is influenced, especially in intelligent measurement system In the application of system, since application range area is big, need to reduce transmission rate to expand the coverage area, when will lead to communication in this way It is long to increase so that communication contention aware probability of happening is higher, influence using.In general, LoRa wireless communication module generally all has Multiple channels are available, and there is no interference for interchannel, therefore, multichannel LoRa communication mostly used to solve greatly at present Field network size limit problem, but use artificial setting substantially to channel selection, process is comparatively laborious, unfavorable real on site Border application.The embodiment of the present invention can solve the automatic frequency-hopping mechanism of collector and radio network gateway, it may be assumed that collector and radio network gateway It accesses before network at the scene, is automatically performed field network and detects, radio network gateway actively establishes inequality channel, and collector connects automatically Enter idle channel, realizes that the multichannel at same scene uses with this, the final purpose realizing field network scale and expanding.
Embodiment one
Fig. 2 is a kind of flow diagram of the communication means for detection system that the embodiment of the present invention one provides, and this method can To be executed by detection system, wherein the detection system be can be implemented by software and/or hardware, and the embodiment of the present invention can be adapted for adopting The application scenarios established with the field network of the detection system of LoRa communication mode.As shown in Fig. 2, this method comprises:
After step 201, the starting of the first radio network gateway, first message is sent in channel to be detected, the first message is used for Indicate that the second radio network gateway for receiving the first message feeds back second message to first radio network gateway.
Illustratively, the detection system in the embodiment of the present invention can be intelligent checking system, which may include scene Network, may also include background server, and field network can may include radio network gateway, collector and sensor as mentioned before, and one As three's quantity be it is multiple, the embodiment of the present invention is not specifically limited quantity.Equipment under different channels cannot form logical News, but mutually isolated, effective contention-free also may be implemented.Therefore, multichannel can be used in embodiments of the present invention The field network size limit problem that LoRa communication solves realizes that collector and radio network gateway access network at the scene Before, field network can be automatically completed to detect.To realize that the multichannel at same scene uses, live network is detected mainly It is made of two parts: first, radio network gateway actively establishes inequality channel;Second, collector is connected into idle channel automatically.Its In, inequality channel the can be understood as channel different from the channel that other radio network gateways are occupying, idle channel is understood that The quantity of the collector connected for radio network gateway in the channel and not up to preset quantity threshold value, the preset quantity threshold value can be with It is set according to the actual situation, the embodiment of the present invention is without limitation.
First radio network gateway can refer to any one radio network gateway in detection system, can also refer to pre- in detection system Some radio network gateway first set, that is to say, that all radio network gateways or part radio network gateway in detection system can be used Mode provided in an embodiment of the present invention selects current operating channel.
Illustratively, after the first radio network gateway starts under network condition at the scene, field network situation is detected, is searched Each channel usage of rope is used according to each channel of acquisition as a result, selecting unappropriated channel, i.e. inequality channel is made With.Specifically, can broadcast one after the first radio network gateway powers at the scene to other radio network gateways in default frequency channel and ask Instruction and awaiting reply are ask, which is known as channel to be detected in embodiments of the present invention, and inquiry instruction is this hair First message in bright embodiment.The radio network gateway for receiving message could be made that corresponding response, namely feed back to the first radio network gateway Second message illustrates that present channel is occupied if the radio network gateway for issuing broadcast message receives response.Wherein, default Frequency channels for example can be 433MHz.
If step 202, first radio network gateway do not receive the second message in the first preset duration, by institute It states channel to be detected and is determined as current operating channel.
Illustratively, if the first radio network gateway does not receive the response of any gateway at the appointed time, namely first Second message is not received in preset duration, then can illustrate that current channel to be detected is not occupied by other radio network gateways, therefore, Can using current channel to be detected as current operating channel, i.e. the first radio network gateway can current channel to be detected into Enter normal operating conditions process.Wherein, the first preset duration can be arranged according to the actual situation.
After step 203, the starting of the first collector, third message is sent in channel to be searched, the third message is for referring to Show that receiving the third radio network gateway of the third message feeds back the 4th message to first collector, in the 4th message Current remaining capacity information comprising the third radio network gateway.
First collector can refer to any one collector in detection system, can also refer in detection system and set in advance Some fixed collector, that is to say, that implementation of the present invention can be used in all collectors or part collector in detection system The mode that example provides selects the channel that communication linkage is established with radio network gateway.
Illustratively, after the first collector powers at the scene, channel each in field network is detected one by one, in default frequency Search gateway instruction is sent in rate channel, is waited and being replied, which is known as letter to be searched in embodiments of the present invention Road, search gateway instruction are the third message in the embodiment of the present invention.The radio network gateway for receiving message could be made that corresponding response, The 4th message is fed back to the first collector, may include radio network gateway current remaining capacity information, current residual in the 4th message Capacity information can indicate the remaining quantity that can link collector of current radio network gateway, the quantity can according to the actual situation into Row setting.
If step 204, first collector determine that current remaining capacity is greater than according to the 4th message received 0, then the channel to be searched is determined as currently to connecting channel, and described currently wireless to connecting channel and the third Gateway establishes communication linkage.
Illustratively, the first collector receives the 4th message of third radio network gateway reply, and from the 4th message When obtaining residual capacity greater than 0, illustrating the radio network gateway still has the ability for connecting other collectors, and therefore, the first collector can To terminate search, and channel to be searched is determined as currently to connecting channel, and currently to connecting channel and third wireless network Communication linkage is established in pass.
Illustratively, in order to guarantee link robust, when third radio network gateway receives the third message of the first collector sending And after giving response, in the case where gateway residual capacity is greater than 0, it can repeat to disappear to one confirmation of transmission of the first collector Breath.If third radio network gateway receives the accurate response for the confirmation message of the first collector, automatically by the first acquisition Device is added in the collector list of third radio network gateway itself, to complete to lead between third radio network gateway and the first collector Believe the foundation of link.It is carried out more in addition, the collector list of itself can also be sent to background server by third radio network gateway Newly.
Working channel is only detected with a radio network gateway in the embodiment of the present invention and a collector searches for letter to be connected It is illustrated for road, it is to be understood that all or part of radio network gateways and collector in detection system field network are equal Aforesaid way progress channel probe can be used and search, the embodiment of the present invention repeat no more.
The communication means of the detection system provided in the embodiment of the present invention, it is wireless in system using LoRa communication mode After gateways and starting, first message is sent in channel to be detected, other radio network gateways for receiving first message can be wireless to first Gateway feeds back second message and illustrates the channel to be detected if the radio network gateway does not receive second message in certain time length It is unoccupied, channel to be detected is determined as current operating channel, after collector starting, third is sent in channel to be searched and disappears Breath, the radio network gateway for receiving third message can feed back the 4th message to collector, include current remaining capacity in the 4th message Channel to be searched is determined as working as by information if collector determines that current remaining capacity is greater than 0 according to the 4th message received It is preceding to establish communication linkage with corresponding radio network gateway to connecting channel to connecting channel, and currently.By using above-mentioned technology Scheme, the radio network gateway in detection system can actively establish inequality channel after actuation, and be connected into automatically after collector starting Idle channel expands field network scale to rapidly and accurately realize that the multichannel at same scene uses.
Embodiment two
Fig. 3 is a kind of flow diagram of the communication means of detection system provided by Embodiment 2 of the present invention, in above-mentioned reality It applies and optimizes on the basis of example, increase the related content for the case where the first radio network gateway receives second message.
Illustratively, it is described after channel to be detected sends first message, further includes: if first radio network gateway exists The second message is received in first preset duration, then increases by the first predeterminated frequency on channel basis wait detect described Interval obtains new channel to be detected, and retransmits first message in the new channel to be detected.The benefit being arranged in this way It is that it is possible to that the first radio network gateway is allowed to be automatically found unappropriated working channel.
Further, can not also be received for the first collector the case where the 4th message or residual capacity are 0 carry out it is excellent Change.Illustratively, it is described after channel to be searched sends third message, further includes: if first collector is according to reception To the 4th message determine that current remaining capacity is 0, or do not receive the 4th message in the second preset duration, then Increase by the second predeterminated frequency interval on the channel basis to be searched, obtain new channel to be searched, and it is described it is new to Search channel retransmits third message.The advantages of this arrangement are as follows it is attachable that the first collector can be allowed to be automatically found Radio network gateway.
Specifically, this can method include the following steps:
After step 301, the starting of the first radio network gateway, first message is sent in channel to be detected, first message is used to indicate The second radio network gateway for receiving first message feeds back second message to the first radio network gateway.
Step 302, the first radio network gateway judge whether receive second message in the first preset duration, if so, executing Step 304;Otherwise, step 303 is executed.
Channel to be detected is determined as current operating channel by step 303, executes step 305.
Step 304 is increasing by the first predeterminated frequency interval wait detect on channel basis, obtain new channel to be detected, and First message is retransmitted in new channel to be detected, until not receiving second message in the first preset duration.
Illustratively, the first predeterminated frequency interval can be arranged according to the actual situation, such as can be 1MHz.If first is pre- If receiving second message in duration, illustrate to be occupied by other radio network gateways when channel to be detected, therefore can control first LoRa wireless communication module in radio network gateway, which jumps on new channel to re-start, to be detected, until in the first preset duration not Second message is received, then can enter normal operating conditions process in currently channel to be detected.
Optionally, the number detected again can also be preset, and be such as arranged according to total number of channels, such as 31 times.Through After crossing 31 automatic frequency-hoppings, original frequency is returned, still is able to receive second message, illustrates to fail in signal cover It was found that the channel that can be worked, then automatically exit from probe procedure.This step can optimize are as follows: increase by channel basis wait detect One predeterminated frequency interval, obtains new channel to be detected, and retransmits first message in new channel to be detected, until the Second message is not received in one preset duration, alternatively, until the number for retransmitting first message reaches the first preset threshold. The advantages of this arrangement are as follows avoiding radio network gateway from ceaselessly carrying out channel probe when all channels have been detected and finished, increase Add power consumption.Fig. 4 is a kind of automatic setting procedure schematic diagram of gateway channels provided by Embodiment 2 of the present invention, as shown in figure 4, wirelessly After gateway powers on, ask whether that gateway occupies present channel, if not receiving response in the stipulated time, gateway channels are set automatically End is set, into normal operating conditions, if having been received by, whether judges number of hops more than 31 times, otherwise gateway channels are automatic Setting terminates, and into normal operating conditions, if being less than 31 times, gateway LoRa module increases on the basis of present channel 1MHz, and asked whether that gateway occupies present channel again.
After step 305, the starting of the first collector, third message is sent in channel to be searched, third message, which is used to indicate, to be connect The third radio network gateway for receiving third message feeds back the 4th message to the first collector, includes third radio network gateway in the 4th message Current remaining capacity information.
Step 306, the first collector judge whether to receive the 4th message in the second preset duration, and disappear according to the 4th It ceases and determines that current remaining capacity is greater than 0, if so, thening follow the steps 307;Otherwise, step 308 is executed.
Wherein, the second preset duration can be arranged according to the actual situation, can be identical as the first preset duration, can also be different.
Channel to be searched is determined as currently to connecting channel by step 307, and currently to connecting channel and the third Radio network gateway establishes communication linkage.
Step 308 increases by the second predeterminated frequency interval on channel basis to be searched, obtains new channel to be searched, and Third message is retransmitted in new channel to be searched, until receiving the 4th message in the second preset duration, and according to the Four message determine that current remaining capacity is greater than 0.
Illustratively, the second predeterminated frequency interval can be arranged according to the actual situation, can be with the first predeterminated frequency interval It is identical or different, such as can be 1MHz.If the 4th message is not received in the second preset duration, or true according to the 4th message Current remaining capacity is determined equal to 0, illustrates that work has reached the maximum limit in the collector that the radio network gateway of present channel is connected Volume can not reconnect more collectors, therefore, can be detected on the new channel with automatic frequency-hopping.
Optionally, the number re-searched for can also be preset, and be such as arranged according to total number of channels, such as 31 times.Through After crossing 31 automatic frequency-hoppings, original frequency is returned, still fails to receive gateway reply, illustrates to fail in signal cover It was found that the gateway to work, then automatically exit from search process.This step can optimize are as follows: increase by channel basis to be searched Two predeterminated frequency intervals, obtain new channel to be searched, and retransmit third message in new channel to be searched, until the The 4th message is received in two preset durations, and determines that current remaining capacity is greater than 0 according to the 4th message, alternatively, until again The number for sending third message reaches the second preset threshold.Fig. 5 is that a kind of collector provided by Embodiment 2 of the present invention is searched automatically Rope gateway flow diagram sends search gateway commands as shown in figure 5, after collector powers on, judgement at the appointed time whether Receive response, if receiving, judgement receive the response in gateway capacity whether be greater than 0, if so, frequency hopping terminates, into normal Otherwise whether working condition judges frequency hopping more than 31 times, if being more than, also frequency hopping terminates, if not exceeded, then collector RoLa mould Block increases 1MHz on present channel frequency base, retransmits search gateway commands.Wherein, if not received back in the stipulated time It answers, also judges frequency hopping whether more than 31 times.
The communication means of detection system provided in an embodiment of the present invention, radio network gateway in detection system after actuation can be with All channels in signal cover are detected one by one, and actively establish inequality channel, and also can after collector starting Radio network gateway on all channels in signal cover is scanned for, is connected into idle channel automatically, thus quick and precisely Ground realizes that the multichannel at same scene uses, and expands field network scale.
Fig. 6 is a kind of flow diagram of the communication means for detection system that the embodiment of the present invention three provides, and this method exists It is optimized on the basis of above-described embodiment, increases radio network gateway and collector in cochannel and carry out the phase of data interaction inside the Pass Hold.
LoRa communication module generally can all have multiple channels, and a pair of of LoRa communication module only under the same channel is It can normal communication.In use, it is desirable that have at any time in channel and can only have a LoRa communication module hair Data are sent, data could be received and dispatched normally.If two or more LoRa communication modules under same channel send data simultaneously, Communication contention aware can be then generated, the data for causing LoRa communication module to receive are imperfect.In the application of intelligent checking system, by Job area is big on site, therefore is frequently necessary to that LoRa communication module is allowed to run under low rate mode, to obtain bigger biography Defeated distance, while it is longer to also result in data transmission time, directly increases a possibility that data collision occurs.Thus limit The collector quantity that the scene communication network of detection system can carry, is unable to satisfy the demand of engineering site.The present invention Embodiment reduces Communication Jamming, uploads data to collector to while guaranteeing transmission range, avoid that data collision occurs Process be optimized.In order to guarantee to realize the star topology network in the embodiment of the present invention, when can use automated communications Sequence control guarantees that two or more LoRa wireless communication modules will not send data in synchronization to communicate timing, leads to nothing Communication contention aware in gauze network.
Illustratively, first radio network gateway is according to the sequence for establishing communication linkage with multiple collectors, to described more A collector is numbered, and number result is sent to corresponding collector;The multiple collector is tied according to the number Fruit successively uploads data collected to first radio network gateway.The advantages of this arrangement are as follows being carried out automatically for collector Number, and control collector and successively upload data, contention-free according to number.
Further, the multiple collector is successively adopted to first radio network gateway upload according to the number result The data of collection, comprising: uploaded in the period in same data, the multiple collector is suitable according to the number in the number result Sequence successively uploads data collected to first radio network gateway with prefixed time interval, wherein the prefixed time interval Greater than the duration that single collector single uploads data.The advantages of this arrangement are as follows communication contention aware can be further avoided.
Specifically, this method may include following steps:
After step 601, the starting of the first radio network gateway, first message is sent in channel to be detected, first message is used to indicate The second radio network gateway for receiving first message feeds back second message to the first radio network gateway.
Step 602, the first radio network gateway judge whether receive second message in the first preset duration, if so, executing Step 604;Otherwise, step 603 is executed.
Channel to be detected is determined as current operating channel by step 603.
Step 604 is increasing by the first predeterminated frequency interval wait detect on channel basis, obtain new channel to be detected, and First message is retransmitted in new channel to be detected, until not receiving second message in the first preset duration.
After step 605, the starting of the first collector, third message is sent in channel to be searched, third message, which is used to indicate, to be connect The third radio network gateway for receiving third message feeds back the 4th message to the first collector, includes third radio network gateway in the 4th message Current remaining capacity information.
Step 606, the first collector judge whether to receive the 4th message in the second preset duration, and disappear according to the 4th It ceases and determines that current remaining capacity is greater than 0, if so, thening follow the steps 607;Otherwise, step 608 is executed.
Channel to be searched is determined as currently to connecting channel by step 607, and currently to connecting channel and the third Radio network gateway establishes communication linkage.
Step 608 increases by the second predeterminated frequency interval on channel basis to be searched, obtains new channel to be searched, and Third message is retransmitted in new channel to be searched, until receiving the 4th message in the second preset duration, and according to the Four message determine that current remaining capacity is greater than 0.
Step 609, the first radio network gateway according to the sequence for establishing communication linkage with multiple collectors, to multiple collectors into Row number, and number result is sent to corresponding collector.
Illustratively, it is assumed that the collector for establishing communication linkage with the first radio network gateway shares n, can be logical according to establishing The sequencing of letter link is successively numbered 1,2,3 ... ..., n, and number result is sent to corresponding collector, is convenient for At the time of collector calculates oneself upload data.
Step 610 uploads in the period in same data, and the multiple collector is suitable according to the number in the number result Sequence successively uploads data collected to first radio network gateway with prefixed time interval, wherein the prefixed time interval Greater than the duration that single collector single uploads data.
Optionally, determine that the multiple collector uploads number collected to first radio network gateway using following formula According at the time of:
tk=t0+ (k-1) × ⊿ t (k=1,2 ..., n)
Wherein, n indicates the quantity of multiple collectors, and k indicates collector number, tkIndicate to number the collector for being k to institute At the time of stating the first radio network gateway upload data collected, t0Indicate that data sampling duration , ⊿ t indicates to number adjacent two The data uplink time interval , ⊿ t of collector is greater than the duration that single collector single uploads data.
Further, if it is T that data, which upload the period, for numbering the collector for being k, i-th is adopted at the time of uploading data It is determined with following formula:
ti=t0+ (i -1) × T+ (k-1) × ⊿ t (k=1,2 ..., n;I=1,2 ...)
Wherein, T is greater than n × ⊿ t.
It is set according to as above, after a data sampling, n collector is sent completely total time are as follows: tTotal=n × ⊿ t is right For single collector, data upload cycle T and need to be greater than tTotal, according to above-mentioned mechanism algorithm, all acquisitions in detection The device upload data moment all can determine, only want ⊿ t just to can guarantee greater than single acquisition device upload data time and not send out Raw communication contention aware.
Preferably, it can be determined the total quantity for the collector that radio network gateway can connect (on i.e. according to above-mentioned formula The text preset quantity threshold value), then when radio network gateway determines current remaining capacity information, is subtracted using the total quantity and currently connected The collector quantity connect, can be obtained current remaining capacity.
Further, operation has real-time clock in first radio network gateway and the multiple collector, described more Before a collector successively uploads data collected to first radio network gateway according to the number result, further includes: right It is synchronous that the real-time clock run in first radio network gateway and the multiple collector carries out time calibration.It is arranged in this way It is advantageous in that, it is ensured that the high request of time schedule.
In order to make it easy to understand, being illustrated with reference to the accompanying drawing, Fig. 7 is a kind of cochannel that the embodiment of the present invention three provides Lower radio network gateway and collector communication process schematic diagram, after radio network gateway powers on, choose the current operating channel of oneself and wait Device to be collected establishes communication connection, after collector powers on, searches to connecting channel and sends to corresponding radio network gateway Order starts to establish communication connection with gateway, and radio network gateway compiles collector by the sequence that collector establishes communication Number, and number being sent to collector, and collector is waited to upload data, collector is numbered according to collector calculates data transmission Delay time sampled sensor data and is sent to sensing data after postponing a period of time when the periodic sampling moment arrives Radio network gateway, then waits the arrival of next cycle sampling instant, and radio network gateway turns the collector test data received It is dealt into server, then proceedes to that collector is waited to upload data, in this way, data transmission orderly carries out, is guaranteeing data transmission effect While rate, communication contention aware can effectively avoid.
The communication means of detection system provided in an embodiment of the present invention, radio network gateway in detection system after actuation can be with All channels in signal cover are detected one by one, and actively establish inequality channel, and also can after collector starting Radio network gateway on all channels in signal cover is scanned for, is connected into idle channel automatically, thus quick and precisely Ground realizes that the multichannel at same scene uses, and expands field network scale, after radio network gateway and collector establish communication linkage, Collector can carry out data upload according to the number result that radio network gateway is sent in an orderly manner, guarantee that two or more LoRa are wireless Communication module will not send data in synchronization, effectively avoid the communication contention aware in wireless network.
On that basi of the above embodiments, it can also advanced optimize, to reduce system power dissipation.Current field device due to The design of communication mechanism, in the detection process, collector are responsible for periodically reading sensor sample data, and logical by LoRa Letter module is sent to radio network gateway, and since field network environment is poor, high-frequency wireless communication causes field device power consumption Greatly, and communication module is chronically at working condition, additionally due to detection scene is generally without external power supply, collector is needed using certainly Charged pool power supply will be shortened battery charging interval, needed by artificial frequent charge if equipment power dissipation is excessively high, can not be for a long time Online use on duty.Therefore, the embodiment of the present invention can also optimize regarding to the issue above, reduce the wireless communication frequency and increasing Add stand-by time, to realize the long-time work on duty online of equipment, reduces charging times.
Illustratively, the LoRa when first collector, which is not in data, uploads the stage, in first collector Wireless communication module works in low-power consumption mode;When first collector work is in low-power consumption mode, if listening to described When the wake up instruction that third radio network gateway is sent, the LoRa wireless communication module that first collector controls itself enters Gao Gong Consumption mode.The advantages of this arrangement are as follows equipment energy can be effectively reduced from source by the improvement to communication mechanism Consumption.
Specifically, collector, when not uploading data, LoRa module is set as the mode of low-power consumption, only on collector When passing data, LoRa module just enters the normal mode of operation of greater energy consumption.Under low-power consumption mode, LoRa wireless communication module can In " suspend mode-monitoring " mode, LoRa wireless communication module monitors network in such a way that timing is monitored under this mode state In wake up instruction.After collector receives effective wake-up code, the LoRa wireless communication module switching of itself can be just set Into normal mode of operation, until entire data packet receives.This mechanism requires radio network gateway sending communication data to adopting Before storage, wake up instruction is sent first, wakes up the LoRa wireless communication module of collector.Due to most time collectors Data are not sent, such communication mechanism can just make LoRa wireless communication module be chronically at " suspend mode-monitoring " state, i.e., low Power consumption state, therefore can be had using the communication mechanism and effectively reduce equipment energy consumption from source.
Example IV
The embodiment of the present invention provides a kind of detection system, which can be implemented by software and/or hardware, can be by executing inspection The communication means of examining system realizes the communication of detection system, which is established based on LoRa communication mode, including multiple wireless Gateway and multiple collectors, at least one gateway in the multiple radio network gateway include first message sending module and work letter Road determining module, at least one collector in the multiple collector include that second message sending module and communication linkage are established Module.
The structure of detection system is schematically illustrated by taking a radio network gateway and a collector as an example below, detection system Other radio network gateways and collector for including in system are not shown, and Fig. 8 is a kind of detection system that the embodiment of the present invention four provides Structural block diagram, as shown in figure 8, the system includes radio network gateway 810 and collector 820.
The radio network gateway 810 includes:
First message sending module 811 sends the in channel to be detected for after affiliated first radio network gateway starting One message, the first message, which is used to indicate, receives the second radio network gateway of the first message to first radio network gateway Feed back second message;
Working channel determining module 812, for not receiving institute in the first preset duration in first radio network gateway When stating second message, the channel to be detected is determined as current operating channel;
The collector 820 includes:
Second message sending module 821, for sending third in channel to be searched after affiliated the first collector starting Message, the third message, which is used to indicate, to be received the third radio network gateway of the third message and feeds back to first collector 4th message includes the current remaining capacity information of the third radio network gateway in the 4th message;
Communication linkage establishes module 822, for being determined in the current collector according to the 4th message received When current remaining capacity is greater than 0, the channel to be searched is determined as currently to connecting channel, and in the letter currently to be connected Road and the third radio network gateway establish communication linkage.
The detection system provided in the embodiment of the present invention, using LoRa communication mode, after the radio network gateway in system starts, First message is sent in channel to be detected, other radio network gateways for receiving first message can feed back second to the first radio network gateway Message illustrates that the channel to be detected is unoccupied if the radio network gateway does not receive second message in certain time length, will be to It detects channel and is determined as current operating channel, after collector starting, send third message in channel to be searched, receive third and disappear The radio network gateway of breath can feed back the 4th message to collector, include current remaining capacity information in the 4th message, if collector root It determines that current remaining capacity is greater than 0 according to the 4th message received, then channel to be searched is determined as currently to connecting channel, and Communication linkage is established with corresponding radio network gateway to connecting channel currently.By using above-mentioned technical proposal, in detection system Radio network gateway can actively establish inequality channel after actuation, and idle channel is connected into automatically after collector starting, thus fastly The multichannel that speed is accurately realized same scene uses, and expands field network scale.
Optionally, working channel determining module is also used to: after channel to be detected sends first message, if described first Radio network gateway receives the second message in first preset duration, then increases by channel basis wait detect described One predeterminated frequency interval obtains new channel to be detected, and retransmits first message in the new channel to be detected.
Optionally, second message sending module is also used to: after channel to be searched sends third message, if described first Collector determines that current remaining capacity is 0 according to the 4th message received, or does not receive in the second preset duration 4th message then increases by the second predeterminated frequency interval on the channel basis to be searched, obtains new channel to be searched, And third message is retransmitted in the new channel to be searched.
Optionally, the detection system includes multiple collectors, the radio network gateway further include:
Number module, for being carried out to the multiple collector according to the sequence for establishing communication linkage with multiple collectors Number, and number result is sent to corresponding collector;
The multiple collector is also used to successively be acquired to first radio network gateway upload according to the number result Data.
Optionally, data collected successively are uploaded to first radio network gateway according to the number result, comprising:
Same data upload the period in, according to the number order in the number result successively with prefixed time interval to First radio network gateway uploads data collected, wherein the prefixed time interval is uploaded greater than single collector single The duration of data.
Optionally, determine that the multiple collector uploads number collected to first radio network gateway using following formula According at the time of:
tk=t0+ (k-1) × ⊿ t (k=1,2 ..., n)
Wherein, n indicates the quantity of multiple collectors, and k indicates collector number, tkIndicate to number the collector for being k to institute At the time of stating the first radio network gateway upload data collected, t0Indicate that data sampling duration , ⊿ t indicates to number adjacent two The data uplink time interval , ⊿ t of collector is greater than the duration that single collector single uploads data.
Optionally, if it is T that data, which upload the period, for numbering the collector for being k, i-th uses at the time of uploading data Following formula determines:
ti=t0+ (i -1) × T+ (k-1) × ⊿ t (k=1,2 ..., n;I=1,2 ...)
Wherein, T is greater than n × ⊿ t.
Optionally, operation has a real-time clock in first radio network gateway and the multiple collector, radio network gateway and It is provided with clock control module in multiple collectors, is used in the multiple collector according to the number result successively to described Before first radio network gateway uploads data collected, to what is run in first radio network gateway and the multiple collector It is synchronous that real-time clock carries out time calibration.
It optionally, include operating mode control module in the collector, for uploading rank when collector is not in data Duan Shi, the LoRa wireless communication module for controlling itself work in low-power consumption mode;When collector work in low-power consumption mode, if When listening to the wake up instruction that the third radio network gateway is sent, the LoRa wireless communication module for controlling itself enters high power consumption mould Formula.
The logical of detection system provided by any embodiment of the invention can be performed in the detection system provided in above-described embodiment Letter method has and executes the corresponding functional module of this method and beneficial effect.The not technology of detailed description in the above-described embodiments Details, reference can be made to the communication means of detection system provided by any embodiment of the invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of communication means of detection system, which is characterized in that use LoRa communication mode, comprising:
After the starting of first radio network gateway, first message is sent in channel to be detected, the first message, which is used to indicate, receives institute The second radio network gateway for stating first message feeds back second message to first radio network gateway;
If first radio network gateway does not receive the second message in the first preset duration, by the channel to be detected It is determined as current operating channel;
After the starting of first collector, send third message in channel to be searched, the third message be used to indicate receive it is described The third radio network gateway of third message feeds back the 4th message to first collector, includes the third in the 4th message The current remaining capacity information of radio network gateway;
If first collector determines that current remaining capacity is greater than 0 according to the 4th message received, will it is described to Search channel is determined as currently to connecting channel, and currently communicates to connecting channel with third radio network gateway foundation described Link.
2. the method according to claim 1, wherein it is described channel to be detected send first message after, also Include:
If first radio network gateway receives the second message in first preset duration, in the letter to be detected Increase by the first predeterminated frequency interval on the basis of road, obtains new channel to be detected, and send out again in the new channel to be detected Send first message.
3. the method according to claim 1, wherein it is described channel to be searched send third message after, also Include:
If first collector determines that current remaining capacity is 0 according to the 4th message received, or default second The 4th message is not received in duration, then increases by the second predeterminated frequency interval on the channel basis to be searched, obtains New channel to be searched, and third message is retransmitted in the new channel to be searched.
4. method according to claim 1 to 3, which is characterized in that further include:
First radio network gateway compiles the multiple collector according to the sequence for establishing communication linkage with multiple collectors Number, and number result is sent to corresponding collector;
The multiple collector successively uploads data collected to first radio network gateway according to the number result.
5. according to the method described in claim 4, it is characterized in that, the multiple collector according to the number result successively to First radio network gateway uploads data collected, comprising:
It is uploaded in the period in same data, the multiple collector is according to the number order in the number result, successively with pre- If time interval uploads data collected to first radio network gateway, wherein the prefixed time interval, which is greater than, individually to be adopted The duration of storage single upload data.
6. according to the method described in claim 5, it is characterized in that, determining the multiple collector to described using following formula At the time of first radio network gateway uploads data collected:
tk=t0+ (k-1) × ⊿ t (k=1,2 ..., n)
Wherein, n indicates the quantity of multiple collectors, and k indicates collector number, tkIndicate to number the collector for being k to described first At the time of radio network gateway uploads data collected, t0Indicate that data sampling duration , ⊿ t indicates to number two adjacent collectors Data uplink time interval , ⊿ t be greater than single collector single upload data duration.
7. according to the method described in claim 6, it is characterized in that, setting data uploads the period as T, for numbering the acquisition for being k Device, i-th are determined at the time of uploading data using following formula:
ti=t0+ (i -1) × T+ (k-1) × ⊿ t (k=1,2 ..., n;I=1,2 ...)
Wherein, T is greater than n × ⊿ t.
8. according to the method described in claim 4, it is characterized in that, in first radio network gateway and the multiple collector Operation has real-time clock, is successively adopted to first radio network gateway upload in the multiple collector according to the number result Before the data of collection, further includes:
First radio network gateway is synchronous to the real-time clock progress time calibration run with the multiple collector.
9. according to the method described in claim 4, it is characterized in that, uploading the stage when first collector is not in data When, the LoRa wireless communication module in first collector works in low-power consumption mode;
When first collector work is in low-power consumption mode, if listening to the wake up instruction that the third radio network gateway is sent When, the LoRa wireless communication module that first collector controls itself enters high power consumption mode.
10. a kind of detection system, which is characterized in that established, including multiple radio network gateways and multiple adopted based on LoRa communication mode Storage;
At least one gateway in the multiple radio network gateway includes:
First message sending module, for sending first message in channel to be detected after affiliated the first radio network gateway starting, The first message, which is used to indicate, receives the second radio network gateway of the first message to first radio network gateway feedback the Two message;
Working channel determining module disappears for not receiving described second in the first preset duration in first radio network gateway When breath, the channel to be detected is determined as current operating channel;
At least one collector in the multiple collector includes:
Second message sending module, for sending third message, institute in channel to be searched after affiliated the first collector starting It states third message and is used to indicate and receive the third radio network gateway of the third message and disappear to first collector feedback the 4th It ceases, includes the current remaining capacity information of the third radio network gateway in the 4th message;
Communication linkage establishes module, for determining current residual according to the 4th message received in the current collector Capacity be greater than 0 when, the channel to be searched is determined as currently to connecting channel, and it is described currently to connecting channel with it is described Third radio network gateway establishes communication linkage.
CN201910712476.0A 2019-08-02 2019-08-02 Communication method and system of detection system Active CN110430621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910712476.0A CN110430621B (en) 2019-08-02 2019-08-02 Communication method and system of detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910712476.0A CN110430621B (en) 2019-08-02 2019-08-02 Communication method and system of detection system

Publications (2)

Publication Number Publication Date
CN110430621A true CN110430621A (en) 2019-11-08
CN110430621B CN110430621B (en) 2022-12-13

Family

ID=68412359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910712476.0A Active CN110430621B (en) 2019-08-02 2019-08-02 Communication method and system of detection system

Country Status (1)

Country Link
CN (1) CN110430621B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656479A (en) * 2021-08-18 2021-11-16 国网北京市电力公司 Data processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711117A (en) * 2012-06-06 2012-10-03 上海乾视通信技术有限公司 Ad Hoc Network node wireless communication channel confirming method and implementation device thereof
CA2871610A1 (en) * 2013-12-09 2015-06-09 Honeywell International Inc. Method of coexistence of multiple wireless fire systems
CN107801172A (en) * 2017-09-18 2018-03-13 暨南大学 LoRa gateways with adaptive channel function and the network system based on LoRa gateways
CN109195195A (en) * 2018-08-13 2019-01-11 锐捷网络股份有限公司 LoRa network channel cut-in method, terminal, gateway, server and system
CN208462056U (en) * 2018-04-27 2019-02-01 江苏信息职业技术学院 A kind of wireless system for transmitting data
CN109451536A (en) * 2018-08-31 2019-03-08 深圳市亿兆互联技术有限公司 A method of it reducing LoRa and communicates packet loss

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711117A (en) * 2012-06-06 2012-10-03 上海乾视通信技术有限公司 Ad Hoc Network node wireless communication channel confirming method and implementation device thereof
CA2871610A1 (en) * 2013-12-09 2015-06-09 Honeywell International Inc. Method of coexistence of multiple wireless fire systems
CN107801172A (en) * 2017-09-18 2018-03-13 暨南大学 LoRa gateways with adaptive channel function and the network system based on LoRa gateways
CN208462056U (en) * 2018-04-27 2019-02-01 江苏信息职业技术学院 A kind of wireless system for transmitting data
CN109195195A (en) * 2018-08-13 2019-01-11 锐捷网络股份有限公司 LoRa network channel cut-in method, terminal, gateway, server and system
CN109451536A (en) * 2018-08-31 2019-03-08 深圳市亿兆互联技术有限公司 A method of it reducing LoRa and communicates packet loss

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656479A (en) * 2021-08-18 2021-11-16 国网北京市电力公司 Data processing method and device

Also Published As

Publication number Publication date
CN110430621B (en) 2022-12-13

Similar Documents

Publication Publication Date Title
US8958433B2 (en) Method and apparatus for extending an awake state of a station
US8982774B2 (en) Method for ranging to a station in power saving mode
CN101444130B (en) method of scanning for beacon transmissions in a WLAN
US11038767B2 (en) Discovery of a set of nodes in a network
US8477671B2 (en) Communication method, system and network nodes in a low power communication network
CN109565793A (en) A kind of method and device, the computer storage medium of terminal selection resource
JP2002247640A5 (en)
CN106961713A (en) A kind of up-link access method and terminal and base station
US10924254B2 (en) Method and system for long-distance full-duplex wireless communication
WO2009024925A2 (en) Method and system for implementing low duty cycle wireless systems
CN103260214A (en) Equipment access method, equipment access point and equipment access device
US20160242146A1 (en) System and Method for Mobile Terminal Initiated Communications
WO2011134435A1 (en) Method and apparatus for accessing wireless sensor network
CN111328081B (en) Wireless ad hoc network method
US8010091B2 (en) System, method and apparatus employing tone and/or tone patterns to indicate the message type in wireless sensor networks
CN110430621A (en) The communication means and system of detection system
JP2001251316A (en) Path retrieval method for wireless network system
CN114585062A (en) Bluetooth-based energy-saving connection method and system
US9042837B2 (en) Device and method for detecting channel state
JP2010231566A (en) Wireless sensor terminal and control method
CN112218247A (en) Internet of things message issuing method and device, electronic equipment and storage medium
US20220394438A1 (en) Sensor System, Wireless Cooperative Receiving System, and Wireless Cooperative Receiving Method
US20080122651A1 (en) Wireless data exchange
JP6407118B2 (en) Communication base station and terminal device
JP2009049924A (en) Beacon radiocommunication device

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