Vehicle-mounted machine time calibration method, vehicle-mounted machine time calibration system, vehicle-mounted machine and vehicle

文档序号:1627394 发布日期:2020-01-14 浏览:35次 中文

阅读说明:本技术 车机时间校准方法、校准系统、车机、及车辆 (Vehicle-mounted machine time calibration method, vehicle-mounted machine time calibration system, vehicle-mounted machine and vehicle ) 是由 马资源 于 2018-07-05 设计创作,主要内容包括:本发明提供车机时间校准方法、校准系统、车机、及车辆。所述方法应用于车辆的车机,包括:在车机启动后至车辆的通信模块及定位模块均未完成冷启动的时间段内,获取车辆仪表的仪表时间,据以更新车机的当前时间;在获取到由所述通信模块或所述定位模块获得的网络时间时,计算所述当前时间与所述网络时间的时间差值,并将其与预设阈值进行比较;若所述时间差值不小于所述预设阈值,则以所述网络时间更新车机的当前时间。本发明解决了本地时钟因长期运行或车辆电池断电后时间不准的问题,有效保证了车机的错误时间能得到及时校正。(The invention provides a vehicle-mounted machine time calibration method, a vehicle-mounted machine time calibration system, a vehicle-mounted machine and a vehicle. The method is applied to a vehicle machine of a vehicle and comprises the following steps: acquiring the instrument time of a vehicle instrument in a time period from the start of the vehicle machine to the finish of cold start of a communication module and a positioning module of the vehicle, and updating the current time of the vehicle machine according to the instrument time; when the network time obtained by the communication module or the positioning module is obtained, calculating a time difference value between the current time and the network time, and comparing the time difference value with a preset threshold value; and if the time difference is not smaller than the preset threshold, updating the current time of the vehicle machine by the network time. The invention solves the problem that the time is inaccurate after the local clock runs for a long time or the vehicle battery is powered off, and effectively ensures that the error time of the vehicle machine can be corrected in time.)

1. A vehicle-mounted machine time calibration method is characterized by being applied to a vehicle-mounted machine of a vehicle; the method comprises the following steps:

acquiring the instrument time of a vehicle instrument in a time period from the start of the vehicle machine to the finish of cold start of a communication module and a positioning module of the vehicle, and updating the current time of the vehicle machine according to the instrument time;

when the network time obtained by the communication module or the positioning module is obtained, calculating a time difference value between the current time and the network time, and comparing the time difference value with a preset threshold value; and if the time difference is greater than or equal to the preset threshold, updating the current time of the vehicle machine by the network time.

2. The method of claim 1, further comprising: and if the time difference is larger than or equal to the preset threshold, updating the meter time of the vehicle meter by the network time.

3. The method of claim 1, wherein obtaining the network time obtained by the communication module or the positioning module follows a time-first principle, and the network time obtained after the obtaining is ignored with respect to the network time obtained first.

4. The method of claim 1, wherein the communication module is a 5G module; the positioning module adopts a Beidou module.

5. A vehicle-mounted machine time calibration system is characterized by being applied to a vehicle-mounted machine of a vehicle; the system comprises:

the time calibration module is used for acquiring the instrument time of the vehicle instrument in a time period from the start of the vehicle machine to the finish of cold start of the communication module and the positioning module of the vehicle, so as to update the current time of the vehicle machine;

the time acquisition module is used for acquiring the network time acquired by the communication module or the positioning module;

the time judgment module is used for calculating a time difference value between the current time and the network time, comparing the time difference value with a preset threshold value and giving a judgment result;

and the time calibration module is also used for updating the current time of the vehicle machine by the network time when the judgment result of the time judgment module is yes.

6. The system of claim 5, wherein the time calibration module is further configured to: and when the time difference is larger than or equal to the preset threshold value, updating the meter time of the vehicle meter by the network time.

7. The system of claim 5, wherein the time calibration module acquires the network time obtained by the communication module or the positioning module according to a time priority rule, and ignores the network time acquired later based on the network time acquired first.

8. The system of claim 5, wherein the communication module is a 5G module; the positioning module adopts a Beidou module.

9. The utility model provides a car machine, its characterized in that includes: a processor and a memory; wherein the content of the first and second substances,

the memory is used for storing a computer program;

the processor is configured to load and execute the computer program, so that the car machine executes the car machine time calibration method according to any one of claims 1 to 4.

10. A vehicle, characterized by comprising: the vehicle machine of claim 9.

Technical Field

The invention relates to the technical field of vehicle-mounted machine software, in particular to a vehicle-mounted machine time calibration method, a vehicle-mounted machine time calibration system, a vehicle-mounted machine and a vehicle.

