The invention discloses a
direct current B code
time synchronization and self-timekeeping method based on a multi-core heterogeneous
chip, and provides a scheme aiming at the problems that the prior art has defects in the aspects of hardware
resource utilization,
timestamp precision, self-timekeeping capability under abnormal working conditions and the like and is difficult to meet the requirement of a high-precision synchronous scene. A multi-core heterogeneous
chip is adopted to replace a single-
chip microcomputer or an FPGA to receive, decode and detect a DC B code,
nanosecond pulse per second synchronization,
nanosecond timestamp calculation and a self-timekeeping function when a DC B code
signal is lost are realized based on PWM, and
time synchronization among multiple cores is realized through an inter-core communication technology. And predicting a
direct current B code period value by using the
time sequence prediction model deployed in the non-real-time kernel. The method has the advantages that the technical vacancy of a multi-core heterogeneous chip in direct-current B code
time synchronization and self-timekeeping is filled, the out-of-step risk of equipment is reduced, the defect that a traditional direct-current B code time synchronization function can only be accurate to a whole-second
timestamp is overcome, and the self-timekeeping performance of the equipment without a standard
clock source is remarkably improved.