CN109698727A - A kind of wireless sensor network real-time synchronization method based on mobile reference mode - Google Patents
A kind of wireless sensor network real-time synchronization method based on mobile reference mode Download PDFInfo
- Publication number
- CN109698727A CN109698727A CN201811484910.6A CN201811484910A CN109698727A CN 109698727 A CN109698727 A CN 109698727A CN 201811484910 A CN201811484910 A CN 201811484910A CN 109698727 A CN109698727 A CN 109698727A
- Authority
- CN
- China
- Prior art keywords
- node
- time synchronization
- time
- timer
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
Abstract
The invention discloses a kind of wireless sensor network real-time synchronization methods based on mobile reference mode, it is characterized in that, include the following steps: to appoint and takes two known nodes, appoint entitled first node and second node, when the first node receives time synchronization data, the second node is sent;Since the first node and the second node all have output end and input terminal, when the output end of the first node sends time synchronization data to the input terminal of the second node;While the output end of the first node sends data, the timer carried on the output end starts timing;The transmission speed and the acquisition of node processing time of time synchronization data are carried out by the timer, the MCU, the first node and second node, and its data is converted and is added by MCU, it avoids the transmission error of original time synchronization data transmission and receives error, transmit time synchronization data more accurately.
Description
Technical field
The invention belongs to network real-time synchronization technique field more particularly to a kind of wireless sensings based on mobile reference mode
Device network real-time synchronization method.
Background technique
Currently, the reference mode that the mainstream algorithm that facing sensing device network clocking synchronizes uses position fixed, due to wireless
The communication range of sensor node is limited, even the communication range of the stronger reference mode of communication capacity also can not be covered directly
Entire wireless sensor network, it is therefore necessary to rely on leader cluster node or other intermediate nodes are formed by multi-hop link from reference node
Point transmits synchronizing information to needing to carry out the synchronous sensor node of clock, finally realizes that the clock of network-wide basis is same with this
Step, is necessarily required to the biggish traffic on the whole, thus causes as the synchronous important performance indexes of wireless sensor network clock
Energy loss correspondingly increase.
In synchronizing information repeating process, as hop count increases, the error of clock is (mainly by delivery time, propagation
Time and receiving time composition) also it is gradually increased, it causes to synchronize another important performance indexes as wireless sensor network clock
Synchronization accuracy gradually lower, the synchronous performance of clock is reduced with the increase of network size.
Summary of the invention
The present invention provides a kind of wireless sensor network real-time synchronization method based on mobile reference mode, it is intended to solve
In synchronizing information repeating process, as hop count increases, the error of clock is (mainly by delivery time, propagation time and reception
Time composition) also it is gradually increased, cause the synchronization accuracy that another important performance indexes are synchronized as wireless sensor network clock
Gradually lower, the synchronous performance of clock reduces problem with the increase of network size.
The invention is realized in this way a kind of wireless sensor network real-time synchronization method based on mobile reference mode,
Include the following steps:
Step S100: appoint and take two known nodes, first node and second node are named as, when the first node receives
When time synchronization data, the second node is sent;
Step S200: since the first node and the second node all have output end and input terminal, when described
The output end of one node sends time synchronization data to the input terminal of the second node;
Step S300: while the output end of the first node sends data, the meter that is carried on the output end
When device start timing;
Step S3400: when the output end of the second node receives time synchronization data, the timer is carried out
Primary pause;
Step S410: the timer is connect with MCU, and MCU is read the time that the timer is once suspended, false
If it is X that the timer, which counts the time taken, since the first node and the second node take fixed nodes of locations,
And then distance and then learns time synchronization number it was determined that assume that distance is Y between the first node and the second node
According to transmission speed be Y/X;
Step S500: due to the continuous transmission of time synchronization data, when the output end of the second node start into
When the transmission of row time synchronization data, the timer synchronizes secondary pause;
Step S510: the MCU, which once suspends the time difference between secondary pause to the timer, is read out, with
Processing of the second node to time synchronization is learnt afterwards;
Step S520: the MCU to the spread speed of time synchrodata and the second node to time synchrodata
The handled time carries out internet upload, is then carrying out the acquisition to this data, and successively upload to internet, then lead to
The comparison to this data is crossed, and then takes median;
Step T100: the spread speed of known time time synchronization data, it is assumed that be the every km of N, N=Y/X, node clock synchronization
Between synchrodata processing be M;
Step T200: when equipment needs to carry out time synchronization data, distal end carries out the transmission of time synchronization data;
Step T300: the distal end sends time synchronization data in node, and the subsequent MCU is by time synchronization data
The distance between spread speed N and the distal end to the node be multiplied, and then obtain the distal end to the node
Time synchronization data transmission error, by the MCU will between its error be added time synchronization data in;
Step T400: while time of the node to the time synchronization data processing is added in the data MCU;
Step T500: then successively adding up, until time synchronization data are transferred in equipment.
The present invention also provides, it is preferred that the timer is delicate timer, is same as more quasi- to the record of time
Really, timer quantity is multiple, and each timer connect with the MCU, for timer synchronous unlatching with it is synchronous
Pause.
The present invention also provides, it is preferred that the output end and the input terminal of each node are equipped with counter.
Compared with prior art, the beneficial effects of the present invention are: of the invention is a kind of based on the wireless of mobile reference mode
Sensor network real-time synchronization method carries out the time by the timer, the MCU, the first node and second node
The transmission speed and the acquisition of node processing time of synchrodata, and its data is converted and is added by MCU, it avoids
The transmission error and receive error that original time synchronization data are transmitted, transmit time synchronization data more accurately.
Detailed description of the invention
Fig. 1 is analog data acquisition method schematic diagram of the invention;
Fig. 2 is data application method schematic diagram of the invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
In the description of the present invention, it is to be understood that, term " length ", " width ", "upper", "lower", "front", "rear",
The orientation or positional relationship of the instructions such as "left", "right", "vertical", "horizontal", "top", "bottom" "inner", "outside" is based on attached drawing institute
The orientation or positional relationship shown, is merely for convenience of description of the present invention and simplification of the description, rather than the dress of indication or suggestion meaning
It sets or element must have a particular orientation, be constructed and operated in a specific orientation, therefore should not be understood as to limit of the invention
System.In addition, in the description of the present invention, the meaning of " plurality " is two or more, unless otherwise specifically defined.
As shown in Figure 1, the present invention provides a kind of wireless sensor network real-time synchronization method based on mobile reference mode
Analog data acquisition flow diagram,
Including step S100: appointing and take two known nodes, first node and second node are named as, when first node receives
When time synchronization data, second node is sent;
Step S200: since first node and second node all have output end and input terminal, when the output of first node
End sends time synchronization data to the input terminal of second node;
Step S300: while the output end of first node sends data, the timer carried on output end starts timing;
Step S3400: when the output end of second node receives time synchronization data, timer is once suspended;
Step S410: timer is connect with MCU, and MCU reads the time that timer is once suspended, it is assumed that timer
Counting the time taken is X, since first node and second node take fixed nodes of locations, and then first node and the second section
Distance between point is it was determined that assume that distance is Y, and then learn that the transmission speed of time synchronization data is Y/X;
Step S500: due to the continuous transmission of time synchronization data, when the output end of second node start to carry out the time it is same
When the transmission of step data, timer synchronizes secondary pause;
Step S510:MCU once suspends the time difference between secondary pause to timer and is read out, and then learns
Processing of two nodes to time synchronization;
Step S520:MCU is to the spread speed and second node of time synchrodata to handled by time synchrodata
Time carries out internet upload, is then carrying out the acquisition to this data, and successively upload to internet, then by this number
According to comparison, and then take median.
As shown in Fig. 2, the present invention provides a kind of wireless sensor network real-time synchronization method based on mobile reference mode
Data application flow diagram,
Including step T100: the spread speed of known time time synchronization data, it is assumed that be the every km of N, N=Y/X, section
Point is M to the processing of time synchrodata;
Step T200: when equipment needs to carry out time synchronization data, distal end carries out the transmission of time synchronization data;
Step T300: distally sending time synchronization data in node, and subsequent MCU is fast by the propagation of time synchronization data
Degree N is multiplied with distal end to the distance between node, and then obtains the transmission error for distally arriving the time synchronization data of node,
It will be added in time synchronization data between its error by MCU;
Step T400: while the time that node handles time synchrodata is added in the data MCU;
Step T500: then successively adding up, until time synchronization data are transferred in equipment.
Further, timer is delicate timer, and it is more accurate to the record of time to be same as, and timer quantity is more
A, each timer is connect with MCU, and synchronous for timer is opened and synchronous pause;The output end of each node and defeated
Enter end equipped with counter.
Specifically, can accurately carry out the record of time by delicate timer, and multiple timers can be simultaneously
Multiple nodes are measured, and timer records the time data between two nodes at least provided with four, and
And under the action of MCU, timer can be enable accurately to be suspended, and then keep the record of time data more accurate.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.
Claims (3)
1. a kind of wireless sensor network real-time synchronization method based on mobile reference mode, which is characterized in that including walking as follows
It is rapid:
Step S100: appoint and take two known nodes, first node and second node are named as, when the first node receives the time
When synchrodata, the second node is sent;
Step S200: since the first node and the second node all have output end and input terminal, when the first segment
The output end of point sends time synchronization data to the input terminal of the second node;
Step S300: while the output end of the first node sends data, the timer that is carried on the output end
Start timing;
Step S3400: when the output end of the second node receives time synchronization data, the timer carries out primary
Pause;
Step S410: the timer is connect with MCU, and MCU reads the time that the timer is once suspended, it is assumed that institute
Stating timer and counting time for taking is X, since the first node and the second node take fixed nodes of locations, in turn
Distance between the first node and the second node is it was determined that assume that distance is Y, and then learn time synchronization data
Transmission speed be Y/X;
Step S500: due to the continuous transmission of time synchronization data, when the output end of the second node starts to carry out
Between synchrodata transmission when, the timer synchronizes secondary pause;
Step S510: the MCU, which once suspends the time difference between secondary pause to the timer, is read out, subsequent
Know processing of the second node to time synchronization;
Step S520: the MCU to the spread speed of time synchrodata and the second node to locating for time synchrodata
Time of reason carries out internet upload, is then carrying out the acquisition to this data, and successively upload to internet, then by pair
The comparison of this data, and then take median;
Step T100: the spread speed of known time time synchronization data, it is assumed that be the every km of N, N=Y/X, node is same to the time
The processing of step data is M;
Step T200: when equipment needs to carry out time synchronization data, distal end carries out the transmission of time synchronization data;
Step T300: the distal end sends time synchronization data in node, and the subsequent MCU is by the biography of time synchronization data
The distance between speed N and the distal end to the node is broadcast to be multiplied, so obtain the distal end to the node when
Between synchrodata transmission error, by the MCU will between its error be added time synchronization data in;
Step T400: while time of the node to the time synchronization data processing is added in the data MCU;
Step T500: then successively adding up, until time synchronization data are transferred in equipment.
2. a kind of wireless sensor network real-time synchronization method based on mobile reference mode as described in claim 1, special
Sign is that the timer is delicate timer, and it is more accurate to the record of time to be same as, timer quantity be it is multiple, often
A timer is connect with the MCU, and synchronous for timer is opened and synchronous pause.
3. a kind of wireless sensor network real-time synchronization method based on mobile reference mode as described in claim 1, special
Sign is that the output end and the input terminal of each node are equipped with counter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811484910.6A CN109698727A (en) | 2018-12-06 | 2018-12-06 | A kind of wireless sensor network real-time synchronization method based on mobile reference mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811484910.6A CN109698727A (en) | 2018-12-06 | 2018-12-06 | A kind of wireless sensor network real-time synchronization method based on mobile reference mode |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109698727A true CN109698727A (en) | 2019-04-30 |
Family
ID=66230353
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811484910.6A Pending CN109698727A (en) | 2018-12-06 | 2018-12-06 | A kind of wireless sensor network real-time synchronization method based on mobile reference mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109698727A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020129290A1 (en) * | 2001-03-06 | 2002-09-12 | Bruno Couillard | Method and system for time synchronization |
CN103874177A (en) * | 2014-03-27 | 2014-06-18 | 北京工业大学 | Wireless sensor network real-time synchronization method based on mobile reference node |
CN106231669A (en) * | 2016-08-31 | 2016-12-14 | 合肥工业大学 | The method of Time Synchronization for Wireless Sensor Networks |
-
2018
- 2018-12-06 CN CN201811484910.6A patent/CN109698727A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020129290A1 (en) * | 2001-03-06 | 2002-09-12 | Bruno Couillard | Method and system for time synchronization |
CN103874177A (en) * | 2014-03-27 | 2014-06-18 | 北京工业大学 | Wireless sensor network real-time synchronization method based on mobile reference node |
CN106231669A (en) * | 2016-08-31 | 2016-12-14 | 合肥工业大学 | The method of Time Synchronization for Wireless Sensor Networks |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106209289B (en) | A kind of moonlet self-organizing network method for synchronizing time | |
CN102869084B (en) | For synchronizing the method and apparatus with compensating clock drift between communicator | |
WO2017186068A1 (en) | Uwb high-precision positioning system, positioning method and apparatus, and computer readable medium | |
CN103796338B (en) | Wireless sensor component and TDMA self-organized network implementation method | |
KR101290643B1 (en) | Method and system for bearing time synchronization protocol in optical transport network | |
CN105897330A (en) | Signal synchronization method used for UWB high-precision positioning system | |
PL1815650T3 (en) | Synchronization and data transmission method | |
CN104737490A (en) | Communication apparatus, communication system and time synchronization method | |
CN103108388A (en) | Method, device and system of wireless sensor network clock synchronization | |
CN105472722B (en) | A kind of clock synchronizing method and device | |
CN108650051A (en) | The clock synchronization apparatus and method of general devices at full hardware single step 1588 | |
CN103344955A (en) | Wireless ranging node and wireless ranging method | |
CN104053223A (en) | Low-power wireless sensor network time synchronization method | |
CN108599888A (en) | A kind of distributed network clock synchronizing system | |
CN111193997B (en) | Time difference of arrival (TDOA) measuring and calibrating method for UWB positioning system | |
CN105634641B (en) | Based on architecture for exchanging can cascade network communication accurate timing system and method | |
CN109996325A (en) | A kind of clock system and method for wireless sensor network | |
CN105188126A (en) | Distributed multi-hop wireless network clock synchronization method based on mean field | |
CN102196554A (en) | Method for realizing average clock synchronization of wireless sensor network through cluster averaging | |
CN106688207A (en) | Method for determining a propagation time of a telegram in a communication network, and corresponding network components | |
CN103747516B (en) | Event time tag later time synchronization method in wireless sensor network | |
CN103874177A (en) | Wireless sensor network real-time synchronization method based on mobile reference node | |
CN108683472A (en) | A kind of clock synchronizing method based on Time delay measurement | |
CN108259105B (en) | time synchronization processing method and device and synchronization network | |
CN103957591A (en) | Node pair based wireless sensor network time synchronization method |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190430 |
|
RJ01 | Rejection of invention patent application after publication |