T-Box equipment based on multiple time sources, time data acquisition method and vehicle terminal

Through the T-Box device and microcontroller evaluation method with multiple time sources, a reliable target time source is screened out, which solves the time error problem caused by the failure of a single time source and improves the accuracy and reliability of vehicle timestamps.

CN120730461AActive Publication Date: 2025-09-30CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202511196734.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-26
Publication Date
2025-09-30
Estimated Expiration
2045-08-26

AI Technical Summary

Technical Problem

In intelligent connected vehicles, when the SOC module of the T-Box device with a single time source fails to work properly, the time synchronization mechanism fails, causing the time error to exceed the national standard range, affecting the accuracy and reliability of the vehicle timestamp.

Method used

A T-Box device based on multiple time sources is used to perform timing through the initial time source and multiple intermediate time sources. A microcontroller is used to perform confidence assessment and screen out reliable target time sources to ensure the accuracy of time data.

Benefits of technology

It effectively avoids the problem of insufficient reliability when a single time source is used to record time, improves the accuracy and reliability of vehicle timestamps, and meets national standards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120730461A_ABST
    Figure CN120730461A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of time calibration, and provides T-Box equipment based on multiple time sources, a time data acquisition method and a vehicle terminal. According to the method, the initial time data is obtained through the initial time source, timing is carried out through the multiple intermediate time sources according to the initial time data, respective time source data are generated, then the microcontroller is used for carrying out confidence coefficient evaluation on the intermediate time sources according to the difference values between the time source data output by the intermediate time sources, and the confidence coefficient of the intermediate time sources is evaluated according to the difference values between the time source data output by the intermediate time sources. And determining a target time source from the intermediate time sources according to an evaluation result, thereby determining current time data according to time source data output by the target time source, performing independent timing based on the initial time data through the plurality of intermediate time sources, and screening out a reliable target time source in combination with a difference value of the time source data. The problem of insufficient reliability possibly occurring when the time is recorded by a single time source is effectively avoided, and the accuracy of the vehicle timestamp is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of time calibration technology, and in particular to a T-Box device based on multiple time sources, a time data acquisition method, and a vehicle terminal. Background Art

[0002] In the field of intelligent connected vehicles, time synchronization technology for onboard terminals is the core foundation for ensuring vehicle functional reliability and data accuracy. According to national standards, onboard terminals must provide time and date accurate to the second, with a time error within ±5 seconds within 24 hours. To ensure time accuracy, the vehicle's T-Box (Telematics Box) device synchronizes time using GPS (Global Positioning System) or NTP (Network Time Protocol), which uses GPS-based NMEA (National Marine Electronics Association) protocol messages. When the device successfully locates, the time field information in the NMEA message is considered reliable. Alternatively, the device can obtain time from a time calibration server using the NTP protocol. If the request receives a positive response, the server time is confirmed as reliable.

[0003] However, both GPS and NTP rely on the continuous and stable operation of the SOC (System on Chip) in the T-Box device. When the SOC module fails to work properly due to extreme conditions such as sleep, network disconnection, hardware failure, or electromagnetic interference, the time synchronization mechanism will fail. For example, when the vehicle enters deep sleep mode, the SOC may shut down some communication modules to reduce power consumption, resulting in interruption of GPS signal reception or disconnection of the NTP server. At this time, the T-Box cannot obtain reliable time and can only rely on the local crystal oscillator to maintain time records. Due to the inherent frequency drift of the crystal oscillator, the time error within 24 hours may exceed the range allowed by the national standard. Therefore, when the SOC module fails to work properly, the method of recording time through a single time source is unreliable, which in turn makes it impossible for the vehicle to guarantee the accuracy of the timestamp in critical scenarios, which may lead to misjudgment or functional failure. Summary of the Invention

[0004] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0005] In view of the shortcomings of the prior art described above, the present application provides a T-Box device based on multiple time sources, a time data acquisition method and a vehicle terminal to ensure the reliability of vehicle time data and improve the accuracy of vehicle timestamps.

[0006] The present application provides a T-Box device based on multiple time sources, including: an initial time source for obtaining initial time data; multiple intermediate time sources, wherein the intermediate time sources are used to perform timing according to the initial time data to obtain time source data; a microcontroller, which is used to perform confidence assessment on each of the intermediate time sources based on the data difference between the time source data, so as to determine a target time source from each of the intermediate time sources based on the confidence assessment result, and determine current time data based on the time source data output by the target time source.

