[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103490873B - Method for time synchronization - Google Patents

Method for time synchronization Download PDF

Info

Publication number
CN103490873B
CN103490873B CN201210194580.3A CN201210194580A CN103490873B CN 103490873 B CN103490873 B CN 103490873B CN 201210194580 A CN201210194580 A CN 201210194580A CN 103490873 B CN103490873 B CN 103490873B
Authority
CN
China
Prior art keywords
radio
data
frequency device
device handset
main frame
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.)
Expired - Fee Related
Application number
CN201210194580.3A
Other languages
Chinese (zh)
Other versions
CN103490873A (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.)
TRITAN TECHNOLOGY Co Ltd
Original Assignee
TRITAN TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TRITAN TECHNOLOGY Co Ltd filed Critical TRITAN TECHNOLOGY Co Ltd
Priority to CN201210194580.3A priority Critical patent/CN103490873B/en
Publication of CN103490873A publication Critical patent/CN103490873A/en
Application granted granted Critical
Publication of CN103490873B publication Critical patent/CN103490873B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a kind of method for time synchronization, comprise: a main frame, according to the time limit of a default settings timing code table, is respectively transmitted one and includes that the inquiry message of a clock data is to each radio-frequency device handset;Each radio-frequency device handset carrys out the clock in synchronous radio radio-frequency unit handset according to the clock data in inquiry message;If not having data to need to reply, then this radio-frequency device handset only returns an echo message;Otherwise, if there being data to need to reply, in these data are placed in a return information together with generation time of these data, return to main frame;Echo message or the return information that each radio-frequency device handset transmits received by main frame, and the data in return information are stored in a storage queue respectively;Until the time limit of this timing code table arrives and stops accepting echo message or the return information that radio-frequency device handset transmits;And utilize the time-sequencing that ranking method produces for the data stored in queue, to reach the purpose of main frame and the time synchronized of each radio-frequency device handset.

Description

