Search

CN-122001513-A - Whole vehicle time setting and synchronizing system and method

CN122001513ACN 122001513 ACN122001513 ACN 122001513ACN-122001513-A

Abstract

The invention provides a whole vehicle time setting and synchronizing system and method, which comprises the steps of receiving GPS signals sent by a GPS antenna by an IVI when the GPS antenna is arranged, decoding the GPS signals into GPS time, encoding the GPS time into first CAN signals and then sending the first CAN signals to an IC, taking initial time as an initial value when the GPS antenna is not arranged, timing the initial time as system time, encoding the system time into second CAN signals and then sending the second CAN signals to the IC, acquiring corresponding time according to a defined IVI configuration code, writing the corresponding time into the system time, updating the GPS time in the first CAN signals into instrument time by the IC, taking the GPS time as a timing starting point, enabling a crystal oscillator module to start timing by taking the system time in the second CAN signals, enabling the crystal oscillator module to start timing according to a time synchronization strategy, and guaranteeing that a whole vehicle time source is unique.

Inventors

  • MENG QINGHE
  • WANG ZELONG
  • LI ZHENLONG
  • GAO ZELEI
  • YU WEI
  • LIU JIAYI

Assignees

  • 一汽奔腾汽车股份有限公司

Dates

Publication Date
20260508
Application Date
20260324

Claims (10)

  1. 1. The whole vehicle time setting and synchronizing system is characterized by comprising an IVI, an IC and a CAN bus, wherein the IVI and the IC are respectively connected with the CAN bus, and the IVI and the IC are connected; the IVI is used for receiving GPS signals sent by the GPS antenna when the whole vehicle is provided with the GPS antenna, decoding the GPS signals into GPS time, encoding the GPS time into first CAN signals and then sending the first CAN signals to the IC; When the whole vehicle is not provided with the GPS antenna, setting initial time, taking the initial time as an initial value, and taking the initial value as system time after timing; Defining an IVI configuration code, acquiring corresponding time according to the IVI configuration code, and writing the corresponding time into the system time; The IC is used for updating the GPS time in the first CAN signal into the instrument time, and using the GPS time as a timing starting point to enable the crystal oscillator module to start timing; Updating the instrument time through the system time in the second CAN signal, and starting timing by taking the system time as a timing starting point to enable the crystal oscillator module to start timing; And receiving a time synchronization signal, and realizing a time synchronization strategy according to the time synchronization signal.
  2. 2. The whole vehicle time setting and synchronizing system according to claim 1, wherein the IVI is internally integrated with a GPS module, an MCU and a time display module, wherein the GPS module, the MCU and the time display module are sequentially connected; The GPS module is used for receiving the GPS signals sent by the GPS antenna; The MCU is used for decoding the GPS signal into the GPS time, encoding the GPS time into the first CAN signal and then transmitting the first CAN signal to the IC; the time display module is used for displaying the GPS time.
  3. 3. The whole vehicle time setting and synchronizing system according to claim 1, wherein the IVI is internally integrated with a time setting module, and the time setting module, the MCU and the time display module are sequentially connected; The time setting module is used for setting the initial time; the MCU is used for taking the initial time as the initial value, and taking the initial value as the system time after timing; the time display module is used for displaying the system time.
  4. 4. The system for setting and synchronizing time of a vehicle according to claim 1, wherein the IC is configured to send the meter time to the CAN bus when the crystal oscillator module starts to time, so that the time of all controllers of the vehicle is based on the meter time.
  5. 5. The vehicle time setting and synchronization system of claim 1, wherein the IVI configuration code comprises 0 and 1,0 representing no network, 1 representing a network; The IVI is used for receiving the instrument time under the condition that the IVI configuration code is 0, writing the instrument time into the system time, and providing the system time for an application layer interface to display interface time; And under the condition that the IVI configuration code is 1, receiving instrument time and network time, writing the instrument time and the network time into the system time, and providing the system time for the application layer interface to display the interface time.
  6. 6. The whole vehicle time setting and synchronizing system according to claim 5, wherein, The IVI is used for taking the meter time as the standard when the meter time is accurate; When the instrument time is earlier than IVI version compiling time, the IC node is lost and no reporting time exists, displaying according to the network time; When the meter is out of time and there is no network, the system time adopts a default time.
  7. 7. The vehicle time setting and synchronizing system according to claim 1, wherein the IC is configured to receive the time synchronizing signal sent by the IVI, and when the time synchronizing signal is 1, the IC is based on the GPS time; And when the time synchronization signal is 2, taking the setting time of the IVI as the reference, and carrying out crystal oscillation.
  8. 8. The whole vehicle time setting and synchronizing method is characterized by being applied to the whole vehicle time setting and synchronizing system according to any one of claims 1 to 7, wherein the system comprises an IVI, an IC and a CAN bus, the IVI and the IC are respectively connected with the CAN bus, and the IVI and the IC are connected, and the method comprises the following steps: when the whole vehicle is provided with a GPS antenna, the IVI receives a GPS signal sent by the GPS antenna, decodes the GPS signal into GPS time, codes the GPS time into a first CAN signal and then sends the first CAN signal to the IC; When the whole vehicle is not provided with the GPS antenna, setting initial time, taking the initial time as an initial value, and taking the initial value as system time after timing; Defining an IVI configuration code, acquiring corresponding time according to the IVI configuration code, and writing the corresponding time into the system time; The IC updates the GPS time in the first CAN signal into the instrument time, and takes the GPS time as a timing starting point to enable the crystal oscillator module to start timing; Updating the instrument time through the system time in the second CAN signal, and starting timing by taking the system time as a timing starting point to enable the crystal oscillator module to start timing; And receiving a time synchronization signal, and realizing a time synchronization strategy according to the time synchronization signal.
  9. 9. An electronic device comprising a memory, a processor, the memory having stored thereon a computer program executable on the processor, characterized in that the processor implements the method of claim 8 when executing the computer program.
  10. 10. A computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the method of claim 8.

