A time synchronization method, apparatus, device, and storage medium for an in-vehicle terminal.

By sending a time synchronization request through the GNSS antenna on the GNSS receiver, the time synchronization time of the vehicle terminal is obtained and calculated, which solves the problem of large time synchronization error of the vehicle terminal and achieves millisecond-level accurate time synchronization and continuous recording.

CN116909121BActive Publication Date: 2026-04-03SHENZHEN STREAMING VIDEO TECH
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-14
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

The existing time synchronization method of vehicle-mounted terminals has a large error, which leads to problems such as discontinuous recording and inaccurate time synchronization.

Method used

The system sends a time synchronization request through the GNSS antenna on the GNSS receiver, records the time of the request, obtains the first time information and the second time information, and uses this information to calculate the target time synchronization time to perform time synchronization operation on the vehicle terminal.

Benefits of technology

It achieves millisecond-level time synchronization for vehicle terminals, improving the accuracy and smoothness of time synchronization and avoiding the problem of discontinuous recording.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116909121B_ABST
    Figure CN116909121B_ABST
Patent Text Reader

Abstract

This invention discloses a time synchronization method, apparatus, device, and storage medium for an in-vehicle terminal. The method is executed by an in-vehicle terminal time synchronization system connected to a Global Navigation Satellite System (GNSS) receiver in the in-vehicle terminal. The method includes: sending a time synchronization request to the GNSS receiver via a GNSS antenna configured on the GNSS receiver, and recording the request transmission time; wherein the GNSS receiver transmits a first time signal and a second time signal to the in-vehicle terminal time synchronization system; obtaining first time information based on the reception time of the first time signal; extracting second time information from the signal content of the second time signal; and calculating a target time synchronization time based on the request transmission time, the first time information, and the second time information, to perform time synchronization on the in-vehicle terminal. This invention enables millisecond-level time synchronization of the in-vehicle terminal, improving the accuracy and smoothness of the time synchronization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of system time synchronization, and more particularly to a time synchronization method, apparatus, device, and storage medium for an in-vehicle terminal. Background Technology

[0002] The vehicle-mounted video architecture consists of a three-layer networked integrated monitoring system comprising vehicle-mounted terminals, a transmission network, and a monitoring center. It provides functions such as vehicle anti-theft, anti-hijacking, driving route monitoring, real-time wireless transmission of in-vehicle and out-of-vehicle video images, rapid accident response, and call command to solve the dynamic management problems of existing vehicles.

[0003] Currently, most in-vehicle video terminal devices on the market perform time synchronization through simple GPS (Global Positioning System) or network time synchronization.

[0004] The existing technology has the following problems: the time synchronization through simple GPS or network is very inaccurate, which will cause the recording to be discontinuous and result in lost recordings. It may also cause the black box data to be not real-time due to inaccurate time synchronization. Summary of the Invention

[0005] This invention provides a time synchronization method, apparatus, device, and storage medium for vehicle-mounted terminals, which can solve the problems of large errors, discontinuous recording, and inaccurate time synchronization caused by existing technologies when synchronizing vehicle-mounted terminals.

[0006] In a first aspect, the present invention provides a time synchronization method for an in-vehicle terminal, executed by an in-vehicle terminal time synchronization system, wherein the in-vehicle terminal time synchronization system is connected to a Global Navigation Satellite System (GNSS) receiver in the in-vehicle terminal, the method comprising:

[0007] The system sends a time synchronization request to the GNSS via the GNSS antenna configured on the GNSS receiver and records the time of the time synchronization request; wherein, the GNSS is used to respond to the time synchronization request by sending a first time signal and a second time signal to the vehicle terminal time synchronization system via the GNSS receiver;

[0008] Based on the reception time of the first time signal, obtain the first time information;

[0009] Extract the second time information from the signal content of the second time signal;

[0010] Based on the request sending time, the first time information, and the second time information, the target time synchronization time is calculated to perform time synchronization operation on the vehicle terminal.

