CN104993897B - A kind of pre-filled timestamp synchronous method suitable for WIA PA networks - Google Patents
A kind of pre-filled timestamp synchronous method suitable for WIA PA networks Download PDFInfo
- Publication number
- CN104993897B CN104993897B CN201510252509.XA CN201510252509A CN104993897B CN 104993897 B CN104993897 B CN 104993897B CN 201510252509 A CN201510252509 A CN 201510252509A CN 104993897 B CN104993897 B CN 104993897B
- Authority
- CN
- China
- Prior art keywords
- time
- beacon frame
- source device
- timestamp
- sfd
- 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
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
A kind of pre-filled timestamp synchronous method suitable for WIA PA networks is claimed in the present invention.This method utilizes the slotted communication mechanism in WIA PA networks, shift to an earlier date some slot construction beacon frames before beacon frame is sent, and by calculating the local TAI times for obtaining time source device SFD in beacon frame information and interrupting the generation moment, it is put into as timestamp in the timestamp domain of beacon frame and is sent to non-temporal source device;Non-temporal source device, according to the timestamp that acquisition is parsed in the TAI times at local SFD interruption moment and beacon frame, completes the calculating of clock jitter, and local zone time is corrected after beacon frame is received.Utilize the feature that the estimated delivery time of beacon frame in slotted communication mechanism is known conditions, passage time source device constructs beacon frame in advance, SFD interrupts the local TAI times at moment when calculating estimated send, timestamp domain is put into as timestamp, the versatility and code portability of software processing method in time synchronization process are improved, reduces cost on network communication.
Description
Technical field
The present invention relates to industrial wireless communication technical field, and in particular to it is a kind of suitable for WIA-PA network it is pre-filled when
Between the method for synchronizing time that stabs.
Background technology
Industrial wireless communication technology as short distance, the wireless communication technology of low rate information exchange between a kind of equipment oriented,
With its super low-power consumption, anti-interference, real-time Communication for Power technical characteristic and installation is simple, wide coverage, maintenance cost are low advantage
Progressively promoted and used in industrial environment.
Wireless WIA-PA standard is that one that Chinese wireless industrial alliance releases has technology with proprietary intellectual property rights specification, pin
Solution is provided to technical process measurement, monitoring and control application.Time synchronization technique is as industrial wireless WIA-PA network
An important support technology, in the real-time for ensureing to communicate during the network operation, play an important roll in terms of reliability.In work
Basic or complexity the behaviour such as industry wireless network slotted communication, transmitting and scheduling, node locating, state switching, data fusion
In work, Time synchronization technique provides unified fiducial time for whole network.
Traditional time synchronization process needs to be realized by synchronized algorithm, although presently, there are a variety of outstanding times
Synchronized algorithm, but have the limitation of itself on application scenarios, and also complicated algorithm can increase the processing load of software, carry
The communication overhead of high network and the maintenance cost in later stage, also it is difficult to strict guarantee for the precision and reliability of time synchronized.
In addition, there is also the radio frequency chip that time synchronized aid in treatment mechanism is provided on hardware, generally choosing in the market
Select and start to send beacon frame in time source device, by the local zone time of radio frequency capture time source device, and be put into beacon frame and specify
Timestamp position is transmitted, and local zone time is captured when non-temporal source device receives beacon frame, and parse in beacon frame
Timestamp, local zone time is synchronized after carrying out algorithm process.This software participates in, the processing mode and radio frequency of hardware auxiliary
Relevance is larger, and versatility is poor, and in processing to taking the opportunity of timestamp to have strict time requirement during transmission beacon frame,
It is difficult to all-round popularization.The present invention proposes the synchronous method of pre-filled timestamp for disadvantage mentioned above, it is therefore intended that improves work
The accuracy of industry wireless WIA-PA network time synchronization and the communication overhead of network, while mitigate software processing burden, improve soft
The versatility of part processing method.
The content of the invention
For the problems of the prior art, software burden and processing error are effectively reduced the invention provides a kind of, simultaneously
The hardware miscellaneous function of capture time stamp, improves software processing side in time synchronization process when sending beacon frame independent of radio frequency
The versatility and code portability of method, the pre-filled timestamp suitable for WIA-PA network for reducing cost on network communication are synchronous
Method.Technical scheme is as follows:A kind of pre-filled timestamp synchronous method suitable for WIA-PA network, it include with
Lower step:
101st, in WIA-PA network, including time source device and non-temporal source device, time source device and non-temporal source
Equipment is run according to slotted communication mechanism, wherein sends to time source device periodically beacon frame, the time, source device was according to letter
The sending time slots position of frame is marked, constructs beacon frame in advance before sending time slots arrival, and the predetermined generation frame of beacon frame is first fixed
The TAI times that boundary symbol SFD is interrupted are pre-charged with into the timestamp domain of beacon frame as timestamp;
102nd, after non-temporal source device starts received beacon frame, non-temporal source device is receiving beacon frame and is producing frame head
Delimiter SFD captures local zone time when interrupting, and the beacon frame to receiving carries out parsing and draws beacon frame timestamp, non-event
Source device is corrected according to the local zone time and beacon frame timestamp of capture to local zone time, to complete to non-temporal source device
Time synchronization process.
Further, the process for constructing beacon frame before the sending time slots in step 101 arrive in advance is as follows:
201st, the initial time T0 of the absolute timeslot number 0 of time source device is the birth moment of network, it is assumed that current time
Absolute timeslot number SlotX, local TAI times are T1 residing for source device, then during operation of the time source device untill current time
Between be (T1-T0);
202nd, assume that slot length is fixed as SlotPeriod, then current time slots SlotX initial time T2 is expressed as T2
=T1- ((T1-T0) %SlotPeriod), wherein (T1-T0) %SlotPeriod represents current time T2 and current absolute time
Time difference between gap SlotX initial times;
203rd, the sending time slots for assuming next beacon frame to be sent are absolute time slot SlotY (SlotY>SlotX), then
SlotY starting TAI times T3 is T3=T2+ (SlotY-SlotX) × SlotPeriod;
204th, the time interval for calculating RF physical layer triggering lead code to generation SFD interruptions is t=(4+1) * 8/250
=0.16ms, then the TAI times T4 that the SFD interruption moment is produced when time source device sends beacon frame is represented by T4=T3+
t;
205th, the TAI times T4 at SFD interruption moment is produced when time source device sends beacon frame to be further represented as
T4=T1- ((T1-T0) %SlotPeriod)+(SlotY-SlotX) × SlotPeriod+t
Time T4 can be used as timestamp and be put into beacon frame timestamp domain, be sent to non-temporal source device, complete construction
Beacon frame.
Further, after time T4 is put into beacon frame timestamp domain as timestamp in step 205, in addition to protocol stack
It need to need to be transmitted according to timeslot scheduling rule, the transmission process of all packets by protocol stack schedule to assigned timeslot
The step of, ensure that the beacon frame is transmitted in absolute time slot SlotY.
Further, it is specific to the time interval for producing SFD interruptions that RF physical layer triggering lead code is calculated in step 204
For:Calculated according to physical layer preamble code length and the data transmission rate of radio frequency and obtain the predetermined generation starting-frame delimiter of beacon frame
SFD interrupts the TAI time T4 at moment, and when IEEE802.15.4 radio frequencies preamble length is 4 bytes, SFD length of fields are 1 byte,
After being finished receiving in SFD domains produce SFD interrupt, IEEE802.15.4 rf datas transmission rate is 250kpbs, then interrupt when
Between be spaced t=(4+1) * 8/250=0.16ms.
Advantages of the present invention and have the beneficial effect that:
The present invention, should compared to the processing mode that beacon frame and capture time stamp are constructed when beacon frame information time slot arrives
Method, by constructing beacon frame and in advance filling time stamp domain in advance, reduces beacon frame information time slot and started in time source equipment end
Border software burden and software processing time error, while this method independent of radio frequency send beacon frame when capture time stab
Hardware miscellaneous function, there is the portability of preferable versatility and code.
Brief description of the drawings
Fig. 1 is preferred embodiment of the present invention industrial wireless WIA-PA network time synchronization flow chart;
Fig. 2 is preferred embodiment of the present invention industrial wireless WIA-PA networked beacons timestamp calculating process.
Embodiment
Below in conjunction with accompanying drawing, the invention will be further described:
Flow such as Fig. 1 of the pre-filled timestamp synchronous method of industrial wireless WIA-PA network, coordinate the WIA-PA shown in Fig. 2
The calculating process of networked beacons frame time stamp, the processing step of WIA-PA network time synchronized flow are as follows:
Step1:Assuming that absolute timeslot number residing for current time source device is SlotX, the sending time slots of beacon frame to be sent
For SlotY (SlotY>SlotX), time source device obtains local zone time T1.
Step2:SlotX starting TAI times T2, T2=T1- ((T1-T0) %SlotPeriod) is calculated, wherein T0 is
The initial time of the absolute timeslot number 0 of time source device, SlotPeriod be WIA-PA network slot length, (T1-T0) %
SlotPeriod represents the time difference between current time T2 and current definitely time slot SlotX initial times.
Step3:Beacon frame slot SlotY to be sent starting TAI time T3 are calculated, are represented by T3=T2+ (SlotY-
SlotX)×SlotPeriod。
Step4:Calculate local TAI times T4 that beacon frame to be sent produces the SFD interruption moment in time slot SlotY.Generally
IEEE802.15.4 radio frequencies preamble length is 4 bytes, and SFD length of fields are 1 byte, is produced after being finished receiving in SFD domains in SFD
Disconnected, IEEE802.15.4 rf datas transmission rate is 250kpbs, then RF physical layer triggers lead code and interrupted to SFD is produced
Time interval be t=(4+1) * 8/250=0.16ms, then time source device send beacon frame when produce SFD interrupt the moment
TAI times T4 be represented by T4=T3+t.
Step5:According to Step1-Step4 calculating process, time source device produces SFD when sending beacon frame and interrupts the moment
TAI times T4 can be further represented as
T4=T1- ((T1-T0) %SlotPeriod)+(SlotY-SlotX) × SlotPeriod+t
Time T4 can be used as timestamp and be put into beacon frame timestamp domain, be sent to non-temporal source device.
Step6:Time source device need to be ensured in the starting of SlotY time slots by the timeslot scheduling mechanism in protocol stack
Carve the transmission process of triggering beacon frame.
Step7:Non-temporal source device captures local after absolute time slot SlotY receives the beacon frame in SFD interruption positions
Time T5, and parse the timestamp information T4 in beacon frame, completes the calculating of clock jitter according to T4 and T5, and to it is local when
Clock is calibrated.
The above embodiment is interpreted as being merely to illustrate the present invention rather than limited the scope of the invention.
After the content for having read the record of the present invention, technical staff can make various changes or modifications to the present invention, these equivalent changes
Change and modification equally falls into the scope of the claims in the present invention.
Claims (3)
1. a kind of pre-filled timestamp synchronous method suitable for WIA-PA network, it is characterised in that comprise the following steps:
101st, in WIA-PA network, including time source device and non-temporal source device, time source device and non-temporal source device
Run according to slotted communication mechanism, wherein send to time source device periodically beacon frame, the time, source device was according to beacon frame
Sending time slots position, construct beacon frame in advance before sending time slots arrival, and produce starting-frame delimiter by beacon frame is predetermined
The TAI times that SFD is interrupted are pre-charged with into the timestamp domain of beacon frame as timestamp;
Sending time slots in step 101 construct beacon frame in advance process before arriving is as follows:
201st, the initial time T0 of the absolute timeslot number 0 of time source device is the birth moment of network, it is assumed that current time source is set
Standby residing definitely timeslot number SlotX, the local TAI times are T1, then run time of the time source device untill current time is
(T1-T0);
202nd, assume that slot length is fixed as SlotPeriod, then current time slots SlotX initial time T2 is expressed as T2=T1-
((T1-T0) %SlotPeriod), wherein (T1-T0) %SlotPeriod represents current time T2 and current absolute time slot
Time difference between SlotX initial times;
203rd, the sending time slots for assuming next beacon frame to be sent are absolute time slot SlotY (SlotY > SlotX), then SlotY
Starting TAI times T3 are T3=T2+ (SlotY-SlotX) × SlotPeriod;
204th, the time interval for calculating RF physical layer triggering lead code to generation SFD interruptions is t=(4+1) * 8/250=
0.16ms, then the TAI times T4 that the SFD interruption moment is produced when time source device sends beacon frame is represented by T4=T3+t;
205th, the TAI times T4 at SFD interruption moment is produced when time source device sends beacon frame to be further represented as
T4=T1- ((T1-T0) %SlotPeriod)+(SlotY-SlotX) × SlotPeriod+t
Time T4 can be used as timestamp and be put into beacon frame timestamp domain, be sent to non-temporal source device, complete construction beacon
Frame;
102nd, after non-temporal source device starts received beacon frame, non-temporal source device is receiving beacon frame and is producing the first demarcation of frame
Symbol SFD captures local zone time when interrupting, and the beacon frame to receiving carries out the timestamp in parsing acquisition beacon frame, non-temporal
The timestamp that source device parses in the local zone time and beacon frame according to capture is corrected to local zone time, to complete to non-
The time synchronization process of time source device.
2. a kind of pre-filled timestamp synchronous method suitable for WIA-PA network according to claim 1, its feature exist
In after time T4 is put into beacon frame timestamp domain as timestamp in step 205, in addition to protocol stack need to be according to timeslot scheduling
Rule, the step of transmission process of all packets need to be transmitted by protocol stack schedule to assigned timeslot, ensureing should
Beacon frame is transmitted in absolute time slot SlotY.
3. a kind of pre-filled timestamp synchronous method suitable for WIA-PA network according to claim 1, its feature exist
In RF physical layer triggering lead code is calculated in step 204 is specially to the generation SFD time intervals interrupted:According to physical layer
The data transmission rate of preamble length and radio frequency, which calculates, obtains the beacon frame predetermined generation starting-frame delimiter SFD interruption moment
TAI time T4, when IEEE802.15.4 radio frequencies preamble length is 4 bytes, SFD length of fields are 1 byte, have been received in SFD domains
Interrupted into rear generation SFD, IEEE802.15.4 rf datas transmission rate is 250kpbs, then the time interval t=(4+ interrupted
1) * 8/250=0.16ms.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510252509.XA CN104993897B (en) | 2015-05-18 | 2015-05-18 | A kind of pre-filled timestamp synchronous method suitable for WIA PA networks |
PCT/CN2016/077733 WO2016184260A1 (en) | 2015-05-18 | 2016-03-29 | Timestamp-prefilling synchronization method applicable to wia-pa network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510252509.XA CN104993897B (en) | 2015-05-18 | 2015-05-18 | A kind of pre-filled timestamp synchronous method suitable for WIA PA networks |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104993897A CN104993897A (en) | 2015-10-21 |
CN104993897B true CN104993897B (en) | 2017-11-17 |
Family
ID=54305658
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510252509.XA Active CN104993897B (en) | 2015-05-18 | 2015-05-18 | A kind of pre-filled timestamp synchronous method suitable for WIA PA networks |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104993897B (en) |
WO (1) | WO2016184260A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104993897B (en) * | 2015-05-18 | 2017-11-17 | 重庆邮电大学 | A kind of pre-filled timestamp synchronous method suitable for WIA PA networks |
WO2019071598A1 (en) * | 2017-10-13 | 2019-04-18 | 华为技术有限公司 | Method and device for transmitting and receiving clock synchronization message |
CN112380355A (en) * | 2020-11-20 | 2021-02-19 | 华南理工大学 | Method for representing and storing time slot heterogeneous knowledge graph |
CN113949698B (en) * | 2021-10-15 | 2023-12-01 | 深圳安德空间技术有限公司 | Ground penetrating radar acquisition remote control method and system based on Web RTC |
CN114845374B (en) * | 2022-04-15 | 2024-03-29 | 沈阳中科奥维科技股份有限公司 | High-frequency synchronization method based on WIA-PA wireless network |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102472998A (en) * | 2010-06-09 | 2012-05-23 | Abb研究有限公司 | Secure clock synchronization |
CN102869087A (en) * | 2012-09-26 | 2013-01-09 | 重庆邮电大学 | Hardware time synchronization implementation method for industrial Internet of things chip |
CN104469854A (en) * | 2014-11-27 | 2015-03-25 | 重庆邮电大学 | Adaptive flow industrial wireless WIA-PA network clustering method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8325616B2 (en) * | 2008-01-17 | 2012-12-04 | Broadcom Corporation | Method and system for determination and exchange of network timing information |
CN101631016B (en) * | 2009-04-14 | 2011-09-14 | 华中科技大学 | Time synchronization method of fieldbus |
CN102938676B (en) * | 2011-08-16 | 2017-11-10 | 中兴通讯股份有限公司 | Time synchronizing method, apparatus and system |
CN104993897B (en) * | 2015-05-18 | 2017-11-17 | 重庆邮电大学 | A kind of pre-filled timestamp synchronous method suitable for WIA PA networks |
-
2015
- 2015-05-18 CN CN201510252509.XA patent/CN104993897B/en active Active
-
2016
- 2016-03-29 WO PCT/CN2016/077733 patent/WO2016184260A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102472998A (en) * | 2010-06-09 | 2012-05-23 | Abb研究有限公司 | Secure clock synchronization |
CN102869087A (en) * | 2012-09-26 | 2013-01-09 | 重庆邮电大学 | Hardware time synchronization implementation method for industrial Internet of things chip |
CN104469854A (en) * | 2014-11-27 | 2015-03-25 | 重庆邮电大学 | Adaptive flow industrial wireless WIA-PA network clustering method |
Non-Patent Citations (1)
Title |
---|
WIA-PA协议栈研究与开发——时间同步关键技术研究与实现;汪喆;《重庆邮电大学硕士毕业论文》;20100529;第二章第2.1节-第30页附图3.3 * |
Also Published As
Publication number | Publication date |
---|---|
WO2016184260A1 (en) | 2016-11-24 |
CN104993897A (en) | 2015-10-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104993897B (en) | A kind of pre-filled timestamp synchronous method suitable for WIA PA networks | |
CN104968043B (en) | A kind of clock synchronizing frequency deviation estimating method suitable for WIA-PA network | |
CN102869087B (en) | The hardware time synchronization implementation method of industry Internet of Things chip | |
CN104507156B (en) | For the time synchronization improved method based on IEEE 1588PTP mechanism of wireless network | |
CN101778405B (en) | Method and system for synchronous acquisition of wireless sensor network for structural health monitoring | |
CN107294634B (en) | The centralized approach of 1588 time synchronizations is realized in a kind of distributed system | |
CN102833062B (en) | Intelligent substation IEEE1588 master-salve clock synchronization message setting means and system | |
US9602270B2 (en) | Clock drift compensation in a time synchronous channel hopping network | |
CN102013931B (en) | Time synchronization method and system, salve timing device and main timing device | |
CN103209473B (en) | A kind of power consumption wireless sensor network information gathering method | |
CN104918319A (en) | Clock synchronization simplified information exchange method applied to wireless sensor network | |
WO2015117501A1 (en) | Time synchronization method, programmable logic device, single board and network element | |
CN102752843B (en) | A kind of method for synchronizing time | |
CN104243079A (en) | Microsecond clock synchronization method for real-time Ethernet | |
CN107465474A (en) | The clock synchronization system and method for digital control system bus apparatus | |
CN104754722A (en) | Time synchronization method oriented to hierarchical heterogeneous network | |
WO2020119214A1 (en) | Synchronization method and device, network element, and computer storage medium | |
CN103002562A (en) | Hardware synchronizing method and system of wireless sensing network | |
CN101426284B (en) | IEEE802.11 wireless local area network access point having continuous clock synchronization function and mobile station | |
CN104993898A (en) | Method for monitoring-type time synchronization among cluster nodes in WIA-PA network | |
TWI223535B (en) | Control signal generation device and method for transmission time of beacon frame | |
CN107508648A (en) | Time triggered Ethernet substep time synchronized strategy based on functions of the equipments classification | |
CN103533630A (en) | Method and system for air interface time synchronization, radio equipment and radio equipment control | |
Cena et al. | The reference-broadcast infrastructure synchronization protocol | |
CN106162858A (en) | Directintermination time synchronization method and device |
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 |