CN115877696A - Vehicle-mounted terminal offline timing method and system - Google Patents

Vehicle-mounted terminal offline timing method and system Download PDF

Info

Publication number
CN115877696A
CN115877696A CN202211441830.9A CN202211441830A CN115877696A CN 115877696 A CN115877696 A CN 115877696A CN 202211441830 A CN202211441830 A CN 202211441830A CN 115877696 A CN115877696 A CN 115877696A
Authority
CN
China
Prior art keywords
time
real
vehicle
mounted terminal
clock
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
CN202211441830.9A
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.)
Zhongtong Bus Holding Co Ltd
Original Assignee
Zhongtong Bus Holding Co 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 Zhongtong Bus Holding Co Ltd filed Critical Zhongtong Bus Holding Co Ltd
Priority to CN202211441830.9A priority Critical patent/CN115877696A/en
Publication of CN115877696A publication Critical patent/CN115877696A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Electric Clocks (AREA)

Abstract

The invention provides an off-line time correction method and system for a vehicle-mounted terminal, and relates to the technical field of time correction. The method comprises the following steps: editing the executable timing file, and storing the executable timing file; reading an executable timing file and acquiring target time; reading real-time clock information of a clock chip to obtain real-time clock time; and comparing the target time with the real-time clock time, if the target time is the same as the real-time clock time, the time correction is not needed, and if the target time is different from the real-time clock time, resetting the real-time clock time to the target time. According to the invention, through the off-line upgrading mode, the time calibration problem of the off-line work of the vehicle-mounted terminal is solved, the real-time performance and the accuracy of the data recorded by the vehicle-mounted terminal are ensured, and the time error problem of the subsequent data processing is eliminated.

Description

