Time synchronization method, device, system and storage medium

文档序号:1314407 发布日期:2020-07-10 浏览:23次 中文

阅读说明:本技术 一种时间同步方法、装置、系统和存储介质 (Time synchronization method, device, system and storage medium ) 是由 韩柳燕 于 2019-01-02 设计创作,主要内容包括:本发明公开了一种时间同步方法、装置、系统和存储介质,用以在不增加卫星接收机成本的同时,提高时间同步的精度,减少各个时间同步设备之间的相对误差。跟踪设备实施的时间同步方法,应用于时间同步网络中,所述时间同步网络包括主设备和跟踪设备;以及所述方法,包括:跟踪设备获得时间同步调整值,所述时间同步调整值为根据所述主设备对应的第一时间差值和所述跟踪设备对应的第二时间差值确定出的,所述第一时间差值为所述主设备的本地时间与其接收到的卫星时间之间的时间差值,所述第二时间差值为所述跟踪设备的本地时间与其接收到的卫星时间之间的时间差值;所述跟踪设备根据所述时间同步调整值,调整本地时间。(The invention discloses a time synchronization method, a device, a system and a storage medium, which are used for improving the time synchronization precision and reducing the relative error among time synchronization devices without increasing the cost of a satellite receiver. The time synchronization method implemented by the tracking equipment is applied to a time synchronization network, and the time synchronization network comprises a main equipment and the tracking equipment; and the method, comprising: the method comprises the steps that a tracking device obtains a time synchronization adjustment value, wherein the time synchronization adjustment value is determined according to a first time difference value corresponding to a main device and a second time difference value corresponding to the tracking device, the first time difference value is a time difference value between the local time of the main device and the satellite time received by the main device, and the second time difference value is a time difference value between the local time of the tracking device and the satellite time received by the tracking device; and the tracking equipment adjusts the local time according to the time synchronization adjustment value.)

1. A time synchronization method is applied to a time synchronization network, wherein the time synchronization network comprises a master device and a tracking device; and

the method comprises the following steps:

the method comprises the steps that a tracking device obtains a time synchronization adjustment value, wherein the time synchronization adjustment value is determined according to a first time difference value corresponding to a main device and a second time difference value corresponding to the tracking device, the first time difference value is a time difference value between the local time of the main device and the satellite time received by the main device, and the second time difference value is a time difference value between the local time of the tracking device and the satellite time received by the tracking device;

and the tracking equipment adjusts the local time according to the time synchronization adjustment value.

2. The method of claim 1, before the tracking device obtains the time synchronization adjustment value, further comprising:

the tracking device sends a second time difference value to the master device; and

the method for acquiring the time synchronization adjustment value by the tracking device specifically comprises the following steps:

and the tracking equipment receives a time synchronization adjustment value sent by the main equipment, wherein the time synchronization adjustment value is determined by the main equipment according to the first time difference value and the second time difference value.

3. The method of claim 1, wherein the tracking device obtaining the time synchronization adjustment value comprises:

the tracking equipment receives a first time difference value sent by the main equipment;

the tracking device determines the time synchronization adjustment value according to the first time difference value and the second time difference value.

4. The method of claim 3, wherein after the tracking device determines the time synchronization adjustment value based on the first time difference value and the second time difference value, further comprising:

the tracking equipment judges whether the time synchronization adjustment value is larger than a preset threshold value or not; and

if yes, sending alarm information to the network management equipment; or sending the time synchronization adjustment value to the master device.

5. The method according to any of claims 1 to 4, wherein the time synchronization network comprises a plurality of master devices; and

before the tracking device obtains the time synchronization adjustment value, the method further comprises:

the tracking device obtains a tracking priority of the master device.

6. The method of claim 5, further comprising:

before the tracking device determines the time synchronization adjustment value according to the first time difference value and the second time difference value, the method further includes:

the tracking equipment selects a first time difference value corresponding to the master equipment with the highest priority according to the tracking priority; and

the determining, by the tracking device, the time synchronization adjustment value according to the first time difference value and the second time difference value specifically includes:

and the tracking equipment determines the time synchronization adjustment value according to the first time difference value and the second time difference value corresponding to the selected master equipment.