[0007] In one embodiment of the present application, if the initial time source includes an on-chip system, the on-chip system obtains the initial time data in at least one of the following ways: if the on-chip system is connected to a positioning server, obtaining a positioning protocol message from the positioning server, performing data verification on the positioning protocol message according to a preset positioning data verification strategy, and if the positioning protocol message passes the data verification, extracting the initial time data from the positioning protocol message, wherein the positioning data verification strategy includes at least one of positioning status verification, data integrity verification, and time rationality verification; if the on-chip system is connected to a network server, obtaining a network protocol message from the network server, performing data verification on the network protocol message according to a preset network data verification strategy, and if the network protocol message passes the data verification, extracting the initial time data from the network protocol message, wherein the network data verification strategy includes at least one of response validity verification, timestamp integrity verification, and clock offset verification.

[0008] In one embodiment of the present application, the intermediate time source includes: a first time source, which is arranged in the microcontroller, wherein the first time source is used to synchronize the first timing data according to the initial time data, and use the synchronized first timing data as the timing starting point for timing to obtain first time source data; a second time source, which is connected to the microcontroller, wherein the second time source is used to synchronize the second timing data according to the initial time data, and use the synchronized second timing data as the timing starting point for timing to obtain second time source data; a third time source, which is connected to the microcontroller, wherein the third time source is used to use the preset initial value as the counting starting point if the initial time data is received, and count according to the preset counting period to obtain a counter value, wherein the counter value is used to calculate the initial time data and the counting period to obtain the third time source data.

[0009] In one embodiment of the present application, the microcontroller determines the target time source in the following manner: comparing the first preset threshold value according to each of the data differences; taking any intermediate time source as the fourth time source, taking the intermediate time source other than the fourth time source as the fifth time source, taking the time source data corresponding to the fourth time source as the first comparison data, and taking the time source data corresponding to the fifth time source as the second comparison data; if the data difference values ​​corresponding to the first comparison data and each of the second comparison data are both greater than or equal to the first preset threshold value, and the data difference values ​​between each of the second comparison data are less than the first preset threshold value, then the confidence assessment result corresponding to the fourth time source is set to a negative state; if the data difference values ​​between each of the time source data are both greater than or equal to the first preset threshold value, then the confidence assessment results corresponding to each of the intermediate time sources are set to a negative state; if the confidence assessment results corresponding to the intermediate time sources are not in a negative state, then the intermediate time source is determined as the target time source.

[0010] In one embodiment of the present application, the microcontroller is further configured to: obtain an update period corresponding to the target time source; and periodically update the target time source according to the update period.

[0011] In one embodiment of the present application, the microcontroller obtains the update period corresponding to the target time source in the following manner: comparing the second preset threshold value according to each of the data difference values; if the data difference value is greater than or equal to the second preset threshold value, determining the data difference value as an abnormal difference value; calculating the preset period according to the number of the abnormal difference values ​​to obtain the update period corresponding to the target time source, wherein the number of the abnormal difference values ​​is negatively correlated with the update period.

[0012] In one embodiment of the present application, before determining the current time data based on the time source data output by the target time source, the microcontroller is also used to: obtain the time source status corresponding to the initial time source; if the time source status is normal, determine the current time data based on the initial time data output by the initial time source; if the time source status is abnormal, determine the current time data based on the time source data output by the target time source.

[0013] In one embodiment of the present application, the current time data is determined based on the time source data output by the target time source, including at least one of the following: if the number of the target time sources is one, the time source data output by the target time source is determined as the current time data; if the number of the target time sources is multiple, a current time source is determined from each of the target time sources according to a preset priority, so as to determine the time source data output by the current time source as the current time data; if the number of the target time sources is multiple, and the data difference between each of the target time sources is less than a preset fusion threshold, calculation is performed based on the time source data output by each of the target time sources, and the calculation result is determined as the current time data.

[0014] The present application also provides a time data acquisition method based on multiple time sources, which is applied to a T-Box device. The method includes: acquiring initial time data through an initial time source; timing according to the initial time data through multiple intermediate time sources to obtain time source data; performing confidence evaluation on each of the intermediate time sources according to the data difference between the time source data through a microcontroller, so as to determine a target time source from each of the intermediate time sources according to the confidence evaluation result, and determining the current time data based on the time source data output by the target time source.

[0015] The present application also provides a vehicle terminal, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the vehicle terminal executes the above method.

[0016] Beneficial effects of this application: Initial time data is obtained from an initial time source, and multiple intermediate time sources are used to perform timing based on this initial time data, generating their own time source data. A microcontroller then performs a confidence assessment on these intermediate time sources based on the difference between the time source data output by each intermediate time source. Based on the assessment results, a target time source is determined from the intermediate time sources, and the current time data is determined based on the time source data output by the target time source. In this way, by using multiple intermediate time sources to independently time the initial time data and combining the difference between the time source data to select a reliable target time source, the reliability issue that may arise when a single time source is used to record time is effectively avoided, thereby improving the accuracy of the vehicle timestamp. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be derived from these drawings without inventive effort.