Method for time synchronization
Technical field
The relevant a kind of method for time synchronization of the present invention, it is adaptable in a wireless telecommunication system Time synchronized between main frame and at least one radio-frequency device handset.
Background technology
Time synchronized (time synchronization) be any distributivity system in indispensable important Link, such as wireless telecommunication system, wireless sensor network system (WSN) or radio-frequency recognition system (RFID) etc., the various piece in system all must by the time with establish this various piece be based on Carry out data exchange on identical time basis, link up and cooperate.
In response to different application purposes, precision demand or the difference of covering scope, different time synchronized Technology can be employed.Such as, global positioning system (GPS) is also used for the purpose of time synchronized.
Summary of the invention
For solving the problems referred to above of the prior art, the invention provides a kind of radio-frequency device time same One step process.
One embodiment of the invention provides a kind of method for time synchronization, it is adaptable to a nothing Time synchronized between main frame and at least one radio-frequency device handset in line communication system, this main frame bag Containing a clock, storage queue (queue) and a timing code table, each radio-frequency device handset then comprises One clock.The method for time synchronization of the present invention also comprises the steps of main frame according to one The time limit of default settings timing code table, is respectively transmitted an inquiry message and fills to each less radio-frequency Putting handset, the purpose of this inquiry message is whether inquiry radio-frequency device handset has data latency to return, This inquiry message at least includes a clock data, is the numerical value that clock when this main frame transmits is had; After each radio-frequency device handset receives this inquiry message, come same according to the clock data in inquiry message Clock in step radio-frequency device handset;If this radio-frequency device handset does not has data to need to reply, The most only return an echo message;Otherwise, if there being data to need to reply, by these data together with the product of these data The raw time returns to main frame in being placed in a return information;Main frame is received each radio-frequency device handset and is passed The echo message come or return information, and respectively the data in return information are stored in storage queue;Repeat Above-mentioned steps is until the time limit of this timing code table arrives;Stop accepting radio-frequency device handset The echo message transmitted or return information, and utilize ranking method for the data stored in queue produce time Between sort, to reach the purpose of the time synchronized of main frame and each radio-frequency device handset.Due at each Before radio-frequency device handset produces data, each radio-frequency device handset all utilizes the inquiry that main frame transmits Ask that the clock of radio-frequency device handset is synchronized by the clock data in information, radio-frequency device The clock of machine continues timing after synchronizing too, and therefore the time when producing reply data is also that this is wireless The clock value of radio-frequency unit handset, just can reach the purpose of time synchronized.
Can have by a definite date the most detailed clear and definite understanding to the purpose of the present invention, effect and structural feature, hereby lifting can Embodiment cooperation illustrate as rear:
Accompanying drawing explanation
Fig. 1 show the communication group of the less radio-frequency of a kind of one-to-many;And
Fig. 2 show the flow chart of the method for time synchronization of the present invention.
Wherein, description of reference numerals is as follows:
Main frame: 101
Radio-frequency device handset: 102
Step: 201 ~ 209
Detailed description of the invention
Please also refer to the communication group that Fig. 1 and Fig. 2, Fig. 1 show the less radio-frequency of a kind of one-to-many, Comprise a main frame 101 and at least one radio-frequency device handset 102.Fig. 2 show the present invention's The flow chart of method for time synchronization, it is adaptable to a kind of one-to-many shown in Fig. 1 wireless The communication group of radio frequency.Method for time synchronization shown in Fig. 2 can be applicable to for Fig. 1 In middle wireless telecommunication system, the time between main frame 101 and at least one radio-frequency device handset 102 is same Step, this main frame comprises a clock, storage queue (queue) and a timing code table, and each less radio-frequency fills Put handset and then comprise a clock.Wherein, the clock system in this main frame is used for representing the time of whole system, Clock in radio-frequency device handset then represents the time of this radio-frequency device handset, due to difference The gait of march of clock there may be nuance, therefore, between main frame and radio-frequency device handset The computing of time synchronized must be carried out, to maintain the normal operation of system.Storage queue system in main frame uses To store data, timing code table is then the scope limiting timing.
As in figure 2 it is shown, the method for time synchronization of the present invention also comprises the steps of.Step Rapid 201 by the time limit of main frame foundation this timing code table of one default settings.Step 202 is divided by main frame Supplementary biography send an inquiry message to each radio-frequency device handset, and the purpose of this inquiry message is inquiry nothing Whether line radio-frequency unit handset has data latency to return, and wherein, this inquiry message at least includes a clock number According to, it is the numerical value that clock when this main frame transmits is had.In step 203, each less radio-frequency After device handset receives this inquiry message, carry out synchronous radio radio frequency dress according to the clock data in inquiry message Put the clock in handset.Step 204 is to be determined whether data needs by each radio-frequency device handset Reply;If this radio-frequency device handset does not has data to need to reply, the most only return an echo message, as Shown in step 205;Otherwise, if there being data to need to reply, by these data together with generation time of these data Main frame is returned to, as depicted at step 206 in being placed in a return information.Step 207 is received often by main frame Echo message that individual radio-frequency device handset transmits or return information, and respectively by the number in return information According to being stored in storage queue.Step 208 judges that the time limit of this timing code table has reached;If still Not up to, then returning to step 202, the time limit arrival that steps be repeated alternatively until this timing code table is Only;Otherwise, step 209 is carried out.Step 209 is to be stopped accepting radio-frequency device handset by main frame to pass The echo message come or return information, and utilize ranking method for the time of the data generation stored in queue Sequence, to reach the purpose of main frame and the time synchronized of each radio-frequency device handset.Wherein, the present invention Do not do any being particularly limited to for the ranking method used by the time-sequencing of the data generation stored in queue.
It should be noted that wherein, this response letter that in step 205, radio-frequency device handset is returned Breath is for confirming that the transmission between this main frame and this radio-frequency device handset is not interrupted;Therefore in step In 207, this main frame enters to store without the echo message received radio-frequency device handset transmitted respectively Queue.In other words, if in step 205, radio-frequency device handset does not return this echo message, I.e. represent that the transmission between this main frame and this radio-frequency device handset has been interrupted, no longer carry out the time same Step.
Owing to, before each radio-frequency device handset produces data, each radio-frequency device handset is the most sharp The clock of radio-frequency device handset is synchronized by the clock data in the inquiry message transmitted with main frame, The clock of radio-frequency device handset continues timing too after synchronizing, therefore producing when replying data Time is also that this radio-frequency device handset continues after the clock value utilizing main frame to transmit synchronizes again The clock value of timing, just can reach the purpose of time synchronized.
Therefore, a kind of method for time synchronization of the present invention, really can be by disclosed skill Art, reaches desired purpose and effect, meets the novelty of patent of invention, and progressive utilizes with industry The important document of property.
Above disclosed diagram and explanation, only presently preferred embodiments of the present invention, non-in order to limit Determine the enforcement of the present invention, be generally familiar with its spirit under this invention of personage of this technology, the change made Or modify, all should contain in the claim of following this case.

Claims (3)

