Clock synchronization method and device applied to vehicle-borne terminal
The present invention discloses a clock synchronization method and device applied to a vehicle-borne terminal. The method and the device are applied to the MCU arranged in the vehicle-borne terminal. Through the method and the device, the MCU receives the message data transmitted by a CAN bus, the m...
Saved in:
Main Authors | , , , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
22.06.2016
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The present invention discloses a clock synchronization method and device applied to a vehicle-borne terminal. The method and the device are applied to the MCU arranged in the vehicle-borne terminal. Through the method and the device, the MCU receives the message data transmitted by a CAN bus, the message data is analyzed, the first time comprised in the message data is obtained, the first time and the second time stored by an RTC are compared, and when the first time and the second time are different, the time stored by the RTC is adjusted to the first time. Through the invention, the adjustment of the RTC by the MCU is realized, the time stored by the RTC after adjustment is the first time, the first time is the time generated by the terminal arranged in the vehicle, thus the time obtained by the MCU is consistent with other terminals arranged in the vehicle, and the problem of a large deviation between the time obtained by the MCU and an actual time in the prior art is solved.
本申请公开了种应用于车载终端的时钟同步方法及装置,应用于设 |
---|---|
Bibliography: | Application Number: CN20141708900 |