[0018] In the attached figure: Figure 1 This is a schematic diagram of the structure of a T-Box device based on multiple time sources in an embodiment of the present application; Figure 2 2 is a schematic structural diagram of another T-Box device based on multiple time sources in an embodiment of the present application; Figure 3 This is a flow chart of a method for determining a target time source in an embodiment of the present application; Figure 4 This is a flow chart of a method for acquiring time data based on multiple time sources in an embodiment of the present application; Figure 5 It is a structural diagram of another vehicle terminal in an embodiment of the present application. DETAILED DESCRIPTION

[0019] The following describes the embodiments of the present application through specific examples. Those skilled in the art can easily understand other advantages and functions of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments. The details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present application. The following embodiments and features in the embodiments can be combined with each other without conflict.

[0020] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application. The drawings only show components related to the present application and are not drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component can be changed at will, and the component layout type may also be more complicated.

[0021] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.

[0022] The terms "first," "second," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish similar items and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate for the embodiments of the present application described herein. In addition, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions.

[0023] Unless otherwise stated, the term "plurality" means two or more.

[0024] In this application, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.

[0025] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.

[0026] Combine Figure 1 As shown, the present application provides a T-Box device based on multiple time sources, including an initial time source 101 , multiple intermediate time sources 102 and a microcontroller 103 .

[0027] The initial time source 101 is used to obtain initial time data.

[0028] The intermediate time source 102 is used to perform timing according to the initial time data to obtain time source data.

[0029] The microcontroller 103 is used to perform confidence evaluation on each intermediate time source according to the data difference between each time source data, to determine the target time source from each intermediate time source according to the confidence evaluation result, and to determine the current time data according to the time source data output by the target time source.

[0030] The T-Box device based on multiple time sources provided by this application is used to obtain initial time data through an initial time source, and to perform timing based on the initial time data through multiple intermediate time sources to generate their own time source data. The microcontroller is then used to perform confidence assessment on these intermediate time sources based on the difference between the time source data output by each intermediate time source, and the target time source is determined from the intermediate time source based on the assessment result, thereby determining the current time data based on the time source data output by the target time source. In this way, multiple intermediate time sources are used to independently time the initial time data, and a reliable target time source is selected based on the difference between the time source data. This effectively avoids the problem of insufficient reliability that may occur when a single time source records time, thereby improving the accuracy of the vehicle timestamp.

[0031] Combine Figure 2 As shown, the present application provides a T-Box device based on multiple time sources, including an initial time source 101, an intermediate time source 102 and a microcontroller unit (Microcontroller Unit / Motor Control Unit, MCU) 103.

[0032] In some embodiments, the time source component generates a stable time base through physical phenomena or technical means. The initial time source and the intermediate time source both belong to the time source component and provide accurate time information. Among them, the time source component includes but is not limited to atomic clocks, time timers, satellite time sources, network time sources, optical lattice clocks, etc.

[0033] In some embodiments, the core device of the atomic clock includes a cesium atomic beam tube, an optical pumping system, a microwave cavity, etc., which uses the frequency of electromagnetic waves released when atoms transition between specific energy levels as a benchmark, and ensures the long-term accuracy of time data through the stability of the atomic resonance frequency.

[0034] In some embodiments, the core of the timer is a piezoelectric quartz chip and an oscillation circuit, which uses the high-frequency oscillations generated by the quartz crystal under the action of an electric field, converts them into second pulses through a frequency division circuit, drives a stepper motor for timing, and obtains time data.

[0035] In some embodiments, the core of the satellite time source is the onboard atomic clock and the global satellite network. A signal containing a timestamp is sent to the ground by a satellite equipped with a high-precision atomic clock. The satellite time source receives the satellite signal through electromagnetic wave transmission, extracts the timestamp, and obtains time data.

[0036] In some embodiments, the core of the network time source lies in the protocol algorithm and time synchronization mechanism, which uses time-related servers to collect time data. For example, NTP (Network Time Protocol) exchanges timestamp messages between the client and the server, calculates the transmission delay and calibrates the local time, or PTP (Precision Time Protocol) uses hardware timestamps and link delay compensation to achieve synchronization of time data.

[0037] In some embodiments, an optical lattice clock uses laser cooling technology to trap strontium atoms in an optical lattice, generates a time reference by detecting the frequency of optical frequency transitions, and realizes the timing of time data.

[0038] The initial time source 101 includes a system on chip (SOC), wherein the SOC includes an antenna unit and a first processing module.