Background

The vehicle machine is a short name for vehicle-mounted information entertainment products installed in the automobile, is mostly installed in a center console, and can display the current time through a display screen. However, the on-board local clock may cause inaccurate running time due to long-term running or power failure of the vehicle battery. How to correct the car clock information becomes one of the issues concerned by the industry.

Disclosure of Invention

In view of the above-mentioned shortcomings of the prior art, the present invention provides a car-mounted device time calibration method, a calibration system, a car-mounted device, and a vehicle, which are used to solve the above problems in the prior art.

In order to achieve the above objects and other related objects, the present invention provides a method for calibrating a vehicle-mounted device time, which is applied to a vehicle-mounted device of a vehicle; the method comprises the following steps: acquiring the instrument time of a vehicle instrument in a time period from the start of the vehicle machine to the finish of cold start of a communication module and a positioning module of the vehicle, and updating the current time of the vehicle machine according to the instrument time; when the network time obtained by the communication module or the positioning module is obtained, calculating a time difference value between the current time and the network time, and comparing the time difference value with a preset threshold value; and if the time difference is not smaller than the preset threshold, updating the current time of the vehicle machine by the network time.

In an embodiment of the present invention, the method further includes: and if the time difference is larger than or equal to the preset threshold, updating the meter time of the vehicle meter by the network time.

In an embodiment of the present invention, the obtaining of the network time obtained by the communication module or the positioning module follows a time priority principle, taking the network time obtained first as a criterion, and ignoring the network time obtained later.

In an embodiment of the present invention, the communication module is a 5G module; the positioning module adopts a Beidou module.

In order to achieve the above and other related objects, the present invention provides a system for calibrating time of a vehicle-mounted device, which is applied to the vehicle-mounted device of a vehicle; the system comprises: the time calibration module is used for acquiring the instrument time of the vehicle instrument in the time period from the start of the vehicle machine to the communication module and the positioning module of the vehicle before cold start is finished so as to update the current time of the vehicle machine; a time acquisition module for acquiring the network time acquired by the communication module or the positioning module; the time judgment module is used for calculating a time difference value between the current time and the network time, comparing the time difference value with a preset threshold value and giving a judgment result; and the time calibration module is also used for updating the current time of the vehicle machine by the network time when the judgment result of the time judgment module is yes.

In an embodiment of the present invention, the time calibration module is further configured to: and updating the meter time of the vehicle meter by the network time when the time difference value is greater than or equal to the preset threshold value.

In an embodiment of the present invention, the time calibration module obtains the network time obtained by the communication module or the positioning module according to a time-first principle, based on the network time obtained first, and ignores the network time obtained later.

In an embodiment of the present invention, the communication module is a 5G module; the positioning module adopts a Beidou module.

To achieve the above and other related objects, the present invention provides a vehicle machine, including: a processor, and a memory; wherein the memory is for storing a computer program; the processor is configured to load and execute the computer program, so that the car machine executes the car machine time calibration method described above.

To achieve the above and other related objects, the present invention provides a vehicle including: the car machine as described above.

As described above, the vehicle-mounted machine time calibration method, the vehicle-mounted machine time calibration system, the vehicle-mounted machine and the vehicle solve the problem that the local clock is inaccurate in running due to long-term running or after the power of a vehicle battery is cut off, and effectively ensure that the error time of the vehicle-mounted machine can be corrected in time.

Drawings

Fig. 1 is a schematic view of an application scenario in an embodiment of the invention.

Fig. 2 is a schematic flow chart illustrating a vehicle-mounted device time calibration method according to an embodiment of the present invention.

Fig. 3 is a schematic block diagram of a car-on-board time calibration system according to an embodiment of the present invention.

Description of the element reference numerals

S21-S25

300 vehicle machine time calibration system

301 time calibration module

302 time acquisition module

303 time judging module

Detailed Description

The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.

It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.

Referring to fig. 1, an embodiment of the present invention provides a car-mounted device time calibration method, which is executed by the car-mounted device shown in fig. 1. The car machine is arranged on a car center console, and is respectively and electrically connected with a car instrument, a communication module and a positioning module of a car, and the car machine is specifically connected with the car instrument, the communication module and the positioning module of the car through a CAN bus. By vehicle meter is meant conventional meters such as: speedometer, tachometer, oil pressure gauge, water temperature gauge, fuel gauge, charging gauge, etc. For vehicle instruments, the time display is only an auxiliary function, and has not good precision, and generally, a user can modify the time value by adjusting a time adjusting key arranged by the user so as to reduce the travel time error. The communication module is specifically a 5G module, the positioning module is specifically a Beidou module, and the communication module and the positioning module can automatically acquire network time (such as national time service center standard time) when the communication module and the positioning module are accessed to a network.