7. The method as claimed in claim 5, wherein said tracking device obtaining the tracking priority of the master device comprises:

the tracking equipment receives the tracking priority sent by the main equipment; or

And presetting the tracking priority of each master device on the tracking device.

8. The method of claim 5, further comprising:

and the tracking equipment sends the second time difference value to the master equipment with the highest priority according to the tracking priority.

9. The method of claim 5, further comprising:

and if the tracking equipment judges that communication faults exist between the tracking equipment and the currently selected main equipment, the tracking equipment selects the main equipment to be reselected from other main equipment according to the tracking priority.

10. The method of claim 2, wherein there are a plurality of said satellite times; the method, when the tracking device sends the second time difference value to the master device, further includes:

and the tracking equipment sends the satellite number corresponding to the second time difference value to the main equipment.

11. The method of claim 3, wherein there are a plurality of said satellite times; the tracking device, while receiving the first time difference value sent by the master device, further includes:

and the tracking equipment receives the satellite number corresponding to the first time difference value sent by the main equipment.

12. The method of claim 4, wherein if there are a plurality of said satellite times; when sending the alarm information to the network management equipment, the method further comprises the following steps:

and sending the satellite number corresponding to the alarm information to the network management equipment.

13. A time synchronization method is applied to a time synchronization network, wherein the time synchronization network comprises a master device and a tracking device; and

the method comprises the following steps:

the method comprises the steps that time adjustment reference information is sent to the tracking equipment by the main equipment, the time adjustment reference information comprises a first time difference value between the main equipment and satellite time received by the main equipment or a time synchronization adjustment value corresponding to the tracking equipment and determined by the main equipment, and the tracking equipment adjusts local time according to the time synchronization adjustment value.

14. The method of claim 13, wherein the master device determines the time synchronization adjustment value for the tracking device according to the following:

the main equipment determines a first time difference value between satellite time received locally and satellite time received by the main equipment;

the main device receives a second time difference value sent by the tracking device, wherein the second time difference value is a time difference value between the local time of the tracking device and the satellite time received by the tracking device;

and the master device determines a time synchronization adjustment value corresponding to the tracking device according to the first time difference value and the second time difference value.

15. The method of claim 14, wherein after determining the time synchronization adjustment value corresponding to the tracking device, the master device further comprises:

judging whether the time synchronization adjustment value is larger than a preset threshold value or not;

if yes, sending alarm information to the network management equipment.

16. The method of claim 13, wherein after the master device sends time adjustment reference information to the tracking device, further comprising:

receiving a time synchronization adjustment value sent by the tracking equipment;

judging whether the time synchronization adjustment value is larger than a preset threshold value or not;

if yes, sending alarm information to the network management equipment.

17. The method of claim 14, wherein if there are a plurality of satellite times, the master device, while transmitting time adjustment reference information to the tracking device, further comprises:

and sending the satellite number corresponding to the time adjustment reference information to the tracking equipment.

18. A time synchronization device is applied to a time synchronization network, the time synchronization network comprises a main device and a tracking device, and the time synchronization device is arranged in the tracking device; and

the apparatus, comprising:

an obtaining unit, configured to obtain a time synchronization adjustment value, where the time synchronization adjustment value is determined according to a first time difference value corresponding to the master device and a second time difference value corresponding to the tracking device, the first time difference value is a time difference value between a local time of the master device and a satellite time received by the master device, and the second time difference value is a time difference value between the local time of the tracking device and the satellite time received by the tracking device;

and the adjusting unit is used for adjusting the local time according to the time synchronization adjusting value.

19. The apparatus of claim 18, further comprising a transmitting unit, wherein:

the sending unit is configured to send the second time difference to the master device;

the obtaining unit is specifically configured to receive a time synchronization adjustment value sent by the master device, where the time synchronization adjustment value is determined by the master device according to the first time difference value and the second time difference value.

20. The apparatus of claim 18,

the obtaining unit is specifically configured to receive a first time difference value sent by the master device; and determining the time synchronization adjustment value according to the first time difference value and the second time difference value.

21. The apparatus of claim 20, further comprising:

the judging unit is used for judging whether the time synchronization adjusting value is larger than a preset threshold value or not;

