Automobile time updating method and device, electronic equipment and storage medium
By obtaining the positioning position in the car and comparing the position change distance and radius, the car time is automatically updated, and the problem of car time jump in complex time zones is solved, and stable time updates are achieved.
Patent Information
- Application Number
- CN202411898520.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-05-09
AI Technical Summary
In complex time zones, cars may have problems with time jumps.
When the call interval is not less than the update interval threshold, the current rotation position is obtained, the position change distance and position radius are compared, the position drift result is obtained, and the current time of the car is automatically updated.
It realizes reliable and stable updates of car time, avoiding the chaos of time jumps.
Smart Images

Figure CN119960552A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a method, device, electronic equipment and storage medium for updating the time of an automobile. Background Art
[0002] As an important means of transportation, cars are becoming increasingly intelligent and connected, and have become an indispensable part of people's daily lives. Currently, cars are exported to all parts of the world. Due to the different longitudes of countries and regions, local time zones are also different, so they are divided into different time zones. The current system time of a car is mainly obtained by obtaining the current location to connect to the Internet to obtain local time zone information.
[0003] However, in areas with complex time zone divisions, such as when driving in the border area between two time zones, the car may experience time jump confusion. Summary of the invention
[0004] The present invention provides a method, device, electronic equipment and storage medium for updating the time of an automobile, which are used to solve the defect of the automobile in the prior art that the automobile may have chaotic time jumps.
[0005] The present invention provides a method for updating the time of a vehicle, comprising: When the calling interval is not less than the update interval threshold, the current round positioning position is obtained; Based on the current round positioning position and the previous round positioning position, determine the position change distance, compare the position change distance and the position radius, and obtain the positioning drift result; Based on the positioning drift result, the current time of the car is automatically updated.
[0006] According to a time updating method for a vehicle provided by the present invention, the comparing the position change distance and the position radius to obtain a positioning drift result includes: When the position change distance exceeds the position radius, the positioning drift result is obtained as drift exists; When the position change distance does not exceed the position radius, the positioning drift result is obtained as no drift exists.
[0007] According to a method for updating the time of a vehicle provided by the present invention, the method automatically updates the current time of the vehicle based on the positioning drift result, including: When the positioning drift result is that there is no drift, automatically updating the current time of the vehicle based on the current round positioning position; When the positioning drift result indicates that there is drift, the current time is obtained based on the historical time.
[0008] According to a method for updating the time of a car provided by the present invention, the method automatically updates the current time of the car based on the current round positioning position, including: The target time information corresponding to the current round positioning position is selected from the time zone library to automatically update the current time of the car based on the target time information.
[0009] According to a time updating method for a vehicle provided by the present invention, obtaining the current round positioning position when the calling interval duration is not less than the updating interval threshold comprises: When the calling interval duration is not less than the updating interval threshold, or when the vehicle is powered on for the first time, the current round positioning position is obtained.
[0010] According to a method for updating automobile time provided by the present invention, the current time at least includes time zone information and winter and summer time information.
[0011] The present invention also provides a time updating device for a vehicle, comprising: The update calling unit obtains the current round positioning position when the calling interval is not less than the update interval threshold; A drift judgment unit, based on the current round positioning position and the previous round positioning position, determines the position change distance, compares the position change distance and the position radius, and obtains a positioning drift result; The time updating unit automatically updates the current time of the vehicle based on the positioning drift result.
[0012] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for updating the time of a vehicle as described above is implemented.
[0013] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for updating the time of a vehicle as described in any one of the above is implemented.
[0014] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for updating the time of a vehicle as described above is implemented.
[0015] The automobile time updating method, device, electronic device and storage medium provided by the present invention determine the position change distance through the current round positioning position and the previous round positioning position, compare the position change distance and the position radius, and obtain the positioning drift result, so as to automatically update the current time of the automobile based on the positioning drift result, thereby realizing reliable and stable automatic time update and avoiding the situation of automobile time jump confusion. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 This is one of the flow charts of the time updating method for a vehicle provided by the present invention; Figure 2 This is the second flow chart of the method for updating the time of a vehicle provided by the present invention; Figure 3 It is a structural schematic diagram of a time updating device for a vehicle provided by the present invention; Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] In view of the above problems, the present invention provides a method for updating the time of a car, so that the on-board system of the car can achieve stable and reliable time updating. Figure 1 FIG. 1 is one of the flow charts of the time updating method of the automobile provided by the present invention, such as Figure 1 As shown, the method includes: Step 110, when the calling interval is not less than the updating interval threshold, obtaining the current round positioning position; Step 120, determining a position change distance based on the current round positioning position and the previous round positioning position, and comparing the position change distance and the position radius to obtain a positioning drift result; Step 130: automatically updating the current time of the vehicle based on the positioning drift result.
[0020] Here, the call interval duration refers to the interval time between the current time and the last call to the time update process during the driving process of the car. Here, the update interval threshold refers to the interval time between two adjacent calls to the time update process during the driving process of the car, which can be preset and can be adjusted according to the actual driving conditions. For example, the update interval threshold can be 1 minute. Here, the current round positioning position refers to the car positioning information obtained when the time update process is called for the current time, which can be expressed in longitude and latitude. Therefore, the last round positioning position refers to the car positioning information obtained when the time update process was called for the last time.
[0021] In addition, the location radius here refers to a preset length with the current vehicle as the center. The location radius here can be 500 meters or 1000 meters.
[0022] Specifically, the current round positioning position of the car can be obtained by obtaining the call interval duration, and when the call interval duration is not less than the update interval threshold. For example, satellite positioning data, such as GPS positioning data, can be obtained. Then, the position change distance can be calculated by the current round positioning position and the previous round positioning position. For example, the longitude and latitude change distance can be calculated.
[0023] Further, the position change distance is compared with the position radius to obtain a positioning drift result. Specifically, when the position change distance exceeds the position radius, the positioning drift result of the car is that there is drift. When the position change distance does not exceed the position radius, the positioning drift result of the car is that there is no drift.
[0024] It is understandable that the position change distance can be reflected in the size of the position change of the car in the satellite positioning data within the call interval, and the position radius can be reflected in the size of the theoretical position change of the car within the call interval. Therefore, when the position change of the car in the satellite positioning data is greater than the size of the theoretical position change, it means that the current round positioning position of the car may drift, that is, the longitude and latitude information of the current round positioning position may be inaccurate. For example, the area corresponding to the time zone A of the actual car, due to the existence of drift, the current round positioning position obtained is the area corresponding to the time zone B. If the time is updated directly based on the current round positioning position at this time, it will cause inaccurate time.
[0025] Finally, the current time of the vehicle multimedia system can be automatically updated based on the positioning drift result. Specifically, when the positioning drift result indicates that there is drift, the current time of the vehicle is not updated; when the positioning drift result indicates that there is no drift, the current time of the vehicle is updated based on the time zone corresponding to the current round of positioning position.
[0026] It should be noted that when the positioning drift result shows that there is drift, if the current time of the car is updated, and there may also be positioning drift in the next round of automatic time update, the time zone will jump back to the original time zone, and then cause the time to jump back and forth between multiple time zones.
[0027] Therefore, the method provided by the embodiment of the present invention determines the position change distance through the current round positioning position and the previous round positioning position, compares the position change distance and the position radius, and obtains the positioning drift result, so as to automatically update the current time of the car based on the positioning drift result, thereby realizing reliable and stable automatic time update and avoiding the situation of chaotic car time jumps.
[0028] Based on any of the above embodiments, in step 120, comparing the position change distance and the position radius to obtain a positioning drift result includes: When the position change distance exceeds the position radius, the positioning drift result is obtained as drift exists; When the position change distance does not exceed the position radius, the positioning drift result is obtained as no drift exists.
[0029] Specifically, when the position change distance exceeds the position radius, the positioning drift result is obtained as drift exists; when the position change distance does not exceed the position radius, the positioning drift result is obtained as drift does not exist. It should be noted that the position radius can be modified based on the actual situation, and can be comprehensively adjusted based on the update interval threshold and the speed limit of the car's driving area. In this way, the positioning drift result obtained by judgment can be made more accurate, thereby making the current time of the car more stable and avoiding the situation of time jump confusion.
[0030] Based on any of the above embodiments, step 130 includes: When the positioning drift result is that there is no drift, automatically updating the current time of the vehicle based on the current round positioning position; When the positioning drift result indicates that there is drift, the current time is obtained based on the historical time.
[0031] Specifically, when the positioning drift result is that there is no drift, the current time of the car is automatically updated based on the current round positioning position. For example, the time zone corresponding to the current location of the car can be obtained by accessing the time zone library, and the time of the car can be adjusted according to the obtained time zone to automatically update the current time of the car. In addition, when the positioning drift result is that there is drift, the current time is updated based on the time zone information of the historical time, that is, the time zone information of the car is kept unchanged, and the time is automatically moved according to the historical time.
[0032] Based on any of the above embodiments, the method of automatically updating the current time of the vehicle based on the current round positioning position includes: The target time information corresponding to the current round positioning position is selected from the time zone library to automatically update the current time of the car based on the target time information.
[0033] Here, the time zone library may be an online time zone library, which may contain time zone information corresponding to each area divided by longitude and latitude.
[0034] Specifically, the target time information corresponding to the current round positioning position can be selected from the time zone library by accessing the time zone library. Then, the current time of the car is automatically updated according to the time zone reflected by the target time information, and the updated time is the time zone standard that meets the driving area of the car.
[0035] Based on any of the above embodiments, step 110 includes: When the calling interval duration is not less than the updating interval threshold, or when the vehicle is powered on for the first time, the current round positioning position is obtained.
[0036] Here, when the car is powered on for the first time, it may be when the car is powered on, for example, when a start button of the car is pressed.
[0037] Specifically, when the car is driving or preparing to drive, the current time of the car needs to be automatically updated. Therefore, when the call interval is not less than the update interval threshold, or when the car is powered on for the first time, the current round positioning position is obtained to perform the subsequent automatic update process. It should be noted that when the car is activated for the first time, after the car is connected to the network, the current time of the car can be automatically updated based on the current round positioning position of the car.
[0038] It can be understood that the accuracy of the time of the automobile during the entire process of preparing for driving and driving can be guaranteed thereby.
[0039] Based on any of the above embodiments, the current time at least includes time zone information and summer and winter time information.
[0040] It is understandable that due to the different longitudes of various countries and regions, some regions contain multiple time zones, or there is winter and summer time information switching. It is understandable that in order to make the on-board time of the car consistent with the local time, it is necessary to automatically update the current time of the car based on the time zone and winter and summer time information of the area where the car is located, so as to ensure that the time of the car is consistent with the time of the area where the car is located, which is conducive to improving the driving experience of the driver.
[0041] Based on any of the above implementations, Figure 2FIG. 2 is a flow chart of the method for updating the time of a vehicle provided by the present invention. Figure 2 As shown, the method includes: It should be noted that the time when the car leaves the factory is the factory default time, such as 0:0:00 on January 1, 1970. First, the car leaves the factory, and then obtains the network. The network of T-BOX (Telematics BOX, car networking system) can be obtained through the TCP (Transmission Control Protocol) protocol. At this time, if the network is not obtained, the default factory time will be automatically set to update the current time of the car. If the network is detected later, or the network is successfully obtained after leaving the factory, the key, location radius and call interval duration can be obtained. For example, the TSP (Telematics Service Provider, car remote service provider) can be accessed through the Token interface to obtain the key, location radius and call interval duration. If the acquisition fails, the current time zone of the car will not be updated.
[0042] During the use of the vehicle, determine whether the call interval duration reaches the update interval threshold, or whether the car is powered on for the first time. If the call interval duration does not reach the update interval threshold, or the car is not powered on for the first time, the current time zone of the car will not be updated; if the call interval duration reaches the update interval threshold, or the car is powered on for the first time, determine whether the position change distance exceeds the position radius. If the position change distance exceeds the position radius, the current time zone of the car will not be updated. If the position change distance does not exceed the position radius, determine the time zone, winter and summer time information and other time information corresponding to the current round of positioning from the time zone library to automatically update the current time of the car.
[0043] Based on any of the above embodiments, Figure 3 : is a schematic diagram of the structure of the time updating device for a car provided by the present invention, such as Figure 3 As shown, the device comprises: The update calling unit 310 obtains the current round positioning position when the calling interval is not less than the update interval threshold; The drift judgment unit 320 determines a position change distance based on the current round positioning position and the previous round positioning position, and compares the position change distance with the position radius to obtain a positioning drift result; The time updating unit 330 automatically updates the current time of the vehicle based on the positioning drift result.
[0044] The device provided by the embodiment of the present invention determines the position change distance through the current round positioning position and the previous round positioning position, compares the position change distance and the position radius, and obtains the positioning drift result, so as to automatically update the current time of the car based on the positioning drift result, thereby realizing reliable and stable automatic time update and avoiding the situation of chaotic car time jumps.
[0045] Based on any of the above embodiments, the drift judgment unit is specifically used for: When the position change distance exceeds the position radius, the positioning drift result is obtained as drift exists; When the position change distance does not exceed the position radius, the positioning drift result is obtained as no drift exists.
[0046] Based on any of the above embodiments, the time updating unit is specifically used for: When the positioning drift result is that there is no drift, automatically updating the current time of the vehicle based on the current round positioning position; When the positioning drift result indicates that there is drift, the current time is obtained based on the historical time.
[0047] Based on any of the above embodiments, the time updating unit is further specifically configured to: The target time information corresponding to the current round positioning position is selected from the time zone library to automatically update the current time of the car based on the target time information.
[0048] Based on any of the above embodiments, the update calling unit is specifically used for: When the calling interval duration is not less than the updating interval threshold, or when the vehicle is powered on for the first time, the current round positioning position is obtained.
[0049] Based on any of the above embodiments, the current time at least includes time zone information and summer and winter time information.
[0050] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the time update method of the automobile, the method comprising: obtaining the current round positioning position when the calling interval is not less than the update interval threshold; determining the position change distance based on the current round positioning position and the previous round positioning position, comparing the position change distance and the position radius, and obtaining the positioning drift result; and automatically updating the current time of the automobile based on the positioning drift result.
[0051] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0052] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the time update method of the car provided by the above-mentioned methods, and the method includes: obtaining the current round positioning position when the calling interval duration is not less than the update interval threshold; determining the position change distance based on the current round positioning position and the previous round positioning position to compare the position change distance and the position radius to obtain a positioning drift result; and automatically updating the current time of the car based on the positioning drift result.
[0053] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the time update method of the car provided by the above-mentioned methods. The method includes: obtaining the current round positioning position when the calling interval duration is not less than the update interval threshold; determining the position change distance based on the current round positioning position and the previous round positioning position to compare the position change distance and the position radius to obtain a positioning drift result; and automatically updating the current time of the car based on the positioning drift result.
[0054] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0055] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0056] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for updating the time of a car, characterized in that: include: When the calling interval is not less than the update interval threshold, the current round positioning position is obtained; Based on the current round positioning position and the previous round positioning position, determine the position change distance, compare the position change distance and the position radius, and obtain the positioning drift result; Based on the positioning drift result, the current time of the car is automatically updated.
2. The time updating method of a vehicle according to claim 1, characterized in that: The comparing the position change distance and the position radius to obtain the positioning drift result includes: When the position change distance exceeds the position radius, the positioning drift result is obtained as drift exists; When the position change distance does not exceed the position radius, the positioning drift result is obtained as no drift exists.
3. The time updating method of a vehicle according to claim 2, characterized in that: The method of automatically updating the current time of the vehicle based on the positioning drift result includes: When the positioning drift result is that there is no drift, automatically updating the current time of the vehicle based on the current round positioning position; When the positioning drift result indicates that there is drift, the current time is obtained based on the historical time.
4. The time updating method of a vehicle according to claim 3, characterized in that: The method of automatically updating the current time of the vehicle based on the current round positioning position includes: The target time information corresponding to the current round positioning position is selected from the time zone library to automatically update the current time of the car based on the target time information.
5. The time updating method for a vehicle according to any one of claims 1 to 4, characterized in that: When the calling interval is not less than the updating interval threshold, obtaining the current round positioning position includes: When the calling interval duration is not less than the updating interval threshold, or when the vehicle is powered on for the first time, the current round positioning position is obtained.
6. The time updating method for a vehicle according to any one of claims 1 to 4, characterized in that: The current time includes at least time zone information and summer and winter time information.
7. A time updating device for a car, characterized in that: include: The update calling unit obtains the current round positioning position when the calling interval is not less than the update interval threshold; A drift judgment unit, based on the current round positioning position and the previous round positioning position, determines the position change distance, compares the position change distance and the position radius, and obtains a positioning drift result; The time updating unit automatically updates the current time of the vehicle based on the positioning drift result.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the time updating method for the automobile as claimed in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the time updating method for a vehicle as claimed in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the time updating method for a vehicle as claimed in any one of claims 1 to 6 is implemented.