WO2019119228A1 - Method and apparatus for updating time, and movable platform - Google Patents

Method and apparatus for updating time, and movable platform Download PDF

Info

Publication number
WO2019119228A1
WO2019119228A1 PCT/CN2017/117010 CN2017117010W WO2019119228A1 WO 2019119228 A1 WO2019119228 A1 WO 2019119228A1 CN 2017117010 W CN2017117010 W CN 2017117010W WO 2019119228 A1 WO2019119228 A1 WO 2019119228A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
utc
preset
counter
local
Prior art date
Application number
PCT/CN2017/117010
Other languages
French (fr)
Chinese (zh)
Inventor
张岩松
彭夏鹏
房玲江
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN201780026754.6A priority Critical patent/CN109154796B/en
Priority to PCT/CN2017/117010 priority patent/WO2019119228A1/en
Publication of WO2019119228A1 publication Critical patent/WO2019119228A1/en

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • G04R20/02Setting the time according to the time information carried or implied by the radio signal the radio signal being sent by a satellite, e.g. GPS
    • G04R20/04Tuning or receiving; Circuits therefor
    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • G04R20/02Setting the time according to the time information carried or implied by the radio signal the radio signal being sent by a satellite, e.g. GPS
    • G04R20/06Decoding time data; Circuits therefor
    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R40/00Correcting the clock frequency
    • G04R40/06Correcting the clock frequency by computing the time value implied by the radio signal

Abstract

Embodiments of the present invention provide a method and apparatus for updating time, and a movable platform. The method comprises: obtaining at least two change amounts of a counter within a first preset period; averaging the at least two change amounts; determining the crystal oscillator frequency of the counter on the basis of the averaging result and the first preset period; and updating local time on the basis of the crystal oscillator frequency. The embodiments of the present invention can reduce the complexity of time update and reduce costs while ensuring time update accuracy, without requiring a dedicated hardware circuit.

Description