the alarm unit is used for sending alarm information to the network management equipment when the judgment result of the judgment unit is yes; or sending the time synchronization adjustment value to the master device.

22. The apparatus of claim 20, wherein the time synchronization network comprises a plurality of master devices;

the obtaining unit is further configured to obtain a tracking priority of the master device before obtaining the time synchronization adjustment value.

23. The apparatus of claim 22, further comprising a first selection unit, wherein:

the first selection unit is used for selecting a first time difference value corresponding to a master device with the highest priority according to the tracking priority;

the obtaining unit is specifically configured to determine the time synchronization adjustment value according to the first time difference value and the second time difference value corresponding to the selected master device.

24. The apparatus of claim 22,

the obtaining unit is configured to receive a tracking priority sent by the master device; or the tracking priority of each master device is preset.

25. The apparatus of claim 22,

and the sending unit is further used for sending the second time difference value to the master device with the highest priority according to the tracking priority.

26. The apparatus of claim 22, further comprising:

and the second selection unit is used for selecting the master equipment to reselect the tracking from other master equipment according to the tracking priority when judging that the communication fault exists between the second selection unit and the currently selected master equipment.

27. The apparatus of claim 19, wherein there are a plurality of said satellite times; and

the sending unit is further configured to send a satellite number corresponding to a second time difference to the main device while sending the second time difference to the main device.

28. The apparatus of claim 20, wherein there are a plurality of said satellite times;

the obtaining unit is configured to receive a satellite number corresponding to a first time difference value sent by the main device while receiving the first time difference value sent by the main device.

29. The apparatus of claim 21,

and the alarm unit is also used for sending the alarm information to the network management equipment and sending the satellite number corresponding to the alarm information to the network management equipment at the same time if a plurality of satellite time exists.

30. A time synchronization device is applied to a time synchronization network, the time synchronization network comprises a master device and a tracking device, and the time synchronization device is arranged in the master device; and

the apparatus, comprising:

a sending unit, configured to send time adjustment reference information to the tracking device, where the time adjustment reference information includes a first time difference between the master device and the satellite time received by the master device or a time synchronization adjustment value corresponding to the tracking device determined by the master device, and the tracking device adjusts local time according to the time synchronization adjustment value.

31. The apparatus of claim 30, further comprising:

the first determining unit is used for determining a first time difference value between local satellite time and self-received satellite time;

the first receiving unit is used for receiving a second time difference value sent by the tracking equipment, wherein the second time difference value is a time difference value between the local time of the tracking equipment and the satellite time received by the tracking equipment;

and the second determining unit is used for determining a time synchronization adjusting value corresponding to the tracking equipment according to the first time difference value and the second time difference value.

32. The apparatus of claim 31, further comprising:

the first judging unit is used for judging whether the time synchronization adjusting value is larger than a preset threshold value or not after the second determining unit determines the time synchronization adjusting value corresponding to the tracking equipment;

and the first alarm unit is used for sending alarm information to the network management equipment when the judgment result of the first judgment unit is yes.

33. The apparatus of claim 30, further comprising:

a second receiving unit, configured to receive the time synchronization adjustment value sent by the tracking device after the sending unit sends the time adjustment reference information to the tracking device;

the second judging unit is used for judging whether the time synchronization adjusting value is larger than a preset threshold value or not;

and the second alarm unit is used for sending alarm information to the network management equipment when the judgment result of the second judgment unit is yes.

34. The apparatus of claim 31,

the sending unit is further configured to send time adjustment reference information to the tracking device and send a satellite number corresponding to the time adjustment reference information to the tracking device at the same time if there are multiple satellite times.

35. A time synchronization system, comprising a master device and a tracking device, wherein the master device is provided with the time synchronization apparatus of any one of claims 30 to 34; the tracking device is provided with a time synchronization device as claimed in any one of claims 18-29.

36. A computing device comprising at least one processor and at least one memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any of claims 1 to 17.

37. A computer-readable medium, in which a computer program is stored which is executable by a computing device, the program, when run on the computing device, causing the computing device to perform the steps of the method of any of claims 1 to 17.

30页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种时间同步方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!