CN116582214A - Time calibration method, device, electronic equipment and storage medium - Google Patents
Time calibration method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN116582214A CN116582214A CN202310787549.9A CN202310787549A CN116582214A CN 116582214 A CN116582214 A CN 116582214A CN 202310787549 A CN202310787549 A CN 202310787549A CN 116582214 A CN116582214 A CN 116582214A
- Authority
- CN
- China
- Prior art keywords
- time
- gps
- vehicle system
- vehicle
- detected
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000006855 networking Effects 0.000 claims abstract description 39
- 230000006870 function Effects 0.000 claims description 53
- 238000004590 computer program Methods 0.000 claims description 17
- 238000005516 engineering process Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000005059 dormancy Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000010438 heat treatment Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000007958 sleep Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0641—Change of the master or reference, e.g. take-over or failure of the master
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
- H04J3/0667—Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Electric Clocks (AREA)
Abstract
The application relates to the technical field of automobiles, and provides a time calibration method, a time calibration device, electronic equipment and a storage medium. The time calibration method comprises the following steps: acquiring reference time of vehicle system time, wherein the reference time is GPS time when a Global Positioning System (GPS) signal is detected, and is Network Time Protocol (NTP) time when the GPS signal is not detected and the vehicle-mounted networking controller is detected to be connected to a network, and the GPS signal comprises the GPS time; and according to the reference time, performing time calibration on the vehicle system time. The embodiment of the application solves the problem of low accuracy of time calibration.
Description
Technical Field
The present application relates to the field of automotive technologies, and in particular, to a time calibration method, apparatus, electronic device, and storage medium.
Background
With the rise of intelligent network-connected automobiles, the functions of domain controllers such as intelligent cabins and intelligent driving are more and more rich. And the requirements of the domain controllers on time synchronization schemes and time precision are also higher and higher. For example, because intelligent driving controllers need to process large amounts of sensor data quickly and accurately, and to make highly accurate calculations and decisions. Time synchronization and time accuracy are therefore very important.
A vehicle-mounted remote communication Terminal (TBOX) has a networking function and can provide system time for the whole vehicle. In the related art, there are three sources of time provided by TBOX, one is to acquire time through a global positioning system (Global Positioning System, GPS), but GPS signals are easily affected by physical obstacles such as buildings, mountains, etc., so that vehicles cannot receive GPS signals, and thus cannot acquire GPS time; secondly, synchronizing system time through network, namely network time protocol (Network Time Protocol, NTP) time, wherein the NTP time is derived from a time server on the Internet, and synchronizing system time through the Internet protocol, but factors such as network delay, clock drift and the like influence time precision; thirdly, the Real-Time Clock (RTC) Time provided by the Clock chip is used as a Time source, which may cause a large Time error if not calibrated for a long Time.
In summary, a solution for improving the accuracy of the system time is needed.
Disclosure of Invention
In view of the above, the embodiments of the present application provide a method, an apparatus, an electronic device, and a storage medium for time calibration, so as to solve the problem in the prior art that the accuracy of system time is not high.
In a first aspect of an embodiment of the present application, a method for time alignment is provided, including:
acquiring reference time of vehicle system time, wherein the reference time is GPS time under the condition that a Global Positioning System (GPS) signal is detected, and is Network Time Protocol (NTP) time under the condition that the GPS signal is not detected and a vehicle-mounted networking controller is detected to access a network, and the GPS signal comprises the GPS time;
and according to the reference time, performing time calibration on the vehicle system time.
In a second aspect of an embodiment of the present application, there is provided a time alignment apparatus, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring reference time of vehicle system time, wherein the reference time is GPS time under the condition that a Global Positioning System (GPS) signal is detected, and the reference time is Network Time Protocol (NTP) time under the condition that the GPS signal is not detected and a vehicle-mounted networking controller is detected to access a network, and the GPS signal comprises the GPS time;
and the execution module is used for carrying out time calibration on the vehicle system time according to the reference time.
In a third aspect of the embodiments of the present application, there is provided an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
In a fourth aspect of the embodiments of the present application, there is provided a storage medium storing a computer program which, when executed by a processor, implements the steps of the above method.
The embodiment of the application has the beneficial effects that at least the following steps are included:
determining an NTP time as a reference time in a case where a GPS signal is not detected and an in-vehicle networking controller is detected to access a network by acquiring a reference time of a vehicle system time, wherein the GPS time is taken as the reference time in a case where the GPS signal is detected; according to the determined reference time, time synchronization is carried out on the vehicle system time to finish time calibration of the vehicle system; the embodiment of the sample can correct the system time through GPS time with higher precision when GPS signals exist, and correct the time through NTP time when the GPS time cannot be acquired, so that the time precision of the vehicle system time can be ensured under the condition that GPS positioning is interfered, and the problem of low system time precision caused by adopting a single time source to correct the system time in the related technology is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for time alignment according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a time alignment apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate, such that embodiments of the application may be practiced otherwise than as specifically illustrated and described herein, and that the objects identified by "first," "second," etc. are generally of the same type and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
Furthermore, it should be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
A time alignment method and apparatus according to an embodiment of the present application will be described in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for time calibration according to an embodiment of the present application, where an execution subject of the method may be an on-board networking controller. Specifically, the vehicle networking controller may include a processor or TBOX with networking function, and this embodiment is described taking the vehicle networking controller as a TBOX as an example.
As shown in fig. 1, the time alignment method includes:
step 101, obtaining a reference time of a vehicle system time.
Wherein the reference time is a GPS time when the GPS signal is detected, the GPS signal including the GPS time; in the case where no GPS signal is detected and the in-vehicle networking controller is detected to access the network, the reference time is the network time protocol NTP time.
The vehicle-mounted networking controller can continuously detect the GPS signals or detect the GPS signals once every preset time interval so as to determine whether the GPS time can be acquired, and if the GPS signals can be detected, the GPS time in the GPS signals is determined as the reference time of the vehicle system time. I.e. the reference priority of GPS time is higher than the reference priority of NTP time.
If the GPS signal cannot be detected, for example, when the vehicle is located in a mountain area, a dense building place or the weather is bad, the GPS positioning is interfered, so that the GPS signal cannot be detected, if the vehicle-mounted networking controller is detected to be connected to a network, namely, the NTP time can be acquired from a time server on the Internet, the NTP time is determined as the reference time of the vehicle system time.
Specifically, the in-vehicle networking controller can acquire NTP time through an internet protocol network. For example, as one example, the vehicle's on-board networked controller is provided with a fourth generation wireless communication technology (4th generation mobile networks,4G) signal receiver and/or a fifth generation wireless signal communication technology (5th generation mobile networks,5G), where network information is available with NTP time, with access to the network through 4G or 5G, enabling the on-board networked controller to obtain NTP time after access to the network.
The GPS can provide high-precision time and position information, and the precision of the GPS time can reach nanosecond level, so that the time accuracy of the vehicle system time can be improved when the GPS time is determined as the reference time; the precision of the NTP time can reach the millisecond level, and the NPT time is determined as the reference time under the condition that the GPS time cannot be acquired, so that the reference time can be acquired under the condition that the GPS time cannot be acquired, and the problem that the vehicle system time cannot be calibrated under the condition that the GPS time cannot be acquired is avoided; in addition, the precision of the GPS time is larger than that of the NTP time, the GPS time is firstly adopted as the reference time, and under the condition that the GPS time cannot acquire the NTP time and the NTP time is acquired, the NTP time is adopted as the reference time, so that the reference accuracy of the reference time of time calibration is improved, the problem of reference time conflict caused by adopting a plurality of time sources and the problem that the reference time is lost after the time source caused by adopting a single time source as the reference time is solved.
Step 102, time calibration is performed on the vehicle system time according to the reference time.
And the time of the vehicle system is synchronized through the reference time, so that the time calibration is completed, and the accuracy of the vehicle system time is ensured.
It should be noted that, the vehicle-mounted networking controller monitors the GPS signal at any time, when the time is successfully acquired from the GPS at any time, if the reference time is not the GPS at the moment, the time calibration is immediately performed.
In the sample embodiment, when the GPS signal is received, the GPS time is used as the reference time, and when the GPS signal cannot be received and the vehicle-mounted networking controller is connected to the network, the NTP time is used as the reference time, and as the accuracy of the reference time is higher than the vehicle system time, the time calibration operation is carried out on the vehicle system time through the reference time, so that the accuracy of the vehicle system time is improved; in addition, when GPS signals exist, system time timing can be performed through GPS time with higher precision, and when GPS time is not acquired, timing is performed through NTP time, so that time precision of vehicle system time can be guaranteed under the condition that GPS positioning is interfered, and the problem that system time accuracy is low due to the fact that a single time source is adopted to perform time calibration on the system time in the related technology is solved.
In some embodiments, time calibrating the vehicle system time based on the reference time includes any of:
in the method, when the reference time is the GPS time, after the vehicle-mounted networking controller is electrified or wakes up in a dormant mode, the time calibration is carried out on the vehicle system time once through the GPS time every a first preset period.
Specifically, under the conditions that the vehicle networking controller is electrified and wakes up in a dormant mode, the vehicle system time may not be calibrated for a long time, a larger time error is generated, and at the moment, the vehicle system time can be calibrated once every a first preset period through the GPS time, so that the accuracy of the vehicle system time is ensured.
The first preset period refers to a preset time interval for performing time calibration, and for example, as one example, the first preset period may be set to 5 minutes, that is, the vehicle system time is time-calibrated using GPS time every 5 minutes, but it should be understood that, in the present embodiment, the time duration of the first preset period is not limited in any way.
The first preset period may take a time point of powering on or a time point of dormancy awakening of the vehicle-mounted networking controller as a starting point of the first preset period, that is, the embodiment may perform first time calibration on the vehicle system time through GPS time after powering on or dormancy awakening of the vehicle-mounted networking controller, and then perform first time calibration on the vehicle system time every first preset period.
According to the method, the GPS time is used for time calibration of the vehicle system time every first preset period, so that consistency of the vehicle system time and the GPS time is ensured, accuracy of the vehicle system time is improved, and stability and reliability of the vehicle system are further improved.
And comparing the vehicle system time with the GPS time every second preset period, and performing time calibration according to the GPS time if the time difference between the vehicle system time and the GPS time is detected to be larger than the preset time difference.
Specifically, the second preset period is a time interval for comparing the vehicle system time with the GPS time, and may be set according to practical situations, for example, may be set to 2 minutes, which is not limited in this embodiment.
The time difference is an absolute value of a difference between the vehicle system time and the GPS time, and the preset time difference may be set according to an actual situation, for example, as an example, the preset time difference may be set to 5 seconds, and in a case where the difference between the vehicle system time and the GPS time is 5 seconds, the vehicle system time is synchronized using the GPS time as a reference time, and the operation of time calibration is completed to ensure the accuracy of the system time.
It should be noted that, the preset time difference is smaller than the maximum value of the error range between the GPS time and the vehicle system time, so as to ensure the accuracy of time calibration.
In the mode, the vehicle-mounted networking controller can monitor the internal time jump condition, monitor the time difference between the GPS time and the vehicle system time every second preset period, and timely time calibrate the vehicle system time when the error between the vehicle system time and the GPS time is larger, so that invalid calibration work when the error between the vehicle system time and the GPS time is avoided, and the accuracy of the system time is improved. Of course, if the GPS time acquisition fails, no time difference comparison is performed.
According to the method and the device for time calibration, time calibration can be carried out on the vehicle system time in any mode, synchronization of the vehicle system time and GPS time is guaranteed, the problems of vehicle misoperation and poor user experience are avoided, and better use experience and convenient service can be provided.
In some embodiments, time calibrating the vehicle system time based on the reference time includes: and under the condition that the reference time is the NTP time, only after the vehicle-mounted networking controller is electrified or wakes up in a dormant mode, performing time calibration on the vehicle system time through the NTP time.
Specifically, in the case where the reference time is NTP time, since the accuracy of the NTP time is smaller than the GPS time, the time calibration of the vehicle system time may be performed only once through the NTP time after the on-vehicle networking controller is powered on or wakes up by dormancy, that is, only one start period.
Therefore, the NTP time is used for calibrating the vehicle system time in the mode, and accuracy of the vehicle system time is guaranteed.
In some embodiments, before time calibrating the vehicle system time according to the reference time, further comprising: the real time clock RTC time is set to the vehicle system time.
Specifically, the RTC is a computer chip or module, which is used to provide an accurate time reference and real-time timing, and can independently calculate time, without relying on an operating system, and is generally used in a system requiring high time accuracy. The RTC may save the current time when the computer is powered off for use the next time it is powered on.
In addition, when the GPS signal cannot be received and the network cannot be accessed, the vehicle-mounted networking controller adopts the RTC time.
According to the technical scheme provided by the embodiment, the RTC time is set as the vehicle system time, so that the continuity of the vehicle system time is ensured.
One specific embodiment of the time alignment is described below.
Specifically, the time calibration procedure is as follows:
when the vehicle-mounted networking controller and the MCU successfully establish connection, setting system time by using RTC time;
after the network connection is successful, if the GPS signal cannot be acquired, acquiring time from the NTP for timing;
when the vehicle-mounted networking controller operates normally, the GPS time is monitored at any time, and when the GPS time is successfully acquired from the GPS at any time, if the system timing source is not the GPS time at the moment, the time calibration is immediately carried out; after the time calibration is successful, the time is calibrated once every first preset period.
Specifically, after the RTC time is set as the vehicle system time or the vehicle system time is calibrated, the entire vehicle time synchronization of the vehicle may be performed, which will be described below.
In some embodiments, after setting the RTC time to the vehicle system time, further comprising:
in the event that the reference time cannot be obtained, time information is signalled via a controller area network (Controller Area Network, CAN), wherein the time information comprises an identification indicating that the vehicle system time is an inactive time.
In particular, the time information may include year, month, day, hour, minute, second, and an indication that the vehicle system time is an invalid time.
Under the condition that GPS time and NTP time cannot be acquired as reference time, vehicle system time is RTC time, at the moment, precision of the RTC time is low, accuracy of current time cannot be guaranteed without time calibration, and time precision of the vehicle system time cannot be guaranteed by sending that the time is invalid to prompt, so that a vehicle can conduct corresponding countermeasures according to the time information.
In some embodiments, after time calibrating the vehicle system time according to the reference time, further comprising:
broadcasting time information through a CAN signal, wherein the time information comprises calibrated time and an identifier for indicating that the calibrated time is effective time.
According to the technical scheme provided by the embodiment, the calibrated time is used as the accurate time, the time information is broadcast, and the time information is indicated to be the effective time, so that the accurate time service is provided for the vehicle, and the accuracy of the vehicle operation is improved.
Specific embodiments of the whole vehicle time synchronization of the vehicle are described below.
Specifically, when the vehicle networking controller is in an operating state, time information (the period CAN be set according to requirements) is broadcast in real time through the CAN signal, and the time information comprises a year, a month, a day, a hour, a minute, a second and a mark (TBOX_timeValid) for indicating whether the time is valid or not. Among these, the following two cases may be included:
and a, when the vehicle-mounted networking controller cannot acquire a time signal (such as network disconnection and time module failure) or cannot transmit a signal (such as network disconnection and restarting), the vehicle-mounted networking controller is sent to the whole vehicle system, wherein timevalid=invalid.
And b, the vehicle networking controller defaults to send the vehicle networking controller timevalid=valid, and after the vehicle networking controller wakes up or resumes normal, the vehicle networking controller timevalid=valid and the real-time signal are sent according to the received time signal.
In some embodiments, prior to obtaining the reference time for the vehicle system time, further comprising:
determining a function reservation list, wherein the function reservation list comprises a plurality of function starting requirements and reservation time corresponding to each function starting requirement; and if the time difference between the reserved time corresponding to the target function starting requirement and the vehicle system time is detected to be smaller than a preset threshold value, executing the reference time for acquiring the vehicle system time and the following steps.
Specifically, the function reservation list may be input into an in-vehicle terminal service platform (Telematics Service Provider, TSP) by a user, and the user-input function reservation list is transmitted to an in-vehicle networking terminal of the vehicle by the TSP platform. It should be noted that, of course, the function reservation list may also be determined by the vehicle-mounted networking terminal based on the historical function opening requirement.
The function reservation list includes a plurality of function opening requirements including, for example, opening an air conditioner, heating a seat, opening a window of a vehicle, and the like, as one example.
The target function opening requirement may be any one of a plurality of function opening requirements. The preset threshold may be set according to actual demands, for example, as one example, the preset threshold may be set to 2 minutes, and the time calibration process is performed when the time difference between the reserved time and the vehicle system time is less than 2 minutes.
By determining the function reservation list and performing time calibration when the time difference between the reserved time corresponding to the target function starting requirement and the vehicle system time is detected to be smaller than the preset threshold value, the time calibration operation is prevented from being performed until the preset time is not reached, and CPU resources and vehicle energy consumption are saved.
Further, in some embodiments, determining the function subscription manifest includes:
and predicting the predicted reservation time of the corresponding function based on the historical starting time data of the user for each function in the automobile, and determining the function reservation list based on the predicted reservation time corresponding to each function.
Since the daily habit of the user is always consistent, the predicted reservation time of the corresponding function can be predicted by the historical opening time data of the user for each function in the automobile, so that the function reservation list can be determined.
For example, as one example, the travel demand of the user is on duty, the historical opening time data in the working day is typically the historical time data of opening the air conditioner, heating the seat, adjusting the position of the seat, etc. of the vehicle at seven points in the morning, and the reservation prediction demand of the corresponding function of the user in the next working day can be predicted by collecting the historical time data of opening each function by the user, because the travel demand of the working day of the user is the same, so that the function reservation list is obtained.
Therefore, by determining the function reservation list according to the historical starting time data of the user aiming at each function in the automobile, the vehicle can autonomously generate the function reservation list, the problem that the user needs to issue reservation instructions each time the user needs to reserve the vehicle to occupy the user time is avoided, and convenience of the user for reserving the vehicle is improved.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein.
The following are examples of the apparatus of the present application that may be used to perform the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Fig. 2 is a schematic diagram of a time alignment apparatus according to an embodiment of the present application. As shown in fig. 2, the time alignment apparatus includes:
an obtaining module 201, configured to obtain a reference time of a vehicle system time, where the reference time is a GPS time when a global positioning system GPS signal is detected, and the reference time is a network time protocol NTP time when the GPS signal is not detected and an on-vehicle networking controller is detected to access a network, and the GPS time is included in the GPS signal;
an execution module 202 is configured to perform time calibration on the vehicle system time according to the reference time.
In some embodiments, the execution module 202 is specifically configured to perform time calibration on the vehicle system time through the GPS time every a first preset period after the on-board networked controller is powered on or wakes up in sleep, or perform time calibration on the vehicle system time through the GPS time every a first preset period when the reference time is the GPS time; and comparing the vehicle system time with the GPS time at each second preset period, and performing time calibration according to the GPS time if the time difference between the vehicle system time and the GPS time is detected to be larger than the preset time difference.
In some embodiments, the execution module 202 is specifically configured to perform time calibration on the vehicle system time through the NTP time only after the on-board networked controller is powered on or wakes up by dormancy if the reference time is the NTP time.
In some embodiments, the time-calibrated apparatus further comprises a setting module for setting a real-time clock, RTC, time to the vehicle system time.
In some embodiments, the time-calibrated apparatus further comprises a broadcasting module for broadcasting time information via the CAN signal, wherein the time information comprises a calibrated time and an identification indicating that the calibrated time is a valid time.
In some embodiments, the time calibration apparatus further includes a time management module configured to determine a function reservation list, where the function reservation list includes a plurality of function opening requirements and reserved times corresponding to the function opening requirements; and if the time difference between the reserved time corresponding to the target function starting requirement and the vehicle system time is detected to be smaller than a preset threshold value, executing the reference time for acquiring the vehicle system time and the following steps.
In some embodiments, the time management module is specifically configured to predict a predicted reservation time of a corresponding function based on historical opening time data of the user for each function in the automobile, and determine the function reservation list based on the predicted reservation time corresponding to each function.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Fig. 3 is a schematic diagram of an electronic device 3 according to an embodiment of the present application. As shown in fig. 3, the electronic apparatus 3 of this embodiment includes: a processor 301, a memory 302 and a computer program 303 stored in the memory 302 and executable on the processor 301. The steps of the various method embodiments described above are implemented when the processor 301 executes the computer program 303. Alternatively, the processor 301, when executing the computer program 303, performs the functions of the modules/units in the above-described apparatus embodiments.
The electronic device 3 may be an electronic device such as a desktop computer, a notebook computer, a palm computer, or a cloud server. The electronic device 3 may include, but is not limited to, a processor 301 and a memory 302. It will be appreciated by those skilled in the art that fig. 3 is merely an example of the electronic device 3 and is not limiting of the electronic device 3 and may include more or fewer components than shown, or different components.
The processor 301 may be a central processing unit (Central Processing Unit, CPU) or other general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like.
The memory 302 may be an internal storage unit of the electronic device 3, for example, a hard disk or a memory of the electronic device 3. The memory 302 may also be an external storage device of the electronic device 3, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 3. The memory 302 may also include both internal storage units and external storage devices of the electronic device 3. The memory 302 is used to store computer programs and other programs and data required by the electronic device.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit.
The integrated modules/units may be stored in a readable storage medium if implemented in the form of software functional units and sold or used as stand-alone products. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, and the computer program may be stored in a readable storage medium, where the computer program may implement the steps of the method embodiments described above when executed by a processor. The computer program may comprise computer program code, which may be in source code form, object code form, executable file or in some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the content of the computer readable medium can be appropriately increased or decreased according to the requirements of the jurisdiction's jurisdiction and the patent practice, for example, in some jurisdictions, the computer readable medium does not include electrical carrier signals and telecommunication signals according to the jurisdiction and the patent practice.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.
Claims (10)
1. A method of time alignment, comprising:
acquiring reference time of vehicle system time, wherein the reference time is GPS time under the condition that a Global Positioning System (GPS) signal is detected, and is Network Time Protocol (NTP) time under the condition that the GPS signal is not detected and a vehicle-mounted networking controller is detected to access a network, and the GPS signal comprises the GPS time;
and according to the reference time, performing time calibration on the vehicle system time.
2. The method of time calibration according to claim 1, wherein said time calibrating the vehicle system time based on the reference time comprises:
under the condition that the reference time is the GPS time, after the vehicle-mounted networking controller is electrified or wakes up in a dormant mode, the time calibration is carried out on the vehicle system time once through the GPS time every a first preset period; or,
and comparing the vehicle system time with the GPS time every second preset period, and performing time calibration according to the GPS time if the time difference between the vehicle system time and the GPS time is detected to be larger than the preset time difference.
3. The method of time calibration according to claim 1, wherein said time calibrating the vehicle system time based on the reference time comprises:
and under the condition that the reference time is the NTP time, only after the vehicle-mounted networking controller is electrified or wakes up in a dormant mode, performing time calibration on the vehicle system time through the NTP time.
4. The method of time calibration according to claim 1, wherein prior to time calibrating the vehicle system time based on the reference time, further comprising:
the real time clock RTC time is set to the vehicle system time.
5. The method of time calibration according to claim 1, wherein after time calibrating the vehicle system time based on the reference time, further comprising:
broadcasting time information through a Controller Area Network (CAN) signal, wherein the time information comprises calibrated time and an identifier for indicating that the calibrated time is effective time.
6. The method of time alignment according to claim 1, wherein prior to the obtaining the reference time for the vehicle system time, further comprising:
determining a function reservation list, wherein the function reservation list comprises a plurality of function starting requirements and reservation time corresponding to each function starting requirement;
and if the time difference between the reserved time corresponding to the target function starting requirement and the vehicle system time is detected to be smaller than a preset threshold value, executing the reference time for acquiring the vehicle system time and the following steps.
7. The method of time alignment according to claim 6, wherein determining a function subscription manifest comprises:
and predicting the predicted reservation time of the corresponding function based on the historical starting time data of the user for each function in the automobile, and determining the function reservation list based on the predicted reservation time corresponding to each function.
8. A time alignment apparatus, comprising:
the acquisition module is used for acquiring reference time of vehicle system time, wherein the reference time is GPS time under the condition that a Global Positioning System (GPS) signal is detected, the GPS signal comprises the GPS time, and the reference time is Network Time Protocol (NTP) under the condition that the GPS signal is not detected and the vehicle networking controller is detected to be connected to a network;
and the execution module is used for carrying out time calibration on the vehicle system time according to the reference time.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when the computer program is executed.
10. A storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310787549.9A CN116582214A (en) | 2023-06-29 | 2023-06-29 | Time calibration method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310787549.9A CN116582214A (en) | 2023-06-29 | 2023-06-29 | Time calibration method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116582214A true CN116582214A (en) | 2023-08-11 |
Family
ID=87538063
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310787549.9A Pending CN116582214A (en) | 2023-06-29 | 2023-06-29 | Time calibration method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116582214A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117979412A (en) * | 2024-03-29 | 2024-05-03 | 江铃汽车股份有限公司 | Internal time synchronization method and system for vehicle-mounted communication remote terminal |
-
2023
- 2023-06-29 CN CN202310787549.9A patent/CN116582214A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117979412A (en) * | 2024-03-29 | 2024-05-03 | 江铃汽车股份有限公司 | Internal time synchronization method and system for vehicle-mounted communication remote terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113110160B (en) | Time synchronization method and device of domain controller, domain controller and storage medium | |
CN111787507B (en) | Vehicle control method and device, vehicle, system and storage medium | |
CN116582214A (en) | Time calibration method, device, electronic equipment and storage medium | |
CN110703586B (en) | Time synchronization method, data synchronization method, device, system, equipment and medium | |
CN111130676B (en) | Time synchronization correction method and device applied to master clock and slave clock | |
US20100161260A1 (en) | Synchronized data sampling systems and methods | |
US11396246B2 (en) | Energy-consumption detection of vehicles in an off state | |
CN109150353B (en) | Timing method and system for vehicle-mounted TBOX of electric vehicle | |
CN112394634A (en) | Time service method, device, equipment and storage medium for vehicle-mounted computing platform | |
CN115441980A (en) | Time synchronization method, time synchronization device and time synchronization equipment | |
JP2020160736A (en) | Vehicle parking/stopping hours prediction device, vehicle parking/stopping hours prediction method, and program | |
CN109005509B (en) | Terminal positioning method, device, terminal and storage medium | |
CN108318899A (en) | A kind of ephemeris update method, device and mobile terminal | |
CN114199274A (en) | Vehicle travel determining method, device and equipment and readable storage medium | |
CN116566534A (en) | Time synchronization method, device, vehicle and readable storage medium | |
CN113608250B (en) | Terminal positioning method, device, storage medium and positioning module | |
JP6172754B2 (en) | Communication apparatus and communication method | |
CN118018172B (en) | Domain controller time synchronization system | |
CN114006672A (en) | Vehicle-mounted multi-sensor data synchronous acquisition method and system | |
US20200357270A1 (en) | Access point, information collection system, information collection method, control circuitry, and computer program product | |
CN113050497A (en) | Method for timing correction, and corresponding controller, vehicle, device, and medium | |
CN116318512A (en) | Vehicle time timing method and device, vehicle and storage medium | |
CN114553353B (en) | Timing method and device and vehicle-mounted wireless communication box | |
CN115250159B (en) | Time synchronization method, device, electronic equipment, storage medium and program product | |
CN115356753B (en) | Method for realizing rapid positioning of satellite positioning module by using base station position information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20240118 Address after: No. 13 Xingxiang Road, Zengjia Town, High tech Zone, Shapingba District, Chongqing, 400039 Applicant after: Chongqing Selis Phoenix Intelligent Innovation Technology Co.,Ltd. Address before: 401120 No. 618 Liangjiang Avenue, Longxing Town, Yubei District, Chongqing City Applicant before: Chongqing Celes New Energy Automobile Design Institute Co.,Ltd. |
|
TA01 | Transfer of patent application right |