[0039] The antenna unit is used to receive positioning protocol messages and / or network protocol messages.

[0040] Optionally, the initial time data is obtained in the following manner: if the on-chip system is connected to a positioning server, a positioning protocol message is obtained from the positioning server, and data verification is performed on the positioning protocol message according to a preset positioning data verification strategy. If the positioning protocol message passes the data verification, the initial time data is extracted from the positioning protocol message, wherein the positioning data verification strategy includes at least one of positioning status verification, data integrity verification, and time rationality verification.

[0041] In some embodiments, the positioning server includes one or more of GPS, Beidou satellite, etc., and the positioning protocol message includes NMEA protocol message, etc.

[0042] In some embodiments, the first processing module is used to: perform data verification on the positioning protocol message, wherein the positioning status verification includes verifying the positioning status bit of the field GPRMC (General Positioning System Recommended Minimum Specific GPS / Transit Data, recommended minimum positioning information) in the positioning protocol message, the data integrity verification includes using a checksum algorithm to verify the positioning protocol message to verify that the positioning protocol message has not been tampered with and no transmission error has occurred, and the time rationality verification includes checking whether the time field format is within a valid range to eliminate garbled characters caused by signal loss.

[0043] Optionally, the initial time data is obtained in the following manner: if the on-chip system is connected to a network server, a network protocol message is obtained from the network server, and data verification is performed on the network protocol message according to a preset network data verification strategy; and if the network protocol message passes the data verification, the initial time data is extracted from the network protocol message, wherein the network data verification strategy includes at least one of a response validity check, a timestamp integrity check, and a clock offset check.

[0044] In some embodiments, the network protocol message includes one or more of 2G (Second Generation, second generation mobile communication technology) network messages, 3G (Third Generation, third generation mobile communication technology) network messages, 4G (Fourth Generation, fourth generation mobile communication technology) network messages, 5G (Fifth Generation, fifth generation mobile communication technology) network messages, wireless network messages, etc.

[0045] In some embodiments, the first processing module is used to: perform data verification on the network protocol message, wherein the response validity verification includes requiring the Stratum level (time level) in the NTP response packet to be less than or equal to a preset level threshold, the timestamp integrity verification includes the client sending time T1 being less than the server return time T4, and the clock offset verification includes the time offset Offset=[(T2-T1)+(T3-T4)] / 2 being less than a preset time offset threshold.

[0046] In some embodiments, the first processing module is used to: send the initial time data to the microcontroller 103 through a preset communication protocol. For example, the initial time data uses the UTC (Coordinated Universal Time) time format, and the preset communication protocol includes the UART (Universal Asynchronous Receiver / Transmitter) protocol.

[0047] Optionally, before determining the current time data based on the time source data output by the target time source, the microcontroller is also used to: obtain the time source status corresponding to the initial time source; if the time source status is normal, determine the current time data based on the initial time data output by the initial time source; if the time source status is abnormal, determine the current time data based on the time source data output by the target time source.

[0048] In some embodiments, if the initial time source can obtain the initial time data, the current time data is determined based on the initial time data; if the vehicle terminal is in an environment with poor network such as an underground parking lot, or the SOC in the T-Box is in sleep mode, the SOC cannot obtain the initial time data for time correction, then the current time data is determined based on the trusted source list formed by the target time source and the time source data output by the target time source to achieve time correction.

[0049] The intermediate time source 102 includes a first time source, a second time source, and a third time source.

[0050] The first time source is set in the microcontroller, wherein the first time source is used to synchronize the first timing data according to the initial time data, and to perform timing with the synchronized first timing data as the timing starting point to obtain the first time source data.

[0051] In some embodiments, the first time source includes an MCU RTC (Real-Time Clock) timer in the microcontroller 103, wherein the microcontroller 103 writes the received initial time data into a register of the MCU RTC timer in seconds format to obtain first timing data, and starts timing from the first timing data through the MCU RTC timer.

[0052] The second time source is connected to the microcontroller, wherein the second time source is used to synchronize the second timing data according to the initial time data, and to perform timing using the synchronized second timing data as a timing starting point to obtain second time source data.

[0053] In some embodiments, the second time source includes a temperature-compensated RTC timer, which is external to the microcontroller 103 and connected to the microcontroller 103. The microcontroller 103 writes the received initial time data into the register of the temperature-compensated RTC timer in seconds format to obtain second timing data, and starts timing from the second timing data through the temperature-compensated RTC timer.

[0054] A third time source is connected to the microcontroller, wherein the third time source is used to, if initial time data is received, use a preset initial value as a counting starting point, count according to a preset counting period, and obtain a counter value, wherein the counter value is used to calculate the initial time data and the counting period to obtain third time source data.