Description

Whole vehicle time setting and synchronizing system and method Technical Field The invention relates to the technical field of intelligent network automobiles, in particular to a whole automobile time setting and synchronizing system and method. Background The automobile industry has been in the intelligent network automobile age, in the functional scenes of internet of vehicles service, mobile phone remote control, OTA pushing, maintenance, vehicle fault diagnosis and the like, the whole automobile time is a basic parameter depending on each functional strategy, and the stable and normal whole automobile time is a direct factor for ensuring the normal operation of the intelligent network functional service of the vehicle. Common vehicle times include multiple time sources such as GPS time, network time, system time, meter time, etc., and originate from different controller units of the vehicle. Because the timing mechanism, the synchronization strategy and the application logic of each controller are different, if the time of the whole vehicle is not uniformly controlled, the time errors of each controller are increased due to long-term accumulation, so that various anomalies such as failure of the networking service of the whole vehicle, failure of OTA upgrading, failure of remote control of the vehicle by a mobile phone, difficulty in positioning fault diagnosis and the like are caused, and the driving safety and the product experience are seriously influenced. Disclosure of Invention Therefore, the invention aims to provide a whole vehicle time setting and synchronizing system and method, which cover different time unification strategies with or without GPS equipment, ensure the uniqueness of a whole vehicle time source, provide compatible measures of an abnormal scene, simplify the development process and reduce the maintenance cost. In a first aspect, the embodiment of the invention provides a whole vehicle time setting and synchronizing system, which comprises an IVI, an IC and a CAN bus, wherein the IVI and the IC are respectively connected with the CAN bus, and the IVI and the IC are connected; the IVI is used for receiving GPS signals sent by the GPS antenna when the whole vehicle is provided with the GPS antenna, decoding the GPS signals into GPS time, encoding the GPS time into first CAN signals and then sending the first CAN signals to the IC; When the whole vehicle is not provided with the GPS antenna, setting initial time, taking the initial time as an initial value, and taking the initial value as system time after timing; Defining an IVI configuration code, acquiring corresponding time according to the IVI configuration code, and writing the corresponding time into the system time; The IC is used for updating the GPS time in the first CAN signal into the instrument time, and using the GPS time as a timing starting point to enable the crystal oscillator module to start timing; Updating the instrument time through the system time in the second CAN signal, and starting timing by taking the system time as a timing starting point to enable the crystal oscillator module to start timing; And receiving a time synchronization signal, and realizing a time synchronization strategy according to the time synchronization signal. Furthermore, a GPS module, an MCU and a time display module are integrated in the IVI, and the GPS module, the MCU and the time display module are sequentially connected; The GPS module is used for receiving the GPS signals sent by the GPS antenna; The MCU is used for decoding the GPS signal into the GPS time, encoding the GPS time into the first CAN signal and then transmitting the first CAN signal to the IC; the time display module is used for displaying the GPS time. Furthermore, a time setting module is integrated in the IVI, and the time setting module, the MCU and the time display module are connected in sequence; The time setting module is used for setting the initial time; the MCU is used for taking the initial time as the initial value, and taking the initial value as the system time after timing; the time display module is used for displaying the system time. Further, the IC is configured to send the meter time to the CAN bus when the crystal oscillator module starts to time, so that the time of all controllers of the whole vehicle is based on the meter time. Further, the IVI configuration code includes 0 and 1,0 representing no network and 1 representing a network; The IVI is used for receiving the instrument time under the condition that the IVI configuration code is 0, writing the instrument time into the system time, and providing the system time for an application layer interface to display interface time; And under the condition that the IVI configuration code is 1, receiving instrument time and network time, writing the instrument time and the network time into the system time, and providing the system time for the application layer interface to display the inter