[0011] Secondly, the present invention provides a time synchronization device for a vehicle-mounted terminal, executed by a vehicle-mounted terminal time synchronization system, wherein the vehicle-mounted terminal time synchronization system is connected to a Global Navigation Satellite System (GNSS) receiver in the vehicle-mounted terminal, and the device includes:

[0012] A time synchronization request sending module is used to send a time synchronization request to the GNSS via the GNSS antenna configured on the GNSS receiver, and record the time of the time synchronization request; wherein, the GNSS is used to respond to the time synchronization request by sending a first time signal and a second time signal to the vehicle terminal time synchronization system via the GNSS receiver;

[0013] The first-time information acquisition module is used to acquire first-time information based on the reception time of the first-time signal;

[0014] The second time information acquisition module is used to extract second time information from the signal content of the second time signal;

[0015] The target time synchronization calculation module is used to calculate the target time synchronization based on the request sending time, the first time information, and the second time information, so as to perform time synchronization operation on the vehicle terminal.

[0016] Thirdly, the present invention provides an electronic device, the electronic device comprising:

[0017] At least one processor; and

[0018] A memory communicatively connected to the at least one processor; wherein,

[0019] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform a time synchronization method for a vehicle terminal according to any embodiment of the present invention.

[0020] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement a time synchronization method for an in-vehicle terminal as described in any embodiment of the present invention.

[0021] The technical solution of this invention transmits a time synchronization request to the GNSS receiver via a GNSS antenna configured on the GNSS (Global Navigation Satellite System) receiver, and records the time of the request transmission. Then, based on the reception time of the first time signal, the first time information is obtained, and the second time information is extracted from the signal content of the second time signal. Finally, based on the request transmission time, the first time information, and the second time information, the target time synchronization time is calculated to perform time synchronization operation on the vehicle terminal. This solves the problems of large errors, discontinuous recording, and inaccurate time synchronization in the prior art when synchronizing the time of the vehicle terminal. It achieves millisecond-level time synchronization of the vehicle terminal, improving the accuracy and smoothness of the vehicle terminal time synchronization.

[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a flowchart of a time synchronization method for an in-vehicle terminal according to Embodiment 1 of the present invention;

[0025] Figure 2a This is a flowchart of a time synchronization method for an in-vehicle terminal according to Embodiment 2 of the present invention;

[0026] Figure 2b This is a schematic diagram of a time calculation method obtained by the method provided in Embodiment 2 of the present invention;

[0027] Figure 2c This is a flowchart of the signal transmission process obtained according to the method provided in Embodiment 2;

[0028] Figure 3 This is a schematic diagram of the structure of a time synchronization device for a vehicle terminal according to Embodiment 3 of the present invention;

[0029] Figure 4 This is a schematic diagram of the structure of an electronic device that implements a time synchronization method for an in-vehicle terminal according to an embodiment of the present invention. Detailed Implementation

[0030] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0031] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0032] Example 1

[0033] Figure 1 This is a flowchart of a time synchronization method for a vehicle-mounted terminal provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of synchronizing the time of a vehicle-mounted terminal. The method can be executed by a vehicle-mounted terminal time synchronization system, which can be implemented in hardware and / or software. The vehicle-mounted terminal time synchronization system can be configured in a vehicle-mounted terminal time synchronization device, and the vehicle-mounted terminal time synchronization system is connected to the Global Navigation Satellite System (GNSS) receiver in the vehicle-mounted terminal.

[0034] like Figure 1 As shown, the method includes:

[0035] S110. Send a time synchronization request to GNSS via the GNSS antenna configured on the GNSS receiver, and record the time of sending the time synchronization request.

[0036] The GNSS is used to respond to the time synchronization request by sending a first time signal and a second time signal to the vehicle-mounted terminal time synchronization system via a GNSS receiver.

[0037] The GNSS (Global Navigation Satellite System) is a space-based radio navigation and positioning system that provides users with all-weather, three-dimensional coordinates, velocity, and time information at any location on the Earth's surface or in near-Earth space. It includes one or more satellite constellations and augmentation systems required for specific operations, providing global users with all-weather, all-time, high-precision positioning, navigation, and timing services. The timing service uses GPS signals as the time source, with optional BeiDou or other time sources, and embeds the internationally popular NTP / SNTP protocol to synchronize all computers, controllers, and other devices in the network, achieving network time synchronization. In this embodiment, the network time obtained from the GNSS timing service is used as the basis for synchronizing the current vehicle terminal's time, ensuring the accuracy, real-time performance, and precision of the synchronized time.