Referring to fig. 2, the on-board unit time calibration method of the present embodiment includes the following steps:

s21: and the vehicle machine is started, and at the moment, the network module and the positioning module are not required to finish the cold start process.

S22: the vehicle machine acquires the instrument time of the vehicle instrument so as to update the current time of the vehicle machine.

The steps S21-S22 will be explained in detail. Because the car machine is after the start, the cold start of 5G module and big dipper module needs certain time, can not insert the network immediately and acquire the network time and use as car machine time correction, so, during the cold start of 5G module and big dipper module, the car machine realizes precorrection according to the time of vehicle instrument earlier, and specific implementation process is for example: the vehicle machine sends information requesting time synchronization to the vehicle instrument through the CAN bus, and after receiving the time information of the vehicle instrument, the vehicle machine synchronizes according to the time of the instrument.

S23: the vehicle machine acquires the network time of the communication module or the positioning module; if the network time is successfully acquired, executing step S24; and otherwise, continuously acquiring the network time, or waiting for the communication module and the positioning module to finish cold start, or finishing the time correction of the vehicle machine.

Specifically, the network time obtained by the communication module or the positioning module is obtained according to a time priority rule, based on the network time obtained first, and the network time obtained later is automatically ignored, for example, if the network time obtained by the communication module is obtained first, the network information obtained by the positioning module is automatically ignored, and vice versa.

S24: calculating a time difference value between the current time and the network time, comparing the time difference value with a preset threshold value, and if the time difference value is not less than the preset threshold value, executing step S25; otherwise, the time correction of the vehicle-mounted device can be finished, namely the time correction of the vehicle-mounted device is not carried out.

The preset threshold may be set according to a user requirement, for example, set to 30 seconds, and when the time difference between the obtained network time and the current time pre-corrected according to the vehicle meter is greater than or equal to 30 seconds, step S25 is performed.

S25: and the vehicle machine updates the current time of the vehicle machine according to the network time.

Further, after step S25, the method may further include the step of updating the meter time of the vehicle meter with the network time, and the specific implementation process includes: firstly, the vehicle machine sends time adjustment request information and network time information to a vehicle instrument through a CAN bus; then, the vehicle meter updates its meter time with the network time when receiving the time adjustment request information and the network time information.

Referring to fig. 3, the present embodiment provides a car-machine time calibration system 300, which is a software product used to be loaded in the car machine shown in fig. 1, so as to execute the car-machine time calibration method described in the foregoing method embodiment when running. Since the method corresponds to the foregoing method embodiment, the same technical details are not repeated.

The on-board time calibration system 300 of the present embodiment includes: the device comprises a time calibration module 301, a time acquisition module 302 and a time judgment module 303. The time calibration module 301 is configured to obtain the meter time of the vehicle meter in a time period from the start of the vehicle to the time when the communication module and the positioning module of the vehicle do not complete cold start, so as to update the current time of the vehicle, and update the current time of the vehicle with the network time when the determination result of the time determination module 303 is yes. The time obtaining module 302 is configured to obtain the network time obtained by the communication module or the positioning module, and optionally, follow a time-first principle, with the network time obtained first as a criterion, and automatically ignore the network time obtained later. The time judgment module 303 is configured to calculate a time difference between the current time and the network time, compare the time difference with a preset threshold, and give a judgment result.

In an embodiment, the time calibration module 301 further updates the meter time of the vehicle meter with the network time when the time difference is not less than the preset threshold.

Preferably, the communication module adopts a 5G module; the positioning module adopts a Beidou module.

Besides, the invention further provides the vehicle machine and a vehicle comprising the vehicle machine.

The memory of the car machine is used for storing a computer program, and the processor is used for loading and executing the computer program, so that the car machine executes all or part of the steps of the car machine time calibration method in the embodiment of the method.

In conclusion, the vehicle-mounted machine time calibration method, the calibration system, the vehicle-mounted machine and the vehicle solve the problem that the time is inaccurate due to long-term running of a local clock or power failure of a vehicle battery, and effectively ensure that the error time of the vehicle-mounted machine can be corrected in time; by utilizing the 5G module and the Beidou module for double-time adjustment, the coverage is wider, various defects in the prior art are effectively overcome, and the method has high industrial utilization value.

The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于故障积分的双余度传感器信号表决方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!