Vehicle-mounted terminal offline timing method and system
Technical Field
The invention belongs to the technical field of time correction, and particularly relates to an off-line time correction method and system for a vehicle-mounted terminal.
Background
The statements in this section merely provide background information related to the present disclosure and may not constitute prior art.
With the rapid development of computer and network communication technologies, the era of digitization and networking of automation systems in various industries has come. Computers and network devices provide a better platform for data exchange, analysis and application between control and information systems, thus placing higher demands on the time accuracy of various real-time and historical data. However, the devices in the network travel their own time, and the time of the whole system is confused in the day and month, which causes that the normal data statistical analysis service cannot be performed normally.
The vehicle-mounted terminal is front-end equipment of a vehicle monitoring and management system, can also be called a vehicle dispatching and monitoring terminal (TCU terminal), is generally and secretly installed in a vehicle, and mainly comprises a vehicle-mounted video server, an LCD touch screen, an external camera, a call handle, an automobile burglar alarm and other external equipment. The vehicle-mounted terminal has multiple functions of integrated positioning, communication, an automobile driving recorder and the like, has a powerful service scheduling function and data processing capacity, supports the functions of telephone book calling, text information voice broadcasting, security alarm, remote safe oil and power failure safety protection, reserves a plurality of RS-232 interfaces and RS-485 interfaces, and can be externally connected with a price counter, a camera, a microphone, an earphone and a TTS voice synthesis box.
The inventor finds that in the prior art, the time synchronization of the vehicle-mounted terminal is mostly uniform time calibration based on the internet and strongly depends on the networking use. The vehicle-mounted terminal transmits vehicle bus data in real time when networking, and double timing can be performed through the networking time server and the GPS satellite signal. In an off-line state, the vehicle-mounted monitoring terminal is only used as a data recorder, cannot acquire standard time information through the networking server and the GPS, and cannot calibrate time.
Meanwhile, the inventor also finds that the travel accuracy of the vehicle-mounted terminal is related to the external working condition environment, large time errors can be caused by long-time non-calibration, and the accumulated time errors cause certain time error problems for subsequent data statistics, analysis and playback work, so that great troubles are caused for users.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides the vehicle-mounted terminal off-line time correction method and the vehicle-mounted terminal off-line time correction system, through an off-line upgrading mode, the time correction problem of the vehicle-mounted terminal during off-line working is solved, the real-time performance and the accuracy of data recording of the vehicle-mounted terminal are guaranteed, and the time error problem of subsequent data processing is eliminated.
In order to achieve the above object, one or more embodiments of the present invention provide the following technical solutions:
the invention provides an off-line time correcting method for a vehicle-mounted terminal.
An off-line time correction method for a vehicle-mounted terminal comprises the following steps:
editing the executable timing file, and storing the executable timing file;
reading an executable timing file and acquiring target time;
reading real-time clock information of a clock chip to obtain real-time clock time;
and comparing the target time with the real-time clock time, if the target time and the real-time clock time are the same, the time correction is not needed, and if the target time and the real-time clock time are different, the real-time clock time is reset to the target time.
The invention provides a vehicle-mounted terminal off-line timing system in a second aspect.
An off-line timing system of a vehicle-mounted terminal comprises:
an executable file editing storage module configured to: editing the executable timing file, and storing the executable timing file;
a target time reading module configured to: reading an executable timing file and acquiring target time;
a real-time clock time reading module configured to: reading real-time clock information of a clock chip to obtain real-time clock time;
a timing module configured to: and comparing the target time with the real-time clock time, if the target time and the real-time clock time are the same, the time correction is not needed, and if the target time and the real-time clock time are different, the real-time clock time is reset to the target time.
A third aspect of the present invention provides a computer-readable storage medium, on which a program is stored, which when executed by a processor, performs the steps in the vehicle-mounted terminal offline timing method according to the first aspect of the present invention.
A fourth aspect of the present invention provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor, where the processor executes the program to implement the steps in the vehicle-mounted terminal offline timing method according to the first aspect of the present invention.
The above one or more technical solutions have the following beneficial effects:
the invention provides an off-line time correction method and system for a vehicle-mounted terminal, which are used for realizing the real-time synchronization of an internal clock and target time by performing manual time correction through time correction software under the condition of no networking, solving the time calibration problem of the off-line work of the vehicle-mounted terminal through an off-line upgrading mode and ensuring the real-time property and the accuracy of data recorded by the vehicle-mounted terminal.
The time-correcting upgrading mode can be upgraded by only preparing a storage medium (SD card) by correcting the internal clock of the vehicle-mounted terminal through executing the executable file, does not need to consume data flow or limit network conditions, has high upgrading efficiency, and is particularly suitable for upgrading the calibration time of operating the vehicle-mounted terminal by non-professional technicians.
Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the invention and together with the description serve to explain the invention and not to limit the invention.
FIG. 1 is a flow chart of the method of the first embodiment.
Fig. 2 is a schematic diagram of the timing principle of the first embodiment.
Fig. 3 is a system configuration diagram of the second embodiment.
Detailed Description
It is to be understood that the following detailed description is exemplary and is intended to provide further explanation of the invention as claimed. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the invention.
The embodiments and features of the embodiments of the invention may be combined with each other without conflict.
Example one
The embodiment discloses an off-line time correction method for a vehicle-mounted terminal.
As shown in fig. 1, an off-line timing method for a vehicle-mounted terminal includes the following steps:
editing the executable timing file, and storing the executable timing file;
reading an executable timing file and acquiring target time;
reading real-time clock information of a clock chip to obtain real-time clock time;
and comparing the target time with the real-time clock time, if the target time and the real-time clock time are the same, the time correction is not needed, and if the target time and the real-time clock time are different, the real-time clock time is reset to the target time.
Further, editing the executable timing file specifically includes: and editing clock software, setting target time according to the formats of year, month, day, time, minute and second, obtaining a timing file and editing the timing file into an executable file.
Specifically, programming software (or a similar text editor) is adopted, and She l clock software is adopted in the embodiment, and the target time: and (4) setting a sett image year alone day hour mi nuclear second to obtain a time-correcting file and editing the time-correcting file into an executable file.
Further, the executable timing file is stored, specifically: and storing the executable file in an internal storage space of the vehicle-mounted terminal or storing the executable file in an external SD memory card.
Furthermore, when the vehicle-mounted terminal is powered on and started every time, the real-time clock information of the clock chip is loaded, and the real-time clock time is obtained.
Further, difference calculation is carried out on the target time and the real-time clock time item by item according to the format of year, month, day, time, minute and second, and absolute values are obtained for the difference.
Furthermore, if the absolute value of the difference is zero, time correction is not needed; if the absolute value of the difference is larger than zero, resetting the real-time clock time of the corresponding item to the target time, and realizing time synchronization.
Further, after the time synchronization is successful, the executable time correction file is cleared, and the off-line time correction of the vehicle-mounted terminal is realized.
And after the time synchronization is successful, clearing the executable time correction file to prevent repeated time correction.
According to the method, the She l clock software is edited, the current time is set according to the 'year, month, day, hour, minute and second', the set information is written into the internal storage or SD card of the vehicle-mounted terminal, the vehicle-mounted terminal is powered on, under the condition that the time server and the GPS satellite signal networking are invalid, the executable file of the She l editing software is read, the internal RTC system clock is reset to be synchronous with the target time, and after the time synchronization is successful, the internal storage information is cleared, so that the off-line time correction of the vehicle-mounted monitoring terminal is realized.
Due to the fact that the actual working condition is complex, the reliability and effectiveness of the system time of the vehicle-mounted terminal equipment can be guaranteed to the maximum extent by means of a method of regularly and forcibly correcting the time manually.
As shown in fig. 2, the timing principle of the present invention is as follows:
setting the current target time by adopting a clock software module, and storing the current target time as an executable file in an internal storage space of the vehicle-mounted monitoring terminal or an external SD storage card; the method comprises the steps that the original time of an RTC system is loaded when the vehicle-mounted terminal is powered on and started every time, an executable time correction She l file in a storage space is detected, the current RTC time is cached, and target set time in the executable file is read; comparing the RTC time with target set time, calculating difference item by item according to a format of 'year, month, day, time, minute and second', taking an absolute value of each item of difference, indicating that the target time is different from the RTC time when an absolute value of a certain item is greater than zero, resetting the RTC time and storing the RTC time as the target time in a corresponding item of a She l file when time correction is needed; when the absolute value of a certain item is equal to zero, the target time and the RTC time are not different, and then the current corresponding item of the original time of the RTC system is executed.
In the off-line mode of the vehicle-mounted terminal, the system time is directly obtained from the RTC, the internal storage space is monitored by electrifying each time, the executable time correction file is obtained, and the time correction is completed by resetting the internal clock to be synchronous with the set target time.
Example two
The embodiment discloses an off-line timing system of a vehicle-mounted terminal.
As shown in fig. 3, an off-line timing system for a vehicle-mounted terminal includes:
an executable file editing storage module configured to: editing the executable timing file, and storing the executable timing file;
a target time reading module configured to: reading an executable timing file and acquiring target time;
a real-time clock time reading module configured to: reading real-time clock information of a clock chip to obtain real-time clock time;
a timing module configured to: and comparing the target time with the real-time clock time, if the target time and the real-time clock time are the same, the time correction is not needed, and if the target time and the real-time clock time are different, the real-time clock time is reset to the target time.
EXAMPLE III
An object of the present embodiment is to provide a computer-readable storage medium.
The computer readable storage medium, on which a computer program is stored, when the program is executed by a processor, the steps in the vehicle-mounted terminal offline timing method according to embodiment 1 of the present disclosure are implemented.
Example four
An object of the present embodiment is to provide an electronic device.
The electronic device comprises a memory, a processor and a program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the steps in the vehicle-mounted terminal offline timing method in the embodiment 1 of the disclosure.
The steps involved in the apparatuses of the above second, third and fourth embodiments correspond to the first embodiment of the method, and the detailed description thereof can be found in the relevant description of the first embodiment. The term "computer-readable storage medium" should be taken to include a single medium or multiple media containing one or more sets of instructions; it should also be understood to include any medium that is capable of storing, encoding or carrying a set of instructions for execution by a processor and that cause the processor to perform any of the methods of the present invention.
Those skilled in the art will appreciate that the modules or steps of the present invention described above can be implemented using general purpose computer means, or alternatively, they can be implemented using program code that is executable by computing means, such that they are stored in memory means for execution by the computing means, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps of them are fabricated into a single integrated circuit module. The present invention is not limited to any specific combination of hardware and software.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive changes in the technical solutions of the present invention.

Claims (10)

1. A vehicle-mounted terminal off-line timing method is characterized by comprising the following steps:
editing the executable timing file, and storing the executable timing file;
reading an executable timing file and acquiring target time;
reading real-time clock information of a clock chip to obtain real-time clock time;
and comparing the target time with the real-time clock time, if the target time and the real-time clock time are the same, the time correction is not needed, and if the target time and the real-time clock time are different, the real-time clock time is reset to the target time.
2. The off-line time correction method for the vehicle-mounted terminal according to claim 1, wherein the editing of the executable time correction file specifically comprises: and editing clock software, setting target time according to the formats of year, month, day, time, minute and second, obtaining a timing file, and taking the timing file as an executable file.
3. The off-line time correction method for the vehicle-mounted terminal according to claim 1, wherein the executable time correction file is stored, and specifically comprises: and storing the executable file in an internal storage space of the vehicle-mounted terminal or storing the executable file in an external SD memory card.
4. The off-line timing method for the vehicle-mounted terminal according to claim 1, wherein the real-time clock information of the clock chip is loaded to obtain the real-time clock time each time the vehicle-mounted terminal is powered on and started.
5. The off-line time-correcting method for the vehicle-mounted terminal according to claim 1, wherein the difference between the target time and the real-time clock time is calculated item by item according to a format of year, month, day, hour, minute and second, and an absolute value of the difference is obtained.
6. The off-line time-calibrating method for the vehicle-mounted terminal according to claim 5, wherein if the absolute value of the difference is zero, time calibration is not needed; if the absolute value of the difference is larger than zero, resetting the real-time clock time of the corresponding item to the target time, and realizing time synchronization.
7. The off-line time-calibrating method for the vehicle-mounted terminal, as claimed in claim 6, wherein after the time synchronization is successful, the executable time-calibrating file is cleared to implement the off-line time-calibrating of the vehicle-mounted terminal.
8. The utility model provides a vehicle mounted terminal off-line timing system which characterized in that: the method comprises the following steps:
an executable file editing storage module configured to: editing the executable timing file, and storing the executable timing file;
a target time reading module configured to: reading an executable timing file and acquiring target time;
a real-time clock time reading module configured to: reading real-time clock information of a clock chip to obtain real-time clock time;
a timing module configured to: and comparing the target time with the real-time clock time, if the target time and the real-time clock time are the same, the time correction is not needed, and if the target time and the real-time clock time are different, the real-time clock time is reset to the target time.
9. Computer readable storage medium, on which a program is stored, which when executed by a processor performs the steps in the off-line timing method of the vehicle-mounted terminal according to any one of claims 1 to 7.
10. Electronic equipment, comprising a memory, a processor and a program stored on the memory and capable of running on the processor, wherein the processor executes the program to implement the steps in the vehicle-mounted terminal offline timing method according to any one of claims 1 to 7.
CN202211441830.9A 2022-11-17 2022-11-17 Vehicle-mounted terminal offline timing method and system Pending CN115877696A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211441830.9A CN115877696A (en) 2022-11-17 2022-11-17 Vehicle-mounted terminal offline timing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211441830.9A CN115877696A (en) 2022-11-17 2022-11-17 Vehicle-mounted terminal offline timing method and system

Publications (1)

Publication Number Publication Date
CN115877696A true CN115877696A (en) 2023-03-31

Family

ID=85760129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211441830.9A Pending CN115877696A (en) 2022-11-17 2022-11-17 Vehicle-mounted terminal offline timing method and system

Country Status (1)

Country Link
CN (1) CN115877696A (en)

Similar Documents

Publication Publication Date Title
US20120259973A1 (en) Systems and methods for managing computing systems utilizing augmented reality
US20050144532A1 (en) Hardware/software based indirect time stamping methodology for proactive hardware/software event detection and control
CN110928561B (en) Vehicle controller software version management method and device, vehicle and storage medium
CN103023984A (en) Terminal application server and application log filtering method thereof
CN111522703A (en) Method, apparatus and computer program product for monitoring access requests
CN114003473A (en) Page operation behavior backtracking method and device and electronic equipment
CN110943865A (en) Method and device for diagnosing equipment fault time and related equipment
CN113409488A (en) Data processing method and device, vehicle-mounted terminal and automobile
CN111158999A (en) Method and device for calculating formatting time
CN111782431A (en) Exception processing method, exception processing device, terminal and storage medium
CN111400294A (en) Data anomaly monitoring method, device and system
CN115877696A (en) Vehicle-mounted terminal offline timing method and system
CN111176944A (en) Block chain intelligent contract calling record analysis method, device, terminal and storage medium
CN114781903A (en) Battery replacement place load determination method and device, electronic equipment and storage medium
CN113055667B (en) Video quality detection method and device, electronic equipment and storage medium
CN115908360A (en) Monitoring video inspection method and device, electronic equipment and storage medium
CN111367765A (en) Method and device for monitoring interface response performance, server and storage medium
CN111562974A (en) Method, device and equipment for acquiring offline data and storage medium
JP2022084087A (en) Failure analyzing device and failure analyzing method
CN117667604B (en) Data monitoring method, device, electronic equipment and storage medium for tracking event
CN112910086B (en) Intelligent substation data verification method and system
CN112306819B (en) Abnormal event playback method and device, electronic equipment and storage medium
CN117591301B (en) Monitoring cloud resource allocation optimization method and system
CN117614819A (en) Equipment offline diagnosis method and device, electronic equipment and storage medium
CN114356490B (en) Financial information visualization processing method and system based on big data

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