[0038] In this embodiment, the GNSS receiver can be configured in the vehicle-mounted terminal to receive or send relevant information to the GNSS system; furthermore, for the vehicle-mounted terminal equipped with a GNSS receiver, optionally, the kernel of the vehicle-mounted terminal can be configured to support interrupt-mode response of pps (Pulse Per Second) through preset editing.

[0039] The time synchronization request can be a pre-edited request signal automatically sent by the vehicle terminal upon power-on. The request signal can be used to request a first time signal and a second time signal from the GNSS. Furthermore, the time of sending the time synchronization request is the system time of the vehicle terminal at the time the time synchronization request is sent. It should be noted that the system time is the system time before calibration.

[0040] S120. Obtain first time information based on the reception time of the first time signal.

[0041] Specifically, the first time signal can be a PPS signal; further, the PPS signal is a second pulse signal, which has the characteristics of fast propagation speed and slow signal attenuation during propagation.

[0042] It should be noted that the information carried by the first time signal does not include time information, so the time cannot be obtained by parsing the first time signal; in this embodiment, the receiving time is the current system synchronization time when the vehicle terminal receives the first time signal, which is the first time information.

[0043] The first time information is obtained based on the reception time of the first time signal, including: receiving the first time signal; and obtaining the current system synchronization time of the vehicle terminal synchronization system when the first time signal is received as the first time information.

[0044] S130. Extract the second time information from the signal content of the second time signal.

[0045] The second time signal can be a NEMA data signal; further, the NEMA data is a standard GPS data format that includes position, velocity, and UTC (Upper Time Coordinates).

[0046] Information such as Universal Time Coordinated (UTC); furthermore, the UTC is a time measurement system based on atomic second length with an accuracy at the millisecond level.

[0047] Based on the above steps, the second time information is the UTC data information contained in the signal content of the NEMA data signal.

[0048] S140. Based on the request sending time, the first time information and the second time information, calculate the target time synchronization time to perform time synchronization operation on the vehicle terminal.

[0049] In this embodiment, after calculating the target time synchronization based on the request sending time, the first time information, and the second time information, the method further includes: determining whether the time synchronization is consistent with the current system time synchronization of the vehicle terminal time synchronization system; if not, updating the current system time synchronization to the target time synchronization, and after a preset waiting time interval, returning to the operation of sending the time synchronization request to GNSS through the GNSS antenna configured on the GNSS receiver; if yes, retaining the current system time synchronization of the vehicle terminal, and after a preset waiting time interval, returning to the operation of sending the time synchronization request to GNSS through the GNSS antenna configured on the GNSS receiver.

[0050] For example, if the time synchronization time is consistent with the current system time synchronization time of the vehicle terminal time synchronization system, it indicates that the current system time synchronization time is the accurate time, and the vehicle terminal does not need to perform time synchronization. Therefore, the current system time synchronization time of the vehicle terminal is retained, and after a preset waiting time interval, the operation of sending a time synchronization request to GNSS through the GNSS antenna configured on the GNSS receiver is returned. If the time synchronization time is inconsistent with the current system time synchronization time of the vehicle terminal time synchronization system, it indicates that the current system time synchronization time is inaccurate and needs to be corrected. Therefore, the current system time synchronization time is updated to the target time synchronization time, and after a preset waiting time interval, the operation of sending a time synchronization request to GNSS through the GNSS antenna configured on the GNSS receiver is returned.

[0051] Specifically, the preset waiting time is an integer multiple of 1ms. Since the accuracy of the UTC time is at the millisecond level, multiple time synchronization operations can be performed within the 1ms time range to ensure the accuracy of the time synchronization behavior and the smoothness of the system time synchronization.

[0052] Optionally, the method described in this embodiment further includes: in response to a driving video recording request, obtaining the current system time synchronization from the vehicle terminal time synchronization system in real time; and performing real-time driving video recording based on the real-time obtained system time synchronization.