[0055] In some embodiments, the third time source includes a high-resolution time timer set based on a master clock oscillator, wherein the master clock oscillator is external to the microcontroller 103 and the master clock oscillator is connected to the microcontroller 103; after the microcontroller 103 obtains the initial time data, the time timer is triggered so that the time timer starts counting from a preset initial value 0 to obtain a counter value, which does not represent time data, but only records the time interval from the last time the initial time data was obtained, wherein the microcontroller 103 is also used to record the initial time data obtained each time.

[0056] In some embodiments, the time source data corresponding to the third time source ,in, is the initial time data of the last record, is the counter value output by the third time source, is the counting frequency of the third time source.

[0057] The microcontroller 103 includes a first time source, a second processing unit and a CAN communication unit, and the microcontroller 103 is connected to the second time source and the third time source.

[0058] In some embodiments, the second processing unit is configured to periodically update the target time source and determine the current time data according to the time source data output by the target time source.

[0059] In some embodiments, the CAN communication unit is connected to the user side of the vehicle terminal, and the CAN (Controller Area Network) communication unit is used to upload current time data to the user side for use by the user side.

[0060] Optionally, the microcontroller is configured to: obtain an update period corresponding to the target time source; and periodically update the target time source according to the update period.

[0061] In some embodiments, the local timing check of the T-Box usually uses the acquisition of initial time data as a trigger condition, while the present application uses multiple intermediate time sources to calibrate the time record inside the vehicle terminal. Compared with using the acquisition of initial time data as a trigger condition, the target time source is periodically updated through an update cycle, and the calibration process of the intermediate time source is always maintained, wherein the update cycle includes 10s (seconds) to 300s. For example, the update cycle is set to 60s.

[0062] Optionally, the microcontroller obtains the update period corresponding to the target time source in the following manner: comparing the second preset threshold value according to each data difference; if the data difference is greater than or equal to the second preset threshold value, determining the data difference as an abnormal difference; calculating the preset period according to the number of abnormal differences to obtain the update period corresponding to the target time source, wherein the number of abnormal differences is negatively correlated with the update period.

[0063] In some embodiments, by converting the clock error of the physical layer into a calculable digital signal, compensating for hardware defects through software strategies, and implementing negatively correlated dynamic parameter adjustment of the update cycle based on data difference quantification anomalies, the time source calibration is based on demand response, which not only meets the national standard accuracy requirements but also optimizes power consumption and reliability. Among them, if the number of abnormal differences is greater, the update cycle is approximately smaller. The calculation formula for the update cycle is: ,in, For the final update cycle, For the initial update cycle, is the preset empirical coefficient, is the number of abnormal differences.

[0064] In some embodiments, if the number of intermediate time sources is two, the first preset threshold is compared based on the data difference between the time source data; if the data difference is greater than or equal to the first preset threshold, the confidence assessment results of the intermediate time sources are set to a negative state respectively; if the data difference is less than the first preset threshold, the two intermediate time sources are respectively determined as target time sources.

[0065] Optionally, if the number of intermediate time sources is three or more, the microcontroller determines the target time source in the following manner: comparing the first preset threshold value according to each of the data differences; taking any intermediate time source as the fourth time source, taking the intermediate time source other than the fourth time source as the fifth time source, taking the time source data corresponding to the fourth time source as the first comparison data, and taking the time source data corresponding to the fifth time source as the second comparison data; if the data differences corresponding to the first comparison data and each of the second comparison data are both greater than or equal to the first preset threshold value, and the data differences between each of the second comparison data are less than the first preset threshold value, then the confidence assessment result corresponding to the fourth time source is set to a negative state; if the data differences between each of the time source data are both greater than or equal to the first preset threshold value, then the confidence assessment results corresponding to each of the intermediate time sources are set to a negative state; if the confidence assessment results corresponding to the intermediate time sources are not in a negative state, then the intermediate time source is determined as the target time source.

[0066] In some embodiments, the time source data corresponding to the first time source is recorded as , the time source data corresponding to the second time source is recorded as , the time source data corresponding to the third time source is recorded as ; The data difference between the first time source and the second time source , the data difference between the first time source and the third time source , the data difference between the second time source and the third time source ,in, is the absolute value symbol.

[0067] In some embodiments, if the data difference is greater than or equal to the first preset threshold, and the data difference is greater than or equal to the first preset threshold, and the data difference If the value is less than the first preset threshold, the confidence evaluation result of the first time source is negative.

[0068] In some embodiments, if the data difference is greater than or equal to the first preset threshold, and the data difference is less than the first preset threshold, and the data difference If the value is greater than or equal to the first preset threshold, the confidence evaluation result of the second time source is negative.

