CN108055102A - For the method for synchronizing time of more equipment/instrument concurrent job - Google Patents
For the method for synchronizing time of more equipment/instrument concurrent job Download PDFInfo
- Publication number
- CN108055102A CN108055102A CN201711327823.5A CN201711327823A CN108055102A CN 108055102 A CN108055102 A CN 108055102A CN 201711327823 A CN201711327823 A CN 201711327823A CN 108055102 A CN108055102 A CN 108055102A
- Authority
- CN
- China
- Prior art keywords
- equipment
- instrument
- time
- server
- signal
- 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
-
- 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
- H04J3/0644—External master-clock
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The present invention relates to a kind of method for synchronizing time for more equipment/instrument concurrent job, this method for synchronizing time includes:One signal source is set, and server and several equipment/instruments are connected to the signal source simultaneously;By the survey calculation to server and each equipment/instrument to signal source signal, to realize time synchronization between each equipment/instrument;The method for synchronizing time of the present invention carries out the time synchronization of local device/instrument using a macrocyclic alternation analog signal, and time synchronization caused by so as to evade the delay of signal of communication and communication abnormality is abnormal, meets equipment/appliance time synchronisation requirement.
Description
Technical field
The present invention is a kind of method for synchronizing time for more equipment/instrument concurrent job, is related to communication, measurement technology
Field.
Background technology
With the development of science and technology it requires the same time or has the work of multiple devices/instrument of Fixed Time Interval requirement
Industry is more and more.If time error greatly to a certain extent when, the working regularity of equipment/instrument can be deteriorated, and measuring instrument
Relatively large deviation can occur for measurement result, cannot all meet the needs of operation;Time between each instrument needs synchronization, to meet collaboration
The needs of operation.
Existing time synchronization (during school) function is all to send time synchronizing signal using time server, and comprising when
Between data, time synchronization is carried out according to time comparison in the time and data packet for receiving information by receiving equipment/instrument of signal.
Traditional method for synchronizing time is by by synchronous equipment/instrument, by communication network, (various mediums may make
With) time server is connected to, a standard time instruction, such as 20 days 15 December in 2016 are sent by time server:20:
00:00;The time of this time command is received by synchronization object, is considered as 20 days 15 December in 2016:20:00:00, with this standard
Time is compared, and draws amendment of the time complexity curve value into row clock.
But any network has time delay, is perhaps Millisecond, is perhaps second grade, and different receivers receive
The delay of signal of communication be immediately, can not preset correction value.Such time synchronization, in the case where required precision is higher not
It can meet demand!Moreover also certain probability communication mistake can occur, it is necessary to which repeated communications could succeed, and delay at this moment is even more
It is unpredictable.
Although between equipment/instrument use high rate broadband, and between each other it is glitch-free in the case of, from the time
The delay time that server initiation is synchronized to until being received by synchronization object may not be grown;But during using the communication of low rate, the time prolongs
It late can be larger.Such as it is more, it is necessary to when being repeated using being disturbed in similar bluetooth, the wireless communication of public network or communication network,
Then time delay can not determine.
Therefore, for time precision application of less demanding, perhaps can expire in a manner that time server is synchronous
Sufficient requirement, but for requiring high application, the call duration time of delay can cause precision deficiency synchronization time --- especially
Communication mode is the situation for wireless, the multinode net or low rate communication being easily disturbed.
The content of the invention
The object of the present invention is to provide a kind of method for synchronizing time for more equipment/instrument concurrent job.
In order to solve the above technical problem, the present invention provides a kind of method for synchronizing time, including:One signal source is set,
And server and several equipment/instruments are connected to the signal source simultaneously;By to server and each equipment/instrument to signal source
The survey calculation of signal, to realize time synchronization between each equipment/instrument.
Further, the signal source is suitable for generating a macrocyclic alternation analog signal, to ensure to allow institute in a cycle
There is equipment/instrument to be delayed in maximum communication and complete alternation simulation signal data acquisition, and signal strength is each suitable for meeting
Equipment/instrument gathers simultaneously.
Further, it is described by, to the survey calculation of signal source signal, respectively being set with realizing to server and each equipment/instrument
The method of time synchronization includes the following steps between standby/instrument:
Step S1, server and each equipment/instrument start simultaneously at acquisition alternation analog signal, and calculate respective adopt respectively
Sample curve;
Step S2 calculates corresponding synchronous correction value according to the standard time of respective sampling curve combination server, real
Now each equipment/appliance time is synchronous.
Further, the method for synchronizing time further includes:After server sends synchronic command, server and each equipment/
Instrument starts simultaneously at acquisition alternation analog signal.
Further, calculated in the step S2 according to the standard time of respective sampling curve combination server corresponding same
Correction value is walked, realizing the method for each equipment/appliance time synchronization includes:
Step S21, server send the sampling curve of server end to each equipment/instrument;
The sampling curve of the sampling curve of equipment end and server end is carried out weight by step S22, each equipment/instrument respectively
It is folded, respective synchronous correction value is calculated on the basis of the standard time;
Step S23 repeats step S1 to step S2, until equipment/instrument deadline is synchronous.
Further, in the step S22 each equipment/instrument respectively by the sampling of the sampling curve of equipment end and server end
Curve is overlapped, and respective synchronous correction value is calculated on the basis of the standard time;I.e.
For one equipment/instrument, after sampling curve is overlapped, time difference is drawn by mathematic interpolation, then compares mark
Between punctual, to carry out time complexity curve.
Further, identical clock synchronization system is used in the server and several equipment/instruments;
The clock synchronization system includes:Amplifier, converter, MCU arithmetic units and clock module;Wherein
The amplifier gathers alternation analog signal, and passes through converter and input to MCU arithmetic units acquisition synchrodata, institute
MCU arithmetic units are stated to be suitable for synchrodata carrying out time synchronization by clock module.
The invention has the advantages that the method for synchronizing time of the present invention, utilizes a macrocyclic alternation simulation letter
The time synchronization of number carry out local device/instrument, time synchronization caused by so as to evade the delay of signal of communication and communication abnormality
It is abnormal, meet equipment/appliance time synchronisation requirement.
Description of the drawings
The present invention is further described with reference to the accompanying drawings and examples.
Fig. 1 is sampling schematic diagram of the clock synchronization system to alternation analog signal of the present invention;
Fig. 2 is the connection diagram of server in this method for synchronizing time, several equipment/instruments and signal source;
Fig. 3 is the functional block diagram of the clock synchronization system of the present invention;
Fig. 4 is server of the present invention and equipment/instrument interaction schematic diagram;
Fig. 5 is the sampling time not fully synchronized corresponding sampling schematic diagram of the server and equipment/instrument of the present invention.
Specific embodiment
In conjunction with the accompanying drawings, the present invention is further explained in detail.These attached drawings are simplified schematic diagram, only with
Illustration illustrates the basic structure of the present invention, therefore it only shows composition related to the present invention.
More equipment/instrument coordinative operation/measurement, generally require to run simultaneously, the necessary high level of synchronization of internal clocking, if
The clocking error of one of equipment/instrument is exceeded, will influence the working condition of whole system.
This method for synchronizing time solves existing because of communication delay or call duration time difference generates caused by retrying time misses
The problem of poor, carries out analytic signal using the external independently arranged macrocyclic alternation simulation signal source of generation that is suitable for, then
It is synchronous to compare server Plays time progress local device/appliance time.
Since traditional signal of communication has delay, but the alternation analog signal in signal source will not be delayed, it is only possible to
Because the length of circuit has minimum error, in order to eliminate this fine error, full-length, the signal of standard specification can be used
The hardware configuration of line and standard, above-mentioned time error can be ignored completely.
Therefore, the present invention does not use signal of communication to synchronize, but is adopted using the alternation analog signal of signal source
Collection measurement is corrected using more wheels, and time synchronization is carried out by the sampling curve gradually overlapped.
It, all can having time delay from initiating to receiving due to any communication;Although between equipment/instrument involved in the present invention
Be in communication with each other, but this communication is only limitted to the measurement data of transmission alternation analog signal, i.e., need to communicate successfully, and lead to
Letter delay does not interfere with the precision of time synchronization.
Therefore, in practical applications, the synchronous matching of equipment/instrument only needs identical with equipment/instrument clock in net, and
It is not necessarily intended to completely the same with the time (such as Beijing time).In this way, during using wherein a certain equipment/instrument (or server) school
A time server is used as afterwards, it is possible to when carrying out local school, to meet the needs of each equipment/instrument operation.
The present invention is based on use above demand, when carrying out local school;Therefore, during school of the invention in local progress, again
Because of equipment/instrument, itself clock has corresponding precision, and use is not limited to concentrate or local use.
By the following examples 1 and embodiment 2 expansion explanation is carried out to the specific implementation process of this method for synchronizing time.
Embodiment 1
Fig. 1 is sampling schematic diagram of the clock synchronization system to alternation analog signal of the present invention;
As shown in Figure 1, to different required precisions, different sample frequencys is set.
Clock has certain required precision in the application, can not be truly realized zero error.The time synchronization of the present invention
Also error requirements (can generally be accurate to higher an order of magnitude) are correspondingly met;It is synchronous to want during such as required precision ± 0.1s
It asks and is carried out by ± 0.01s;If it is desired to be ± 1ms, then it is synchronous to be carried out by ± 0.1ms;Correspondingly, sampling period/frequency is respectively
0.01s/100Hz、0.1ms/10kHz。
As described above, when sample frequency is higher, the precision of time synchronization can be bigger, but corresponding calculation amount is also bigger, together
Walking the time can be longer.In actual use, energy meet demand, without pursuing higher precision, when spending more
Between.
Fig. 2 shows the connection diagram of server in this method for synchronizing time, several equipment/instruments and signal source.
The method for synchronizing time, including:
One signal source is set, and server and several equipment/instruments are connected to the signal source simultaneously;
By the survey calculation to server and each equipment/instrument to signal source signal, to realize between each equipment/instrument
Time synchronization.
Fig. 3 is the principle schematic to signal source signal processing.
Identical clock synchronization system is used in the server and several equipment/instruments;The time synchronization system
System includes:Amplifier U1, converter, MCU arithmetic units and clock module;Wherein described amplifier acquisition alternation analog signal, and lead to
It crosses converter to input to MCU arithmetic units acquisition synchrodata, the MCU arithmetic units are suitable for synchrodata passing through clock module
Carry out time synchronization.
Also, the signal source is suitable for generating a macrocyclic alternation analog signal, all to ensure to allow in a cycle
Equipment/instrument is delayed in maximum communication and completes alternation simulation signal data acquisition, and signal strength is suitable for satisfaction and respectively sets
Standby/instrument gathers simultaneously.Such as in the present embodiment, the maximum communication delay of robot can include but is not limited to 0.5ms,
1ms, 2ms, then n robot, the quantity n of the robot are, for example, 5 more than 1, and it is 1ms that maximum communication, which is delayed, then
The long period of one alternation analog signal could be provided as not less than 5ms.
Fig. 4 is server of the present invention and equipment/instrument interaction schematic diagram.
Specifically, after server sends synchronic command, server starts to carry out signal source signal with equipment/instrument
Sampled measurements.Itself measurement data (data and curves formed containing the set class value of time and measurement result) is sent to by server
Each equipment/instrument, each equipment/instrument are required to reply after receiving synchronic command and data-signal.
The survey calculation by server and each equipment/instrument to signal source signal, to realize each equipment/instrument
Between the method for time synchronization include the following steps:
Step S1, after server sends synchronic command, server and each equipment/instrument start simultaneously at acquisition alternation simulation
Signal, and respective sampling curve is calculated respectively;And
Step S2 calculates corresponding synchronous correction value according to the standard time of respective sampling curve combination server, real
Now each equipment/appliance time is synchronous.
Further, calculated in the step S2 according to the standard time of respective sampling curve combination server corresponding same
Correction value is walked, realizing the method for each equipment/appliance time synchronization includes:
Step S21, server send the sampling curve of server end to each equipment/instrument;
The sampling curve of the sampling curve of equipment end and server end is carried out weight by step S22, each equipment/instrument respectively
It is folded, respective synchronous correction value is calculated on the basis of the standard time;And
Step S23 repeats step S1 to step S2, until equipment/instrument deadline is synchronous.
Fig. 5 is the sampling time not fully synchronized corresponding sampling schematic diagram of the server and equipment/instrument of the present invention.
Specifically, server may be not exclusively synchronous with equipment/instrument sampling time, equipment/instrument overlaps when calculating
Data and curves, and the calculating of time difference is carried out, more than synchronization action is repeated after amendment and is verified.
Since sampled data is the same segment signal of same signal source, the sampling that each equipment/instrument and server calculate is bent
Line should can be overlapped, only because sampling time difference sampled point is different.Each equipment/instrument is laid equal stress on the sampling curve comparison of itself
After closing curve, time difference can be gone out with mathematic interpolation, then compares standard time of server to carry out time complexity curve.
Using above-mentioned desirable embodiment according to the invention as enlightenment, by above-mentioned description, relevant staff is complete
Various changes and amendments can be carried out without departing from the scope of the technological thought of the present invention' entirely.The technology of this invention
Property scope is not limited to the content on specification, it is necessary to determine its technical scope according to right.
Claims (7)
1. a kind of method for synchronizing time, which is characterized in that including:
One signal source is set, and server and several equipment/instruments are connected to the signal source simultaneously;
By the survey calculation to server and each equipment/instrument to signal source signal, to realize the time between each equipment/instrument
It is synchronous.
2. method for synchronizing time according to claim 1, which is characterized in that
The signal source is suitable for generating a macrocyclic alternation analog signal, to ensure to allow all devices/instrument in a cycle
It is delayed in maximum communication and completes alternation simulation signal data acquisition, and signal strength is same suitable for meeting each equipment/instrument
When gather.
3. method for synchronizing time according to claim 2, which is characterized in that
The survey calculation by server and each equipment/instrument to signal source signal, to realize between each equipment/instrument
The method of time synchronization includes the following steps:
Step S1, server and each equipment/instrument start simultaneously at acquisition alternation analog signal, and it is bent to calculate respective sampling respectively
Line;
Step S2 calculates corresponding synchronous correction value according to the standard time of respective sampling curve combination server, realizes each
Equipment/appliance time is synchronous.
4. method for synchronizing time according to claim 3, which is characterized in that
The method for synchronizing time further includes:After server sends synchronic command, server and each equipment/instrument start simultaneously at
Gather alternation analog signal.
5. method for synchronizing time according to claim 4, which is characterized in that
Corresponding synchronous correction value is calculated according to the standard time of respective sampling curve combination server in the step S2, it is real
Now the method for each equipment/appliance time synchronization includes:
Step S21, server send the sampling curve of server end to each equipment/instrument;
Step S22, each equipment/instrument the sampling curve of equipment end is carried out with the sampling curve of server end respectively it is be overlapped, with
Respective synchronous correction value is calculated on the basis of the standard time;
Step S23 repeats step S1 to step S2, until equipment/instrument deadline is synchronous.
6. method for synchronizing time according to claim 5, which is characterized in that
The sampling curve of the sampling curve of equipment end and server end is carried out weight by each equipment/instrument respectively in the step S22
It is folded, respective synchronous correction value is calculated on the basis of the standard time;I.e.
For one equipment/instrument, after sampling curve is overlapped, time difference is drawn by mathematic interpolation, then during contrast standard
Between, to carry out time complexity curve.
7. method for synchronizing time according to claim 6, which is characterized in that
Identical clock synchronization system is used in the server and several equipment/instruments;
The clock synchronization system includes:Amplifier, converter, MCU arithmetic units and clock module;Wherein described amplifier acquisition is handed over
Become analog signal, and pass through converter and input to MCU arithmetic units acquisition synchrodata, the MCU arithmetic units are suitable for will be synchronous
Data carry out time synchronization by clock module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711327823.5A CN108055102A (en) | 2017-12-13 | 2017-12-13 | For the method for synchronizing time of more equipment/instrument concurrent job |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711327823.5A CN108055102A (en) | 2017-12-13 | 2017-12-13 | For the method for synchronizing time of more equipment/instrument concurrent job |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108055102A true CN108055102A (en) | 2018-05-18 |
Family
ID=62132150
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711327823.5A Pending CN108055102A (en) | 2017-12-13 | 2017-12-13 | For the method for synchronizing time of more equipment/instrument concurrent job |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108055102A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100293243A1 (en) * | 2009-05-14 | 2010-11-18 | Fluke Corporation | method and apparatus for measuring directionally differentiated (one-way) network latency |
CN102594356A (en) * | 2011-12-21 | 2012-07-18 | 北京航天测控技术有限公司 | Realization method of synchronous collection |
CN102621376A (en) * | 2012-03-16 | 2012-08-01 | 国网电力科学研究院武汉南瑞有限责任公司 | Method for precisely and synchronously measuring multiple high and low-potential electric parameters and device |
CN105991205A (en) * | 2015-02-05 | 2016-10-05 | 于天泽 | Verifiable and adjustable full synchronous communication network, and implementation method thereof |
CN106330375A (en) * | 2016-08-24 | 2017-01-11 | 郑州威科姆科技股份有限公司 | Power cyclic wave time synchronization system and time synchronization method thereof |
-
2017
- 2017-12-13 CN CN201711327823.5A patent/CN108055102A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100293243A1 (en) * | 2009-05-14 | 2010-11-18 | Fluke Corporation | method and apparatus for measuring directionally differentiated (one-way) network latency |
CN102594356A (en) * | 2011-12-21 | 2012-07-18 | 北京航天测控技术有限公司 | Realization method of synchronous collection |
CN102621376A (en) * | 2012-03-16 | 2012-08-01 | 国网电力科学研究院武汉南瑞有限责任公司 | Method for precisely and synchronously measuring multiple high and low-potential electric parameters and device |
CN105991205A (en) * | 2015-02-05 | 2016-10-05 | 于天泽 | Verifiable and adjustable full synchronous communication network, and implementation method thereof |
CN106330375A (en) * | 2016-08-24 | 2017-01-11 | 郑州威科姆科技股份有限公司 | Power cyclic wave time synchronization system and time synchronization method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7801258B2 (en) | Aligning timebases to share synchronized periodic signals | |
CN112214065B (en) | Equipment synchronization calibration method, device, equipment and storage medium | |
PH12020552211A1 (en) | Time-synchronized radio bearer for supporting precision timing protocol (ptp) based time sensitive network (tsn) applications | |
CN104243129B (en) | Receiver, the method and computer readable storage medium for calculating the time difference | |
CN106253902A (en) | There is the reset of many device synchronization and identify the multi-channel parallel acquisition system of calibration function | |
CN107182123A (en) | The synchronous method and synchronization system of a kind of UWB alignment systems | |
CN105634641B (en) | Based on architecture for exchanging can cascade network communication accurate timing system and method | |
ATE369690T1 (en) | METHOD AND DEVICE FOR SYNCHRONIZED PLAYBACK OF DATA STREAMS | |
CN101021727A (en) | Control system | |
CN103199980B (en) | Synchronisation control means, Apparatus and system | |
CN103592843A (en) | Timestamp circuit and implement method | |
JP2011193457A (en) | System and method for performing time synchronization | |
CN105425899A (en) | Multi-scope control and synchronization system | |
CN104683057B (en) | A kind of method and system of the time synchronization of more instrument cubicles | |
CN108692726A (en) | A kind of UWB indoor orientation methods | |
CN106130710A (en) | A kind of clock synchronizing method and system | |
Pocovi et al. | Measurement framework for assessing reliable real-time capabilities of wireless networks | |
CN107835258A (en) | Multirobot collaboration working method and cooperative control system | |
CN107800529A (en) | A kind of clock frequency synchronization method of network node | |
CN107483136A (en) | A kind of clock synchronizing method between fixed communication apparatus | |
CN107898457B (en) | Method for clock synchronization between group wireless electroencephalogram acquisition devices | |
CN108055102A (en) | For the method for synchronizing time of more equipment/instrument concurrent job | |
CN103441811A (en) | AIS time-slot synchronization triggering system based on UTC | |
CN108737964A (en) | A kind of UWB indoor locating systems and its localization method | |
CN104270154A (en) | Sampling device and method based on parallel processing |
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: 20180518 |
|
RJ01 | Rejection of invention patent application after publication |