[0053] In this embodiment, the system automatically performs another time synchronization after a certain time interval to ensure the real-time performance of the vehicle terminal's system time synchronization. Multiple automatic and continuous time synchronization actions ensure the continuity of the vehicle terminal's system time, avoiding the problem of discontinuous recording during time synchronization due to excessive correction amounts. This, in turn, guarantees the continuity and integrity of the vehicle terminal's actual driving video recordings.

[0054] The technical solution of this invention involves sending a time synchronization request to the GNSS receiver via a GNSS antenna configured on the GNSS receiver and recording the request transmission time. Then, based on the reception time of the first time signal, first time information is obtained, and second time information is extracted from the signal content of the second time signal. Finally, based on the request transmission time, the first time information, and the second time information, the target time synchronization time is calculated to perform time synchronization operation on the vehicle terminal. This achieves millisecond-level time synchronization of the vehicle terminal, improving the accuracy and smoothness of the vehicle terminal's time synchronization.

[0055] Example 2

[0056] Figure 2a This is a flowchart of a time synchronization method for a vehicle terminal provided in Embodiment 2 of the present invention. This embodiment is a refinement based on the above embodiment. Specifically, this embodiment refines the method for calculating the target time synchronization based on the request sending time, the first time information and the second time information.

[0057] like Figure 2a As shown, the method includes:

[0058] S210. Send a time synchronization request to GNSS via the GNSS antenna configured on the GNSS receiver, and record the time of sending the time synchronization request.

[0059] The GNSS is used to respond to the time synchronization request by sending a first time signal and a second time signal to the vehicle-mounted terminal time synchronization system via a GNSS receiver.

[0060] S220. Obtain first time information based on the reception time of the first time signal.

[0061] S230. Extract the second time information from the signal content of the second time signal.

[0062] S240. Determine whether the difference between the request sending time and the first time information is less than a predetermined threshold.

[0063] If so, then execute S250;

[0064] If not, then execute S260.

[0065] The threshold is a time period that can be preset manually and adjusted; for example, the threshold can be 5 milliseconds. Furthermore, in this embodiment, the time synchronization request and the first time signal may be delayed or distorted during transmission due to force majeure factors. By judging the threshold, the distorted signal or the signal that is delayed during transmission can be filtered to ensure the accuracy and continuity of the time synchronization operation.

[0066] S250. Based on the request sending time, the first time information and the second time information, the target time synchronization time is calculated.

[0067] Wherein, the request sending time is the system time of the current vehicle terminal when the time synchronization request is sent, the first time information is the reception time of the first time signal, and the second time information is the UTC data information contained in the signal content of the NEMA data signal.

[0068] Specifically, the target time synchronization is calculated based on the request sending time, the first time information, and the second time information, including: calculating the target time synchronization according to a preset formula based on the request sending time, the first time information, and the second time information; wherein, the preset formula is:

[0069] T3 = T0 + (T2 - T1);

[0070] Wherein, T0 is the time when the request was sent, T1 is the first time information, T2 is the second time information, and T3 is the target time synchronization time.

[0071] S260. Delete the request sending time, the first time information and the second time information, and return to the operation of sending the time synchronization request to the GNSS through the GNSS antenna configured on the GNSS receiver, until the target time synchronization time is calculated.

[0072] In this embodiment, the time synchronization request and the first time signal may be delayed or distorted during the propagation process due to force majeure factors. By judging the threshold, the distorted signal or the signal that is delayed during the propagation process can be filtered to ensure the accuracy and consistency of the time synchronization operation.

[0073] The technical solution of this invention involves sending a time synchronization request to GNSS via a GNSS antenna configured on a GNSS receiver and recording the request transmission time. Then, based on the reception time of a first time signal, first time information is obtained, and second time information is extracted from the signal content of a second time signal. Finally, it is determined whether the difference between the request transmission time and the first time information is less than a predetermined threshold. If so, a target time synchronization is calculated based on the request transmission time, the first time information, and the second time information. If not, the request transmission time, the first time information, and the second time information are deleted, and the operation of sending the time synchronization request to GNSS via the GNSS antenna configured on the GNSS receiver is returned until the target time synchronization is calculated. This enables millisecond-level time synchronization of the vehicle terminal, improving the accuracy and smoothness of the vehicle terminal's time synchronization.

