CN114261353A - Clock synchronization method for automobile instrument and automobile machine - Google Patents
Clock synchronization method for automobile instrument and automobile machine Download PDFInfo
- Publication number
- CN114261353A CN114261353A CN202111573446.XA CN202111573446A CN114261353A CN 114261353 A CN114261353 A CN 114261353A CN 202111573446 A CN202111573446 A CN 202111573446A CN 114261353 A CN114261353 A CN 114261353A
- Authority
- CN
- China
- Prior art keywords
- instrument
- time
- machine
- vehicle
- automobile
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 230000001360 synchronised effect Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 230000001934 delay Effects 0.000 description 3
- 230000003111 delayed effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Images
Landscapes
- Electric Clocks (AREA)
Abstract
The invention discloses a clock synchronization method of an automobile instrument and a vehicle machine, which is characterized in that after the vehicle machine and the instrument are powered on, the system time of the vehicle machine and the system time of the instrument are compared, and when the difference between the system time of the vehicle machine and the system time of the instrument is smaller than a set time threshold value, the vehicle machine and the instrument are respectively timed by adopting respective system time; otherwise, the system time of the vehicle machine and the system time of the instrument are unified. The invention has the advantages that: the method is simple and quick, can be integrated in the vehicle machine and the instrument in a software mode, can realize the unification and the updating of time and time in a quick time mode, does not increase hardware, only needs software updating, and is low in cost and high in applicability.
Description
Technical Field
The invention relates to the field of automobile system control, in particular to a method for synchronizing an automobile instrument and an automobile machine clock.
Background
The instrument and the car skill of car can time respectively among the prior art, but both can cause time inconsistency between them because of various reasons, and inconsistent time can lead to whole car system to appear two times, is unfriendly to user experience, and along with the development of intelligent technology, whole car needs to realize the unity of clock display. And related unified instruments and technical clocks are not disclosed in the prior art.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a clock synchronization method of an automobile instrument and an automobile machine, which is used for realizing the unification of the time of the instrument and the automobile machine on an automobile.
In order to achieve the purpose, the invention adopts the technical scheme that: a clock synchronization method of an automobile instrument and a vehicle-mounted machine is characterized in that after the vehicle-mounted machine and the instrument are powered on, the system time of the vehicle-mounted machine and the system time of the instrument are compared, and when the difference between the system time of the vehicle-mounted machine and the system time of the instrument is smaller than a set time threshold value, the vehicle-mounted machine and the instrument are respectively clocked by respective system time; otherwise, the system time of the vehicle machine and the system time of the instrument are unified.
The unification of the system time includes: and judging whether the automobile is configured with TBOX, if not, periodically sending the system time of the instrument to the automobile machine by the instrument in the same power-on period, and updating and modifying the system time of the automobile machine by adopting the time sent by the instrument after the difference between the system time of the automobile machine and the system time of the instrument reaches a set time threshold value.
And after the vehicle machine is recorded with the time set by the user, the vehicle machine updates the system time of the vehicle machine and sends the set time to the instrument, and the instrument receives the user setting and updates and modifies the system time of the instrument.
After the user sets time at the instrument end, the instrument receives the user setting and modifies and updates the instrument time; and comparing the time set by the instrument with the vehicle-mounted time, and when the difference between the set time and the vehicle-mounted time is greater than a set time threshold value, sending the system time of the instrument to the vehicle-mounted machine by the instrument, displaying the system time by the vehicle-mounted machine and updating the received instrument time.
When the automobile is configured by TBOX, the vehicle machine acquires GPS time through the TBOX to carry out real-time clock synchronization; and after the vehicle is initially electrified, the vehicle machine judges the difference value of the system time of the instrument and the vehicle machine, and when the difference value is greater than a set time threshold value, the vehicle machine sends the GPS time acquired through the TBOX to the instrument for display and updating of a system clock.
And the instrument periodically sends the system time of the instrument to the vehicle machine in the same power-on period, the vehicle machine compares the system time of the instrument with the GPS time, and the real-time GPS time information is sent to the instrument for updating and modifying the clock when the difference is greater than a set time threshold.
The invention has the advantages that: the method is simple and quick, can be integrated in a vehicle machine and an instrument in a software mode, can realize the unification and the updating of time and time in a quick time, does not increase hardware, only needs software updating, and has low cost and strong applicability; different time updates can be realized according to the existence of GPS clock signals, and the setting of a user is considered, so that the accuracy and reliability of time are ensured, and the clock consistency of the GPS clock signals is ensured.
Drawings
The contents of the expressions in the various figures of the present specification and the labels in the figures are briefly described as follows:
FIG. 1 is a schematic diagram of the clock unification without a GPS clock signal according to the present invention;
FIG. 2 is a schematic diagram of the clock unification principle of the present invention with GPS clock signals.
Detailed Description
The following description of preferred embodiments of the invention will be made in further detail with reference to the accompanying drawings.
The invention designs a time reference as an instrument, and the instrument and a vehicle machine are respectively timed;
2. when the instrument time-vehicle time is not less than 5s, the vehicle receives the instrument time;
3. after a user sets time from a vehicle end, the meter needs to display the time sent by the vehicle end;
4. in the same power-on period, after the network is awakened, the vehicle machine delays for about 10s (the time sent by the instrument is not processed in 10 s) and sends the time to the instrument.
FIG. 1 is a flow chart of a clock synchronization method based on an automobile instrument and an automobile machine, wherein the flow is based on a clock signal without a GPS. The system block diagram relates to an IHU (vehicle machine), ICM (instrument).
As shown in fig. 1, the patent scheme is a clock synchronization method based on an automobile instrument and an automobile machine.
An association controller:
the vehicle machine: the method is used for realizing the function of synchronizing the clock with the instrument (1. when the difference between the time of the instrument end and the time of the vehicle end is more than 5 seconds, the time of the instrument is synchronized by a vehicle machine, 2. the time is set at the vehicle end, the time of the instrument is synchronized by the vehicle machine, and the interaction of the clock synchronization information between the two is ensured).
The instrument is as follows: the system is used for realizing the clock synchronization function with the vehicle machine (the time is set at the instrument end, the vehicle machine time is synchronized by the vehicle machine, and the clock synchronization information interaction between the instrument end and the vehicle machine time is ensured);
1. after the first power-on, the instrument sends a message to the vehicle machine, and the vehicle machine compares whether the time difference meets the condition that the time difference is more than or equal to 5 s:
if the conditions are met, the vehicle machine displays the instrument time; and if the condition is not met, the vehicle-mounted computer does not display the meter time. The reason for setting the time threshold of 5s is that when the time difference between the two is within 5s, uniform updating is not needed, and because the time difference is too small, the influence on user experience and the like is not great, updating is not needed, and when the time difference is too large, updating is needed.
2. And in the same power-on period, the instrument periodically sends time to the vehicle machine, and the vehicle machine compares whether the time difference meets the condition. By adopting the periodic comparison in the same power-on period, the updating can be carried out once the time is more than 5s, so that the accuracy and the real-time performance of the synchronous updating of the system time are ensured.
3. When the user sets time from the vehicle end and clicks to determine, the MPU issues the time to the MCU, the MCU sends the time to the instrument after receiving the time, and the instrument receives and displays the time.
4. And when the user sets time at the instrument end and clicks to determine, the instrument sends the time to the vehicle machine. And when the contrast time difference value of the vehicle machine is more than or equal to 5s, the vehicle machine receives the instrument time. In order to ensure the priority set by the user, the user needs to receive the set time through a certain setting scheme after the user sets the time through the vehicle or the instrument, so that the requirement of the user for time setting is met.
5. In the same power-on period, after a system is powered on and a network is awakened, after a vehicle machine delays to set a time threshold (the time threshold is set to be about 10s, and the time sent by the instrument is not processed in 10 s), the time is sent to the instrument, and the instrument receives and displays the time of the vehicle machine. The purpose of setting the time delay is that the power-on starting time of the fortification/defences combined instrument of the combined instrument is 3S, and the starting time of a vehicle machine is about 12S, so that the time sent by the combined instrument is not processed within about 10S after the whole vehicle network is awakened in the same power-on period, and the vehicle machine cannot be synchronized if the time is not delayed.
As shown in fig. 2, which is a schematic diagram with a GPS clock signal, the associated controller includes:
the wireless communication module: the GPS time information of TBOX is sent to the vehicle end, and the vehicle end carries out clock synchronization in real time, thereby realizing clock synchronization information display and control.
The vehicle machine: the method is used for realizing the function of synchronizing the clock with the instrument (1. when the difference between the time of the instrument end and the time of the vehicle end is more than 5 seconds, the time of the instrument is synchronized by a vehicle machine, 2. the time is set at the vehicle end, the time of the instrument is synchronized by the vehicle machine, and the interaction of the clock synchronization information between the two is ensured).
The instrument is as follows: the system is used for realizing the clock synchronization function with the vehicle machine (the time is set at the instrument end, the vehicle machine time is synchronized by the vehicle machine, and the clock synchronization information interaction between the instrument end and the vehicle machine time is ensured);
the working principle of fig. 2 is as follows:
1. after the first power-on, the instrument sends a message to the vehicle machine, and the vehicle machine compares whether the time difference meets the condition that the time difference is more than or equal to 5 s:
if the conditions are met, the vehicle machine sends the GPS time of the TBOX to the instrument for display; and if the condition is not met, the vehicle machine does not send time.
2. And in the same power-on period, the instrument periodically sends time to the vehicle machine, and the vehicle machine compares whether the time difference meets the condition.
3. In the same power-on period, after network awakening, the vehicle machine delays for about 10s (the time sent by the instrument is not processed in 10 s) to send the GPS time for receiving TBOX to the instrument, and the instrument receives and displays the GPS real-time. The purpose of the time delay is that the power-on starting time of the fortification/defences combined instrument of the combined instrument is 3S, the starting time of a vehicle machine is about 12S, in all the same power-on period, after the whole vehicle network is awakened, the time sent by the combined instrument is not processed within about 10S after the vehicle machine is delayed, and if the time is not delayed, the time cannot be synchronized.
The invention realizes the clock synchronization of the vehicle and the instrument by analyzing the clock signals of the vehicle and the instrument and then updating the clock time according to the actual situation, thereby standardizing the time synchronization mechanism of the instrument and the vehicle and preventing the problem of the asynchronous clock of the vehicle instrument and the vehicle.
It is clear that the specific implementation of the invention is not restricted to the above-described embodiments, but that various insubstantial modifications of the inventive process concept and technical solutions are within the scope of protection of the invention.
Claims (6)
1. A clock synchronization method for an automobile instrument and an automobile machine is characterized in that: after the vehicle machine and the instrument are powered on, comparing the system time of the vehicle machine with the system time of the instrument, and when the difference between the system time of the vehicle machine and the system time of the instrument is smaller than a set time threshold, timing by the vehicle machine and the instrument by adopting respective system time; otherwise, the system time of the vehicle machine and the system time of the instrument are unified.
2. The clock synchronization method for the automobile instrument and the automobile machine as claimed in claim 1, wherein: the unification of the system time includes: and judging whether the automobile is configured with TBOX, if not, periodically sending the system time of the instrument to the automobile machine by the instrument in the same power-on period, and updating and modifying the system time of the automobile machine by adopting the time sent by the instrument after the difference between the system time of the automobile machine and the system time of the instrument reaches a set time threshold value.
3. The clock synchronization method of an automobile instrument and a vehicle machine as claimed in claim 1 or 2, characterized in that: and after the vehicle machine is recorded with the time set by the user, the vehicle machine updates the system time of the vehicle machine and sends the set time to the instrument, and the instrument receives the user setting and updates and modifies the system time of the instrument.
4. The clock synchronization method for the automobile instrument and the automobile machine as claimed in claim 3, wherein: after the user sets time at the instrument end, the instrument receives the user setting and modifies and updates the instrument time; and comparing the time set by the instrument with the vehicle-mounted time, and when the difference between the set time and the vehicle-mounted time is greater than a set time threshold value, sending the system time of the instrument to the vehicle-mounted machine by the instrument, displaying the system time by the vehicle-mounted machine and updating the received instrument time.
5. The clock synchronization method for an automobile instrument and a vehicle machine as claimed in any one of claims 1 to 4, wherein: when the automobile is configured by TBOX, the vehicle machine acquires GPS time through the TBOX to carry out real-time clock synchronization; and after the vehicle is initially electrified, the vehicle machine judges the difference value of the system time of the instrument and the vehicle machine, and when the difference value is greater than a set time threshold value, the vehicle machine sends the GPS time acquired through the TBOX to the instrument for display and updating of a system clock.
6. The clock synchronization method for the automobile instrument and the automobile machine as claimed in claim 5, wherein: and the instrument periodically sends the system time of the instrument to the vehicle machine in the same power-on period, the vehicle machine compares the system time of the instrument with the GPS time, and the real-time GPS time information is sent to the instrument for updating and modifying the clock when the difference is greater than a set time threshold.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111573446.XA CN114261353A (en) | 2021-12-21 | 2021-12-21 | Clock synchronization method for automobile instrument and automobile machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111573446.XA CN114261353A (en) | 2021-12-21 | 2021-12-21 | Clock synchronization method for automobile instrument and automobile machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114261353A true CN114261353A (en) | 2022-04-01 |
Family
ID=80828304
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111573446.XA Pending CN114261353A (en) | 2021-12-21 | 2021-12-21 | Clock synchronization method for automobile instrument and automobile machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114261353A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106904133A (en) * | 2017-01-22 | 2017-06-30 | 斑马信息科技有限公司 | Automobile time system and its duration control method and control system |
CN109257814A (en) * | 2018-09-17 | 2019-01-22 | 上海擎感智能科技有限公司 | A kind of time calibrating method and system |
JP2019190840A (en) * | 2018-04-18 | 2019-10-31 | トヨタ自動車株式会社 | Time synchronization system |
CN113103869A (en) * | 2021-03-28 | 2021-07-13 | 大运汽车股份有限公司 | Vehicle clock synchronous display method |
WO2021195956A1 (en) * | 2020-03-31 | 2021-10-07 | 华为技术有限公司 | Clock calibration method and apparatus |
-
2021
- 2021-12-21 CN CN202111573446.XA patent/CN114261353A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106904133A (en) * | 2017-01-22 | 2017-06-30 | 斑马信息科技有限公司 | Automobile time system and its duration control method and control system |
JP2019190840A (en) * | 2018-04-18 | 2019-10-31 | トヨタ自動車株式会社 | Time synchronization system |
CN109257814A (en) * | 2018-09-17 | 2019-01-22 | 上海擎感智能科技有限公司 | A kind of time calibrating method and system |
WO2021195956A1 (en) * | 2020-03-31 | 2021-10-07 | 华为技术有限公司 | Clock calibration method and apparatus |
CN113103869A (en) * | 2021-03-28 | 2021-07-13 | 大运汽车股份有限公司 | Vehicle clock synchronous display method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11979481B2 (en) | Time synchronisation | |
CN109981206B (en) | Time synchronization method, device, system, terminal equipment and storage medium | |
CN112821974B (en) | High-precision time synchronization method and device for vehicle-mounted ECU | |
WO2019047606A1 (en) | Method and fpga for realizing synchronization of video frame data and gps time position | |
WO2024021457A1 (en) | Time synchronization apparatus and method, unmanned vehicle, roadside unit, and internet of vehicles system | |
CN115694704A (en) | Time synchronization method, device, equipment and storage medium | |
CN111130674B (en) | Synchronous signal acquisition method for automobile electronic control unit, electronic equipment, server and storage medium | |
CN114261353A (en) | Clock synchronization method for automobile instrument and automobile machine | |
CN114866177A (en) | Multi-core SoC chip, inter-core time synchronization method and system thereof, and automobile | |
CN111885173B (en) | ECU (electronic control unit) conforming to AUTOSAR (automotive open system architecture) and sleep/wake-up management method thereof | |
CN202863334U (en) | Clock calibration system of motormeter | |
CN109660310B (en) | Clock synchronization method and device, computing equipment and computer storage medium | |
CN113890663B (en) | Domain controller time synchronization management method, system and vehicle | |
CN102923073A (en) | Clock calibration system for automobile instrument and calibration method of clock calibration system | |
US9671821B2 (en) | Synchronization apparatus and method between AVN system and digital clock of vehicle | |
WO2022110280A1 (en) | Method and apparatus for updating local time, device, and storage medium | |
JPWO2017183555A1 (en) | Vehicle display device | |
KR102093223B1 (en) | Apparatus and method for synchronizing time of power control system | |
CN112558685A (en) | Time synchronization method for power distribution terminal modules | |
CN107846245B (en) | Design method of synchronous double-star GPS original measurement data | |
CN103051505A (en) | CAN (Controller Area Network) network node time-delay computing method | |
CN213424227U (en) | Bus sharing device for traffic signal lamp information | |
CN111586259B (en) | Image simulation method, image computer and target simulator | |
CN115221161B (en) | Whole vehicle buried point data acquisition method and T-BOX | |
CN115865252B (en) | High-precision GNSS time synchronization method capable of setting period |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220401 |
|
RJ01 | Rejection of invention patent application after publication |