Time calibration method of vehicle-mounted terminal, vehicle-mounted terminal, server and system
By sending vehicle positioning location information to the server and receiving time zone and daylight saving time information, the on-board terminal can accurately calibrate its local time, solving the problem of inaccurate time calibration in the prior art, and improving the accuracy and reliability of time.
Patent Information
- Application Number
- CN202510532859.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-25
- Publication Date
- 2025-06-24
AI Technical Summary
The prior art is difficult to accurately calibrate the time of the vehicle terminal, which may be inaccurate, affecting the overseas service capabilities of intelligent connected vehicles.
By sending the vehicle position information to the server, receiving the time calibration auxiliary information sent by the server, including time zone information and daylight saving time information, the local time of the vehicle terminal is determined based on these information.
Accurate calibration of on-board terminal time is achieved, ensuring that local time and UTC time are kept in sync, reflecting local time zones and daylight saving time, avoiding errors that may be caused by manual time setting, and improving time accuracy.
Smart Images

Figure CN120200702A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of vehicles, in particular to the technical field of in-vehicle control, and specifically relates to a time calibration method for an in-vehicle terminal, an in-vehicle terminal, a server, and a system. Background Art
[0002] With the deep integration of technologies such as artificial intelligence, the Internet of Things, and big data, intelligent connected vehicles have become the core direction for the transformation and upgrading of the global automotive industry. In recent years, the export volume of intelligent connected vehicles has increased rapidly year-on-year, covering multiple countries and regions. However, in the global layout, the problems of time zone differences and adaptation to daylight saving time rules have become the key bottlenecks restricting the overseas service capabilities of intelligent connected vehicles.
[0003] In a related technology, it is proposed that the in-vehicle terminal obtains the current time information of the mobile terminal through the Manufacturing Automation Protocol (MAP) protocol, so as to update the time of the in-vehicle terminal.
[0004] In another related technology, it is proposed to obtain the longitude and latitude information of the current vehicle position, reverse compile and calculate the administrative location and city where the current location belongs, and then obtain information such as the administrative time zone and daylight saving time of the current location by querying the local tzdata time zone database, and then automatically switch the time zone and time of the in-vehicle unit. Summary of the Invention
[0005] This application provides a time calibration method for an in-vehicle terminal, an in-vehicle terminal, a server, and a system to at least solve the technical problem in the related technology that it is difficult to accurately calibrate the time of the in-vehicle terminal. The technical solutions of this application are as follows:
[0006] According to the first aspect provided by this application, there is provided a time calibration method for an in-vehicle terminal, which is applied to the in-vehicle terminal. The method includes: sending the positioning position information of the vehicle to the server; receiving the time calibration auxiliary information sent by the server, where the time calibration auxiliary information includes the time zone information and daylight saving time information corresponding to the positioning position information; and determining the local time of the in-vehicle terminal based on the time zone information, daylight saving time information, and UTC time.
[0007] According to the above technical means, this application can automatically calibrate the local time of the in-vehicle terminal by receiving the time calibration auxiliary information (including time zone information and daylight saving time information) sent by the server, ensure that the local time is synchronized with the UTC time, and accurately reflect the local time zone and daylight saving time, avoiding the errors that may be caused by manually setting the time and improving the accuracy of the time.
[0008] In a possible implementation manner, the positioning location information of the vehicle is sent to the server, including: when the vehicle meets the time calibration condition, the positioning location information of the vehicle is sent to the server.
[0009] According to the above technical means, the present application can ensure time calibration only when needed by setting time calibration conditions, avoiding unnecessary communication overhead and consumption of computing resources.
[0010] In a possible implementation manner, the time calibration condition includes at least one of the following: the time calibration timer times out; the driving mileage of the vehicle after the last time calibration is greater than or equal to the driving mileage threshold.
[0011] According to the above technical means, the present application can synchronize the in-vehicle terminal with the time server regularly by setting a time calibration timer, so as to correct possible time deviations in a timely manner. In addition, taking the driving mileage threshold as a calibration condition makes the time calibration associated with the actual use of the vehicle, avoiding time deviations caused by various reasons (such as crossing time zones, signal interference, etc.) and ensuring the accuracy of time.
[0012] In a possible implementation manner, the time calibration condition further includes: the time interval between the current time and the execution time of the last time calibration is greater than or equal to the preset time interval.
[0013] According to the above technical means, the present application can avoid frequent time calibration by setting a reasonable time interval, thereby saving communication resources and computing resources.
[0014] In a possible implementation manner, the time zone information includes a time zone offset, the daylight saving time information includes a daylight saving time offset, and the local time is the sum of the UTC time, the time zone offset, and the daylight saving time offset.
[0015] According to the above technical means, the present application can accurately reflect the time differences in different regions and ensure the accuracy of time calculation by defining the local time as the sum of the UTC time, the time zone offset, and the daylight saving time offset.
[0016] According to the second aspect provided by the present application, a time calibration method for an in-vehicle terminal is provided, which is applied to a server. The method includes: receiving the positioning location information of the in-vehicle terminal; sending time calibration auxiliary information to the in-vehicle terminal; wherein, the time calibration auxiliary information includes the time zone information and the daylight saving time information corresponding to the positioning location information; the time calibration auxiliary information is used to assist the vehicle terminal in calibrating the local time.
[0017] In a possible implementation manner, before sending the time calibration auxiliary information to the vehicle-mounted terminal, the method further includes: converting the positioning location information into a geographical location code, and determining the geographical area corresponding to the geographical location code; based on the R-Tree algorithm, traversing from the geographical area to obtain a candidate polygon area containing the coordinate point corresponding to the positioning location information; determining a target polygon area from the candidate polygon area based on the ray algorithm; wherein, the coordinate point corresponding to the positioning location information is located inside the target polygon area; and determining the time zone information based on the target polygon area.
[0018] In a possible implementation manner, determining the time zone information based on the target polygon area includes: when the country to which the target polygon area belongs is not clear, obtaining the country code corresponding to the vehicle-mounted terminal; and determining the time zone information based on the country code and the target polygon area.
[0019] In a possible implementation manner, determining the daylight saving time information based on the time zone information and the correspondence between the time zone and the daylight saving time.
[0020] According to the third aspect provided by the present application, a vehicle-mounted terminal is provided, including: a sending unit, a receiving unit, and a determining unit; the sending unit is configured to send the positioning location information of the vehicle to the server; the receiving unit is configured to receive the time calibration auxiliary information sent by the server, and the time calibration auxiliary information includes the time zone information and the daylight saving time information corresponding to the positioning location information; the determining unit is configured to determine the local time of the vehicle-mounted terminal based on the time zone information, the daylight saving time information, and the UTC time.
[0021] In a possible implementation manner, the sending unit is specifically configured to: send the positioning location information of the vehicle to the server when the vehicle meets the time calibration condition.
[0022] According to the fourth aspect provided by the present application, a server is provided, including a receiving unit and a sending unit; the receiving unit is configured to receive the positioning location information of the vehicle-mounted terminal; the sending unit is configured to send the time calibration auxiliary information to the vehicle-mounted terminal; wherein, the time calibration auxiliary information includes the time zone information and the daylight saving time information corresponding to the positioning location information; and the time calibration auxiliary information is used to assist the vehicle terminal in calibrating the local time.
[0023] In a possible implementation manner, the server further includes: a determination unit; the determination unit is configured to convert the positioning location information into a geographical location code, and determine the geographical region corresponding to the geographical location code; the determination unit is further configured to traverse, based on the R-Tree algorithm, a candidate polygon region containing the coordinate point corresponding to the positioning location information from the geographical region; the determination unit is further configured to determine a target polygon region from the candidate polygon regions based on the ray algorithm; wherein, the coordinate point corresponding to the positioning location information is located inside the target polygon region; the determination unit is further configured to determine the time zone information based on the target polygon region.
[0024] In a possible implementation manner, the determination unit is specifically configured to: when the country to which the target polygon region belongs is not clear, obtain the country code corresponding to the vehicle-mounted terminal; and determine the time zone information based on the country code and the target polygon region.
[0025] In a possible implementation manner, the determination unit is further configured to determine the daylight saving time information based on the time zone information and the correspondence between the time zone and the daylight saving time.
[0026] According to the fifth aspect provided by the present application, there is provided a time calibration system for a vehicle-mounted terminal, including a vehicle-mounted terminal and a server; the vehicle-mounted terminal is configured to send the positioning location information of the vehicle to the server; the server is configured to receive the positioning location information of the vehicle-mounted terminal and send time calibration auxiliary information to the vehicle-mounted terminal; wherein, the time calibration auxiliary information includes the time zone information and the daylight saving time information corresponding to the positioning location information; the time calibration auxiliary information is used to assist the vehicle terminal to calibrate the local time. The vehicle-mounted terminal is further configured to receive the time calibration auxiliary information sent by the server, and determine the local time of the vehicle-mounted terminal based on the time zone information, the daylight saving time information, and the UTC time.
[0027] According to the sixth aspect provided by the present application, there is provided an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to execute the instructions to implement the method according to the first aspect and any one of its possible implementation manners.
[0028] According to the seventh aspect provided by the present application, there is provided a computer-readable storage medium, when the instructions in the computer-readable storage medium are executed by the processor of the electronic device, enabling the electronic device to execute the method according to the first aspect and any one of its possible implementation manners.
[0029] According to the eighth aspect provided by the present application, there is provided a computer program product, the computer program product includes computer instructions, when the computer instructions run on the electronic device, enabling the electronic device to execute the method according to the first aspect and any one of its possible implementation manners.
[0030] It should be noted that for the technical effects brought by any of the implementation manners from the third aspect to the eighth aspect, reference may be made to the technical effects brought by the corresponding implementation manner in the first aspect, which will not be elaborated herein.
[0031] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit this application. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with this application, and are used together with the specification to explain the principles of this application, and do not constitute an improper limitation to this application.
[0033] Figure 1 is a schematic structural diagram of a time calibration system for a vehicle-mounted terminal shown according to an exemplary embodiment;
[0034] Figure 2 is a flowchart of a time calibration method for a vehicle-mounted terminal shown according to an exemplary embodiment;
[0035] Figure 3 is a schematic structural diagram of another time calibration system for a vehicle-mounted terminal shown according to an exemplary embodiment;
[0036] Figure 4 is a time calibration flowchart shown according to an exemplary embodiment;
[0037] Figure 5 is another time calibration flowchart shown according to an exemplary embodiment;
[0038] Figure 6 is another time calibration flowchart shown according to an exemplary embodiment;
[0039] Figure 7 is a block diagram of a vehicle-mounted terminal shown according to an exemplary embodiment;
[0040] Figure 8 is a block diagram of a server shown according to an exemplary embodiment;
[0041] Figure 9 is a block diagram of an electronic device shown according to an exemplary embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0042] In order to enable those of ordinary skill in the art to better understand the technical solutions of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0043] It should be noted that the terms "first", "second", etc. in the description, claims and the above-mentioned drawings of this application are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of this application described here can be implemented in an order other than those illustrated or described here. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. On the contrary, they are only examples of devices and methods consistent with some aspects of this application as detailed in the appended claims.
[0044] Next, the technical solutions in the embodiments of this application will be described with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments.
[0045] The time calibration method for an in-vehicle terminal provided in the embodiments of this application can be applied in a vehicle. A vehicle can also be referred to as a transportation vehicle (vehicle), a mobile carrier (mobile carrier), an electric vehicle (electric vehicle, EV), a hybrid electric vehicle (hybrid electric vehicle, HEV), a plug-in hybrid electric vehicle (plug-in hybrid electric vehicle, PHEV), a fuel cell vehicle (fuel cell vehicle, FCV), an autonomous vehicle (autonomous vehicle), an intelligent and connected vehicle (intelligent and connected vehicle, ICV), a driverless vehicle (driverless vehicle), etc.
[0046] In the embodiments of this application, the vehicle can be a sedan, a sport utility vehicle (SUV), a truck, an electric vehicle, a motorcycle, a tricycle, a special vehicle (such as an ambulance, a fire truck, a police car, etc.), a driverless taxi, an intelligent and connected bus, an autonomous logistics vehicle, an electric truck, etc. In addition, this method is also applicable to various special vehicles, such as agricultural vehicles, mining vehicles, forestry vehicles, airport vehicles, port vehicles, etc. This application does not make specific limitations in this regard.
[0047] Figure 1 The structural schematic diagram of the time calibration system of the in-vehicle terminal is shown.
[0048] In a possible implementation manner, the time calibration system 100 of the in-vehicle terminal may include an in-vehicle terminal 101 and a server 102.
[0049] Optionally,Figure 1 A communication connection can be established between the in-vehicle terminal 101 and the server 102.
[0050] In practical applications, the in-vehicle terminal 101 can communicate with one or more servers 102.
[0051] For ease of understanding, this application takes the communication connection between one in-vehicle terminal 101 and one server 102 as an example for illustration.
[0052] Optionally, Figure 1 The in-vehicle terminal 101 and the server 102 in can be functional modules integrated in the same device, or can be devices independently set up. This application does not limit this.
[0053] It is easy to understand that when the in-vehicle terminal 101 and the server 102 are functional modules integrated in the same device, the communication method between the in-vehicle terminal 101 and the server 102 is the communication between internal modules of the device. In this case, the communication process between the two is the same as the "communication process when the in-vehicle terminal 101 and the server 102 are independently set up".
[0054] For ease of understanding, this application mainly takes the case where the in-vehicle terminal 101 and the server 102 are independently set up as an example for illustration.
[0055] Figure 1 The in-vehicle terminal 101 in can obtain the positioning location information of the vehicle and send the positioning location information of the vehicle to the server. The server 102 can receive the positioning location information of the in-vehicle terminal and send time calibration auxiliary information to the in-vehicle terminal 101. The in-vehicle terminal 101 can receive the time calibration auxiliary information sent by the server and determine the local time of the in-vehicle terminal based on the time zone information, daylight saving time information, and UTC time.
[0056] Optionally, Figure 1 The in-vehicle terminal 101 in can be a terminal, or a server, or other types of electronic devices. Figure 1 What is shown in is only an example of the device form of the in-vehicle terminal 101 and does not limit it.
[0057] When the vehicle-mounted terminal 101 is a terminal, the terminal can be a device that provides voice and / or data connectivity to the user, a handheld device with wireless connection capabilities, or other processing devices connected to a wireless modem. The terminal can communicate with one or more core networks via a radio access network (RAN). The terminal can be a mobile terminal, such as a computer with a mobile terminal, or a mobile device built into the time calibration system 100 of the vehicle-mounted terminal. They exchange language and / or data with the radio access network. For example, mobile phones, tablets, laptops, netbooks, personal digital assistants (PDAs). This application does not impose any restrictions on this.
[0058] When the vehicle-mounted terminal 101 is a server, the server can be a single server, or alternatively, it can be a server cluster composed of multiple servers. In some embodiments, the server cluster can also be a distributed cluster. This application does not impose any restrictions on this.
[0059] It should be noted that the structure illustrated in the embodiments of this application does not limit the time calibration system 100 of the vehicle-mounted terminal. It can include more or fewer components than those shown, or combine certain components, or split certain components, or have different component arrangements. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0060] Figure 2 is a flowchart of a time calibration method for a vehicle-mounted terminal shown according to an exemplary embodiment. As Figure 2 shown, the time calibration method includes the following steps: S201 - S205.
[0061] S201. The vehicle-mounted terminal sends the positioning location information of the vehicle to the server.
[0062] Among them, the positioning location information can be a data set used to represent the specific location of the vehicle in space. The positioning location information can include the geographical coordinates and altitude of the vehicle.
[0063] Optionally, the geographical coordinates can be longitude and latitude, or they can be planar coordinates. This application does not make specific restrictions on this.
[0064] In a possible implementation manner, the vehicle-mounted terminal can obtain the positioning location information in real time.
[0065] Optionally, the manner in which the vehicle-mounted terminal obtains the positioning location information can be set according to actual needs. For example, the vehicle-mounted terminal can obtain the positioning location information through the Global Navigation Satellite System (GNSS), or can determine the positioning location information through base station positioning. This application does not make specific limitations in this regard.
[0066] In a possible implementation manner, the positioning location information can be sent to the server when the vehicle meets the time calibration condition.
[0067] Among them, the time calibration condition includes at least one of the time calibration timer timing out and the driving mileage of the vehicle after the last time calibration being greater than or equal to the driving mileage threshold.
[0068] Optionally, the time set by the time calibration timer can be set according to actual needs. For example, the set time can be 50 minutes, or it can be 40 minutes. This application does not make specific limitations in this regard.
[0069] Optionally, the driving mileage threshold can be set according to actual needs. For example, the driving mileage threshold can be 50 kilometers, or it can be 20 kilometers. This application does not make specific limitations in this regard.
[0070] In a possible implementation manner, the vehicle-mounted terminal can record the total driving mileage of the vehicle at the last time calibration. The vehicle-mounted terminal can obtain the current total driving mileage of the vehicle in real time. The vehicle-mounted terminal can determine the driving mileage of the vehicle after the last time calibration based on the total driving mileage of the vehicle at the last time calibration and the current total driving mileage. The vehicle-mounted terminal determines whether the driving mileage of the vehicle after the last time calibration is greater than or equal to the driving mileage threshold.
[0071] In another possible implementation manner, the vehicle-mounted terminal can reset the time calibration timer every time the vehicle meets the time calibration condition.
[0072] In a possible implementation manner, in order to avoid frequent triggering of time calibration, the time calibration condition set in the vehicle-mounted terminal can also include: the time interval between the current time and the execution time of the last time calibration is greater than or equal to the preset time interval.
[0073] Optionally, the preset time interval can be set according to actual needs. For example, the preset time interval can be 2 minutes, or it can be 5 minutes. This application does not make specific limitations in this regard.
[0074] In yet another possible implementation, the preset time interval can be the time required for the vehicle to travel a preset distance at the current vehicle speed. For example, if the preset distance is 5 kilometers (km), and the current vehicle speed is 150 kilometers per hour (km / h), then the preset time interval can be 2 minutes. If the preset distance is 5 km and the current vehicle speed is 60 km / h, then the preset time interval can be 5 minutes.
[0075] S202. The server receives the positioning location information of the in-vehicle terminal.
[0076] S203. The server sends time calibration auxiliary information to the in-vehicle terminal.
[0077] Among them, the time calibration auxiliary information can include the time zone information and daylight saving time information corresponding to the positioning location information. The time calibration auxiliary information can be used to assist the vehicle terminal in calibrating the local time.
[0078] In a possible implementation, the server can convert the positioning location information into a geographical location code to determine the geographical region corresponding to the geographical location code.
[0079] Specifically, the server can map the longitude and latitude in the positioning location information to binary intervals respectively, and alternately take binary bits in a preset order to generate a combined binary string. The server can convert the binary of each preset bit in the combined binary string into a character to convert the positioning location information into a geographical location code.
[0080] Furthermore, the server can determine at least one geographical region corresponding to the geographical location code based on a preset database.
[0081] Optionally, the preset order can be set according to requirements. For example, the preset order can be longitude - latitude - longitude - latitude, or it can be latitude - longitude - longitude - latitude. This application does not make specific restrictions on this.
[0082] Optionally, the preset number of bits can be set according to actual needs. For example, the preset number of bits can be 5, or it can be 4. This application does not make specific restrictions on this.
[0083] In a possible implementation, the server can convert the positioning location information into a geographical location code through the principle of Geographic Hash (GeoHash) encoding. GeoHash uses a character set containing 32 characters (0 - 9, b - z, excluding a, i, l, o) because these characters are visually easy to distinguish and are safe in URLs.
[0084] In a possible implementation, the server can traverse a candidate polygon region containing the coordinate points corresponding to the positioning location information from the geographical region according to the R-Tree algorithm.
[0085] Specifically, the server can convert the geographical region into a tree structure. The server can start from the root node of the tree structure and traverse all nodes according to the R-Tree algorithm. During the traversal, the server can determine whether the coordinate points corresponding to the positioning location information are within the Minimum Bounding Rectangle (MBR) where the node is located. The server can determine the MBR containing the coordinate points corresponding to the positioning location information as the candidate polygon region.
[0086] In a possible implementation, the server can determine whether the coordinate points corresponding to the positioning location information are located inside the candidate polygon region based on the ray algorithm. The server can determine the candidate polygon region whose interior contains the coordinate points corresponding to the positioning location information as the target polygon region.
[0087] In a possible implementation, the server can determine the time zone information matching the target polygon region from a preset database.
[0088] Optionally, the preset database can be set according to actual needs. For example, the preset database can be the international IANA Time Zone Database (TZDB), or it can be a time series database. This application does not make specific limitations on this.
[0089] Exemplarily, when the preset database is TZDB, the server can determine the time zone information matching the target polygon region based on the polygon data in TZDB.
[0090] In another possible implementation, when the country to which the target polygon region belongs is not clear, the server can obtain the country code corresponding to the in-vehicle terminal. Furthermore, the server can determine the time zone information based on the country code and the target polygon region.
[0091] Specifically, when the country to which the target polygon region belongs is not clear, the server can send a country code acquisition instruction to the in-vehicle terminal. After receiving the country code acquisition instruction, the in-vehicle terminal can send the country code in the Vehicle Identification Number (VIN) to the server. The server can receive the country code and determine the time zone information based on the country code and the target polygon region.
[0092] In yet another possible implementation, the server may determine the time zone information as the time zone information corresponding to the special area when the target polygon area is in the special area.
[0093] In one possible implementation, the server may determine the daylight saving time information based on the time zone information and the correspondence between the time zone and daylight saving time.
[0094] Among them, the correspondence may include the daylight saving time corresponding to each time zone.
[0095] In one possible implementation, after determining the time calibration auxiliary information, the time calibration auxiliary information may be sent to the vehicle-mounted terminal.
[0096] S204. The vehicle-mounted terminal receives the time calibration auxiliary information sent by the server.
[0097] S205. The vehicle-mounted terminal determines the local time of the vehicle-mounted terminal based on the time zone information, the daylight saving time information, and the UTC time.
[0098] Among them, Coordinated Universal Time (UTC) is the international standard time based on atomic time and the Earth's rotation time, and is used for global time synchronization. The local time may be the sum of the UTC time, the time zone offset, and the daylight saving time offset. The time zone information may include the time zone offset. The daylight saving time information may include the daylight saving time offset.
[0099] Alternatively, the vehicle-mounted terminal may determine the time zone offset according to the time zone information. For example, if the time zone information is UTC+8, the time zone offset is 8 hours.
[0100] In one possible implementation, the daylight saving time information may also include whether to implement daylight saving time or not. If the daylight saving time information includes not implementing daylight saving time, the daylight saving time offset may not be considered when calculating the local time of the vehicle-mounted terminal. If the daylight saving time information includes implementing daylight saving time, the daylight saving time offset included in the daylight saving time information needs to be considered when calculating the local time of the vehicle-mounted terminal. For example, if the daylight saving time information is to implement daylight saving time and the daylight saving time offset may be 1 hour, 1 hour of daylight saving time offset needs to be added when calculating the local time of the vehicle-mounted terminal.
[0101] In one possible implementation, the vehicle-mounted terminal may send the determined local time to the Controller Area Network (CAN) bus of the vehicle to display the local time on the in-vehicle computer of the vehicle.
[0102] In one example, a communication connection can be established between the in-vehicle terminal and the in-vehicle head unit. The in-vehicle terminal can convert the local time format to "Year-Month-Day Hour:Minute" and send the converted local time to the User Interface (UI) module of the in-vehicle head unit for displaying the converted local time on the UI module.
[0103] In another example, the in-vehicle terminal can send the determined local time to the CAN bus of the vehicle. The Chassis Dynamic Control (CDC) system of the vehicle can obtain the local time from the CAN bus and convert the local time format to "Year-Month-Day Hour:Minute". The CDC can send the converted local time to the UI module of the in-vehicle head unit for displaying the converted local time on the UI module.
[0104] Based on the above technical solution, the in-vehicle terminal in this application can automatically calibrate the local time by receiving time calibration auxiliary information (including time zone information and daylight saving time information) sent by the server, without manual intervention, avoiding errors that are prone to occur in manual time setting, ensuring that the time information provided by the in-vehicle terminal is more reliable, providing a more accurate time reference for users, and enhancing the user experience.
[0105] In some embodiments, as Figure 3 shown, Figure 3 it is a time calibration system for an in-vehicle terminal. The time calibration system includes GNSS, CDC, Telematics Box (TBOX), Telematics Service Provider (TSP), and DCF. The TBOX can include a Microcontroller Unit (MCU) and a Microprocessor Unit (MPU).
[0106] The GNSS can include GPS, GLONASS, Galileo, and the Beidou satellite navigation system, etc. In the time calibration system, the positioning location information and UTC time of the vehicle can be determined through the GNSS.
[0107] Function: Although the CDC does not directly participate in time calibration, it is an important part of the in-vehicle system and may indirectly affect the performance of the time calibration system by optimizing the vehicle state (such as reducing signal interference caused by vehicle vibration). In the context of the time calibration system, the CDC may exist as a subsystem of the in-vehicle terminal, but it is not the core component of time calibration.
[0108] The TBOX is the core device of the in-vehicle terminal, responsible for the communication between the vehicle and external networks (such as the Internet, mobile communication networks). The TBOX can receive positioning location information and UTC time, communicate with the TSP, upload vehicle data and receive time calibration auxiliary information. At the same time, the TBOX can also transfer the calibrated time information to other parts of the in-vehicle terminal.
[0109] The TSP can receive the vehicle data uploaded by the in-vehicle terminal (through the TBOX), including positioning location information, and generate time calibration auxiliary information (such as time zone information, daylight saving time information) based on this information. The TSP sends the time calibration auxiliary information back to the in-vehicle terminal to assist it in calibrating the local time.
[0110] The DCF protocol provides an accurate time reference for the in-vehicle terminal, which helps to achieve time calibration.
[0111] The MCU is a single-chip microcomputer integrating functions such as a processor, memory, input / output interfaces, etc. In the TBOX, the MCU is responsible for handling low-level control tasks, such as the acquisition of sensor data, the implementation of communication protocols, etc. The MCU can participate in the time calibration process, such as receiving the time information provided by the GNSS and performing preliminary processing.
[0112] The MPU is a processor with higher computing power, usually used to execute complex computing tasks. In the TBOX, the MPU may be responsible for handling higher-level tasks, such as data analysis, decision-making, etc. During the time calibration process, the MPU can be responsible for receiving the time information processed by the MCU and performing the final time calibration calculation based on the time calibration auxiliary information provided by the TSP.
[0113] In some embodiments, such as Figure 4 shown, Figure 4 is a time calibration process.
[0114] In a possible implementation, the in-vehicle terminal can set a time calibration timer and obtain the total driving mileage of the vehicle at the last time calibration.
[0115] In a possible implementation, the in-vehicle terminal can collect the current total driving mileage in real time.
[0116] In a possible implementation, the in-vehicle terminal can determine the driving mileage of the vehicle after the last time calibration based on the total driving mileage of the vehicle at the last time calibration and the current total driving mileage.
[0117] In a possible implementation manner, the in-vehicle terminal may obtain the positioning position information of the vehicle, reset the time calibration timer, and obtain the total driving mileage of the vehicle at the time of this calibration when the time calibration timer times out or the driving mileage of the vehicle after the last time calibration is greater than or equal to the driving mileage threshold.
[0118] In some embodiments, as Figure 5 shown, Figure 5 is a time calibration process.
[0119] In a possible implementation manner, the in-vehicle terminal may perform time calibration when the vehicle meets the time calibration conditions.
[0120] In a possible implementation manner, the in-vehicle terminal may obtain the execution time of the last time calibration and the total driving mileage of the vehicle at the last time calibration.
[0121] In a possible implementation manner, the in-vehicle terminal may collect the current total driving mileage in real time.
[0122] In a possible implementation manner, the in-vehicle terminal may determine the driving mileage of the vehicle after the last time calibration based on the total driving mileage of the vehicle at the last time calibration and the current total driving mileage.
[0123] In a possible implementation manner, the in-vehicle terminal may obtain the current time when the driving mileage of the vehicle after the last time calibration is greater than or equal to the driving mileage threshold, otherwise, re-obtain the current total driving mileage of the vehicle.
[0124] In a possible implementation manner, the in-vehicle terminal may re-obtain the current total driving mileage of the vehicle when the time interval between the current time and the execution time of the last time calibration is less than the preset time interval, otherwise, perform time calibration.
[0125] In some embodiments, as Figure 6 shown, Figure 6 is a time calibration process.
[0126] In a possible implementation manner, the in-vehicle terminal may receive the time calibration auxiliary information sent by the server.
[0127] In a possible implementation manner, the in-vehicle terminal may obtain the UTC time to determine the local time of the in-vehicle terminal based on the time calibration auxiliary information and the UTC time.
[0128] In a possible implementation manner, the in-vehicle head unit may display the local time.
[0129] Figure 7is a block diagram of a vehicle terminal shown according to an exemplary embodiment. Refer to Figure 7 , the vehicle terminal includes: a sending unit 701, a receiving unit 702, and a determining unit 703.
[0130] In a possible implementation manner, the sending unit 701 is configured to send the positioning location information of the vehicle to the server.
[0131] In a possible implementation manner, the receiving unit 702 is configured to receive the time calibration auxiliary information sent by the server.
[0132] In a possible implementation manner, the determining unit 703 is configured to determine the local time of the vehicle terminal based on the time zone information, daylight saving time information, and UTC time.
[0133] In a possible implementation manner, the sending unit 701 is specifically configured to: when the vehicle meets the time calibration condition, send the positioning location information of the vehicle to the server.
[0134] Figure 8 is a block diagram of a server shown according to an exemplary embodiment. Refer to Figure 8 , the server includes: a receiving unit 801, a sending unit 802, and a determining unit 803.
[0135] In a possible implementation manner, the receiving unit 801 is configured to receive the positioning location information of the vehicle terminal.
[0136] In a possible implementation manner, the sending unit 802 is configured to send the time calibration auxiliary information to the vehicle terminal.
[0137] In a possible implementation manner, the determining unit 803 is configured to convert the positioning location information into a geographical location code and determine the geographical area corresponding to the geographical location code.
[0138] In a possible implementation manner, the determining unit 803 is further configured to traverse out a candidate polygon area containing the coordinate point corresponding to the positioning location information from the geographical area based on the R-Tree algorithm.
[0139] In a possible implementation manner, the determining unit 803 is further configured to determine a target polygon area from the candidate polygon area based on the ray algorithm.
[0140] In a possible implementation manner, the determining unit 803 is further configured to determine the time zone information based on the target polygon area.
[0141] In a possible implementation manner, the determining unit 803 is specifically configured to: when the country to which the target polygon area belongs is not clear, obtain the country code corresponding to the vehicle-mounted terminal. Based on the country code and the target polygon area, determine the time zone information.
[0142] In a possible implementation manner, the determining unit 803 is further configured to determine the daylight saving time information based on the time zone information and the corresponding relationship between the time zone and the daylight saving time.
[0143] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.
[0144] Figure 9 is a block diagram of an electronic device shown according to an exemplary embodiment. As Figure 9 shown, the electronic device includes, but is not limited to: a processor 901 and a memory 902.
[0145] Among them, the above-mentioned memory 902 is used to store the executable instructions of the above-mentioned processor 901. It can be understood that the above-mentioned processor 901 is configured to execute instructions to implement the time calibration method in the above embodiments.
[0146] It should be noted that those skilled in the art can understand that Figure 9 the structure of the electronic device shown in Figure 9 does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than
[0147] shown, or combine certain components, or have different component arrangements.
[0148] The memory 902 can be used to store software programs and various data. The memory 902 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required by at least one functional module (such as a determination unit, a processing unit, etc.). In addition, the memory 902 can include high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0149] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as the memory 902 including instructions. The above instructions can be executed by the processor 901 of the electronic device to implement the method in the above embodiment.
[0150] In actual implementation, Figure 7 in the sending unit 701, the receiving unit 702, and the determination unit 703 in Figure 8 and in the receiving unit 801, the sending unit 802, and the determination unit 803 in Figure 9 the functions can all be implemented by the processor 901 in
[0151] calling a computer program stored in the memory 902. The specific execution process can refer to the description of the method part in the above embodiment, and will not be elaborated here.
[0151] Optionally, the computer-readable storage medium can be a non-transitory computer-readable storage medium. For example, the non-transitory computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0152] In an exemplary embodiment, the embodiment of the present application also provides a computer program product including one or more instructions, and the one or more instructions can be executed by the processor 901 of the electronic device to complete the method in the above embodiment.
[0153] It should be noted that when the instructions in the above computer-readable storage medium or the one or more instructions in the computer program product are executed by the processor of the electronic device, each process of the above method embodiment is implemented, and the same technical effects as the above method can be achieved. To avoid repetition, it will not be elaborated here.
[0154] Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and conciseness of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0155] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling, direct coupling, or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of devices or units can be in electrical, mechanical, or other forms.
[0156] The units described as separate components may or may not be physically separated. The components displayed as units can be one physical unit or multiple physical units, that is, they can be located in one place, or they can be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0157] In addition, each functional unit in various embodiments of the present application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0158] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods in various embodiments of the present application. The foregoing storage medium includes: USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical discs and other various media that can store program codes.
[0159] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A time calibration method for a vehicle terminal, characterized in that: Applied to a vehicle-mounted terminal, the method comprises: Sending the vehicle's location information to the server; Receiving time calibration assistance information sent by the server, the time calibration assistance information including time zone information and daylight saving time information corresponding to the positioning position information; Based on the time zone information, the daylight saving time information and the UTC time, the local time of the vehicle terminal is determined.
2. The time calibration method according to claim 1, characterized in that: The sending of the vehicle's location information to the server includes: When the vehicle meets the time calibration condition, the positioning position information of the vehicle is sent to the server.
3. The time calibration method according to claim 2, characterized in that: The time calibration condition includes at least one of the following: The time calibration timer has timed out; The mileage of the vehicle after the last time calibration is greater than or equal to a mileage threshold.
4. The time calibration method according to claim 3, characterized in that: The time calibration condition also includes: The time interval between the current time and the execution time of the last time calibration is greater than or equal to the preset time interval.
5. The time calibration method according to any one of claims 1 to 4, characterized in that: The time zone information includes a time zone offset, the daylight saving time information includes a daylight saving time offset, and the local time is the sum of the UTC time, the time zone offset, and the daylight saving time offset.
6. A time calibration method for a vehicle terminal, characterized in that: Applied to a server, the method comprises: Receiving positioning information of the vehicle terminal; Sending time calibration auxiliary information to the vehicle terminal; wherein the time calibration auxiliary information includes time zone information and daylight saving time information corresponding to the positioning position information; the time calibration auxiliary information is used to assist the vehicle terminal in calibrating the local time.
7. The time calibration method according to claim 6, characterized in that: Before sending the time calibration auxiliary information to the vehicle-mounted terminal, the method further includes: Converting the positioning location information into a geographic location code, and determining a geographic area corresponding to the geographic location code; Based on the R-Tree algorithm, traverse the candidate polygonal area containing the coordinate points corresponding to the positioning position information from the geographic area; Determine a target polygonal area from the candidate polygonal areas based on a ray algorithm; wherein the coordinate point corresponding to the positioning position information is located inside the target polygonal area; Based on the target polygonal area, the time zone information is determined.
8. The time calibration method according to claim 6, characterized in that: The determining the time zone information based on the target polygonal area includes: When the country to which the target multi-deformation area belongs is unclear, obtaining a country code corresponding to the vehicle-mounted terminal; The time zone information is determined based on the country code and the target polygonal area.
9. The time calibration method according to claim 7, characterized in that: The method further comprises: The daylight saving time information is determined based on the time zone information and the correspondence between the time zone and the daylight saving time.
10. A vehicle-mounted terminal, characterized in that: The vehicle-mounted terminal comprises: a sending unit, a receiving unit and a determining unit; The sending unit is used to send the positioning position information of the vehicle to the server; The receiving unit is configured to receive the time calibration auxiliary information sent by the server, wherein the time calibration auxiliary information includes time zone information and daylight saving time information corresponding to the positioning position information; The determining unit is used to determine the local time of the vehicle terminal based on the time zone information, the daylight saving time information and the UTC time.
11. A server, characterized in that: The server comprises: a receiving unit and a sending unit; The receiving unit is used to receive the positioning position information of the vehicle-mounted terminal; The sending unit is used to send time calibration auxiliary information to the vehicle terminal; wherein the time calibration auxiliary information includes time zone information and daylight saving time information corresponding to the positioning position information; the time calibration auxiliary information is used to assist the vehicle terminal in calibrating the local time.
12. A time calibration system for a vehicle terminal, characterized in that: Including vehicle-mounted terminal and server; The vehicle-mounted terminal is used to send the vehicle's positioning information to the server; The server is used to receive the positioning position information of the vehicle terminal and send time calibration auxiliary information to the vehicle terminal; wherein the time calibration auxiliary information includes time zone information and daylight saving time information corresponding to the positioning position information; the time calibration auxiliary information is used to assist the vehicle terminal in calibrating the local time; The vehicle-mounted terminal is further used to receive the time calibration auxiliary information sent by the server, and determine the local time of the vehicle-mounted terminal based on the time zone information, the daylight saving time information and the UTC time.