[0074] Specific implementation scenarios

[0075] To more clearly illustrate the technical solutions provided by the embodiments of the present invention, this embodiment will briefly introduce a specific implementation scenario obtained according to this embodiment.

[0076] like Figure 2b The diagram shown is a schematic of a time calculation method obtained according to the method described in this embodiment.

[0077] Step 1: Send a time synchronization request to the GNSS via the GNSS antenna configured on the GNSS receiver, and record the time when the time synchronization request was sent.

[0078] The GNSS is used to respond to the time synchronization request by sending a first time signal and a second time signal to the vehicle-mounted terminal time synchronization system via a GNSS receiver.

[0079] The GNSS (Global Navigation Satellite System) is a space-based radio navigation and positioning system that provides users with all-weather, three-dimensional coordinates, velocity, and time information at any location on the Earth's surface or in near-Earth space. It includes one or more satellite constellations and augmentation systems required for specific operations, providing global users with all-weather, all-time, high-precision positioning, navigation, and timing services. The timing service uses GPS signals as the time source, with optional BeiDou or other time sources, and embeds the internationally popular NTP / SNTP protocol to synchronize all computers, controllers, and other devices in the network, achieving network time synchronization. In this embodiment, the network time obtained from the GNSS timing service is used as the basis for synchronizing the current vehicle terminal's time, ensuring the accuracy, real-time performance, and precision of the synchronized time.

[0080] In this application scenario, the GNSS receiver can be configured in the vehicle-mounted terminal to receive or send relevant information to the GNSS system; furthermore, for the vehicle-mounted terminal equipped with a GNSS receiver, optionally, the kernel of the vehicle-mounted terminal can be configured to support interrupt-mode response to PPS through preset editing.

[0081] The time synchronization request can be a pre-edited request signal automatically sent by the vehicle terminal upon power-on. The request signal can be used to request a first time signal and a second time signal from the GNSS. Furthermore, the time of sending the time synchronization request is the system time of the vehicle terminal at the time the time synchronization request is sent. It should be noted that the system time is the system time before calibration.

[0082] Step 2: Based on the reception time of the first time signal, obtain the first time information, and extract the second time information from the signal content of the second time signal.

[0083] Specifically, such as Figure 2c The diagram shows a flowchart of the signal transmission process obtained according to the method described in this embodiment. Rx is UTC data information, Tx is the second time signal, and 1PPS is the first time signal. The GNSS antenna sends a time synchronization request to the GNSS and records the time of the request. The GNSS responds to the time synchronization request by sending the first time signal and the second time signal to the vehicle terminal time synchronization system via the GNSS receiver.

[0084] Step 3: Determine whether the difference between the request sending time and the first time information is less than a predetermined threshold.

[0085] Step Four: As Figure 2bAs shown, based on the request sending time T0, the first time information T1 and the second time information T2, the target synchronization time T3 = 09:00:00.020 is calculated, and the current system synchronization time is updated to 09:00:00.020.

[0086] Example 3

[0087] Figure 3 This is a schematic diagram of the structure of a time synchronization device for a vehicle-mounted terminal provided in Embodiment 3 of the present invention. The time synchronization is performed by the vehicle-mounted terminal time synchronization system, which is connected to the Global Navigation Satellite System (GNSS) receiver in the vehicle-mounted terminal.

[0088] like Figure 3 As shown, the device includes:

[0089] The time synchronization request sending module 310 is used to send a time synchronization request to the GNSS via the GNSS antenna configured on the GNSS receiver, and to record the time of the time synchronization request.

[0090] The GNSS is used to respond to the time synchronization request by sending the first time signal and the second time signal to the vehicle terminal time synchronization system via the GNSS receiver;

[0091] The first time information acquisition module 320 is used to acquire first time information based on the reception time of the first time signal;