[0069] In some embodiments, if the data difference is less than the first preset threshold, and the data difference is greater than or equal to the first preset threshold, and the data difference If the value is greater than or equal to the first preset threshold, the confidence evaluation result of the third time source is negative.

[0070] In some embodiments, if the data difference is greater than or equal to the first preset threshold, and the data difference is greater than or equal to the first preset threshold, and the data difference If the confidence evaluation results of the intermediate time sources are greater than or equal to the first preset threshold, they are all in a negative state.

[0071] In some embodiments, if the confidence evaluation results of each intermediate time source are all negative, exception handling is performed, where the exception handling includes restoring each intermediate data source, using the last recorded initial time data, generating a fault code, etc.

[0072] Combine Figure 3 As shown, the present application provides a method for determining a target time source, comprising: Step S301, obtaining the time source data corresponding to each target time source; Step S302, calculating the data difference between each time source data; Step S303, determining each target time source as a fourth time source; wherein, an intermediate time source other than the fourth time source is used as a fifth time source, time source data corresponding to the fourth time source is used as first comparison data, and time source data corresponding to the fifth time source is used as second comparison data; Step S304, determining whether the data differences corresponding to the first comparison data are all greater than or equal to a first preset threshold, if so, skipping to step S305, if not, skipping to step S306; Step S305, determining whether the data difference between the second comparison data is greater than or equal to a first preset threshold, if so, skipping to step S307, if not, skipping to step S308; Step S306: Set the fourth time source as the target time source.

[0073] Step S307: determine each intermediate time source as an abnormal time source.

[0074] Step S308: Determine the fourth time source as an abnormal time source.

[0075] Optionally, the current time data is determined based on the time source data output by the target time source, including at least one of the following: if the number of target time sources is one, the time source data output by the target time source is determined as the current time data; if the number of target time sources is multiple, a current time source is determined from each target time source according to a preset priority, so as to determine the time source data output by the current time source as the current time data; if the number of target time sources is multiple, and the data difference between each target time source is less than a preset fusion threshold, calculation is performed based on the time source data output by each target time source, and the calculation result is determined as the current time data.

[0076] In some embodiments, the current time source is determined according to priority, and the time source data output by the current time source is determined as the current time data. For example, if the target time source includes a second time source, the second time source is used as the current time source, and the current time data is determined based on the time source data output by the second time source.

[0077] In some embodiments, if there are multiple target data sources and the data difference between the target data sources is less than a preset fusion threshold, the time source data output by each target data source is calculated using an average method or a weighted calculation method to obtain the current time data.

[0078] In some embodiments, if the time source data output by the target data source are 2025-08-20 13:15:25, 2025-08-20 13:15:26, and 2025-08-20 13:15:27, respectively, then 0:00 on 2025-08-20 is used as the starting point, and each time source data is converted into seconds, that is, 2025-08-20 13:15:25 is 47725 seconds, 2025-08-20 13:15:26 is 47726 seconds, and 2025-08-20 13:15:26 is 47727 seconds; using the average method, the average value is calculated based on 47725 seconds, 47726 seconds, and 47727 seconds to obtain 47726 seconds, and 47726 seconds is converted into UTC time data, and the current time data is 2025-08-20 13:15:26.

[0079] In some embodiments, if the time source data output by the target data source are 2025-08-20 13:15:25, 2025-08-20 13:15:26, and 2025-08-20 13:15:27, then 0:00 on 2025-08-20 is used as the starting point, and each time source data is converted into seconds, that is, 2025-08-20 13:15:25 is 47725 seconds, 2025-08-20 13:15:26 is 47726 seconds, and 2025-08-20 13:15:26 is 47727 seconds. The weights for 47725, 47726, and 47727 are 0.4 / 0.4 / 0.2, respectively. 47725, 47726, and 47727 are weighted based on the weights to obtain 47725.8 seconds. 47725.8 seconds is rounded off and converted to UTC time data, resulting in the current time data being 2025-08-20 13:15:26.

[0080] Combine Figure 4 As shown, the present application provides a method for acquiring time data based on multiple time sources, which is applied to a T-Box device. The method includes: Step S401, obtaining initial time data through an initial time source; Step S402, using multiple intermediate time sources, respectively performing timing according to the initial time data to obtain time source data; In step S403, the microcontroller performs confidence evaluation on each intermediate time source according to the data difference between each time source data, determines the target time source from each intermediate time source according to the confidence evaluation result, and determines the current time data according to the time source data output by the target time source.

