CN105338613B - A kind of system and method synchronous to dispersed nodes clock synchronization using wireless communication - Google Patents
A kind of system and method synchronous to dispersed nodes clock synchronization using wireless communication Download PDFInfo
- Publication number
- CN105338613B CN105338613B CN201510742301.6A CN201510742301A CN105338613B CN 105338613 B CN105338613 B CN 105338613B CN 201510742301 A CN201510742301 A CN 201510742301A CN 105338613 B CN105338613 B CN 105338613B
- Authority
- CN
- China
- Prior art keywords
- node
- clock synchronization
- synchronization message
- wireless module
- time
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/001—Synchronization between nodes
- H04W56/0015—Synchronization between nodes one node acting as a reference for the others
Abstract
The present invention discloses a kind of method synchronous to dispersed nodes clock synchronization using wireless communication, its application model includes several from node, host node and several wireless modules, the wireless module is connected with each node respectively, described to be connected from node with the host node by the wireless module.Host node INT1 in high-priority interrupt sends clock synchronization message in a broadcast manner;After clock synchronization message is received from node wireless module, it is forwarded immediately to from node;The wireless module is triggered after from node wireless module hardware Time delay from node, after hardware trigger signal is received from node, a high-priority interrupt INT2 is opened immediately, and local zone time compensation adjustment is completed in the interruption, in turn, it will respectively be run from node with synchronization time.The present invention can be realized simply, be achieved at low cost to each clock synchronization from node, and have the advantages that clock synchronization synchronization accuracy is high.
Description
Technical field
The present invention relates to the wireless monitors sensory fields such as electric power, industrial automation, medical treatment and geographical environment, and in particular to one
The kind method synchronous to dispersed nodes clock synchronization using short-distance wireless communication.
Background technique
In above-mentioned field, if needing systematicness, comprehensive grasp monitored target state, generally require to obtain monitored pair
The multi-dimensional state amount of elephant, while all quantity of states being required to acquire under an absolute time, such as power system relay protection device
Need the multiple phase currents of synchronous acquisition, in order to accurately measure power, need synchronous acquisition phase current and phase voltage.With the modern times
The communication technology is showing improvement or progress day by day, data acquisition and data processing often not on one device, but according to special occasion point
Dissipate installation.This just needs data acquisition device that can acquire data according to Absolute Time Synchronization and sends this data to data processing
Device carries out operation.Once occur data it is asynchronous if all data just will can not correctly judge to be detected without relevance
The validity of measurement, and then equipment is made to be unable to complete the function that should have, it is serious to generate mistrip for electric system
To cause different degrees of power-off condition, the safe operation of power grid is influenced.
Current clock synchronization applies the system one is precision in second grade, and this realization advantage is that cost is small, realizes simply, but
The disadvantage is that precision is too poor, can be only applied in the application environment checked roughly;Another kind is system of the precision in nanosecond, this
It realizes that advantage is that precision is very high, can apply in high-precision control environment, but a disadvantage is that cost is too high, time synchronization system is multiple
It is miscellaneous, equipment is more.And greater demand is time synchronization to be realized with a low cost Microsecond grade in social life, production.
In conclusion how simply, be achieved at low cost to each accurate clock synchronization from node, be still current industry face
The challenge faced.
Summary of the invention
In order to overcome the above-mentioned deficiencies of the prior art, the present invention provides a kind of using wireless communication to dispersed nodes clock synchronization
Synchronous method can realize the precise synchronization of the slave node to each dispersion installation using this method.
To achieve the goals above, the technical solution adopted by the present invention is that: it is a kind of using wireless communication to dispersed nodes pair
When synchronous system, it is characterised in that: including several slave nodes acquired for data and control on the spot, one at data
The host node of reason and telecommunication management, wherein be each equipped with wireless module from node and host node, respectively be responsible for count from node
According to host node is sent to, host node is responsible for through wireless module to respectively synchronous from node clock synchronization.
Further, the host node sends clock synchronization message to respectively from node using broadcast mode.
Further, the wireless module is independent embedded system module.
To achieve the goals above, the technical solution adopted by the present invention is that: it is a kind of using wireless communication to dispersed nodes pair
When synchronous method, the method is based on a kind of above-mentioned system synchronous to dispersed nodes clock synchronization using wireless communication, feature
It is, specifically includes the following steps:
1) host node enters high-priority interrupt INT1, sends clock synchronization message in a broadcast manner;
2) after receiving clock synchronization message from the wireless module of node, by from node wireless module hardware Time delay TdAfterwards
It triggers from node;
3) after receiving itself wireless module hardware trigger signal from node, a high-priority interrupt is opened immediately
INT2;
4) local zone time compensation is completed in high-priority interrupt INT2 from node, realizes that dispersion is synchronous from node clock synchronization.
Further, host node in the step 1 send clock synchronization message specifically includes the following steps:
1) host node enters INT1 in high-priority interrupt;
2) host node obtains system time;
3) compensation clock synchronization message checking value calculates the time;
4) clock synchronization message sending time is compensated;
5) the clock synchronization message residence time of host node is compensated;
6) clock synchronization message checking value is calculated;
7) starting clock synchronization message is sent.
Further, slave node in the step 2-4 receive clock synchronization message and time bias specifically includes the following steps:
1) clock synchronization message is received from node;
2) by giving from node wireless module from one hardware trigger signal of node, clock synchronization message is parsed;
3) pass through from node wireless module hardware Time delay Td, clock synchronization message has been parsed from node confirmation, has been obtained
Timestamp is arrived;
4) start a high-priority interrupt INT2, by TdCompensate the timestamp in clock synchronization message;
5) timestamp is assigned to system soft clock.
Further, from the system absolute time T of nodeabCalculation formula are as follows:
Tab=Tc+Tcw+Ttr+Ts+Td+Tadj,
The TabFor absolute time, TcSystem time is obtained for host node and is sent to wireless module time-consuming, TcwBased on save
The clock synchronization message residence time of point, TtrTime-consuming, the T for wireless transmissionsTime-consuming, T is forwarded for wireless module clock synchronization messagedFor from node
The delay of wireless module hardware trigger, TadjIt is time-consuming from node time compensation adjustment process.
Further, the clock synchronization message includes ID, type of message, timestamp and check code.
The beneficial effects of the present invention are: a kind of method synchronous to dispersed nodes clock synchronization using wireless communication, it can be in office
Anticipate have wireless communication transmission-receiving function chip or module in realize, can simply, be achieved at low cost to each from node
Clock synchronization, and have the advantages that clock synchronization synchronization accuracy is high.
Detailed description of the invention
The present invention will be further explained below with reference to the attached drawings and specific examples:
Fig. 1 is the synchronous flow chart of clock synchronization of the present invention;
Fig. 2 is application module schematic diagram of the present invention;
Fig. 3 is clock synchronization synchronous method schematic diagram of the present invention;
Fig. 4 is that host node of the present invention sends clock synchronization message flow chart;
Fig. 5 is of the invention from node reception clock synchronization message and time bias flow chart.
Specific embodiment
The present invention is described in further details with reference to the accompanying drawing:
Referring to attached Fig. 1 and 2, the present invention proposes a kind of method synchronous to dispersed nodes clock synchronization using wireless communication, answers
Include several from node, host node and several wireless modules with model, host node is telecommunication management and data processing equipment, respectively from
Node is responsible for data band markers being sent to host node, meanwhile, host node is responsible for through wireless module to respectively synchronous from node clock synchronization;
It is described from node include from nodal function equipment and the wireless module being connected with from nodal function equipment, it is described to be set from nodal function
Standby is monitoring system, realizes data acquisition and on the spot control function;The host node include master node functionality equipment and with main section
The connected wireless module of point function device, the master node functionality equipment are monitoring system, realize data calculating and communication function;
It is described to be connected from node with the host node by the wireless module.Short-distance wireless working frequency involved in application model
Identical, the clock synchronization message of host node uses broadcast mode, i.e. the clock synchronization message control transmission time and Transmission bit rate of host node
It is related.
Host node sends clock synchronization message in high-priority interrupt INT1 in a broadcast manner;It is connect from node wireless module
After receiving clock synchronization message, it is forwarded immediately to from node;The wireless module from node passes through to be triggered from node wireless module hardware
Be delayed TdAfter trigger from node;After hardware trigger signal is received from node, a high-priority interrupt INT2 is opened immediately;?
Local zone time compensation adjustment is completed in the interruption;Since then, it will respectively be run from node with synchronization time.Specifically includes the following steps:
1) host node enters high-priority interrupt INT1, sends clock synchronization message in a broadcast manner;
2) after receiving clock synchronization message from the wireless module of node, by from node wireless module hardware Time delay TdAfterwards
It triggers from node;
3) after receiving hardware trigger signal from node, a high-priority interrupt INT2 is opened immediately;
4) local zone time compensation is completed in high-priority interrupt INT2 from node, realizes that dispersion is synchronous from node clock synchronization.
INT1 interrupt priority level is higher, then is less susceptible to be interrupted, and clock synchronization precision is higher;Function consumes when school in INT2 is interrupted
Shi Feichang is small, therefore to systematic influence very little.
Referring to attached drawing 3, from the system absolute time calculation formula of node are as follows:
Tab=Tc+Tcw+Ttr+Ts+Td+Tadj,
Wherein TabFor absolute time, TcSystem time is obtained for host node and is sent to wireless module time-consuming, TcwBased on save
The clock synchronization message residence time of point, TtrTime-consuming, the T for wireless transmissionsTime-consuming, T is forwarded for wireless module clock synchronization messagedFor from node
The delay of wireless module hardware trigger, TadjIt is time-consuming from node time compensation adjustment process.
Referring to attached drawing 4, the clock synchronization message that host node is sent is to be sent in the form of broadcast by radio channel, therefore
Host node clock synchronization message only sends 1 time and reaches respectively from node, specifically includes the following steps:
1) host node enters INT1 in high-priority interrupt;
2) host node obtains system time;
3) compensation clock synchronization message checking value calculates the time;
4) clock synchronization message sending time is compensated;
5) the clock synchronization message residence time of host node is compensated;
6) clock synchronization message checking value is calculated;
7) starting clock synchronization message is sent.
The frame format for the clock synchronization instruction that host node is sent is shown in Table 1,
Table 1: the frame format of clock synchronization instruction
Referring to attached drawing 5, packet parsing is set time from node wireless module with the mode of high-priority interrupt.Confirmation is pair
When message after, by from node wireless module hardware Time delay Td, given by hardware circuit signal from one hardware touching of node
It signals;By TdAfter delay, clock synchronization message is parsed from node confirmation, has got timestamp;It is connected to hardware trigger
Start a high-priority interrupt service after signal, by T in interruption servicedThe timestamp in message is compensated, then should
Value of the timestamp as system soft clock.Specifically includes the following steps:
1) clock synchronization message is received from node;
2) by giving from node wireless module from one hardware trigger signal of node, clock synchronization message is parsed;
3) pass through from node wireless module hardware Time delay Td, clock synchronization message has been parsed from node confirmation, has been obtained
Timestamp is arrived;
4) start a high-priority interrupt INT2, by TdCompensate the timestamp in clock synchronization message;
5) timestamp is assigned to system soft clock.
Time bias transformational relation is shown in Table 2,
Table 2: time bias transformational relation table
Fixed, can be surveyed by the error that the above mode realizes each node of clock synchronization process, and by these error compensations to original
Time calibration is realized in value.The mode is based only on common embedded system, using generic hardware system and device
Realize the clock synchronization precision of 20us.As shown in Table 2, error caused by the mode is mainly cumulative errors caused by crystal oscillator, for more
System also need to only be corresponded to crystal oscillator and replaces with the model of higher precision by high-precision application can be completed clock synchronization performance boost.In reality
The clock synchronization pattern embodied has gone out good economy and accuracy in the project application of border.
It is to be illustrated to the preferable implementation of invention, but innovation and creation are not limited to the specific embodiments above, it is ripe
Various equivalent modifications or replacement can also be made on the premise of without prejudice to spirit of the invention by knowing those skilled in the art, these
Equivalent variation or replacement are all included in the scope defined by the claims of the present application.
Claims (3)
1. a kind of method synchronous to dispersed nodes clock synchronization using wireless communication, the method be based on it is several for data acquisition and
The slave node that controls on the spot, one realized for the host node of data processing and telecommunication management, which is characterized in that specifically include with
Lower step:
1) host node enters high-priority interrupt INT1, sends clock synchronization message in a broadcast manner;
2) after receiving clock synchronization message from the wireless module of node, by giving from node wireless module from one hardware trigger of node
Signal, and clock synchronization message is parsed;By having been parsed from node confirmation from node wireless module hardware Time delay Td
Complete clock synchronization message, has got timestamp;
3) after receiving itself wireless module hardware trigger signal from node, a high-priority interrupt INT2 is opened immediately;
4) from node in high-priority interrupt INT2, Td is compensated to the timestamp in clock synchronization message, by the timestamp assignment
System soft clock is given, realizes that dispersion is synchronous from node clock synchronization.
2. a kind of method synchronous to dispersed nodes clock synchronization using wireless communication according to claim 1, which is characterized in that
Host node in the step 1 send clock synchronization message specifically includes the following steps:
1) host node enters INT1 in high-priority interrupt;
2) host node obtains system time;
3) compensation clock synchronization message checking value calculates the time;
4) clock synchronization message sending time is compensated;
5) the clock synchronization message residence time of host node is compensated;
6) clock synchronization message checking value is calculated;
7) starting clock synchronization message is sent.
3. a kind of method synchronous to dispersed nodes clock synchronization using wireless communication according to claim 1, which is characterized in that
The clock synchronization message includes ID, type of message, timestamp and check code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510742301.6A CN105338613B (en) | 2015-11-02 | 2015-11-02 | A kind of system and method synchronous to dispersed nodes clock synchronization using wireless communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510742301.6A CN105338613B (en) | 2015-11-02 | 2015-11-02 | A kind of system and method synchronous to dispersed nodes clock synchronization using wireless communication |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105338613A CN105338613A (en) | 2016-02-17 |
CN105338613B true CN105338613B (en) | 2019-01-04 |
Family
ID=55288796
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510742301.6A Active CN105338613B (en) | 2015-11-02 | 2015-11-02 | A kind of system and method synchronous to dispersed nodes clock synchronization using wireless communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105338613B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106408914A (en) * | 2016-10-18 | 2017-02-15 | 武汉市工程科学技术研究院 | Wireless time synchronizing system for exploration instrument and synchronization realizing method thereof |
CN108011684B (en) * | 2017-11-23 | 2019-08-06 | 珠海许继电气有限公司 | A kind of distributing synchronization failure wave-recording method based on short-range communication |
CN108445279B (en) * | 2018-02-12 | 2020-01-17 | 北京和信瑞通电力技术股份有限公司 | Synchronous sampling method based on short-frequency wireless in transient recording type fault indicator |
CN111372307A (en) * | 2018-12-25 | 2020-07-03 | 江苏中桥信息技术有限公司 | Time synchronization data acquisition system based on wireless multi-hop network |
CN110749765A (en) * | 2019-10-29 | 2020-02-04 | 徐州和纬信电科技有限公司 | Stray current collection device with synchronous collection function |
CN111398737B (en) * | 2020-04-08 | 2022-05-17 | 北京和信瑞通电力技术股份有限公司 | Recording management method and system applied to recording type fault indicator |
CN111698076B (en) * | 2020-06-03 | 2023-05-30 | 河北工业大学 | Accurate communication synchronization method and system based on time compensation |
CN116471211B (en) * | 2023-06-19 | 2023-10-13 | 威胜信息技术股份有限公司 | Accurate time setting method for electric power Internet of things |
CN117687347B (en) * | 2024-02-02 | 2024-04-09 | 三峡智控科技有限公司 | Synchronous wave recording method and device based on FPGA and communication network |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20030055627A (en) * | 2001-12-27 | 2003-07-04 | 한국전자통신연구원 | The method of time synchronization |
CN101242231A (en) * | 2008-03-03 | 2008-08-13 | 电子科技大学 | Clock synchronization device for synchronous phase measuring in power system |
CN101267448A (en) * | 2008-05-09 | 2008-09-17 | 东北大学 | An intelligent protocol conversion device and method based on embedded QNX operating system |
CN102184624A (en) * | 2011-03-11 | 2011-09-14 | 湖南五舟检测科技有限公司 | Wireless synchronous sampling method and sampling system for vibrating data |
CN102547969A (en) * | 2012-02-24 | 2012-07-04 | 电子科技大学 | High-accuracy wireless clock synchronization system for power system |
CN102546147A (en) * | 2012-02-17 | 2012-07-04 | 黑龙江省电力有限公司 | Method for realizing accurate network timing of wide-area protection system on basis of SDH (Synchronous Digital Hierarchy) network |
CN102769908A (en) * | 2012-07-17 | 2012-11-07 | 四川电力科学研究院 | Time synchronizer and time synchronization method applied to protective test equipment of power system |
CN104158647A (en) * | 2014-08-26 | 2014-11-19 | 太原理工大学 | Clock synchronizing method for wireless sensing network |
-
2015
- 2015-11-02 CN CN201510742301.6A patent/CN105338613B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20030055627A (en) * | 2001-12-27 | 2003-07-04 | 한국전자통신연구원 | The method of time synchronization |
CN101242231A (en) * | 2008-03-03 | 2008-08-13 | 电子科技大学 | Clock synchronization device for synchronous phase measuring in power system |
CN101267448A (en) * | 2008-05-09 | 2008-09-17 | 东北大学 | An intelligent protocol conversion device and method based on embedded QNX operating system |
CN102184624A (en) * | 2011-03-11 | 2011-09-14 | 湖南五舟检测科技有限公司 | Wireless synchronous sampling method and sampling system for vibrating data |
CN102546147A (en) * | 2012-02-17 | 2012-07-04 | 黑龙江省电力有限公司 | Method for realizing accurate network timing of wide-area protection system on basis of SDH (Synchronous Digital Hierarchy) network |
CN102547969A (en) * | 2012-02-24 | 2012-07-04 | 电子科技大学 | High-accuracy wireless clock synchronization system for power system |
CN102769908A (en) * | 2012-07-17 | 2012-11-07 | 四川电力科学研究院 | Time synchronizer and time synchronization method applied to protective test equipment of power system |
CN104158647A (en) * | 2014-08-26 | 2014-11-19 | 太原理工大学 | Clock synchronizing method for wireless sensing network |
Also Published As
Publication number | Publication date |
---|---|
CN105338613A (en) | 2016-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105338613B (en) | A kind of system and method synchronous to dispersed nodes clock synchronization using wireless communication | |
CN102938220B (en) | Method for correcting clock of automatic ship identifying terminal equipment | |
CN202818320U (en) | Clock server based on multi-mode clock source synchronization | |
CN201425704Y (en) | Satellite synchronous main clock device | |
US10320507B2 (en) | Method for determining a propagation time of a telegram in a communication network, and corresponding network components | |
CN102830611B (en) | Time source | |
CN101881938A (en) | Satellite synchronous master clock device | |
JP6025700B2 (en) | Time synchronization system, slave device, and time synchronization method | |
CN103955257A (en) | Method and device for calibrating system clocks of single chip microcomputers, and air conditioner control system | |
CN103647631A (en) | Intelligent transformer station clock synchronization detection apparatus and detection method | |
CN115765909A (en) | Clock synchronization method, device and storage medium | |
US20190199286A1 (en) | Methods for Correcting Oscillator Offsets in Ultra-Wideband (UWB) Networks | |
CN102710359B (en) | Accurate clock frequency synchronizing method and device based on IEEE1588 (institute of electrical and electronics engineers) | |
CN104869628A (en) | Clock calibration method of air-condition electric control device, air-condition electric control device, terminal and system | |
CN104869587A (en) | Time synchronization error measurement method for wireless sensor network | |
CN111107623A (en) | System clock synchronization method | |
CN207603651U (en) | UWB Precise Position Systems with time-domain synchronizing device | |
CN106849346A (en) | A kind of system for testing power distribution automation equipment time adjustment function and timekeeping performance | |
CN205142532U (en) | System for it is synchronous when adopting radio communication to dispersion node pair | |
KR20160149913A (en) | Method and apparatus for maintaining pulse per second of gps at low cost | |
CN201812155U (en) | Satellite synchronous slave clock device | |
CN102638885B (en) | Timing processing device and method | |
US11614767B2 (en) | Device and method for providing a clock signal to an application | |
Terraneo et al. | FLOPSYNC-QACS: quantization-aware clock synchronization for wireless sensor networks | |
CN104468071B (en) | A kind of intelligent substation Synchronization Clock anti-interference method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |