CN115220336A - Time calibration method, device and storage medium - Google Patents

Time calibration method, device and storage medium Download PDF

Info

Publication number
CN115220336A
CN115220336A CN202110433769.2A CN202110433769A CN115220336A CN 115220336 A CN115220336 A CN 115220336A CN 202110433769 A CN202110433769 A CN 202110433769A CN 115220336 A CN115220336 A CN 115220336A
Authority
CN
China
Prior art keywords
time
recorder
information
gps positioning
positioning information
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
Application number
CN202110433769.2A
Other languages
Chinese (zh)
Inventor
马勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN202110433769.2A priority Critical patent/CN115220336A/en
Publication of CN115220336A publication Critical patent/CN115220336A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • G04R20/02Setting the time according to the time information carried or implied by the radio signal the radio signal being sent by a satellite, e.g. GPS
    • G04R20/04Tuning or receiving; Circuits therefor
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R40/00Correcting the clock frequency
    • G04R40/06Correcting the clock frequency by computing the time value implied by the radio signal

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Electric Clocks (AREA)

Abstract

The embodiment of the application provides a time calibration method, a time calibration device and a storage medium, which are applied to a recorder, wherein the recorder comprises two operating systems, and GPS positioning information of a global positioning system is acquired firstly when the recorder is subjected to time calibration; when the GPS positioning information is determined to comprise time information which can be used for representing coordinated universal time, determining target time according to the time information and time zone information corresponding to the recorder; and correcting the time of two operating systems included in the recorder according to the target time. Therefore, the time information used for expressing the coordinated universal time in the GPS positioning information of the global positioning system is obtained, the time of the two operating systems in the recorder is calibrated together by combining the time zone information corresponding to the recorder, the time of the recorder can be automatically calibrated without connecting an upper computer or a corresponding private network, and the efficiency of time calibration of the recorder is improved.

Description

Time calibration method, device and storage medium
Technical Field
The present application relates to the field of recorder technologies, and in particular, to a time calibration method, device, and storage medium.
Background
The recorder can be used for recording information such as voice, images and videos, and the time of the recorder needs to be calibrated in order to ensure the accuracy of the information recorded by the recorder.
In the prior art, when calibrating Time of a recorder, the recorder is connected to an upper computer or a corresponding private network, and a Real-Time Clock (RTC) in the recorder can be calibrated through the upper computer or the corresponding private network under the condition of network connection.
However, the system time of the recorder is calibrated by connecting the recorder to the upper computer or a corresponding private network, and the time of the recorder cannot be calibrated in time without the upper computer or the private network, so that the time calibration efficiency of the recorder is reduced.
Disclosure of Invention
The embodiment of the application provides a time calibration method, a time calibration device and a storage medium, so that the time of a recorder can be automatically calibrated without being connected with an upper computer or a corresponding private network, and the efficiency of time calibration of the recorder is improved.
In a first aspect, an embodiment of the present application provides a time calibration method, where the time calibration method is applied to a recorder, where the recorder includes two operating systems, and the method includes:
and acquiring GPS positioning information of a global positioning system.
And when the GPS positioning information is determined to comprise time information which can be used for representing coordinated universal time, determining target time according to the time information and time zone information corresponding to the recorder.
And correcting the time of two operating systems included in the recorder according to the target time.
In a possible implementation manner, the two operating systems include a first operating system and a second operating system, and the correcting the time of the two operating systems included in the recorder according to the target time includes:
determining the time of the first operating system according to the target time; the first operating system comprises a real-time clock;
synchronously setting the time of the real-time clock according to the time of the first operating system; and synchronously setting the time of the second operating system according to the time of the first operating system.
In a possible implementation manner, the correcting the time of two operating systems included in the recorder according to the target time includes:
and when the recorder is started for the first time, correcting the time of two operating systems in the recorder according to the target time.
In a possible implementation manner, before determining the target time according to the time information and the time zone information corresponding to the recorder, the method may further include:
analyzing the data of the GPS positioning information;
and determining that the GPS positioning information comprises time information which can be used for representing coordinated universal time according to the analysis result.
In one possible implementation, the method further includes:
and when the GPS positioning information does not comprise time information which can be used for representing coordinated universal time, acquiring new GPS positioning information again, and carrying out data analysis on the new GPS positioning information until the new GPS positioning information comprises the time information which can be used for representing the coordinated universal time according to an analysis result.
In one possible implementation, the method further includes:
and correcting the time of two operating systems in the recorder again at preset time intervals.
In a second aspect, an embodiment of the present application provides a time calibration apparatus, where the time calibration apparatus is applied to a recorder, where the recorder includes two operating systems, and the apparatus includes:
and the acquisition unit is used for acquiring the GPS positioning information of the global positioning system.
And the determining unit is used for determining the target time according to the time information and the time zone information corresponding to the recorder when the GPS positioning information is determined to comprise the time information which can be used for representing the coordinated universal time.
And the calibration unit is used for correcting the time of two operating systems in the recorder according to the target time.
In a possible implementation manner, the two operating systems include a first operating system and a second operating system, and the correction unit is specifically configured to determine a time of the first operating system according to the target time; the first operating system comprises a real-time clock; synchronously setting the time of the real-time clock according to the time of the first operating system; and synchronously setting the time of the second operating system according to the time of the first operating system.
In a possible implementation manner, the correcting unit is specifically configured to correct the time of two operating systems included in the recorder according to the target time when the recorder is started for the first time.
In a possible implementation manner, the determining unit is further configured to perform data analysis on the GPS positioning information; and determining that the GPS positioning information comprises time information which can be used for representing coordinated universal time according to the analysis result.
In a possible implementation manner, the determining unit is further configured to, when it is determined that the GPS positioning information does not include time information that can be used to indicate coordinated universal time, acquire new GPS positioning information again, and perform data analysis on the new GPS positioning information until it is determined that the new GPS positioning information includes the time information that can be used to indicate coordinated universal time according to an analysis result.
In a possible implementation manner, the correction unit is further configured to correct the time of two operating systems included in the recorder again every preset time interval.
In a third aspect, an embodiment of the present application further provides a time calibration apparatus, which may include a memory and a processor; wherein,
the memory is used for storing computer programs.
The processor is configured to read the computer program stored in the memory, and execute the time calibration method described in any one of the possible implementation manners of the first aspect according to the computer program in the memory.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where a computer-executable instruction is stored in the computer-readable storage medium, and when a processor executes the computer-executable instruction, the time calibration method described in any one of the possible implementation manners of the first aspect is implemented.
In a fifth aspect, an embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the time calibration method described in any one of the possible implementation manners of the first aspect is implemented.
Therefore, the embodiment of the application provides a time calibration method, a time calibration device and a storage medium, which are applied to a recorder, wherein the recorder comprises two operating systems, and when the recorder is calibrated in time, GPS positioning information of a global positioning system is acquired; when the GPS positioning information is determined to comprise time information which can be used for representing coordinated universal time, determining target time according to the time information and time zone information corresponding to the recorder; and correcting the time of two operating systems included in the recorder according to the target time. Therefore, the time information used for expressing the coordinated universal time in the GPS positioning information is obtained, the time of the two operating systems in the recorder is calibrated together by combining the time zone information corresponding to the recorder, the time of the recorder can be automatically calibrated without connecting an upper computer or a corresponding private network, and the efficiency of time calibration of the recorder is improved.
Drawings
Fig. 1 is a schematic flowchart of a time calibration method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of GPS positioning information provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of another time calibration method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a timing process of an operating system according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a time alignment apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of another time alignment apparatus according to an embodiment of the present application.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
In the embodiments of the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. In the description of the text of the present application, the character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The technical scheme provided by the embodiment of the application can be applied to the use scene of the portable recorder. A recorder, such as a law enforcement recorder, may be used to record audio, video, and other information. Due to the difference of the hardware of the recording instrument, the difference between the time of the recording instrument when the recording instrument is used for a long time and the standard time may occur in the using process of the recording instrument, and therefore, in order to ensure the accuracy of the information recorded by the recording instrument, the time of the recording instrument needs to be calibrated.
At present, when calibrating the Time of a recorder, the recorder is mainly connected to an upper computer or a corresponding private network, and a Real-Time Clock (RTC) in the recorder is calibrated through the upper computer or the corresponding private network, that is, the Time of the recorder is calibrated. However, the system time of the recorder is calibrated by connecting the recorder to an upper computer or a corresponding private network, and the time of the recorder cannot be calibrated in time without the upper computer or the private network, so that the time calibration efficiency of the recorder is reduced.
In order to solve the problem of low time calibration efficiency caused by the fact that the recorder can only be connected with an upper computer or a private network for time calibration, the System time of the recorder can be calibrated according to time information of coordinated universal time by acquiring the time information of the coordinated universal time in Global Positioning System (GPS) information in the recorder, so that the time of the recorder can be automatically calibrated without being connected with the upper computer or the private network, and the time calibration efficiency of the recorder is improved.
Based on the above conception, the embodiment of the application provides a time calibration method, which is applied to a recorder, wherein the recorder comprises two operating systems, and when the recorder is calibrated in time, GPS positioning information of a global positioning system is obtained; when the GPS positioning information is determined to comprise time information which can be used for representing coordinated universal time, determining target time according to the time information and time zone information corresponding to the recorder; and correcting the time of two operating systems included in the recorder according to the target time.
Therefore, in the embodiment of the application, the time information used for indicating the coordinated universal time in the GPS positioning information is obtained, and the time of the two operating systems in the recorder is calibrated together by combining the time zone information corresponding to the recorder, so that the time of the recorder can be automatically calibrated without connecting an upper computer or a corresponding private network, and the efficiency of time calibration of the recorder is improved.
Hereinafter, the time calibration method provided in the present application will be described in detail by specific examples. It is to be understood that the following detailed description may be combined with other embodiments, and that the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a schematic flowchart of a time calibration method according to an embodiment of the present disclosure. The time calibration method may be performed by software and/or hardware means, for example, the hardware means may be a time calibration means, which may be a terminal or a processing chip in the terminal. For example, referring to fig. 1, the time calibration method may include:
s101, obtaining GPS positioning information of a global positioning system.
For example, the obtained GPS positioning information may include position information of a recorder, precise time information, and the like, and if the recorder is in a vehicle, speed information of the vehicle may also be obtained during the driving process of the vehicle.
It can be understood that, in the embodiment of the present application, when the time of the recorder is corrected based on the acquired GPS positioning information, in order to further ensure the accuracy of the correction, before the time of the recorder is corrected based on the acquired GPS positioning information, it may be determined whether time information that can be used to indicate coordinated universal time is included in the GPS positioning information. For example, when determining whether the GPS positioning information includes time information that can be used to indicate coordinated universal time, the GPS positioning information may be subjected to data analysis; and judging whether the GPS positioning information comprises time information which can be used for expressing the coordinated universal time or not according to the analysis result. For example, the data analysis may be RMC data analysis, or may be in other analysis manners, which is not limited in this embodiment of the present application.
In one case, when the data indicating the coordinated universal time in the GPS positioning information obtained by the data analysis is 0 or does not exist, it is determined that the time information usable for indicating the coordinated universal time is not included in the GPS positioning information. When the GPS positioning information does not comprise time information which can be used for representing the coordinated universal time, acquiring new GPS positioning information again, and carrying out data analysis on the new GPS positioning information until the new GPS positioning information is determined to comprise the time information which can be used for representing the coordinated universal time according to an analysis result; therefore, invalid GPS positioning information can be filtered, and the accuracy of the coordinated universal time information obtained after analysis is ensured, so that the accuracy of time calibration of the recorder can be further improved.
In another case, when the data indicating the coordinated universal time in the GPS positioning information obtained by the data analysis is non-0 data, it is determined that time information indicating the coordinated universal time is included in the GPS positioning information. Referring to fig. 2, fig. 2 is a schematic diagram of GPS positioning information according to an embodiment of the present disclosure. Note that the data in the rectangular frame in fig. 2 is data indicating the coordinated universal time, and it is determined that the GPS positioning information shown in fig. 2 includes time information indicating the coordinated universal time by making the data in the rectangular frame in fig. 2 non-0 data.
Further, when it is determined that the acquired GPS positioning information includes Time information indicating Coordinated Universal Time, the Time information of the Coordinated Universal Time may be directly determined as Time information, that is, UTC (Universal Time Coordinated) Time is determined.
S102, when the GPS positioning information is determined to comprise time information which can be used for representing coordinated universal time, the target time is determined according to the time information and time zone information corresponding to the recorder.
Wherein, the target time is the current standard time of the recorder.
For example, when determining the target time according to the time information and the time zone information corresponding to the recorder, the time zone information corresponding to the recorder may be determined first, and the target time may be determined by combining the time information and the time zone information corresponding to the recorder.
The time zone information corresponding to the recorder is divided according to the difference of longitude, and comprises 12 time zones in the east area and 12 time zones in the west area, wherein the total time zone is 24 time zones, and the coordinated universal time information is the time of a 0 time zone or a middle time zone. When the time information is combined with the time zone information corresponding to the recorder to determine the target information, according to the specification, for 12 time zones of the east region, each time zone is added, the determined target time is the time after the time information is added by one hour, for example, the time zone information corresponding to the recorder is the east 4 region, the time information is 8 o 'clock and 45 o' clock, and the target time is 12 o 'clock and 45 o' clock; for 12 time zones in the western region, each time zone is added, the determined target time is the time of reducing the time information by one hour, for example, the time zone information corresponding to the recorder is the western 8 zone, the time information is 2 o 'clock and 30 min, and the target time is 10 o' clock and 30 min.
For example, the time zone information corresponding to the recorder may be set by connecting the recorder to an upper computer by a user, and if the user does not set the time zone information of the recorder, the time zone information of the recorder is default time zone information when the recorder leaves the factory.
After determining the target time according to the time information and the time zone information corresponding to the recorder, the times of the two operating systems included in the recorder can be corrected according to the target time, that is, the following S103 is performed:
and S103, correcting the time of two operating systems in the recorder according to the target time.
The two operating systems comprise a first operating system and a second operating system.
When the time of two operating systems included in the recorder is corrected according to the target time, the time of the first operating system can be determined according to the target time; the first operating system comprises a real-time clock; synchronously setting the time of a real-time clock according to the time of the first operating system; and according to the time of the first operating system, the time of the second operating system is synchronously set, so that the time of the first operating system and the time of the second operating system can be synchronously corrected, the problem of time difference of the two operating systems caused by the time correction interval of the two operating systems can be avoided, the time consistency of the first operating system and the second operating system is ensured, and the time correction efficiency of the recorder is improved.
For example, if the target time is 9 o 'clock and 10 o' clock, the time of the first operating system may be determined to be 9 o 'clock and 10 o' clock, that is, the time of the real-time clock may be determined to be 9 o 'clock and 10 o' clock, and the time of the second operating system may be set to be 9 o 'clock and 10 o' clock synchronously according to the target time.
By way of example, the first operating system may be a Linux operating system. The second operating system may be a lite os operating system, and the embodiment of the present application is not limited to a specific operating system.
For example, when the time of two operating systems included in the recorder is corrected, the time of the two operating systems included in the recorder can be corrected according to the target time when the recorder is started for the first time, so that the accuracy of the time after the recorder is started can be ensured.
Therefore, according to the time calibration method provided by the embodiment of the application, the time information used for indicating the coordinated universal time in the GPS positioning information is obtained, and the target time is determined by combining the time zone information corresponding to the recorder, so that the time of two operating systems in the recorder can be calibrated automatically without connecting an upper computer or a corresponding private network, and the efficiency of time calibration of the recorder is improved.
In order to further improve the accuracy of the time of the two operating systems of the recorder, the time of the two operating systems included in the recorder may be corrected again at a preset time interval in the using process of the recorder, and the method for correcting may be referred to in the foregoing embodiments, which are not described again in this application. The preset time period may be 2 hours, 4 hours, or 5 hours, and may be specifically set according to an actual situation, which is not limited in this embodiment of the present application.
In the embodiment of the application, the time of two operating systems in the recorder is corrected again through presetting time at intervals, the time difference between the time and standard time in the using process of the recorder can be adjusted in time, and the accuracy of the time of the recorder is guaranteed, so that the accuracy of the time in the recorded information can be guaranteed.
To facilitate understanding of the time calibration method provided in the embodiment of the present application, the following will describe in detail the technical solution provided in the embodiment of the present application, and specifically refer to fig. 3, where fig. 3 is a schematic flow chart of another time calibration method provided in the embodiment of the present application.
As shown in fig. 3, after the GPS positioning information is acquired, RMC data analysis is performed on the acquired GPS positioning information, and it is determined whether the GPS positioning information includes time information that can be used to indicate coordinated universal time, that is, whether the GPS positioning information is valid information, according to the analysis result. If the GPS positioning information does not comprise time information which can be used for representing coordinated universal time, new GPS positioning information is obtained again until the obtained GPS positioning information comprises the time information which can be used for representing the coordinated universal time; if the GPS location information includes time information that may be used to represent coordinated universal time, the coordinated universal time, i.e., UTC time, may be determined. For a specific method for determining whether the GPS positioning information includes time information that can be used to represent coordinated universal time, reference may be made to the foregoing embodiments, which are not described in detail herein.
Furthermore, after the coordinated universal time is determined, whether the recorder is started for the first time can be judged, and if the recorder is started for the first time, the timing process of the operating system is directly carried out; if the recorder is not started for the first time, it is further determined whether the preset time is reached, and the preset time is 2 hours in the embodiment of the present application, which represents that the embodiment of the present application is only limited thereto. If the timing reaches 2 hours, performing a timing flow of the operating system; and if the timing is not up to 2 hours, continuously acquiring the GPS positioning information.
For example, the timing process of the operating system shown in fig. 3 can be specifically referred to as fig. 4. Fig. 4 is a schematic diagram of a timing process of an operating system according to an embodiment of the present application.
According to fig. 4, when calibrating the operating system, first determining whether the recorder sets time zone information, and if the recorder sets time zone information, determining the time zone information of the recorder as the set time zone information; and if the recorder does not set time zone information, determining that the time zone information of the recorder is default time zone information, namely default time zone information set when the recorder leaves the factory. The embodiment of the application does not specifically limit the information of the default time zone of the recorder. After determining the time zone information of the recorder, combining the time zone information of the recorder with the coordinated universal time determined in fig. 3 to determine the target time, the specific process may refer to the foregoing embodiments, and details of this embodiment are not described herein again.
Further, after the target time is determined, the target time is determined as the time of the Linux operating system, and the real-time clock RTC time is synchronously set according to the time of the Linux operating system. And meanwhile, setting the time of the liteOS operating system according to the time of the Linux system, thereby correcting the time of the Linux operating system and the time of the liteOS operating system. The embodiments of the present application are described by taking Linux operating system and lite os operating system as examples, but do not represent that the embodiments of the present application are limited thereto.
In summary, in the embodiment of the present application, the coordinated universal time is determined by acquiring the GPS positioning information and analyzing the GPS positioning information, and the target time, that is, the current accurate time of the recorder is determined by combining the time zone information corresponding to the recorder, so as to correct the time of the time operating system of the recorder according to the target time. The time correction method has the advantages that the time of the Linux operating system and the time of the liteOS operating system in the recorder can be automatically corrected without connecting the recorder to an upper computer or a corresponding private network, the accuracy and consistency of the time of the Linux operating system and the time of the liteOS operating system can be ensured, and the time correction efficiency of the recorder is improved.
Fig. 5 is a schematic structural diagram of a time calibration apparatus 50 according to an embodiment of the present application, for example, please refer to fig. 5, where the time calibration apparatus 50 may include:
the acquiring unit 501 is configured to acquire GPS positioning information.
A determining unit 502, configured to determine a target time according to the time information and time zone information corresponding to the recorder when determining that the GPS positioning information includes time information that can be used to indicate coordinated universal time.
A calibration unit 503, configured to correct the time of two operating systems included in the recorder according to the target time.
Optionally, the two operating systems include a first operating system and a second operating system, and the correction unit 503 is specifically configured to determine the time of the first operating system according to the target time; the first operating system comprises a real-time clock; synchronously setting the time of a real-time clock according to the time of the first operating system; and synchronously setting the time of the second operating system according to the time of the first operating system.
Optionally, the correcting unit 503 is specifically configured to correct the time of two operating systems included in the recorder according to the target time when the recorder is started for the first time.
Optionally, the determining unit 502 is further configured to perform data analysis on the GPS positioning information; and determining that the GPS positioning information comprises time information which can be used for expressing coordinated universal time according to the resolving result.
Optionally, the determining unit 502 is further configured to, when it is determined that the GPS positioning information does not include time information that can be used to indicate coordinated universal time, obtain new GPS positioning information again, and perform data analysis on the new GPS positioning information until it is determined that the new GPS positioning information includes the time information that can be used to indicate coordinated universal time according to the analysis result.
Optionally, the calibration unit 503 is further configured to calibrate the time of two operating systems included in the recorder again every preset time interval.
The time calibration device provided in the embodiment of the present application can implement the technical solution of the time calibration method in any of the above embodiments, and the implementation principle and the beneficial effect thereof are similar to those of the time calibration method, and reference may be made to the implementation principle and the beneficial effect of the time calibration method, which is not described herein again.
Fig. 6 is a schematic structural diagram of another time alignment apparatus 60 provided in the embodiment of the present application, for example, please refer to fig. 6, where the time alignment apparatus 60 may include a processor 601 and a memory 602;
wherein,
the memory 602 is used for storing computer programs.
The processor 601 is configured to read the computer program stored in the memory 602, and execute the technical solution of the time calibration method in any of the embodiments according to the computer program in the memory 602.
Alternatively, the memory 602 may be separate or integrated with the processor 601. When the memory 602 is a device independent from the processor 601, the time calibration apparatus 60 may further include: a bus for connecting the memory 602 and the processor 601.
Optionally, this embodiment further includes: a communication interface, which may be connected to the processor 601 through a bus. The processor 601 may control the communication interface to implement the receiving and transmitting functions of the time alignment device 60 described above.
The time calibration apparatus 60 shown in the embodiment of the present application can execute the technical solution of the time calibration method in any of the above embodiments, and the implementation principle and the beneficial effect thereof are similar to those of the time calibration method, and reference may be made to the implementation principle and the beneficial effect of the time calibration method, which is not described herein again.
An embodiment of the present application further provides a computer-readable storage medium, where a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the technical solution of the time calibration method in any of the above embodiments is implemented, and implementation principles and advantageous effects of the time calibration method are similar to those of the time calibration method, which can be referred to for implementation principles and advantageous effects of the time calibration method, and are not described herein again.
The embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the technical solution of the time calibration method in any of the above embodiments is implemented, and the implementation principle and the beneficial effect of the computer program are similar to those of the time calibration method, which can be referred to as the implementation principle and the beneficial effect of the time calibration method, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts shown as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The computer-readable storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A time calibration method is applied to a recorder, wherein the recorder comprises two operating systems, and the method comprises the following steps:
acquiring GPS positioning information of a global positioning system;
when the GPS positioning information is determined to comprise time information which can be used for representing coordinated universal time, determining target time according to the time information and time zone information corresponding to the recorder;
and correcting the time of two operating systems included in the recorder according to the target time.
2. The method of claim 1, wherein the two operating systems comprise a first operating system and a second operating system, and wherein correcting the time of the two operating systems included in the recorder according to the target time comprises:
determining the time of the first operating system according to the target time; the first operating system comprises a real-time clock;
synchronously setting the time of the real-time clock according to the time of the first operating system; and synchronously setting the time of the second operating system according to the time of the first operating system.
3. The method according to claim 1 or 2, wherein said correcting the time of two operating systems included in the recorder according to the target time comprises:
and when the recorder is started for the first time, correcting the time of two operating systems in the recorder according to the target time.
4. The method according to claim 1 or 2, wherein before determining the target time according to the time information and the time zone information corresponding to the recorder, the method further comprises:
analyzing the data of the GPS positioning information;
and determining that the GPS positioning information comprises time information which can be used for representing coordinated universal time according to the analysis result.
5. The method of claim 4, further comprising:
and when the GPS positioning information does not comprise time information which can be used for representing coordinated universal time, acquiring new GPS positioning information again, and carrying out data analysis on the new GPS positioning information until the new GPS positioning information comprises the time information which can be used for representing the coordinated universal time according to an analysis result.
6. The method according to claim 1 or 2, characterized in that the method further comprises:
and correcting the time of two operating systems in the recorder again at preset time intervals.
7. A time calibration device is characterized in that the device is applied to a recorder, two operating systems are included in the recorder, and the device comprises:
the acquisition unit is used for acquiring GPS positioning information;
the determining unit is used for determining target time according to the time information and time zone information corresponding to the recorder when the GPS positioning information is determined to comprise time information which can be used for representing coordinated universal time;
and the calibration unit is used for correcting the time of two operating systems in the recorder according to the target time.
8. A time alignment apparatus comprising a memory and a processor; wherein,
the memory for storing a computer program;
the processor is configured to read the computer program stored in the memory and execute a time alignment method according to any one of claims 1-6 according to the computer program in the memory.
9. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement a time alignment method as claimed in any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, carries out a method of time alignment according to any one of the preceding claims 1-6.
CN202110433769.2A 2021-04-21 2021-04-21 Time calibration method, device and storage medium Pending CN115220336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110433769.2A CN115220336A (en) 2021-04-21 2021-04-21 Time calibration method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110433769.2A CN115220336A (en) 2021-04-21 2021-04-21 Time calibration method, device and storage medium

Publications (1)

Publication Number Publication Date
CN115220336A true CN115220336A (en) 2022-10-21

Family

ID=83606819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110433769.2A Pending CN115220336A (en) 2021-04-21 2021-04-21 Time calibration method, device and storage medium

Country Status (1)

Country Link
CN (1) CN115220336A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117254870A (en) * 2023-11-17 2023-12-19 深圳市麦谷科技有限公司 Time calibration method and device, storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763030A (en) * 2008-12-25 2010-06-30 索尼株式会社 Electronic apparatus, image pickup apparatus, time-correcting method, and program
CN102722099A (en) * 2012-06-13 2012-10-10 东莞市洲进钟表有限公司 Clock correction system with error computing function and correction method
CN103197534A (en) * 2012-01-06 2013-07-10 中兴通讯股份有限公司 Time calibration method and device
CN104714405A (en) * 2013-12-13 2015-06-17 上海晨兴希姆通电子科技有限公司 GSM module, mobile terminal comprising GSM module and automatic time calibration method
CN205080374U (en) * 2015-10-25 2016-03-09 漳浦县建金智能科技有限公司 Double -deck intelligent wrist -watch
CN109634095A (en) * 2018-12-26 2019-04-16 上海微小卫星工程中心 Satellite clock system and satellite clock calibration method
CN112068414A (en) * 2020-07-31 2020-12-11 深圳市优必选科技股份有限公司 Multi-system timing method, device, equipment and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763030A (en) * 2008-12-25 2010-06-30 索尼株式会社 Electronic apparatus, image pickup apparatus, time-correcting method, and program
CN103197534A (en) * 2012-01-06 2013-07-10 中兴通讯股份有限公司 Time calibration method and device
CN102722099A (en) * 2012-06-13 2012-10-10 东莞市洲进钟表有限公司 Clock correction system with error computing function and correction method
CN104714405A (en) * 2013-12-13 2015-06-17 上海晨兴希姆通电子科技有限公司 GSM module, mobile terminal comprising GSM module and automatic time calibration method
CN205080374U (en) * 2015-10-25 2016-03-09 漳浦县建金智能科技有限公司 Double -deck intelligent wrist -watch
CN109634095A (en) * 2018-12-26 2019-04-16 上海微小卫星工程中心 Satellite clock system and satellite clock calibration method
CN112068414A (en) * 2020-07-31 2020-12-11 深圳市优必选科技股份有限公司 Multi-system timing method, device, equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117254870A (en) * 2023-11-17 2023-12-19 深圳市麦谷科技有限公司 Time calibration method and device, storage medium and electronic equipment
CN117254870B (en) * 2023-11-17 2024-03-12 深圳市麦谷科技有限公司 Time calibration method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN108700875A (en) Vehicular diagnostic method, system, equipment and computer readable storage medium
CN110198415B (en) Method and device for determining image timestamp
US20230214989A1 (en) Defect detection method, electronic device and readable storage medium
CN115220336A (en) Time calibration method, device and storage medium
CN113220239A (en) Erasing and writing method, device and equipment for flash storage and readable storage medium
US20230076607A1 (en) Picture Processing Method and Related Device
CN116185133B (en) Chip clock calibration method and device, chip, electronic equipment and storage medium
CN111006767B (en) Grating rotation method and device for improving wavelength accuracy of spectrograph
CN116990660A (en) eMMC aging test method, eMMC aging test device, electronic equipment and computer readable storage medium
CN111459413A (en) Method and device for improving SSD performance, computer equipment and storage medium
CN107911815B (en) Method and system for checking and correcting SIM card of terminal equipment
CN111240923A (en) Automatic test method and device for recurring problems of vehicle navigation system and storage medium
CN112712610B (en) Vehicle diagnosis log processing method and device, terminal equipment and readable storage medium
CN115174819A (en) Exposure control method, device, equipment and medium
CN109388571B (en) Method and device for acquiring identification information, computer equipment and storage medium
CN113867823A (en) Method and device for setting configuration parameters of vehicle-mounted terminal and electronic equipment
CN110647455A (en) Storage device restart recording method and system
CN112135290A (en) State determination method and device, mobile terminal and storage medium
CN111143273A (en) System on chip
CN117254870B (en) Time calibration method and device, storage medium and electronic equipment
CN110928788B (en) Service verification method and device
CN111399773A (en) Case VPD data access method, device, equipment and storage medium
CN113268960B (en) Formula processing method and device
CN114547144B (en) Time sequence data range query method, device and equipment
CN114338355B (en) Method and device for synchronizing and replacing embedded data acquisition equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20221021

RJ01 Rejection of invention patent application after publication