[0081] The time data acquisition method based on multiple time sources provided in this application is used to obtain initial time data through an initial time source, and then use multiple intermediate time sources to perform timing based on the initial time data to generate their own time source data. Then, a microcontroller is used to perform confidence assessment on these intermediate time sources based on the difference between the time source data output by each intermediate time source, and a target time source is determined from the intermediate time sources based on the assessment results, thereby determining the current time data based on the time source data output by the target time source. In this way, multiple intermediate time sources are used to independently perform timing based on the initial time data, and a reliable target time source is selected based on the difference between the time source data. This effectively avoids the problem of insufficient reliability that may occur when a single time source records time, thereby improving the accuracy of the vehicle timestamp.

[0082] The present application also provides a vehicle terminal, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the vehicle terminal executes the above method.

[0083] Figure 5 The following is a schematic diagram showing the structure of a computer system of a vehicle terminal suitable for implementing the embodiment of the present application. Figure 5 The computer system 500 of the vehicle terminal shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0084] like Figure 5 As shown, computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, based on programs stored in read-only memory (ROM) 502 or programs loaded from storage 508 into random access memory (RAM) 503. RAM 503 also stores various programs and data required for system operation. CPU 501, ROM 502, and RAM 503 are interconnected via bus 504. An input / output (I / O) interface 505 is also connected to bus 504.

[0085] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, mouse, and the like; an output section 507 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and speakers; a storage section 508 including devices such as a hard disk; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card or a modem. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. Removable media 511, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 510 as needed, so that computer programs read from the media can be installed in the storage section 508 as needed.

[0086] The vehicle terminal disclosed in this embodiment includes a processor, a memory, a transceiver and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication with each other. The memory is used to store computer programs, the communication interface is used to communicate, and the processor and the transceiver are used to run the computer program, so that the vehicle terminal executes each step of the above method.

[0087] The above description and the accompanying drawings sufficiently illustrate the embodiments of the present disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible variations. Unless expressly required, individual components and functions are optional, and the order of operations may vary. Portions and subsamples of some embodiments may be included in or replace portions and subsamples of other embodiments. Moreover, the terms used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and / or" as used in this application means any and all possible combinations including one or more of the associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated subsamples, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other subsamples, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, an element defined by the sentence "comprising a..." does not exclude the presence of other identical elements in the process, method or device that includes the element. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments can be referenced to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can be found in the description of the method part.

[0088] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. Technicians can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0089] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices and equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units may be merely a logical functional division. In actual implementation, other division methods may be used, such as combining or integrating multiple units or components into another system, or ignoring or not executing some sub-samples. In addition, the coupling or direct coupling or communication connection shown or discussed between each other may be through some interface, or the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to implement the present embodiments according to actual needs. In addition, the functional units in this application may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit.

[0090] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of the systems, methods, and computer program products of the present application. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in an order different from that marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, or they may sometimes be executed in the opposite order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks may also occur in an order different from that disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps may actually be executed substantially in parallel, or they may sometimes be executed in the opposite order, depending on the functions involved. Each block in the block diagram and / or flowchart, as well as combinations of blocks in the block diagram and / or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or action, or may be implemented using a combination of dedicated hardware and computer instructions.

Claims

1. A T-Box device based on multiple time sources, characterized in that: include: Initial time source, used to obtain initial time data; a plurality of intermediate time sources, wherein the intermediate time sources are used to perform timing according to the initial time data to obtain time source data; a microcontroller configured to perform a confidence assessment on each of the intermediate time sources based on a data difference between the time source data, determine a target time source from the intermediate time sources based on the confidence assessment result, and determine current time data based on the time source data output by the target time source; The microcontroller determines the target time source in the following manner: comparing the first preset threshold value according to each of the data differences; taking any intermediate time source as the fourth time source, taking the intermediate time source other than the fourth time source as the fifth time source, taking the time source data corresponding to the fourth time source as the first comparison data, and taking the time source data corresponding to the fifth time source as the second comparison data; if the data differences corresponding to the first comparison data and each of the second comparison data are both greater than or equal to the first preset threshold value, and the data differences between each of the second comparison data are less than the first preset threshold value, then the confidence assessment result corresponding to the fourth time source is set to a negative state; if the data differences between each of the time source data are both greater than or equal to the first preset threshold value, then the confidence assessment results corresponding to each of the intermediate time sources are set to a negative state; if the confidence assessment results corresponding to the intermediate time sources are not in a negative state, then the intermediate time source is determined as the target time source.