时间更新方法,装置及可移动平台Time update method, device and mobile platform 技术领域Technical field
本申请涉及时间校准技术领域,尤其涉及一种时间更新方法,装置及可移动平台。The present application relates to the field of time calibration technology, and in particular, to a time update method, device, and mobile platform.
背景技术Background technique
全球卫星导航系统(Global Navigation Satellite System,简称GNSS)已在全球得到广泛应用。当GNSS授时给其他设备时,其他设备通常需要专有的硬件电路来对本地的时间进行校准和更新,该硬件电路的体积、重量、复杂度及成本较高。The Global Navigation Satellite System (GNSS) has been widely used around the world. When GNSS grants time to other devices, other devices typically require proprietary hardware circuitry to calibrate and update local time, which is relatively large in size, weight, complexity, and cost.
发明内容Summary of the invention
本发明实施例提供一种时间更新方法,装置及可移动平台,用以在确保时间更新准确性的同时,降低时间更新的复杂度,降低成本。The embodiment of the invention provides a time update method, a device and a mobile platform, which can reduce the complexity of time update and reduce the cost while ensuring the accuracy of time update.
本发明实施例的第一方面是提供一种时间更新方法,包括:A first aspect of the embodiments of the present invention provides a time update method, including:
获取计数器的至少两个在第一预设时间内的变化量;Obtaining a change amount of at least two of the counters in the first preset time;
对所述至少两个变化量进行求平均处理;Performing an averaging process on the at least two variations;
基于所述求平均处理的结果和所述第一预设时间,确定所述计数器的晶振频率;Determining a crystal oscillator frequency of the counter based on a result of the averaging process and the first preset time;
基于所述晶振频率,更新本地时间。The local time is updated based on the crystal frequency.
本发明实施例的第二方面是提供一种时间更新方法,包括:A second aspect of the embodiments of the present invention provides a time update method, including:
获取计数器的两个以上的单位时间变化量;Obtaining more than two unit time variations of the counter;
对所述计数器的两个以上的单位时间变化量进行求平均处理,获得所述计数器的晶振频率;Performing an averaging process on two or more unit time variations of the counter to obtain a crystal oscillator frequency of the counter;
基于所述晶振频率,更新本地时间。The local time is updated based on the crystal frequency.
本发明实施例的第三方面是提供一种时间更新装置,包括:A third aspect of the embodiments of the present invention provides a time update apparatus, including:
一个或多个处理器;所述一个或多个处理器单独或协同工作;One or more processors; the one or more processors operating alone or in concert;
所述处理器用于:获取计数器的至少两个在第一预设时间内的变化量;对所述至少两个变化量进行求平均处理;基于所述求平均处理的结果和所 述第一预设时间,确定所述计数器的晶振频率;基于所述晶振频率,更新本地时间。The processor is configured to: acquire at least two changes of the counter in a first preset time; perform averaging processing on the at least two changes; and obtain a result and a solution based on the averaging process Determining a crystal frequency of the counter for a first preset time; updating a local time based on the crystal frequency.
本发明实施例的第四方面是提供一种时间更新装置,包括:A fourth aspect of the embodiments of the present invention provides a time update apparatus, including:
一个或多个处理器;所述一个或多个处理器单独或协同工作;One or more processors; the one or more processors operating alone or in concert;
所述处理器用于:获取计数器的两个以上的单位时间变化量;对所述计数器的两个以上的单位时间变化量进行求平均处理,获得所述计数器的晶振频率;基于所述晶振频率,更新本地时间。The processor is configured to: acquire two or more unit time change amounts of the counter; perform averaging processing on two or more unit time change amounts of the counter to obtain a crystal oscillator frequency of the counter; and based on the crystal oscillator frequency, Update local time.
本发明实施例的第五方面是提供一种可移动平台,包括:如上述第三方面或第四方面所述的时间更新装置。A fifth aspect of the present invention provides a mobile platform, comprising: the time update device according to the above third aspect or the fourth aspect.
本发明实施例第六方面是提供一种计算机可读存储介质,包括指令,当所述指令运行时,执行上述第一方面或第二方面所述的时间更新方法。A sixth aspect of the embodiments of the present invention provides a computer readable storage medium comprising instructions for performing the time update method of the first aspect or the second aspect when the instructions are executed.
本发明实施例提供的时间更新方法、处理器及可移动平台,通过获取计数器的至少两个在第一预设时间内的变化量,并对获取到的至少两个变化量进行求平均处理,基于求平均的结果和第一预设时间确定计数器的晶振频率,从而根据确定获得的晶振频率更新本地时间。由于本发明实施例中是通过对获取到的至少两个两个变化量进行求平均处理,并根据求平均处理的结果和第一预设时间来确定计数器的晶振频率,因此能够隔离晶振个体的差异,以及温度对晶振频率的影响,保证了计时器晶振频率的准确性和实时性,从而根据该晶振频率更新本地时间时能够得到准确的本地时间,并且不需要借助专用的硬件电路,节约了安装硬件电路所需要的空间,降低了成本。The time update method, the processor, and the mobile platform provided by the embodiment of the present invention obtain the change amount of at least two of the counters in the first preset time, and perform averaging processing on the acquired at least two change amounts, The crystal frequency of the counter is determined based on the result of the averaging and the first preset time, thereby updating the local time according to the determined crystal frequency. In the embodiment of the present invention, by averaging the obtained at least two two variation amounts, and determining the crystal frequency of the counter according to the result of the averaging process and the first preset time, the individual crystal oscillators can be isolated. The difference, as well as the effect of temperature on the crystal frequency, guarantees the accuracy and real-time performance of the timer crystal frequency, so that accurate local time can be obtained when the local time is updated according to the crystal frequency, and no special hardware circuit is needed, saving The space required to install the hardware circuit reduces the cost.
附图说明DRAWINGS
图1为本发明实施例提供的一种场景示意图;FIG. 1 is a schematic diagram of a scenario according to an embodiment of the present disclosure;
图2是本发明实施例提供的一种时间更新方法的流程图;2 is a flowchart of a time update method according to an embodiment of the present invention;
图3是本发明实施例提供的步骤204的执行方法流程图;FIG. 3 is a flowchart of a method for executing step 204 according to an embodiment of the present invention;
图4是本发明实施例提供的时间累积误差的更新方法的流程图;4 is a flowchart of a method for updating a time accumulation error according to an embodiment of the present invention;
图5是本发明实施例提供的一种时间更新装置的结构示意图;FIG. 5 is a schematic structural diagram of a time update apparatus according to an embodiment of the present invention; FIG.
图6是本发明实施例提供的一种可移动平台的结构示意图。FIG. 6 is a schematic structural diagram of a mobile platform according to an embodiment of the present invention.
具体实施方式 Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly described with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
需要说明的是,当组件被称为“固定于”另一个组件,它可以直接在另一个组件上或者也可以存在居中的组件。当一个组件被认为是“连接”另一个组件,它可以是直接连接到另一个组件或者可能同时存在居中组件。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。It should be noted that when a component is referred to as being "fixed" to another component, it can be directly on the other component or the component can be present. When a component is considered to "connect" another component, it can be directly connected to another component or possibly a central component. The features of the embodiments and examples described below can be combined with each other without conflict.
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。本文所使用的术语“及/或”包括一个或多个相关的所列项目的任意的和所有的组合。All technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs, unless otherwise defined. The terminology used in the description of the present invention is for the purpose of describing particular embodiments and is not intended to limit the invention. The term "and/or" used herein includes any and all combinations of one or more of the associated listed items.
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present invention are described in detail below with reference to the accompanying drawings. The features of the embodiments and examples described below can be combined with each other without conflict.
图1为本发明实施例提供的一种场景示意图,图1中包括卫星10、卫星接收机11和接受授时的装置12,其中,本实施例中卫星接收机11安装在接受授时的装置12上,但不局限于安装在装置12上,实际上,卫星接收机11和装置12可以分别设置成两个独立的实体。本实施例中装置12可以被具体为无人机、汽车或其他可移动平台。当卫星10授时时,卫星10向外产生一个秒脉冲(Pulse Per Second,简称PPS)信号,同时通过通信链路(比如串口或总线,但不局限于串口或总线)将PPS信号的上升沿或下降沿对应的世界标准时间(UTC)发送出去。卫星接收机11接收到卫星10的PPS信号,以及对应的UTC之后,将该PPS信号引入装置12的外部终端中,并在引入PPS信号之后的第二预设时间内,通过通信链路将该PPS信号对应的UTC发送给装置12,装置12会以中断的形式响应卫星接收机11输出PPS信号这一事件。进一步的,在接收到UTC后,装置12对本地时间进行初始化处理,将本地时间更新为UTC,并通过获取至少两个计数器在第一预设时间内的变化量,基于对获取到的至少两个变化量的求平均结果和第一预设时间来确定计数器的晶振频率,基于该晶振频率, 更新本地时间,从而能够获得准确的本地时间,并且不需要借助专用的硬件电路,因此,能够节约装置12的空间,降低装置12的重量,降低成本。FIG. 1 is a schematic diagram of a scenario according to an embodiment of the present invention. FIG. 1 includes a satellite 10, a satellite receiver 11 and a device 12 for receiving timing. The satellite receiver 11 in the embodiment is installed on the device 12 for receiving time. However, it is not limited to being mounted on the device 12. In fact, the satellite receiver 11 and the device 12 can be provided as two separate entities, respectively. The device 12 in this embodiment may be specifically a drone, a car or other movable platform. When the satellite 10 grants time, the satellite 10 generates a Pulse Per Second (PPS) signal, and the rising edge of the PPS signal is transmitted through a communication link (such as a serial port or a bus, but not limited to a serial port or a bus). The falling edge is sent out corresponding to World Standard Time (UTC). After receiving the PPS signal of the satellite 10 and the corresponding UTC, the satellite receiver 11 introduces the PPS signal into the external terminal of the device 12, and the second preset time after the introduction of the PPS signal, the communication link The UTC corresponding to the PPS signal is sent to the device 12, and the device 12 responds to the event that the satellite receiver 11 outputs the PPS signal in the form of an interrupt. Further, after receiving the UTC, the device 12 performs initialization processing on the local time, updates the local time to UTC, and acquires at least two acquired values by acquiring the change amount of the at least two counters in the first preset time. The averaging result of the change amount and the first preset time to determine the crystal frequency of the counter, based on the crystal frequency, The local time is updated so that accurate local time can be obtained without the need for dedicated hardware circuitry, thereby saving space in the device 12, reducing the weight of the device 12, and reducing costs.
具体的,图2是本发明实施例提供的一种时间更新方法的流程图,该方法可以由一种时间更新装置来执行,该装置可以被具体为具有运算和处理能力的处理器,或者诸如无人机,汽车等可移动平台。如图2所示,该方法包括如下步骤:Specifically, FIG. 2 is a flowchart of a time update method according to an embodiment of the present invention. The method may be performed by a time update device, which may be specifically a processor with computing and processing capabilities, or UAV, car and other mobile platforms. As shown in FIG. 2, the method includes the following steps:
步骤201、获取计数器的至少两个在第一预设时间内的变化量。Step 201: Acquire at least two changes of the counter in a first preset time.
在一种可能的实现方式中,可以先通过获取计数器的三个以上的计数值,使得该三个以上的计数值中包括至少两组计数值之间的时间间隔等于第一预设时间,再基于获取到的三个以上的计数值中的至少两组计数值,计算获得至少两个第一预设时间内的变化量。比如,获取到的计数值为a,b,c,其中,a与b以及b与c之间的时间间隔等于第一预设时间,计算计时器的变化量为|a-b|和|c-b|。当然这里仅为示例说明,而不是对本发明的唯一限定。In a possible implementation manner, the three or more count values of the counter may be acquired, so that the time interval between the three or more count values including at least two sets of count values is equal to the first preset time, and then And calculating, according to at least two sets of the count values of the obtained three or more count values, the change amount of the at least two first preset time periods. For example, the obtained count value is a, b, c, wherein the time interval between a and b and b and c is equal to the first preset time, and the amount of change of the calculation timer is |a-b| and |c-b|. Of course, this is for illustrative purposes only and is not a limitation of the invention.
在另一种可能的实现方式中,可以先分别获取计数器在两个以上的第一预设时间中的起始计数值和终止计数值,再基于计数器在该两个以上的第一预设时间中的起始计数值和终止计数值,计算获得至少两个第一预设时间内的变化量。比如,假设计数器在第1秒的计数值为a,在第2秒的计数值为b,在第3秒的计数值为c,在第4秒的计数值为d,则至少可获得计数器在第一预设时间内如下变化量:|a-b|、|c-b|、|c-d|。当然这里仅为示例说明,而不是对本发明的唯一限定。In another possible implementation manner, the start count value and the end count value of the counter in the two or more first preset times may be separately acquired, and then based on the counter at the two or more first preset times. The initial count value and the end count value are calculated, and the amount of change in at least two first preset time periods is calculated. For example, suppose that the counter has a count value of a in the first second, a count value of b in the second second, a count value of c in the third second, and a count value of d in the fourth second, at least the counter can be obtained. The following changes in the first preset time are: |ab|, |cb|, |cd|. Of course, this is for illustrative purposes only and is not a limitation of the invention.
可选的,为了确保获取到的变化量的准确性,本实施例还可以通过获取计数器的翻转周期数,并结合上述两种可能的实现方式中任意一种实现方式获取到的计数器的计数值来计算获得计数器在第一预设时间内的变化量。Optionally, in order to ensure the accuracy of the obtained amount of change, the embodiment may also obtain the counter value of the counter obtained by acquiring the number of inversion cycles of the counter and combining any one of the two possible implementation manners. To calculate the amount of change in the counter for the first preset time.
以第一预设时间等于1秒为例,假设计数器在第1秒时的计数值为counter(n-1),在第2秒时的计数值为counter(n),计数器的翻转周期数为T_counter,则可以根据如下表达式计算获得计数器在1秒钟内的变化量delta(n):Taking the first preset time equal to 1 second as an example, assume that the count value of the counter at the first second is counter(n-1), the count value at the second second is counter(n), and the number of flip cycles of the counter is T_counter, you can calculate the delta(n) of the counter in 1 second according to the following expression:
delta(n)=[counter(n)-counter(n-1)+T_counter]%T_counter Delta(n)=[counter(n)-counter(n-1)+T_counter]%T_counter
当然这里仅为示例说明,而不是对本发明的唯一限定。Of course, this is for illustrative purposes only and is not a limitation of the invention.
可选的,本实施例中,第一预设时间可以指一个统一的时间值,比如1秒,但不局限于1秒。也可以指多个不同的时间值,比如,可以根据设定将1秒,2秒,3秒等都统称为第一预设时间。当然当然这里仅为示例说明,而不是对本发明的唯一限定。Optionally, in this embodiment, the first preset time may refer to a unified time value, such as 1 second, but is not limited to 1 second. It can also refer to a plurality of different time values. For example, 1 second, 2 seconds, 3 seconds, etc. can be collectively referred to as a first preset time according to the setting. Of course, this is for illustrative purposes only and is not a limitation of the invention.
本实施例还以直接获取计数器的两个以上的单位时间变化量,比如,获取计数器在第1秒的变化量,第2秒的变化量,第3秒的变化量等,当然这里仅为示例说明而不是对本发明的唯一限定。In this embodiment, two or more unit time changes of the counter are directly acquired, for example, the amount of change of the counter in the first second, the amount of change in the second second, the amount of change in the third second, etc., of course, only examples The description is not intended to be a limitation of the invention.
步骤202、对所述至少两个变化量进行求平均处理。Step 202: Perform averaging processing on the at least two changes.
在第一种可能的平均处理方式中,可以直接对获取到的所有变化量进行求平均处理。In the first possible average processing mode, all the obtained changes can be directly averaged.
在第二种可能的实现方式中,可以在获取到的第一预设时间的变化量的数量大于两个时,先从获取到的所有变化量中去除其中的最大值和/或最小值,再对去除最大值和/或最小值剩下的变化量进行求平均处理。In a second possible implementation manner, when the number of the first preset time changes is greater than two, the maximum value and/or the minimum value may be removed from all the obtained changes. The averaging process is performed on the amount of change remaining to remove the maximum value and/or the minimum value.
承接上例,假设,获取到的计数器在第一预设时间(上例中为1秒)内的变化量的数量大于预设的采样数量filter_num,则可以通过如下滤波算法对获取到的变化量进行平均滤波处理,求得平均结果
Figure PCTCN2017117010-appb-000001
According to the above example, it is assumed that the acquired counter has a larger amount of change in the first preset time (1 second in the above example) than the preset number of samples filter_num, and the obtained change amount can be obtained by the following filtering algorithm. Perform average filtering to obtain average results
Figure PCTCN2017117010-appb-000001
delta_min=Min{delta(n-filter_num+1)…delta(n)}Delta_min=Min{delta(n-filter_num+1)...delta(n)}
delta_max=Max{delta(n-filter_num+1)…delta(n)}Delta_max=Max{delta(n-filter_num+1)...delta(n)}
Figure PCTCN2017117010-appb-000002
Figure PCTCN2017117010-appb-000002
其中,filter_num可以取6~8范围内的任意值,但不局限于6~8,实际上filter_num的取值可以根据需要进行设定,本实施例中不做限定。本实施例中,将filter_num的取取值范围设置为6~8可以避免filter_num设置的过导致无法消除干扰,或者设置的过大导致反应迟钝,无法对温度变化做出快速响应。这里需要说明的是,当第一预设时间为1秒,即单位时间时,上述获得的
Figure PCTCN2017117010-appb-000003
即为求得的计数器的晶振频率,若第一预设时间不为单位时间时,则需要进一步根据
Figure PCTCN2017117010-appb-000004
和第一预设时间确定计数器的晶振频率。
The filter_num can take any value in the range of 6-8, but is not limited to 6-8. In fact, the value of the filter_num can be set as needed, which is not limited in this embodiment. In this embodiment, setting the value range of the filter_num to 6 to 8 can prevent the filter_num from being set too much, so that the interference cannot be eliminated, or the setting is too large, resulting in unresponsiveness and rapid response to temperature changes. It should be noted here that when the first preset time is 1 second, that is, unit time, the above obtained
Figure PCTCN2017117010-appb-000003
That is, the crystal frequency of the counter obtained. If the first preset time is not the unit time, further basis is needed.
Figure PCTCN2017117010-appb-000004
And determining the crystal frequency of the counter with the first preset time.
当然,上述示例仅是对上述第二种可能的实现方式的示例说明,而不是对本发明的唯一限定。 Of course, the above examples are merely illustrative of the second possible implementation described above, and are not intended to be limiting of the invention.
在第三种可能的实现方式中,可以先从获取到的至少两个变化量中提取出数值大小在第一预设范围内的目标变化量,以从所有获取到的变化量中去除异常值。进一步的,再对提取获取的所有目标变化量进行求平均处理。In a third possible implementation, the target change amount whose value is within the first preset range may be extracted from the obtained at least two change amounts to remove the abnormal value from all the acquired change amounts. . Further, all the target change amounts obtained by the extraction are averaged.
步骤203、基于所述求平均处理的结果和所述第一预设时间,确定所述计数器的晶振频率。Step 203: Determine a crystal oscillator frequency of the counter based on a result of the averaging process and the first preset time.
当第一预设时间指代的是预设的一个统一的时间值时,可以利用求平均处理得到的平均变化量除以第一预设时间,获得计数器的晶振频率。When the first preset time refers to a preset unified time value, the average change amount obtained by the averaging process may be divided by the first preset time to obtain the crystal frequency of the counter.
当第一预设时间指代的是预设的多个时间长度时,则可以通过对获取到的所有变化量所对应的第一预设时间进行求平均处理,得到平均时间长度,再利用前述计算获得的平均变化量除以平均时间长度,获得计数器的晶振频率。When the first preset time refers to a preset plurality of time lengths, the average time length may be obtained by averaging the first preset time corresponding to all the acquired changes, and then using the foregoing Calculate the average change obtained by dividing the average time length to obtain the crystal frequency of the counter.
步骤204、基于所述晶振频率,更新本地时间。Step 204: Update the local time based on the crystal frequency.
可选的,本实施例可以根据预设周期,周期性的更新本地时间,其中,预设周期可以是任意值,比如,实际场景中,可以将预设阈值设置为小于计数器的翻转周期数与计数器的晶振频率的比值的任意值,以避免计数器溢出导致时间损失。Optionally, in this embodiment, the local time may be periodically updated according to a preset period, where the preset period may be any value. For example, in an actual scenario, the preset threshold may be set to be smaller than the number of flipping periods of the counter. Any value of the ratio of the crystal frequency of the counter to avoid time loss due to counter overflow.
可选的,图3是本发明实施例提供的步骤204的执行方法流程图,如图3所示,该方法包括:Optionally, FIG. 3 is a flowchart of a method for performing step 204 according to an embodiment of the present invention. As shown in FIG. 3, the method includes:
步骤301、获取所述计数器在本地时间初始化时刻到当前时刻时间内的变化量。Step 301: Acquire a change amount of the counter from a local time initialization time to a current time instant.
在一种可能的实现方式中,可以直接通过计数器在当前时刻的计数值减去计数器在本地时间初始化时刻的计数值,得到计数器在本地时间初始化时刻到当前时刻时间内的变化量。In a possible implementation manner, the counter value of the counter at the local time initialization time may be directly subtracted from the counter value of the current time by the counter, and the amount of change of the counter from the local time initialization time to the current time instant may be obtained.
在另一种可能的实现方式中,可以基于计数器的翻转周期数,以及计数器在本地时间初始化时刻的计数值和当前时刻的计数值,计算获得计数器在本地时间初始化时刻到当前时刻时间内的变化量。其具体执行方法可以参见步骤201中求解计数器1秒钟内变化量的示例,在这里不再赘述。In another possible implementation manner, based on the number of flipping periods of the counter, and the counter value of the counter at the local time initialization time and the current time count value, the change of the counter from the local time initialization time to the current time can be calculated. the amount. For the specific implementation method, refer to the example in step 201 for solving the change amount of the counter within 1 second, and details are not described herein again.
步骤302、基于所述计数器在所述时间内的变化量和所述计数器的所述晶振频率,确定偏差时间。 Step 302: Determine a deviation time based on the amount of change of the counter during the time and the crystal frequency of the counter.
示例的,可以通过如下表达式计算获得偏差时间delta_s:For example, the deviation time delta_s can be obtained by the following expression calculation:
delta_s=delta_counter/freqDelta_s=delta_counter/freq
其中,delta_counter为计数器在本地时间初始化时刻到当前时刻时间内的变化量,freq为计数器的晶振频率。当然实际场景中计算偏差时间也可以不局限于上述示例的方法,也可以根据需要采用其他自定义的方法。Among them, delta_counter is the amount of change of the counter from the local time initialization time to the current time, and freq is the crystal frequency of the counter. Of course, the calculation of the deviation time in the actual scenario may not be limited to the method of the above example, and other customized methods may be adopted as needed.
步骤303、基于所述偏差时间,对本地时间进行修正,获得当前时刻的时间。Step 303: Correct the local time based on the deviation time to obtain the current time.
可选的,在一种可能的实现方式中,可以直接利用如下表达式对本地时间进行修正,获得当前时刻的时间:Optionally, in a possible implementation manner, the local time can be directly modified by using the following expression to obtain the current time:
local_now=local_time+delta_sLocal_now=local_time+delta_s
其中,local_now为修正后得到的当前时刻的时间,local_time为修正前的本地时间。当然这里仅为示例说明而不是对本发明的唯一限定。Where local_now is the time of the current time obtained after the correction, and local_time is the local time before the correction. Of course, this is merely an illustration and not a limitation of the invention.
在另一种可能的实现方式中,可以基于偏差时间和预先确定的时间累积误差,对本地时间进行修正,获得当前时刻的准确时间,示例的,在这种方式中,求解当前时刻时间的表达式可以表示为如下形式:In another possible implementation manner, the local time can be corrected based on the deviation time and the predetermined time cumulative error, and the accurate time of the current time is obtained. For example, in this manner, the expression of the current time and time is solved. The formula can be expressed as follows:
local_now=local_time+delta_s+T_error_filterLocal_now=local_time+delta_s+T_error_filter
其中,T_error_filter为预先确定的时间累积误差。Where T_error_filter is a predetermined time cumulative error.
可选的,在本实施例中,当时间更新装置接收到UTC之后,还可以基于接收到的UTC以及接收到UTC时的本地时间,更新上述方法涉及的时间累积误差。这其中可以接收到一次UTC就更新一次时间累积误差,也可以根据预先设定的策略,每接收到预设数量的UTC,更新一次本地的时间累积误差。Optionally, in this embodiment, after the time update device receives the UTC, the time accumulation error involved in the foregoing method may also be updated based on the received UTC and the local time when the UTC is received. In this case, the time accumulation error may be updated once the UTC is received, or the local time accumulation error may be updated every time a preset number of UTCs are received according to a preset strategy.
以每接收到预设数量的UTC,更新一次时间累积误差为例,图4是本发明实施例提供的时间累积误差的更新方法的流程图,如图4所示,时间累积误差的更新方法包括:For example, a time accumulation error is updated every time a preset number of UTCs are received. FIG. 4 is a flowchart of a method for updating a time accumulation error according to an embodiment of the present invention. As shown in FIG. 4, the method for updating the time accumulation error includes :
步骤401、每接收到一个UTC,计算一次本地的时间累积误差。Step 401: Calculate a local time accumulation error every time a UTC is received.
示例的,可以根据如下表达式计算本地的时间累积误差:For example, the local time cumulative error can be calculated according to the following expression:
T_error=UTC-local_timeT_error=UTC-local_time
其中,local_time为接收到UTC时的本地时间,T_error为接收到UTC时本地的时间累积误差。 Where local_time is the local time when UTC is received, and T_error is the local accumulated error when UTC is received.
可选的,若在接收到UTC时,计算获得的时间累积误差的绝对值小于第一预设阈值,则确定本次接收到UTC时对应的本地的时间累积误差为预设值(比如,“0”但不局限于0),并将本地的时间累积误差更新为预设值。Optionally, if the absolute value of the time cumulative error obtained by the calculation is less than the first preset threshold when the UTC is received, determining that the local cumulative time error corresponding to the current UTC is a preset value (eg, “ 0" but not limited to 0), and update the local time cumulative error to a preset value.
若在接收到UTC时,计算获得的时间累积误差的绝对值大于或等于第一预设阈值,则确定本次接收到UTC时对应的本地的时间累积误差等于接收到该UTC之前的时间累积误差。If the absolute value of the time cumulative error obtained by the calculation is greater than or equal to the first preset threshold when the UTC is received, it is determined that the local cumulative time error corresponding to the UTC received this time is equal to the cumulative error of the time before the UTC is received. .
若在接收到UTC时,计算获得的时间累积误差的绝对值大于第二预设阈值,则基于预设的时间累积误差与第二预设阈值之间的关联关系,确定当前本地的时间累积误差,并将本地的时间累积误差更新为确定获得的时间累积误差。其中,上述时间累积误差与第二预设阈值之间的关联关系可表示为:If the absolute value of the time cumulative error obtained by the calculation is greater than the second preset threshold when the UTC is received, determining the current local time cumulative error based on the association between the preset time cumulative error and the second preset threshold And update the local time cumulative error to determine the cumulative time error obtained. The relationship between the time accumulated error and the second preset threshold may be expressed as:
T_error_now=sign(T_error)*limitT_error_now=sign(T_error) * limit
其中,T_error_now为当前本地的时间累积误差,T_error为接收到UTC前本地的时间累积误差,limit为第二预设阈值(比如1秒,但不局限与1秒),sign()是取符号,正数为1,负数为-1。Where T_error_now is the current local cumulative error, T_error is the cumulative time error before receiving UTC, and limit is the second preset threshold (such as 1 second, but not limited to 1 second), and sign() is the symbol. The positive number is 1 and the negative number is -1.
若在接收到UTC时,计算获得的时间累积误差的绝对值小于或等于第二预设阈值,则确定本次接收到UTC时对应的本地的时间累积误差等于接收到该UTC之前的时间累积误差。If the absolute value of the time cumulative error obtained by the calculation is less than or equal to the second preset threshold when the UTC is received, it is determined that the local cumulative time error corresponding to the UTC received this time is equal to the cumulative error of the time before the UTC is received. .
步骤402、在接收到预设数量的UTC后,对计算获得的预设数量的时间累积误差进行中值滤波处理,获得所述预设数量的时间累积误差的中值。Step 402: After receiving the preset number of UTCs, performing a median filtering process on the calculated preset number of time cumulative errors to obtain a median value of the preset number of time accumulated errors.
示例的,假设在接收到3个UTC后更新本地的时间累积误差,其中,在接收到第一个UTC时,计算的时间累积误差为T_error1,在接收到第二个UTC时,计算的时间累积误差为T_error2,在接收到第三个UTC时,计算的时间累积误差为T_error3,则进行中值滤波处理后得到的时间累积误差的中值为:T_error_filter=Mid{T_error1T_error2T_error3} By way of example, assume that the local time cumulative error is updated after receiving three UTCs, where the calculated time cumulative error is T_error 1 when the first UTC is received and the calculated time when the second UTC is received The cumulative error is T_error 2. When the third UTC is received, the calculated time cumulative error is T_error 3 , and the median time cumulative error obtained after the median filtering process is: T_error_filter=Mid{T_error 1 T_error 2 T_error 3 } .
当然,虽然本实施例采用的中值滤波的方法,获得并更新本地的时间累积误差,但是实际中并不局限于中值滤波的方法,实际上,还可以在获得预设数量的时间累积误差后,根据求平均的方法来确定本地的时间累积误差。 Of course, although the median filtering method used in this embodiment obtains and updates the local time accumulation error, the actual method is not limited to the median filtering method. In fact, it is also possible to obtain a preset number of time cumulative errors. After that, the local time accumulation error is determined according to the method of averaging.
步骤403、将本地的时间累积误差更新为所述中值。Step 403: Update the local time accumulation error to the median value.
本实施例提供的时间更新方法,即使时间更新装置因故收不到PPS信号和UTC,也能在较长一段时间内提供较高精度的时间,提高了时间更新的可靠性,另外,本实施例通过在接收到UTC后确定并更新本地的时间累积误差,将时间累积误差作为时间更新的一个考虑因素,能够消除随时间累加导致的误差,提高时间更新的精确度。The time update method provided in this embodiment can provide a higher precision time for a longer period of time and improve the reliability of time update even if the time update device fails to receive the PPS signal and UTC for any reason, and the implementation is improved. In the example, by determining and updating the local time accumulation error after receiving the UTC, the time accumulation error is taken as a consideration of the time update, which can eliminate the error caused by the accumulation over time and improve the accuracy of the time update.
可选的,本实施例还以直接获取计数器的两个以上的单位时间变化量,对计数器的两个以上的单位时间变化量进行求平均处理,获得计数器的晶振频率;基于该晶振频率,更新本地时间。其具体执行过程与上述方法实施例类似,在这里不再赘述。Optionally, in this embodiment, two or more unit time variations of the counter are directly obtained by averaging two or more unit time changes of the counter to obtain a crystal frequency of the counter; and updating based on the crystal frequency local time. The specific implementation process is similar to the foregoing method embodiment, and details are not described herein again.
本实施例提供的时间更新方法、处理器及可移动平台,通过获取至少两个计数器在第一预设时间内的变化量,并对获取到的至少两个变化量进行求平均处理,基于求平均的结果和第一预设时间确定计数器的晶振频率,从而根据确定获得的晶振频率更新本地时间。由于本实施例中是通过对获取到的至少两个两个变化量进行求平均处理,并根据求平均处理的结果和第一预设时间来确定计数器的晶振频率,因此能够隔离晶振个体的差异,以及温度对晶振频率的影响,保证了计时器晶振频率的准确性和实时性,从而根据该晶振频率更新本地时间时能够得到准确的本地时间,并且不需要借助专用的硬件电路,节约了安装硬件电路所需要的空间,降低了成本。The time update method, the processor, and the mobile platform provided by the embodiment obtain the change amount of the at least two counters in the first preset time, and perform averaging processing on the acquired at least two change amounts, The average result and the first preset time determine the crystal frequency of the counter, thereby updating the local time based on the determined crystal frequency. In this embodiment, by averaging the acquired at least two two variations, and determining the crystal frequency of the counter according to the result of the averaging process and the first preset time, the difference of the individual crystal oscillators can be isolated. And the effect of temperature on the crystal frequency, ensuring the accuracy and real-time of the timer crystal frequency, so that accurate local time can be obtained when the local time is updated according to the crystal frequency, and no special hardware circuit is needed, which saves installation. The space required by the hardware circuit reduces the cost.
图5是本发明实施例提供的一种时间更新装置的结构示意图,该时间更新装置可以安装在任何具有时间计时和时间更新功能的设备上,尤其可以安装在无人机等可移动平台上。如图5所示,该时间更新装置50包括:一个或多个处理器51;所述一个或多个处理器单独或协同工作;所述处理器用于:获取计数器的至少两个在第一预设时间内的变化量;对所述至少两个变化量进行求平均处理;基于所述求平均处理的结果和所述第一预设时间,确定所述计数器的晶振频率;基于所述晶振频率,更新本地时间。FIG. 5 is a schematic structural diagram of a time update apparatus according to an embodiment of the present invention. The time update apparatus may be installed on any device having a timekeeping and time update function, and may be installed on a mobile platform such as a drone. As shown in FIG. 5, the time update device 50 includes: one or more processors 51; the one or more processors work alone or in cooperation; the processor is configured to: acquire at least two of the counters in the first pre- Setting an amount of change in the time; averaging the at least two changes; determining a crystal frequency of the counter based on the result of the averaging process and the first preset time; based on the crystal frequency , update local time.
可选的,所述处理器51用于:获取计数器的三个以上的计数值,所述三个以上的计数值中包括至少两组计数值之间的时间间隔为第一预设时间,基于所述三个以上的计数值中的所述至少两组计数值,计算获得至 少两个第一预设时间内的变化量。Optionally, the processor 51 is configured to: acquire three or more count values of the counter, where the three or more count values include a time interval between the at least two sets of count values as a first preset time, based on The at least two sets of the count values of the three or more count values are calculated and obtained to There are two changes in the first preset time.
可选的,处理器用于:分别获取计数器在两个以上的第一预设时间中的起始计数值和终止计数值;基于所述计数器在所述两个以上的第一预设时间中的起始计数值和终止计数值,计算获得至少两个第一预设时间内的变化量。Optionally, the processor is configured to: respectively acquire a start count value and a stop count value of the counter in two or more first preset times; and based on the counter in the two or more first preset times The start count value and the end count value are calculated to obtain the amount of change in at least two first preset time periods.
可选的,所述处理器51用于:获取所述计数器的翻转周期数,基于所述计数器在所述两个以上的第一预设时间中的起始计数值和终止计数值,以及所述计数器的翻转周期数,计算获得至少两个第一预设时间内的变化量。Optionally, the processor 51 is configured to: obtain a number of inversion cycles of the counter, based on a start count value and a stop count value of the counter in the two or more first preset times, and The number of inversion cycles of the counter is calculated, and the amount of change in at least two first preset time periods is calculated.
可选的,所述处理器51用于:当获取到的所述第一预设时间的变化量的数量大于两个时,去除获取到的所有第一预设时间的变化量中的最大值和/或最小值,对去除最大值和/或最小值后剩余的第一预设时间的变化量进行求平均处理。Optionally, the processor 51 is configured to: when the acquired quantity of the first preset time is greater than two, remove the maximum value of the acquired first preset time And/or the minimum value, the averaging process is performed on the amount of change of the first preset time remaining after the maximum value and/or the minimum value are removed.
可选的,所述处理器51用于:对获取到的所述至少两个变化量中的目标变化量进行求平均处理,其中,所述目标变化量为数值大小在第一预设范围内的变化量。Optionally, the processor 51 is configured to: perform averaging processing on the acquired target change amount in the at least two change amounts, where the target change amount is a value within a first preset range The amount of change.
可选的,所述处理器51用于:对本地时间进行初始化处理。Optionally, the processor 51 is configured to: perform initialization processing on the local time.
可选的,所述处理器51用于:在接收到秒脉冲PPS信号之后的第二预设时间内接收发送设备发送的世界标准时间UTC,所述UTC对应所述PPS信号上升沿或下降沿的时刻,将所述本地时间更新为所述UTC。Optionally, the processor 51 is configured to: receive, according to a second preset time after receiving the second pulse PPS signal, a world standard time UTC sent by the sending device, where the UTC corresponds to a rising edge or a falling edge of the PPS signal. At the moment, the local time is updated to the UTC.
可选的,所述处理器51用于:获取所述计数器在本地时间初始化时刻到当前时刻时间内的变化量,基于所述计数器在所述时间内的变化量和所述计数器的所述晶振频率,确定偏差时间,基于所述偏差时间,对本地时间进行修正,获得当前时刻的时间。Optionally, the processor 51 is configured to: acquire an amount of change of the counter from a local time initialization time to a current time, based on the amount of change of the counter in the time and the crystal oscillator of the counter The frequency, the deviation time is determined, and the local time is corrected based on the deviation time to obtain the current time.
可选的,所述处理器51用于:基于所述计数器的翻转周期数,以及所述计数器在本地时间初始化时刻的计数值和当前时刻的计数值,计算获得所述计数器在本地时间初始化时刻到当前时刻时间内的变化量。Optionally, the processor 51 is configured to: obtain, according to the number of inversion cycles of the counter, the count value of the counter at the local time initialization time and the current time count value, and obtain the initialization time of the counter at the local time. The amount of change to the current time.
可选的,所述处理器51用于:基于所述偏差时间和预先确定的时间累积误差,对本地时间进行修正,获得当前时刻的时间。Optionally, the processor 51 is configured to: correct the local time based on the deviation time and a predetermined time accumulation error, and obtain the current time.
可选的,所述处理器51用于:在接收到所述UTC后,基于所述UTC 与接收到所述UTC时的本地时间,更新本地的时间累积误差。Optionally, the processor 51 is configured to: after receiving the UTC, based on the UTC The local time accumulation error is updated with the local time when the UTC is received.
可选的,所述处理器51用于:每接收到预设数量的UTC,更新一次本地的时间累积误差。Optionally, the processor 51 is configured to: update the local time accumulation error every time a preset number of UTCs are received.
可选的,所述处理器51用于:每接收到一个UTC,计算一次本地的时间累积误差,在接收到预设数量的UTC后,对计算获得的预设数量的时间累积误差进行中值滤波处理,获得所述预设数量的时间累积误差的中值,将本地的时间累积误差更新为所述中值。Optionally, the processor 51 is configured to: calculate a local time cumulative error every time a UTC is received, and perform a median value of the calculated preset amount of time cumulative error after receiving the preset number of UTCs. The filtering process obtains a median value of the preset number of time accumulation errors, and updates the local time cumulative error to the median value.
可选的,所述处理器51用于:在接收到UTC时,若所述UTC与接收到所述UTC时的本地时间的差值绝对值小于第一预设阈值,则确定所述UTC对应的时间累积误差等于预设值;若所述UTC与接收到所述UTC时的本地时间的差值绝对值大于或等于第一预设阈值,则所述UTC对应的时间累积误差等于接收到所述UTC之前的时间累积误差。Optionally, the processor 51 is configured to: when the UTC is received, if the absolute value of the difference between the UTC and the local time when the UTC is received is less than a first preset threshold, determine the UTC corresponding The accumulated time error is equal to the preset value; if the absolute value of the difference between the UTC and the local time when the UTC is received is greater than or equal to the first preset threshold, the cumulative error of the time corresponding to the UTC is equal to the received The cumulative error before the UTC.
可选的,所述处理器51用于:在接收到UTC时,若所述UTC与接收到所述UTC时的本地时间的差值绝对值大于第二预设阈值,则基于预设的时间累积误差与所述第二预设阈值之间的关联关系,确定所述UTC对应的时间累积误差;若所述UTC与接收到所述UTC时的本地时间的差值绝对值小于或等于所述第二预设阈值,则所述UTC对应的时间累积误差等于接收到所述UTC之前的时间累积误差。Optionally, the processor 51 is configured to: when receiving the UTC, if the absolute value of the difference between the UTC and the local time when the UTC is received is greater than a second preset threshold, based on the preset time Determining, by the relationship between the cumulative error and the second preset threshold, a time cumulative error corresponding to the UTC; if the absolute value of the difference between the UTC and the local time when the UTC is received is less than or equal to the The second preset threshold, then the time cumulative error corresponding to the UTC is equal to the time cumulative error before receiving the UTC.
可选的,所述处理器51用于:基于预设周期更新本地时间,所述预设周期小于所述计数器的翻转周期数与所述计数器的晶振频率的比值。Optionally, the processor 51 is configured to: update a local time based on a preset period, where the preset period is smaller than a ratio of a number of inversion cycles of the counter to a crystal oscillator frequency of the counter.
本实施例提供的时间更新装置能够用于执行上述方法实施例的技术方案,其执行方式和有益效果类似,在这里不再赘述。The time update device provided in this embodiment can be used to perform the technical solution of the foregoing method embodiment, and the execution manner and the beneficial effect are similar, and details are not described herein again.
本发明还提供一种时间更新装置,该时间更新装置包括一个或多个处理器;所述一个或多个处理器单独或协同工作;The present invention also provides a time update device comprising one or more processors; the one or more processors operating alone or in cooperation;
所述处理器用于:获取计数器的两个以上的单位时间变化量;对所述计数器的两个以上的单位时间变化量进行求平均处理,获得所述计数器的晶振频率;基于所述晶振频率,更新本地时间。The processor is configured to: acquire two or more unit time change amounts of the counter; perform averaging processing on two or more unit time change amounts of the counter to obtain a crystal oscillator frequency of the counter; and based on the crystal oscillator frequency, Update local time.
本实施例提供的时间更新装置能够用于执行上述方法实施例的技术方案,其执行方式和有益效果类似,在这里不再赘述。 The time update device provided in this embodiment can be used to perform the technical solution of the foregoing method embodiment, and the execution manner and the beneficial effect are similar, and details are not described herein again.
图6是本发明实施例提供的一种可移动平台的结构示意图,如图6所示,可移动平台60包括如上述实施例所述的时间更新装置50。FIG. 6 is a schematic structural diagram of a mobile platform according to an embodiment of the present invention. As shown in FIG. 6, the mobile platform 60 includes a time update device 50 as described in the foregoing embodiment.
本发明实施例还提供一种计算机可读存储介质,包括指令,当所述指令运行时,执行上述实施例的时间更新方法。The embodiment of the invention further provides a computer readable storage medium, comprising instructions for executing the time update method of the above embodiment when the instruction is executed.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述 各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art will clearly understand that for the convenience and brevity of the description, only the above The division of each functional module is illustrated. In practical applications, the above function assignment can be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the device described above, refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (38)

  1. 一种时间更新方法,其特征在于,包括:A time update method, comprising:
    获取计数器的至少两个在第一预设时间内的变化量;Obtaining a change amount of at least two of the counters in the first preset time;
    对所述至少两个变化量进行求平均处理;Performing an averaging process on the at least two variations;
    基于所述求平均处理的结果和所述第一预设时间,确定所述计数器的晶振频率;Determining a crystal oscillator frequency of the counter based on a result of the averaging process and the first preset time;
    基于所述晶振频率,更新本地时间。The local time is updated based on the crystal frequency.
  2. 根据权利要求1所述的方法,其特征在于,所述获取计数器的至少两个在第一预设时间内的变化量,包括:The method according to claim 1, wherein the obtaining the amount of change of the at least two counters in the first preset time comprises:
    获取计数器的三个以上的计数值,所述三个以上的计数值中包括至少两组计数值之间的时间间隔为第一预设时间;Obtaining three or more count values of the counter, wherein the three or more count values include a time interval between the at least two sets of count values as a first preset time;
    基于所述三个以上的计数值中的所述至少两组计数值,计算获得至少两个第一预设时间内的变化量。And calculating, according to the at least two sets of the count values of the three or more count values, the change amount of the at least two first preset time periods.
  3. 根据权利要求1所述的方法,其特征在于,所述获取计数器的至少两个在第一预设时间内的变化量,包括:The method according to claim 1, wherein the obtaining the amount of change of the at least two counters in the first preset time comprises:
    分别获取计数器在两个以上的第一预设时间中的起始计数值和终止计数值;Obtaining a start count value and a stop count value of the counter in two or more first preset times, respectively;
    基于所述计数器在所述两个以上的第一预设时间中的起始计数值和终止计数值,计算获得至少两个第一预设时间内的变化量。And calculating, according to the start count value and the end count value of the counter in the two or more first preset times, obtaining the change amount of the at least two first preset times.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method of claim 3, wherein the method further comprises:
    获取所述计数器的翻转周期数;Obtaining the number of flip cycles of the counter;
    所述基于所述计数器在所述两个以上的第一预设时间中的起始计数值和终止计数值,计算获得至少两个第一预设时间内的变化量,包括:And calculating, according to the start count value and the end count value of the counter in the two or more first preset times, obtaining the change amount of the at least two first preset times, including:
    基于所述计数器在所述两个以上的第一预设时间中的起始计数值和终止计数值,以及所述计数器的翻转周期数,计算获得至少两个第一预设时间内的变化量。Calculating the change amount of at least two first preset times based on the start count value and the end count value of the counter in the two or more first preset times, and the number of flip cycles of the counter .
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述对所述两个以上第一预设时间的变化量进行求平均处理,包括:The method according to any one of claims 1 to 4, wherein the averaging processing the change amount of the two or more first preset times comprises:
    当获取到的所述第一预设时间的变化量的数量大于两个时,去除获取到的所有第一预设时间的变化量中的最大值和/或最小值; When the obtained number of changes of the first preset time is greater than two, the maximum value and/or the minimum value of the acquired changes of all the first preset times are removed;
    对去除最大值和/或最小值后剩余的第一预设时间的变化量进行求平均处理。The averaging process is performed on the amount of change of the first preset time remaining after the maximum value and/or the minimum value are removed.
  6. 根据权利要求1-4中任一项所述的方法,其特征在于,所述对所述至少两个变化量进行求平均处理,包括:The method according to any one of claims 1 to 4, wherein the averaging processing the at least two variation amounts comprises:
    对获取到的所述至少两个变化量中的目标变化量进行求平均处理,其中,所述目标变化量为数值大小在第一预设范围内的变化量。The averaging process is performed on the acquired target change amount of the at least two change amounts, wherein the target change amount is a change amount of the numerical size within the first preset range.
  7. 根据权利要求1所述的方法,其特征在于,所述获取计数器的至少两个在第一预设时间内的变化量之前,所述方法还包括:The method according to claim 1, wherein before the obtaining the amount of change of the at least two counters in the first preset time, the method further comprises:
    对本地时间进行初始化处理。Initialize the local time.
  8. 根据权利要求7所述的方法,其特征在于,所述对本地时间进行初始化处理,包括:The method according to claim 7, wherein the initializing the local time comprises:
    在接收到秒脉冲PPS信号之后的第二预设时间内接收发送设备发送的世界标准时间UTC,所述UTC对应所述PPS信号上升沿或下降沿的时刻;Receiving, in a second preset time after receiving the second pulse PPS signal, a world standard time UTC sent by the transmitting device, where the UTC corresponds to a time of a rising edge or a falling edge of the PPS signal;
    将所述本地时间更新为所述UTC。Updating the local time to the UTC.
  9. 根据权利要求8所述的方法,其特征在于,所述基于所述晶振频率,更新本地时间,包括:The method according to claim 8, wherein said updating the local time based on said crystal oscillator frequency comprises:
    获取所述计数器在本地时间初始化时刻到当前时刻时间内的变化量;Obtaining a change amount of the counter from a local time initialization time to a current time instant;
    基于所述计数器在所述时间内的变化量和所述计数器的所述晶振频率,确定偏差时间;Determining a deviation time based on an amount of change of the counter during the time and the crystal frequency of the counter;
    基于所述偏差时间,对本地时间进行修正,获得当前时刻的时间。Based on the deviation time, the local time is corrected to obtain the current time.
  10. 根据权利要求9所述的方法,其特征在于,所述获取所述计数器在本地时间初始化时刻到当前时刻时间内的变化量,包括:The method according to claim 9, wherein the obtaining the amount of change of the counter from the local time initialization time to the current time time comprises:
    基于所述计数器的翻转周期数,以及所述计数器在本地时间初始化时刻的计数值和当前时刻的计数值,计算获得所述计数器在本地时间初始化时刻到当前时刻时间内的变化量。The amount of change of the counter from the local time initialization time to the current time is calculated based on the number of inversion cycles of the counter and the count value of the counter at the local time initialization time and the current time count value.
  11. 根据权利要求9或10所述的方法,其特征在于,所述基于所述偏差时间,对本地时间进行修正,获得当前时刻的时间,包括:The method according to claim 9 or 10, wherein the correcting the local time based on the deviation time to obtain the time of the current time comprises:
    基于所述偏差时间和预先确定的时间累积误差,对本地时间进行修正,获得当前时刻的时间。 Based on the deviation time and a predetermined time accumulation error, the local time is corrected to obtain the current time.
  12. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method of claim 8 further comprising:
    在接收到所述UTC后,基于所述UTC与接收到所述UTC时的本地时间,更新本地的时间累积误差。After receiving the UTC, the local time accumulation error is updated based on the UTC and the local time when the UTC was received.
  13. 根据权利要求12所述的方法,其特征在于,所述在接收到所述UTC后,基于所述UTC与接收到所述UTC时的本地时间,更新本地的时间累积误差,包括:The method according to claim 12, wherein, after receiving the UTC, updating a local time accumulation error based on the UTC and a local time when the UTC is received, including:
    每接收到预设数量的UTC,更新一次本地的时间累积误差。The local time accumulation error is updated each time a preset number of UTCs are received.
  14. 根据权利要求13所述的方法,其特征在于,所述每接收到预设数量的UTC,更新一次本地的时间累积误差,包括:The method according to claim 13, wherein the updating of the local time accumulation error every time a preset number of UTCs is received comprises:
    每接收到一个UTC,计算一次本地的时间累积误差;Calculate a local time cumulative error each time a UTC is received;
    在接收到预设数量的UTC后,对计算获得的预设数量的时间累积误差进行中值滤波处理,获得所述预设数量的时间累积误差的中值;After receiving the preset number of UTCs, performing a median filtering process on the calculated preset number of time accumulated errors to obtain a median value of the preset number of time accumulated errors;
    将本地的时间累积误差更新为所述中值。The local time cumulative error is updated to the median value.
  15. 根据权利要求14所述的方法,其特征在于,所述每接收到一个UTC,计算一次本地的时间累积误差,包括:The method according to claim 14, wherein each time a UTC is received, a local time cumulative error is calculated, including:
    在接收到UTC时,若所述UTC与接收到所述UTC时的本地时间的差值绝对值小于第一预设阈值,则确定所述UTC对应的时间累积误差等于预设值;When the UTC is received, if the absolute value of the difference between the UTC and the local time when the UTC is received is less than the first preset threshold, determining that the time cumulative error corresponding to the UTC is equal to a preset value;
    若所述UTC与接收到所述UTC时的本地时间的差值绝对值大于或等于第一预设阈值,则所述UTC对应的时间累积误差等于接收到所述UTC之前的时间累积误差。If the absolute value of the difference between the UTC and the local time when the UTC is received is greater than or equal to the first preset threshold, the time cumulative error corresponding to the UTC is equal to the time cumulative error before receiving the UTC.
  16. 根据权利要求14所述的方法,其特征在于,所述每接收到一个UTC,计算一次本地的时间累积误差,包括The method according to claim 14, wherein each time a UTC is received, a local time cumulative error is calculated, including
    在接收到UTC时,若所述UTC与接收到所述UTC时的本地时间的差值绝对值大于第二预设阈值,则基于预设的时间累积误差与所述第二预设阈值之间的关联关系,确定所述UTC对应的时间累积误差;When receiving the UTC, if the absolute value of the difference between the UTC and the local time when the UTC is received is greater than the second preset threshold, based on the preset time cumulative error and the second preset threshold Correlation relationship, determining a time accumulation error corresponding to the UTC;
    若所述UTC与接收到所述UTC时的本地时间的差值绝对值小于或等于所述第二预设阈值,则所述UTC对应的时间累积误差等于接收到所述UTC之前的时间累积误差。If the absolute value of the difference between the UTC and the local time when the UTC is received is less than or equal to the second preset threshold, the time cumulative error corresponding to the UTC is equal to the time cumulative error before receiving the UTC .
  17. 根据权利要求1-16中任一项所述的方法,其特征在于,所述基 于所述晶振频率,更新本地时间,包括:Method according to any of the claims 1 to 16, characterized in that the base Updating the local time at the crystal frequency, including:
    基于预设周期更新本地时间,所述预设周期小于所述计数器的翻转周期数与所述计数器的晶振频率的比值。The local time is updated based on a preset period that is less than a ratio of the number of flip cycles of the counter to the crystal frequency of the counter.
  18. 一种时间更新方法,其特征在于,包括:A time update method, comprising:
    获取计数器的两个以上的单位时间变化量;Obtaining more than two unit time variations of the counter;
    对所述计数器的两个以上的单位时间变化量进行求平均处理,获得所述计数器的晶振频率;Performing an averaging process on two or more unit time variations of the counter to obtain a crystal oscillator frequency of the counter;
    基于所述晶振频率,更新本地时间。The local time is updated based on the crystal frequency.
  19. 一种时间更新装置,其特征在于,所述装置包括处理器时,所述处理器被配置用于:获取计数器的至少两个在第一预设时间内的变化量;对所述至少两个变化量进行求平均处理;基于所述求平均处理的结果和所述第一预设时间,确定所述计数器的晶振频率;基于所述晶振频率,更新本地时间。A time updating apparatus, wherein when the apparatus includes a processor, the processor is configured to: acquire at least two changes of a counter in a first preset time; for the at least two The amount of change is averaged; based on the result of the averaging process and the first preset time, the crystal frequency of the counter is determined; and the local time is updated based on the crystal frequency.
  20. 根据权利要求19所述的时间更新装置,其特征在于,所述处理器用于:获取计数器的三个以上的计数值,所述三个以上的计数值中包括至少两组计数值之间的时间间隔为第一预设时间,基于所述三个以上的计数值中的所述至少两组计数值,计算获得至少两个第一预设时间内的变化量。The time updating apparatus according to claim 19, wherein said processor is configured to: acquire three or more count values of a counter, wherein said three or more count values include a time between at least two sets of count values The interval is a first preset time, and based on the at least two sets of the count values of the three or more count values, calculating the change amount of the at least two first preset time periods.
  21. 根据权利要求19所述的时间更新装置,其特征在于,所述处理器用于:分别获取计数器在两个以上的第一预设时间中的起始计数值和终止计数值;基于所述计数器在所述两个以上的第一预设时间中的起始计数值和终止计数值,计算获得至少两个第一预设时间内的变化量。The time update device according to claim 19, wherein the processor is configured to: respectively acquire a start count value and a stop count value of the counter in two or more first preset times; The start count value and the end count value of the two or more first preset times are calculated to obtain the change amount of the at least two first preset times.
  22. 根据权利要求21所述的时间更新装置,其特征在于,所述处理器用于:获取所述计数器的翻转周期数,基于所述计数器在所述两个以上的第一预设时间中的起始计数值和终止计数值,以及所述计数器的翻转周期数,计算获得至少两个第一预设时间内的变化量。The time update device according to claim 21, wherein the processor is configured to: acquire a number of inversion cycles of the counter, based on a start of the counter in the two or more first preset times The count value and the end count value, and the number of flip cycles of the counter, are calculated to obtain the amount of change for at least two first preset times.
  23. 根据权利要求19-22中任一项所述的时间更新装置,其特征在于,所述处理器用于:当获取到的所述第一预设时间的变化量的数量大于两个时,去除获取到的所有第一预设时间的变化量中的最大值和/或最小值,对去除最大值和/或最小值后剩余的第一预设时间的变化量进行求平均处 理。The time update device according to any one of claims 19 to 22, wherein the processor is configured to: remove the acquired when the obtained number of changes of the first preset time is greater than two The maximum value and/or the minimum value of all the first preset time changes, and the averaging of the remaining first preset time after removing the maximum value and/or the minimum value Reason.
  24. 根据权利要求19-22中任一项所述的时间更新装置,其特征在于,所述处理器用于:对获取到的所述至少两个变化量中的目标变化量进行求平均处理,其中,所述目标变化量为数值大小在第一预设范围内的变化量。The time update device according to any one of claims 19 to 22, wherein the processor is configured to: perform averaging processing on the target change amount of the acquired at least two change amounts, wherein The target change amount is a change amount of the numerical value within the first preset range.
  25. 根据权利要求19所述的时间更新装置,其特征在于,所述处理器用于:对本地时间进行初始化处理。The time updating apparatus according to claim 19, wherein said processor is configured to: perform initialization processing on the local time.
  26. 根据权利要求25所述的时间更新装置,其特征在于,所述处理器用于:在接收到秒脉冲PPS信号之后的第二预设时间内接收发送设备发送的世界标准时间UTC,所述UTC对应所述PPS信号上升沿或下降沿的时刻,将所述本地时间更新为所述UTC。The time update device according to claim 25, wherein the processor is configured to: receive a world standard time UTC sent by the transmitting device in a second preset time after receiving the second pulse PPS signal, where the UTC corresponds to The local time is updated to the UTC at the time of the rising or falling edge of the PPS signal.
  27. 根据权利要求26所述的时间更新装置,其特征在于,所述处理器用于:获取所述计数器在本地时间初始化时刻到当前时刻时间内的变化量,基于所述计数器在所述时间内的变化量和所述计数器的所述晶振频率,确定偏差时间,基于所述偏差时间,对本地时间进行修正,获得当前时刻的时间。The time updating apparatus according to claim 26, wherein said processor is configured to: acquire a change amount of said counter from a local time initialization time to a current time, based on a change of said counter within said time The amount and the crystal frequency of the counter determine the deviation time, and based on the deviation time, the local time is corrected to obtain the current time.
  28. 根据权利要求27所述的时间更新装置,其特征在于,所述处理器用于:基于所述计数器的翻转周期数,以及所述计数器在本地时间初始化时刻的计数值和当前时刻的计数值,计算获得所述计数器在本地时间初始化时刻到当前时刻时间内的变化量。The time updating apparatus according to claim 27, wherein said processor is configured to: calculate based on a number of inversion cycles of said counter, and a count value of said counter at a local time initialization time and a current time count value Obtaining the amount of change of the counter from the local time initialization time to the current time.
  29. 根据权利要求27或28所述的时间更新装置,其特征在于,所述处理器用于:基于所述偏差时间和预先确定的时间累积误差,对本地时间进行修正,获得当前时刻的时间。The time updating apparatus according to claim 27 or 28, wherein the processor is configured to: correct the local time based on the deviation time and a predetermined time accumulation error to obtain a time of the current time.
  30. 根据权利要求26所述的时间更新装置,其特征在于,所述处理器用于:在接收到所述UTC后,基于所述UTC与接收到所述UTC时的本地时间,更新本地的时间累积误差。The time updating apparatus according to claim 26, wherein said processor is configured to: after receiving said UTC, update a local time cumulative error based on said UTC and a local time when said UTC is received .
  31. 根据权利要求30所述的时间更新装置,其特征在于,所述处理器用于:每接收到预设数量的UTC,更新一次本地的时间累积误差。The time updating apparatus according to claim 30, wherein said processor is configured to: update a local time accumulation error every time a preset number of UTCs are received.
  32. 根据权利要求31所述的时间更新装置,其特征在于,所述处理器用于:每接收到一个UTC,计算一次本地的时间累积误差,在接收到预设数量的UTC后,对计算获得的预设数量的时间累积误差进行中值滤波处 理,获得所述预设数量的时间累积误差的中值,将本地的时间累积误差更新为所述中值。The time updating apparatus according to claim 31, wherein said processor is configured to: calculate a local time cumulative error every time a UTC is received, and obtain a pre-calculated prediction after receiving a preset number of UTCs Set the amount of time cumulative error for median filtering And obtaining a median value of the preset number of time accumulation errors, and updating the local time accumulation error to the median value.
  33. 根据权利要求32所述的时间更新装置,其特征在于,所述处理器用于:在接收到UTC时,若所述UTC与接收到所述UTC时的本地时间的差值绝对值小于第一预设阈值,则确定所述UTC对应的时间累积误差等于预设值;若所述UTC与接收到所述UTC时的本地时间的差值绝对值大于或等于第一预设阈值,则所述UTC对应的时间累积误差等于接收到所述UTC之前的时间累积误差。The time update device according to claim 32, wherein the processor is configured to: when receiving the UTC, if the absolute value of the difference between the UTC and the local time when the UTC is received is smaller than the first pre- Setting a threshold, determining that the time cumulative error corresponding to the UTC is equal to a preset value; if the absolute value of the difference between the UTC and the local time when the UTC is received is greater than or equal to a first preset threshold, the UTC The corresponding time cumulative error is equal to the time cumulative error before the UTC is received.
  34. 根据权利要求32所述的时间更新装置,其特征在于,所述处理器用于:在接收到UTC时,若所述UTC与接收到所述UTC时的本地时间的差值绝对值大于第二预设阈值,则基于预设的时间累积误差与所述第二预设阈值之间的关联关系,确定所述UTC对应的时间累积误差;若所述UTC与接收到所述UTC时的本地时间的差值绝对值小于或等于所述第二预设阈值,则所述UTC对应的时间累积误差等于接收到所述UTC之前的时间累积误差。The time update apparatus according to claim 32, wherein the processor is configured to: when receiving the UTC, if the absolute value of the difference between the UTC and the local time when the UTC is received is greater than the second pre- Setting a threshold, determining a time cumulative error corresponding to the UTC based on a relationship between a preset time cumulative error and the second preset threshold; if the UTC is related to a local time when the UTC is received The difference absolute value is less than or equal to the second preset threshold, and the time cumulative error corresponding to the UTC is equal to the time cumulative error before receiving the UTC.
  35. 根据权利要求19-34中任一项所述的时间更新装置,其特征在于,所述处理器用于:基于预设周期更新本地时间,所述预设周期小于所述计数器的翻转周期数与所述计数器的晶振频率的比值。The time updating apparatus according to any one of claims 19 to 34, wherein the processor is configured to: update a local time based on a preset period, the preset period being less than a number of flipping cycles of the counter The ratio of the crystal frequency of the counter.
  36. 一种时间更新装置,其特征在于,包括:一个或多个处理器;所述一个或多个处理器单独或协同工作;A time update device, comprising: one or more processors; the one or more processors operating separately or in cooperation;
    所述处理器用于:获取计数器的两个以上的单位时间变化量;对所述计数器的两个以上的单位时间变化量进行求平均处理,获得所述计数器的晶振频率;基于所述晶振频率,更新本地时间。The processor is configured to: acquire two or more unit time change amounts of the counter; perform averaging processing on two or more unit time change amounts of the counter to obtain a crystal oscillator frequency of the counter; and based on the crystal oscillator frequency, Update local time.
  37. 一种可移动平台,其特征在于,包括:权利要求19-36中任一项所述的时间更新装置。A mobile platform, comprising: the time update device according to any one of claims 19-36.
  38. 一种计算机可读存储介质,包括指令,当所述指令运行时,执行如权利要求1-18中任一项所述的时间更新方法。 A computer readable storage medium comprising instructions for performing the time update method of any of claims 1-18 when the instructions are run.
PCT/CN2017/117010 2017-12-18 2017-12-18 Method and apparatus for updating time, and movable platform WO2019119228A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780026754.6A CN109154796B (en) 2017-12-18 2017-12-18 Time updating method, device and movable platform
PCT/CN2017/117010 WO2019119228A1 (en) 2017-12-18 2017-12-18 Method and apparatus for updating time, and movable platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/117010 WO2019119228A1 (en) 2017-12-18 2017-12-18 Method and apparatus for updating time, and movable platform

Publications (1)

Publication Number Publication Date
WO2019119228A1 true WO2019119228A1 (en) 2019-06-27

Family

ID=64803839

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/117010 WO2019119228A1 (en) 2017-12-18 2017-12-18 Method and apparatus for updating time, and movable platform

Country Status (2)

Country Link
CN (1) CN109154796B (en)
WO (1) WO2019119228A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114545761B (en) * 2020-11-27 2023-08-01 辰芯科技有限公司 Local timing updating method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030222708A1 (en) * 2002-05-29 2003-12-04 Xytrans, Inc. Phase locked loop (PLL) frequency synthesizer and method
US7579919B1 (en) * 2007-10-13 2009-08-25 Weixun Cao Method and apparatus for compensating temperature changes in an oscillator-based frequency synthesizer
CN102932084A (en) * 2012-10-17 2013-02-13 航天科工深圳(集团)有限公司 Sampling clock synchronizing method and system
CN103427793A (en) * 2013-07-29 2013-12-04 国电南瑞科技股份有限公司 Time hacking and punctuality system and method based on temperature compensation
US20140016543A1 (en) * 2011-03-25 2014-01-16 Nec Corporation Synchronization device and synchronization method

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007057393A (en) * 2005-08-24 2007-03-08 Epson Toyocom Corp Frequency stability measuring system
CN101079687A (en) * 2006-05-25 2007-11-28 上海欣泰通信技术有限公司 A clock adjustment algorithm based on minimum two multiplexing model
CN101430372B (en) * 2007-11-07 2011-12-07 中国科学院微电子研究所 Low-cost time service and synchronization method and equipment for global positioning system receiver
CN101534003B (en) * 2009-04-14 2011-03-16 国电南瑞科技股份有限公司 Data synchronization method for digitized fiber differential protection device
CN101546169B (en) * 2009-04-15 2010-11-10 北京航空航天大学 Method and device for calibrating time
CN101895383B (en) * 2010-07-07 2013-07-10 中国人民解放军国防科学技术大学 External clock synchronization system and synchronization method thereof
GB201100986D0 (en) * 2011-01-20 2011-03-09 Nordic Semiconductor Asa Low power oscillator
CN102510320A (en) * 2011-10-28 2012-06-20 桂林电子科技大学 Clock source device based on GPS (global positioning system) and constant-temperature crystal oscillator and synchronous control method
CN104330966B (en) * 2014-10-22 2017-02-08 中国人民解放军信息工程大学 Multi-mode high-precision time and frequency standard equipment
CN105158771B (en) * 2015-08-25 2018-01-05 中国科学院国家授时中心 A kind of model parameter production method of tracing to the source in satellite navigation system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030222708A1 (en) * 2002-05-29 2003-12-04 Xytrans, Inc. Phase locked loop (PLL) frequency synthesizer and method
US7579919B1 (en) * 2007-10-13 2009-08-25 Weixun Cao Method and apparatus for compensating temperature changes in an oscillator-based frequency synthesizer
US20140016543A1 (en) * 2011-03-25 2014-01-16 Nec Corporation Synchronization device and synchronization method
CN102932084A (en) * 2012-10-17 2013-02-13 航天科工深圳(集团)有限公司 Sampling clock synchronizing method and system
CN103427793A (en) * 2013-07-29 2013-12-04 国电南瑞科技股份有限公司 Time hacking and punctuality system and method based on temperature compensation

Also Published As

Publication number Publication date
CN109154796B (en) 2021-04-06
CN109154796A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
TWI640165B (en) Method of sensor clock estimation, and associated apparatus
KR101636496B1 (en) Signal synchronization system, node synchronization system, signal synchronization method, and node synchronization method
US10042383B2 (en) Navigation system and mouse device
WO2022179605A1 (en) Time synchronization method and apparatus, and vehicle-mounted device and storage medium
EP4044466A1 (en) Synchronization method and device
WO2019119228A1 (en) Method and apparatus for updating time, and movable platform
WO2022062670A1 (en) Timing method, visual navigational aid device control method, and related apparatus
WO2022062671A1 (en) Timing synchronization method, visual navigation aid device control method, and related apparatuses
US20210152322A1 (en) Communication apparatus, communication system, communication method, and computer readable medium
US9882705B2 (en) Communication apparatus, communication method, and computer readable medium using propagation delay for time synchronization
US11025357B1 (en) Robust sensor timestamp management
US10069584B2 (en) Frequency calibration apparatus and method
CN108873669B (en) UTC time calculation method of computer synchronous clock
CN111102689A (en) Method and device for adjusting clock synchronization
CN114499816B (en) Clock synchronization method and device, terminal equipment and readable storage medium
US10887078B2 (en) Device, system, and method for determining a forwarding delay through a networking device
KR102064575B1 (en) Method, apparatus, system and computer program for enhancing the accuracy of Time Synchronization between devices
CN112637031B (en) Calibration method, calibration device and drive control system for slave station control period
CN112506110B (en) Swimming timing equipment microsecond-level timing method based on CAN bus
US10721009B2 (en) Virtualized clocks
CN115495160B (en) ARM server, starting method and device thereof, and readable storage medium
CN115622654B (en) Clock synchronization method, root node, child node and daisy chain chip system
CN117792558B (en) Method, apparatus, device and medium for integrating high precision time
CN114063702A (en) Time service method, device and storage medium
CN108647163B (en) Missile-borne timing method based on external periodic interruption

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17935462

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17935462

Country of ref document: EP

Kind code of ref document: A1