[0092] The second time information acquisition module 330 is used to extract second time information from the signal content of the second time signal;

[0093] The target time synchronization calculation module 340 is used to calculate the target time synchronization based on the request sending time, the first time information and the second time information, so as to perform time synchronization operation on the vehicle terminal.

[0094] The technical solution of this invention involves sending a time synchronization request to the GNSS receiver via a GNSS antenna configured on the GNSS receiver and recording the request transmission time. Then, based on the reception time of the first time signal, first time information is obtained, and second time information is extracted from the signal content of the second time signal. Finally, based on the request transmission time, the first time information, and the second time information, the target time synchronization time is calculated to perform time synchronization operation on the vehicle terminal. This achieves millisecond-level time synchronization of the vehicle terminal, improving the accuracy and smoothness of the vehicle terminal's time synchronization.

[0095] Based on the above embodiments, the target time synchronization calculation module 340 specifically includes:

[0096] A threshold determination unit is used to determine whether the difference between the request sending time and the first time information is less than a predetermined threshold.

[0097] The target time synchronization calculation unit is used to calculate the target time synchronization based on the request sending time, the first time information, and the second time information;

[0098] The execution unit is returned to delete the request sending time, the first time information, and the second time information, and then returns to execute the operation of sending the time synchronization request to the GNSS through the GNSS antenna configured on the GNSS receiver, until the target time synchronization time is calculated.

[0099] Based on the above embodiments, the first-time information acquisition module 320 includes:

[0100] A first time signal receiving unit is configured to receive the first time signal;

[0101] The first time signal receiving unit is used to obtain the current system time synchronization time of the vehicle terminal time synchronization system when the first time signal is received as the first time information.

[0102] Based on the above embodiments, the time synchronization device of the vehicle terminal further includes: a consistency verification module, used to determine whether the time synchronization time is consistent with the current system time synchronization time of the vehicle terminal time synchronization system after calculating the target time synchronization time based on the request sending time, the first time information and the second time information;

[0103] If not, the current system time synchronization time is updated to the target time synchronization time, and after a preset waiting time, the operation of sending the time synchronization request to the GNSS through the GNSS antenna configured on the GNSS receiver is returned.

[0104] If so, the current system time synchronization of the vehicle terminal is retained, and after a preset waiting period, the operation of sending a time synchronization request to GNSS through the GNSS antenna configured on the GNSS receiver is returned.

[0105] Based on the above embodiments, the time synchronization device of the vehicle terminal further includes:

[0106] The real-time response module is used to respond to a driving recording request by obtaining the current system time synchronization from the vehicle terminal time synchronization system in real time; and to perform real-time driving recording based on the obtained system time synchronization.

[0107] The time synchronization device for the vehicle terminal provided in the embodiments of the present invention can execute the time synchronization device method for the vehicle terminal provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution.

[0108] Example 4

[0109] Figure 4 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0110] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0111] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0112] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as a time synchronization method for an in-vehicle terminal.

[0113] Accordingly, the method is executed by the vehicle-mounted terminal time synchronization system, which is connected to the Global Navigation Satellite System (GNSS) receiver in the vehicle-mounted terminal. The method includes:

[0114] The system sends a time synchronization request to the GNSS via the GNSS antenna configured on the GNSS receiver and records the time of the time synchronization request; wherein, the GNSS is used to respond to the time synchronization request by sending a first time signal and a second time signal to the vehicle terminal time synchronization system via the GNSS receiver;

[0115] Based on the reception time of the first time signal, obtain the first time information;

[0116] Extract the second time information from the signal content of the second time signal;

[0117] Based on the request sending time, the first time information, and the second time information, the target time synchronization time is calculated to perform time synchronization operation on the vehicle terminal.

[0118] In some embodiments, a time synchronization method for an in-vehicle terminal may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the time synchronization method for an in-vehicle terminal described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform a time synchronization method for an in-vehicle terminal by any other suitable means (e.g., by means of firmware).

[0119] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0120] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0121] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0122] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0123] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0124] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0125] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

Claims