2. The T-Box device according to claim 1, characterized in that If the initial time source includes a system on chip, the system on chip obtains the initial time data by at least one of the following methods: If the system on chip is connected to a positioning server, a positioning protocol message is obtained from the positioning server, and data verification is performed on the positioning protocol message according to a preset positioning data verification strategy. If the positioning protocol message passes the data verification, initial time data is extracted from the positioning protocol message, wherein the positioning data verification strategy includes at least one of positioning status verification, data integrity verification, and time rationality verification; If the system on chip is connected to a network server, a network protocol message is obtained from the network server, and data verification is performed on the network protocol message according to a preset network data verification strategy. Moreover, if the network protocol message passes the data verification, initial time data is extracted from the network protocol message, wherein the network data verification strategy includes at least one of a response validity check, a timestamp integrity check, and a clock offset check.

3. The T-Box device according to claim 1, characterized in that The intermediate time sources include: a first time source, provided in the microcontroller, wherein the first time source is used to synchronize the first timing data according to the initial time data, and to perform timing using the synchronized first timing data as a timing starting point to obtain first time source data; a second time source connected to the microcontroller, wherein the second time source is used to synchronize the second timing data according to the initial time data, and use the synchronized second timing data as a timing starting point to perform timing, thereby obtaining second time source data; A third time source is connected to the microcontroller, wherein the third time source is used to use a preset initial value as a counting starting point if the initial time data is received, and count according to a preset counting period to obtain a counter value, wherein the counter value is used to calculate the initial time data and the counting period to obtain third time source data.

4. The T-Box device according to claim 1, characterized in that The microcontroller is also used to: Obtaining the update period corresponding to the target time source; The target time source is periodically updated according to the update period.

5. The T-Box device according to claim 4, characterized in that: The microcontroller obtains the update period corresponding to the target time source in the following manner: Comparing the second preset threshold values ​​respectively according to the data differences; If the data difference is greater than or equal to the second preset threshold, determining the data difference as an abnormal difference; The preset period is calculated according to the number of the abnormal difference values ​​to obtain an update period corresponding to the target time source, wherein the number of the abnormal difference values ​​is negatively correlated with the update period.

6. The T-Box device according to any one of claims 1 to 5, characterized in that: Before determining the current time data according to the time source data output by the target time source, the microcontroller is further configured to: Obtaining the time source status corresponding to the initial time source; If the time source state is normal, determining the current time data according to the initial time data output by the initial time source; If the time source state is an abnormal state, the current time data is determined according to the time source data output by the target time source.

7. The T-Box device according to any one of claims 1 to 5, characterized in that: Determining the current time data according to the time source data output by the target time source includes at least one of the following: If the number of the target time source is one, determining the time source data output by the target time source as the current time data; If there are multiple target time sources, a current time source is determined from each of the target time sources according to a preset priority, so as to determine the time source data output by the current time source as the current time data; If there are multiple target time sources and the data difference between the target time sources is less than the preset fusion threshold, calculation is performed based on the time source data output by each target time source, and the calculation result is determined as the current time data.

8. A method for acquiring time data based on multiple time sources, characterized in that: Applied to a T-Box device, the method includes: Obtain initial time data through an initial time source; Through multiple intermediate time sources, timing is performed according to the initial time data to obtain time source data; Performing a confidence evaluation on each of the intermediate time sources based on a data difference between the time source data by a microcontroller, determining a target time source from each of the intermediate time sources based on the confidence evaluation result, and determining current time data based on the time source data output by the target time source; The target time source is determined in the following manner: the first preset threshold is compared according to each of the data differences; any intermediate time source is used as the fourth time source, the intermediate time source other than the fourth time source is used as the fifth time source, the time source data corresponding to the fourth time source is used as the first comparison data, and the time source data corresponding to the fifth time source is used as the second comparison data; if the data differences corresponding to the first comparison data and each of the second comparison data are both greater than or equal to the first preset threshold, and the data differences between each of the second comparison data are less than the first preset threshold, then the confidence assessment result corresponding to the fourth time source is set to a negative state; if the data differences between each of the time source data are both greater than or equal to the first preset threshold, then the confidence assessment results corresponding to each of the intermediate time sources are set to a negative state; if the confidence assessment results corresponding to the intermediate time sources are not in a negative state, then the intermediate time source is determined as the target time source.

9. A vehicle terminal, characterized in that: include: processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the vehicle terminal performs the method according to claim 8.

Citation Information

Patent Citations

  • Time correction method and device based on multiple time sources and vehicle

    CN115102656A

  • High-precision time synchronization method under new energy grid connection

    CN118138180A

  • Vehicle-mounted T-BOX time synchronization method, electronic equipment and storage medium

    CN119676277A

  • Methods and Systems for Clock Correction and / or Synchronization for Audio Media Measurement Systems

    US20140114456A1

  • Time synchronization device for providing timing information acquired from network time sources to endpoint devices

    US20230393608A1