1. a method for time synchronization a, it is adaptable to main frame in a wireless telecommunication system And the time synchronized between at least one radio-frequency device handset, this main frame also comprises a clock, a storage Depositing queue and a timing code table, each radio-frequency device handset the most also comprises a clock, this less radio-frequency Setup time synchronous method also comprises the steps of
A () is by the time limit of this main frame foundation this timing code table of one default settings;
B () is respectively transmitted an inquiry message to each radio-frequency device handset, this inquiry by this main frame Ask whether the purpose of information has data latency to return for inquiry radio-frequency device handset, wherein, this inquiry Information at least includes a clock data;
C () each radio-frequency device handset receives this inquiry message after, according in inquiry message time Clock data carry out the clock in synchronous radio radio-frequency unit handset;
D () each radio-frequency device handset determines whether that data need to reply;If this less radio-frequency Device handset does not has data to need to reply, then carry out step (e);Otherwise, step (f) is carried out;
E () radio-frequency device handset returns an echo message to this main frame, and advance to step (g);
F these data are placed in a reply letter together with generation time of these data by () radio-frequency device handset Main frame is returned in breath;
G echo message or the return information that each radio-frequency device handset transmits received by () this main frame, And respectively the data in return information are stored in storage queue;
H () judges that the time limit of this timing code table has reached;If not yet reaching, then return to step Suddenly (b);Otherwise, step (i) is carried out;And
(i) this main frame stops accepting echo message or the return information that radio-frequency device handset transmits, and Utilize the time-sequencing that ranking method produces for the data stored in queue;
Wherein, this echo message that in step (e), radio-frequency device handset is returned is for confirming this master Transmission between machine and this radio-frequency device handset is not interrupted;In step (g), this main frame is without inciting somebody to action The echo message that received radio-frequency device handset transmits is stored in storage queue respectively.
2. method for time synchronization as claimed in claim 1, wherein, this inquiry is believed Clock data in breath is the numerical value that clock when this main frame transmits is had.
3. method for time synchronization as claimed in claim 1, wherein this less radio-frequency This less radio-frequency when the generation time of these data in the return information that device handset is passed is data generation The numerical value that device handset internal clock is had.
CN201210194580.3A 2012-06-13 2012-06-13 Method for time synchronization Expired - Fee Related CN103490873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210194580.3A CN103490873B (en) 2012-06-13 2012-06-13 Method for time synchronization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210194580.3A CN103490873B (en) 2012-06-13 2012-06-13 Method for time synchronization

Publications (2)

Publication Number Publication Date
CN103490873A CN103490873A (en) 2014-01-01
CN103490873B true CN103490873B (en) 2016-08-24

Family

ID=49830849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210194580.3A Expired - Fee Related CN103490873B (en) 2012-06-13 2012-06-13 Method for time synchronization

Country Status (1)

Country Link
CN (1) CN103490873B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1696988A (en) * 2005-05-24 2005-11-16 上海科鸣建筑工程技术有限公司 Wireless sensing unit in use for wireless network, and remote control method
CN1702697A (en) * 2005-06-06 2005-11-30 重庆大学 Time synchronizing method and apparatus for wireless physiological information sensor network
CN101061481A (en) * 2004-11-16 2007-10-24 皇家飞利浦电子股份有限公司 Time synchronization in wireless ad hoc networks of medical devices and sensors
CN102231690A (en) * 2011-03-31 2011-11-02 华立仪表集团股份有限公司 Remote meter reading method of public utility meter

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101061481A (en) * 2004-11-16 2007-10-24 皇家飞利浦电子股份有限公司 Time synchronization in wireless ad hoc networks of medical devices and sensors
CN1696988A (en) * 2005-05-24 2005-11-16 上海科鸣建筑工程技术有限公司 Wireless sensing unit in use for wireless network, and remote control method
CN1702697A (en) * 2005-06-06 2005-11-30 重庆大学 Time synchronizing method and apparatus for wireless physiological information sensor network
CN102231690A (en) * 2011-03-31 2011-11-02 华立仪表集团股份有限公司 Remote meter reading method of public utility meter

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于FTSP的高精度无线传感器网络时间同步协议的设计与实现;汪付强,等;《2009中国智自动化会议论文集》;20090927;全文 *

Also Published As

Publication number Publication date
CN103490873A (en) 2014-01-01

Similar Documents

Publication Publication Date Title
CN103414547B (en) A kind of main website controls method, main website and the system of many slave stations
CN107465764B (en) Star topology based internet of things communication system, gateway equipment and method
WO2009069329A1 (en) Time synchronization system and time synchronization method in train
ATE394001T1 (en) SYSTEM AND METHOD FOR ASYNCHRONOUS COMMUNICATION WITH WEB SERVICES USING MESSAGE SETS DEFINITIONS
MY196384A (en) Method and Apparatus for Transmitting and Receiving Wireless Signal in Wireless Communication System
CN103580846B (en) A kind of method and system across non-1588 network transmission precision interval clock messages
CA2331913A1 (en) Base station transceiver to radio network controller synchronization filtering function
MX2010007947A (en) Wireless communication method for transmitting a sequence of data units between a wireless device and a network.
CN101895384A (en) Method and device for implementing boundary clock
CN104601269B (en) Master-salve clock synchronous method and system
CN108039933A (en) A kind of local Internet of Things time precise synchronization method
CN104243079A (en) Microsecond clock synchronization method for real-time Ethernet
CN106028438A (en) Method, device and system for base station time synchronization algorithm
CN108259105B (en) time synchronization processing method and device and synchronization network
WO2012024699A4 (en) Data synchronization for circuit resources without using a resource buffer
EP2431874A3 (en) Information processing system, information processing program and information processing method
CN108243396B (en) Time synchronization processing method and device
CN108877290A (en) Parking stall dispatching method, device, equipment and storage medium
CN103490873B (en) Method for time synchronization
CN108206683A (en) A kind of dynamic compensated pulse circuit
CN102984240A (en) Method and device for importing and exporting contacts
CN103227708A (en) Method and device for transmitting clock synchronization messages in E1 link
GB2467483B (en) Communication apparatus, base station apparatus and data reception timing synchronizing method
CN107437971A (en) The processing method and processing device of Synchronization Status Message
CN103813382A (en) Clock synchronization method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160824

Termination date: 20200613