1. A time synchronization method for a vehicle-mounted terminal, executed by a vehicle-mounted terminal time synchronization system, wherein the vehicle-mounted terminal time synchronization system is connected to a Global Navigation Satellite System (GNSS) receiver in the vehicle-mounted terminal, characterized in that, include: The system sends a time synchronization request to the GNSS via the GNSS antenna configured on the GNSS receiver and records the time of the time synchronization request; wherein, the GNSS is used to respond to the time synchronization request by sending a first time signal and a second time signal to the vehicle terminal time synchronization system via the GNSS receiver; Based on the reception time of the first time signal, obtain the first time information; Extract the second time information from the signal content of the second time signal; Based on the request sending time, the first time information, and the second time information, the target time synchronization time is calculated to perform time synchronization operation on the vehicle terminal.

2. The method according to claim 1, characterized in that, Based on the request sending time, the first time information, and the second time information, the target time synchronization time is calculated, specifically including: Determine whether the difference between the request sending time and the first time information is less than a predetermined threshold; If so, the target time synchronization time is calculated based on the request sending time, the first time information, and the second time information; If not, delete the request sending time, the first time information, and the second time information, and return to the operation of sending the time synchronization request to the GNSS through the GNSS antenna configured on the GNSS receiver, until the target time synchronization time is calculated.

3. The method according to claim 1, characterized in that, Based on the reception time of the first time signal, first time information is obtained, including: Receive the first time signal; When the first time signal is received, the current system time of the vehicle terminal time synchronization system is used as the first time information.

4. The method according to claim 2, characterized in that, Based on the request sending time, the first time information, and the second time information, the target time synchronization time is calculated, including: Based on the request sending time, the first time information, and the second time information, the target time synchronization time is calculated according to a preset formula; wherein, the preset formula is: T3 = T0 + (T2 - T1); Wherein, T0 is the time when the request was sent, T1 is the first time information, T2 is the second time information, and T3 is the target time synchronization time.

5. The method according to claim 1, characterized in that, After calculating the target synchronization time based on the request sending time, the first time information, and the second time information, the method further includes: Determine whether the time synchronization time is consistent with the current system time synchronization time of the vehicle terminal time synchronization system; If not, the current system time synchronization time is updated to the target time synchronization time, and after a preset waiting time, the operation of sending the time synchronization request to the GNSS through the GNSS antenna configured on the GNSS receiver is returned. If so, the current system time synchronization of the vehicle terminal is retained, and after a preset waiting period, the operation of sending a time synchronization request to GNSS through the GNSS antenna configured on the GNSS receiver is returned.

6. The method according to claim 5, characterized in that, The preset waiting time is an integer multiple of 1ms.

7. The method according to any one of claims 1-6, characterized in that, The method further includes: In response to a driving recording request, the system obtains the current system time synchronization from the vehicle terminal time synchronization system in real time; Real-time driving recording is performed based on the system's real-time synchronized time.

8. A time synchronization device for a vehicle-mounted terminal, executed by a vehicle-mounted terminal time synchronization system, wherein the vehicle-mounted terminal time synchronization system is connected to a Global Navigation Satellite System (GNSS) receiver in the vehicle-mounted terminal, characterized in that, include: A time synchronization request sending module is used to send a time synchronization request to the GNSS via the GNSS antenna configured on the GNSS receiver, and record the time of the time synchronization request; wherein, the GNSS is used to respond to the time synchronization request by sending a first time signal and a second time signal to the vehicle terminal time synchronization system via the GNSS receiver; The first-time information acquisition module is used to acquire first-time information based on the reception time of the first-time signal; The second time information acquisition module is used to extract second time information from the signal content of the second time signal; The target time synchronization calculation module is used to calculate the target time synchronization based on the request sending time, the first time information and the second time information, so as to perform time synchronization operation on the vehicle terminal.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform a time synchronization method for an in-vehicle terminal according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the time synchronization method for an in-vehicle terminal according to any one of claims 1-7.

Citation Information

Patent Citations

  • High-speed data recording system based on FPGA+DSP framework and establishment method thereof

    CN103678728A

  • Synchronization information sending or receiving method, base station, and communication node

    CN108370549A