The clock precision measuring method and device of the invention discloses an automobile instrument, including GPS module, network module and the measurement of the host; the GPS module and the network module are respectively connected with the measuring host communications, measuring the host read and write the RTC auto meter; the following steps: clock precision measurement method of GPS module to obtain GPS signal, and get the UTC from the time frame the information in the GPS signal; NTP data packet network module access time server, access to NTP and from the NTP data packet; measuring unit effectiveness of UTC or NTP will be effective judgment, UTC or NTP as the clock reference source, and the clock reference source is compared with the RTC method, and recording the difference; the invention adopts the GPS satellite time and network time server time as a reference clock source, and through the instrument built-in software automatically calculates the error. In order to improve the accuracy of RTC precision measurement, the instrument can be integrated with other automated testing equipment to achieve the continuous recording of data and improve the testing efficiency and accuracy.
【技术实现步骤摘要】
一种汽车仪表时钟精度测量方法和装置
本专利技术涉及车载研发领域,特别涉及一种汽车仪表时钟精度测量方法和装置。
技术介绍
汽车仪表内置RTC(RealTimeClock,实时时钟)为用户提供时间及日历显示功能。实际应用中受环境温度和晶振精度的影响,RTC存在一定的计时误差。为了提高计时精度,需要在设计前期测量出仪表的计时误差,并采取措施加以修正。传统的计时误差测量方法是让仪表在一定的环境中长期运行,参照标准时钟源——例如电脑时间,秒表时间,语音报时台等。人工记录测试开始和结束时被测量仪表和标准时钟源的时间。通过计算两者开始和结束时的时间差来获得仪表的计时误差。但是,这种测量方法存在如下缺陷:1、手工记录存在人工读数误差;2、由于需要定期记录数据,效率较低;3、人工操作自动化水平低,不利于与现有测量系统集成及误差分析。
技术实现思路
本专利技术的目的是为了克服上述
技术介绍
的缺陷,提供一种汽车仪表的时钟精度测量方法。该汽车仪表的时钟精度测量方法基于UTC(CoordinatedUniversalTime,协调世界时)和NTP(NetworkTimeProtocol,网络时间同步)作为时钟参考源进行测量。其中UTC采集至GPS数据(GlobalPositioningSystem,全球定位系统)。一种汽车仪表的时钟精度测量方法,包括GPS模块、网络模块以及测量主机;所述GPS模块和网络模块分别与所述测量主机通信,所述测量主机读写汽车仪表的RTC;时钟精度测量方法如下步骤:所述测量主机控制控制所述GPS模块获取GPS信号,并从中GPS信号的时间帧信息中获取UTC;所述测量 ...
【技术保护点】
一种汽车仪表的时钟精度测量方法,其特征在于,包括GPS模块、网络模块以及测量主机;所述GPS模块和网络模块分别与所述测量主机通信,所述测量主机读写汽车仪表的RTC;时钟精度测量方法如下步骤:所述GPS模块获取GPS信号,并从中GPS信号的时间帧信息中获取UTC;所述网络模块获取时间服务器的NTP数据报文,并从该NTP数据报文中获取NTP;测量主机判断所述UTC或所述NTP的有效性,将有效的所述UTC或NTP作为时钟参考源,并将该时钟参考源与所述RTC进行比较,得到并记录差值;其中,所述UTC的优先级高于所述NTP的优先级。
【技术特征摘要】
1.一种汽车仪表的时钟精度测量方法,其特征在于,包括GPS模块、网络模块以及测量主机;所述GPS模块和网络模块分别与所述测量主机通信,所述测量主机读写汽车仪表的RTC;时钟精度测量方法如下步骤:所述GPS模块获取GPS信号,并从中GPS信号的时间帧信息中获取UTC;所述网络模块获取时间服务器的NTP数据报文,并从该NTP数据报文中获取NTP;测量主机判断所述UTC或所述NTP的有效性,将有效的所述UTC或NTP作为时钟参考源,并将该时钟参考源与所述RTC进行比较,得到并记录差值;其中,所述UTC的优先级高于所述NTP的优先级。2.如权利要求1所述的测量方法,其特征在于,在测量过程中,当与所述RTC比较的时钟参考源失效时,所述RTC则与未作为时钟参考源的所述UTC或NTP进行比较,直到时钟参考源恢复有效。3.如权利要求1所述的测量方法,其特征在于,所述时钟参考源失效后,测量主机则持续尝试重新获取有效的时钟参考源。4.如权利要求...
【专利技术属性】
技术研发人员:孙志江,陈文,黄振娟,黄楚雄,
申请(专利权)人:惠州市德赛西威汽车电子股份有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。