Movatterモバイル変換


[0]ホーム

URL:


CN111935199A - Vehicle-mounted software version information synchronization method, device and system and vehicle - Google Patents

Vehicle-mounted software version information synchronization method, device and system and vehicle
Download PDF

Info

Publication number
CN111935199A
CN111935199ACN201910391953.8ACN201910391953ACN111935199ACN 111935199 ACN111935199 ACN 111935199ACN 201910391953 ACN201910391953 ACN 201910391953ACN 111935199 ACN111935199 ACN 111935199A
Authority
CN
China
Prior art keywords
vehicle
software
version information
server
external terminal
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.)
Granted
Application number
CN201910391953.8A
Other languages
Chinese (zh)
Other versions
CN111935199B (en
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.)
Guangzhou Automobile Group Co Ltd
Original Assignee
Guangzhou Automobile Group 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 Guangzhou Automobile Group Co LtdfiledCriticalGuangzhou Automobile Group Co Ltd
Priority to CN201910391953.8ApriorityCriticalpatent/CN111935199B/en
Publication of CN111935199ApublicationCriticalpatent/CN111935199A/en
Application grantedgrantedCritical
Publication of CN111935199BpublicationCriticalpatent/CN111935199B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种车载软件版本信息同步方法,包括:监测外部终端设备对车辆的车载软件更新而产生的软件刷新事件;其中,所述外部终端设备用于通过自身预先存储的车载软件更新程序来对车辆的所述车载软件进行本地更新;响应于监测到所述软件刷新事件,获取所述外部终端设备对所述车载软件更新后的车载软件版本信息;将所述车载软件版本信息上传至服务器进行保存。本发明实施例还公开一种车载软件版本信息同步装置、一种车载软件版本信息同步系统和一种车辆。采用本发明实施例,能够及时的进行版本信息同步,避免车载终端周期性读取版本信息而对车载网络带来影响,无需过多占用车载终端发送与接收信息的资源。

Figure 201910391953

The invention discloses a method for synchronizing on-board software version information. to locally update the on-board software of the vehicle; in response to monitoring the software refresh event, obtain the on-board software version information after the external terminal device has updated the on-board software; upload the on-board software version information to server to save. The embodiment of the present invention also discloses an in-vehicle software version information synchronization device, an in-vehicle software version information synchronization system and a vehicle. By adopting the embodiments of the present invention, the version information can be synchronized in time, so that the on-board terminal periodically reads the version information and thus affects the on-board network, and the on-board terminal does not need to occupy too much resources for sending and receiving information.

Figure 201910391953

Description

Translated fromChinese
一种车载软件版本信息同步方法、装置、系统及车辆A method, device, system and vehicle for synchronizing vehicle software version information

技术领域technical field

本发明涉及车载软件技术领域,尤其涉及一种车载软件版本信息同步方法、装置、系统及车辆。The invention relates to the technical field of in-vehicle software, in particular to a method, device, system and vehicle for synchronizing version information of in-vehicle software.

背景技术Background technique

车辆中的车载软件通常采用售后诊断仪进行软件更新,当车辆更新完车载软件后,服务器同步车载软件版本信息的方式为:服务器周期性的发送指令给车载终端获取版本信息,车载终端发送诊断命令读取各个车载软件的节点的版本信息,并上传给服务器,服务器将获取的版本信息与本地存储的版本信息进行对比,如果有更新,对应更新服务器上的软件升级包及版本信息。车载终端不管版本有没有更新,都要周期性读取版本信息,占用了车载终端的发送与接收资源;由于是周期性查询,没法及时的进行版本信息同步,只能定期同步;而且周期性查询,会给车内外网络带来一定的负载,影响整车网络的正常运行,甚至导致网络瘫痪,带来一定安全隐患。The in-vehicle software in the vehicle is usually updated by an after-sales diagnostic instrument. After the vehicle has updated the in-vehicle software, the server synchronizes the in-vehicle software version information as follows: the server periodically sends instructions to the in-vehicle terminal to obtain version information, and the in-vehicle terminal sends a diagnosis command. Read the version information of each on-board software node and upload it to the server. The server compares the acquired version information with the locally stored version information. If there is an update, update the software upgrade package and version information on the server accordingly. Regardless of whether the version is updated or not, the in-vehicle terminal must periodically read the version information, which occupies the sending and receiving resources of the in-vehicle terminal; due to the periodic query, the version information cannot be synchronized in time, but can only be synchronized periodically; The query will bring a certain load to the network inside and outside the vehicle, affect the normal operation of the vehicle network, and even lead to network paralysis, bringing certain security risks.

发明内容SUMMARY OF THE INVENTION

本发明实施例的目的是提供一种车载软件版本信息同步方法、装置、系统及车辆,能够及时的进行版本信息同步,避免车载终端周期性读取版本信息而对车载网络带来影响,无需过多占用车载终端发送与接收信息的资源。The purpose of the embodiments of the present invention is to provide a method, device, system and vehicle for synchronizing version information of in-vehicle software, which can synchronize version information in a timely manner, so as to prevent the in-vehicle terminal from periodically reading the version information and thereby affecting the in-vehicle network, without any need to It occupies more resources for sending and receiving information from the vehicle terminal.

为实现上述目的,本发明一实施例提供了一种车载软件版本信息同步方法,包括:To achieve the above purpose, an embodiment of the present invention provides a method for synchronizing version information of in-vehicle software, including:

监测外部终端设备对车辆的车载软件更新而产生的软件刷新事件;其中,所述外部终端设备用于通过自身预先存储的车载软件更新程序来对车辆的所述车载软件进行本地更新;Monitoring a software refresh event generated by an external terminal device updating the vehicle's on-board software; wherein the external terminal device is used to locally update the vehicle's on-board software through its own pre-stored on-board software update program;

响应于监测到所述软件刷新事件,获取所述外部终端设备对所述车载软件更新后的车载软件版本信息;In response to monitoring the software refresh event, acquiring the in-vehicle software version information after the in-vehicle software is updated by the external terminal device;

将所述车载软件版本信息上传至服务器进行保存。Upload the in-vehicle software version information to the server for storage.

相比于现有技术,本发明实施例公开的车载软件版本信息同步方法,首先监测外部终端设备对车辆的车载软件更新而产生的软件刷新事件;然后在响应于监测到所述软件刷新事件时,获取所述外部终端设备对所述车载软件更新后的车载软件版本信息,最后将所述车载软件版本信息上传至服务器进行保存,使得服务器及时地进行车载软件版本信息的同步。本发明实施例在服务器需要同步车载软件版本信息时无需周期性的查询车载软件版本信息,而是当车载软件有更新时直接获取对应的车载软件版本信息并及时上传至服务器,无需车载终端周期性读取车辆上各个车载软件的版本信息,避免车载终端周期性读取版本信息而影响到车载网络,不用过多占用车载终端发送与接收信息的资源并节省了网络流量。Compared with the prior art, the method for synchronizing on-board software version information disclosed in the embodiment of the present invention firstly monitors the software refresh event generated by the on-board software update of the vehicle by the external terminal device; , obtain the in-vehicle software version information after the in-vehicle software is updated by the external terminal device, and finally upload the in-vehicle software version information to the server for storage, so that the server can synchronize the in-vehicle software version information in time. In this embodiment of the present invention, when the server needs to synchronize the on-board software version information, it is not necessary to periodically query the on-board software version information, but when the on-board software is updated, the corresponding on-board software version information is directly obtained and uploaded to the server in time, without the need for the on-board terminal to periodically Read the version information of each in-vehicle software on the vehicle, avoid the in-vehicle terminal periodically reading the version information and affect the in-vehicle network, do not occupy too much resources for the in-vehicle terminal to send and receive information, and save network traffic.

作为上述方案的改进,所述监测外部终端设备对车辆的车载软件更新而产生的软件刷新事件,包括:As an improvement of the above solution, the software refresh event generated by monitoring the on-board software update of the vehicle by the external terminal device includes:

监测车载网络中的操作报文;其中,所述操作报文为所述外部终端设备在对车辆进行操作时由车辆产生的;Monitoring operation messages in the vehicle-mounted network; wherein, the operation messages are generated by the vehicle when the external terminal device operates the vehicle;

当监测到所述操作报文且检测到该报文中携带有软件刷新事件识别码时,判定监测到软件刷新事件的发生。When the operation message is monitored and it is detected that the message carries the software refresh event identification code, it is determined that the occurrence of the software refresh event is monitored.

作为上述方案的改进,所述响应于监测到所述软件刷新事件,获取所述外部终端设备对所述车载软件更新后的车载软件版本信息,包括:As an improvement of the above solution, in response to monitoring the software refresh event, obtaining the in-vehicle software version information after the in-vehicle software is updated by the external terminal device, including:

响应于监测到所述软件刷新事件,向所述服务器上传与所述软件刷新事件对应的更新识别信息;In response to monitoring the software refresh event, uploading update identification information corresponding to the software refresh event to the server;

接收所述服务器根据所述更新识别信息而发送过来的软件版本信息获取指令,并根据所述软件版本信息获取指令获取所述外部终端设备对所述车载软件更新后的车载软件版本信息。Receive the software version information acquisition instruction sent by the server according to the update identification information, and acquire the in-vehicle software version information after the in-vehicle software is updated by the external terminal device according to the software version information acquisition instruction.

作为上述方案的改进,所述响应于监测到所述软件刷新事件,向所述服务器上传与所述软件刷新事件对应的更新识别信息,包括:As an improvement of the above solution, in response to monitoring the software refresh event, uploading the update identification information corresponding to the software refresh event to the server includes:

响应于监测到所述软件刷新事件,将预设的标志位置为第一值,并获取及保存与所述软件刷新事件对应的更新识别信息;In response to monitoring the software refresh event, set the preset flag position as the first value, and acquire and save the update identification information corresponding to the software refresh event;

响应于监测到所述标志位置为第一值,向所述服务器上传与所述软件刷新事件对应的更新识别信息,并将所述标志位置为第二值。In response to monitoring that the flag position is a first value, upload update identification information corresponding to the software refresh event to the server, and set the flag position to a second value.

作为上述方案的改进,检测所述标志位的时机设定为:As an improvement of the above scheme, the timing of detecting the flag bit is set as:

在整车上电时。when the vehicle is powered on.

作为上述方案的改进,所述车载软件为ECU软件,所述更新识别信息为车辆上所述ECU软件发生更新的ECU的识别码。As an improvement of the above solution, the in-vehicle software is ECU software, and the update identification information is the identification code of the ECU on which the ECU software is updated on the vehicle.

作为上述方案的改进,所述将标志位置为第二值的时机设定为:As an improvement of the above solution, the timing of setting the flag position to the second value is set as:

在接收到所述服务器根据接收到的所述更新识别信息而返回的应答指令时。When receiving a response instruction returned by the server according to the received update identification information.

为实现上述目的,本发明另一实施例提供了一种车载软件版本信息同步装置,包括:In order to achieve the above purpose, another embodiment of the present invention provides a vehicle software version information synchronization device, including:

软件刷新事件监测模块,用于监测外部终端设备对车辆的车载软件更新而产生的软件刷新事件;其中,所述外部终端设备用于通过自身预先存储的车载软件更新程序来对车辆的所述车载软件进行本地更新;The software refresh event monitoring module is used to monitor the software refresh events generated by the on-board software update of the vehicle by the external terminal device; The software is updated locally;

版本信息获取模块,用于响应于监测到所述软件刷新事件,获取所述外部终端设备对所述车载软件更新后的车载软件版本信息;a version information acquisition module, configured to acquire the in-vehicle software version information after the in-vehicle software is updated by the external terminal device in response to monitoring the software refresh event;

版本信息上传模块,用于将所述车载软件版本信息上传至服务器进行保存。The version information uploading module is used for uploading the in-vehicle software version information to the server for saving.

相比于现有技术,本发明实施例公开的车载软件版本信息同步装置,首先所述软件刷新事件监测模块监测外部终端设备对车辆的车载软件更新而产生的软件刷新事件;然后在响应于监测到所述软件刷新事件时,所述版本信息获取模块获取所述外部终端设备对所述车载软件更新后的车载软件版本信息,最后所述版本信息上传模块将所述车载软件版本信息上传至服务器进行保存,使得服务器及时地进行车载软件版本信息的同步。本发明实施例在服务器需要同步车载软件版本信息时无需周期性的查询车载软件版本信息,而是当车载软件有更新时直接获取对应的车载软件版本信息并及时上传至服务器,无需车载软件版本信息同步装置周期性读取车辆上各个车载软件的版本信息,避免车载软件版本信息同步装置周期性读取版本信息而影响到车载网络,不用过多占用车载软件版本信息同步装置发送与接收信息的资源并节省了网络流量。Compared with the prior art, in the in-vehicle software version information synchronization device disclosed in the embodiment of the present invention, firstly, the software refresh event monitoring module monitors the software refresh events generated by the in-vehicle software update of the vehicle by the external terminal equipment; When the software refresh event is reached, the version information acquisition module acquires the in-vehicle software version information after the external terminal device has updated the in-vehicle software, and finally the version information upload module uploads the in-vehicle software version information to the server. Save the information so that the server can synchronize the version information of the in-vehicle software in a timely manner. In the embodiment of the present invention, when the server needs to synchronize the on-board software version information, it is not necessary to periodically query on-board software version information, but when the on-board software is updated, the corresponding on-board software version information is directly obtained and uploaded to the server in time, without the need for on-board software version information The synchronization device periodically reads the version information of each in-vehicle software on the vehicle, so as to avoid the in-vehicle software version information synchronization device periodically reading the version information and affecting the in-vehicle network, without occupying too much resources of the vehicle software version information synchronization device to send and receive information And save network traffic.

为实现上述目的,本发明另一实施例提供了一种车辆,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如上述任一实施例所述的车载软件版本信息同步方法。To achieve the above object, another embodiment of the present invention provides a vehicle including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor executing the The computer program implements the method for synchronizing the version information of the in-vehicle software according to any one of the above embodiments.

为实现上述目的,本发明另一实施例提供了一种车载软件版本信息同步系统,包括服务器及如上述实施例所述的车辆;所述服务器,用于保存所述车载软件版本信息。To achieve the above object, another embodiment of the present invention provides an in-vehicle software version information synchronization system, including a server and the vehicle according to the above embodiment; the server is used for storing the in-vehicle software version information.

附图说明Description of drawings

图1是本发明一实施例提供的一种车载软件版本信息同步方法的流程图;1 is a flowchart of a method for synchronizing on-board software version information provided by an embodiment of the present invention;

图2是本发明一实施例提供的另一种车载软件版本信息同步方法的流程图;2 is a flowchart of another method for synchronizing on-board software version information provided by an embodiment of the present invention;

图3是本发明一实施例提供的一种车载软件版本信息同步装置的结构框图;3 is a structural block diagram of a device for synchronizing on-board software version information provided by an embodiment of the present invention;

图4是本发明一实施例提供的一种车辆的结构示意图;4 is a schematic structural diagram of a vehicle according to an embodiment of the present invention;

图5是本发明一实施例提供的一种车载软件版本信息同步系统的结构框图。FIG. 5 is a structural block diagram of an in-vehicle software version information synchronization system provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

实施例一Example 1

参见图1,图1是本发明实施例提供的一种车载软件版本信息同步方法的流程图;包括:Referring to FIG. 1, FIG. 1 is a flowchart of a method for synchronizing on-board software version information provided by an embodiment of the present invention; including:

S1、监测外部终端设备对车辆的车载软件更新而产生的软件刷新事件;其中,所述外部终端设备用于通过自身预先存储的车载软件更新程序来对车辆的所述车载软件进行本地更新;S1, monitor a software refresh event generated by an external terminal device to update the on-board software of the vehicle; wherein, the external terminal device is used to locally update the on-board software of the vehicle through its own pre-stored on-board software update program;

S2、响应于监测到所述软件刷新事件,获取所述外部终端设备对所述车载软件更新后的车载软件版本信息;S2. In response to monitoring the software refresh event, obtain the in-vehicle software version information after the in-vehicle software is updated by the external terminal device;

S3、将所述车载软件版本信息上传至服务器进行保存。S3. Upload the in-vehicle software version information to the server for storage.

值得说明的是,本发明实施例所述的车载软件版本信息同步方法可以由车辆中的车载终端执行实现,所述车载终端是车辆监控管理系统的前端设备,集成了数据处理和数据通信等多项功能,具有强大的业务调度功能和数据处理能力。所述外部终端设备可以是汽车诊断仪或其他能够对车辆中的车载软件进行更新的设备。It is worth noting that the method for synchronizing on-board software version information according to the embodiment of the present invention can be implemented by an on-board terminal in the vehicle. It has powerful business scheduling functions and data processing capabilities. The external terminal device may be a car diagnostic instrument or other device capable of updating the on-board software in the vehicle.

当所述外部终端设备对车辆中的车载软件进行本地更新时,车载终端响应于所述外部终端设备对车辆的车载软件更新而产生的软件刷新事件,此时车载终端获取所述外部终端设备对所述车载软件更新后的车载软件版本信息,最后将所述车载软件版本信息上传至服务器进行保存,使得服务器及时地进行车载软件版本信息的同步。本发明实施例在服务器需要同步车载软件版本信息时无需周期性的查询车载软件版本信息,而是当车载软件有更新时直接获取对应的车载软件版本信息,不用过多占用车载终端发送与接收信息的资源并节省了网络流量。When the external terminal device locally updates the in-vehicle software in the vehicle, the in-vehicle terminal responds to a software refresh event generated by the external terminal device for updating the vehicle's in-vehicle software. The updated in-vehicle software version information of the in-vehicle software is finally uploaded to the server for storage, so that the server can synchronize the in-vehicle software version information in a timely manner. In the embodiment of the present invention, when the server needs to synchronize the on-board software version information, it is not necessary to periodically query on-board software version information, but directly obtain the corresponding on-board software version information when the on-board software is updated, without occupying too much the on-board terminal to send and receive information resources and save network traffic.

具体的,在步骤S1中,所述监测外部终端设备对车辆的车载软件更新而产生的软件刷新事件,包括:Specifically, in step S1, the monitoring of the software refresh event generated by the update of the vehicle's in-vehicle software by the external terminal device includes:

S11、监测车载网络中的操作报文;其中,所述操作报文为所述外部终端设备在对车辆进行操作时由车辆产生的;S11. Monitor the operation message in the vehicle network; wherein, the operation message is generated by the vehicle when the external terminal device operates the vehicle;

S12、当监测到所述操作报文且检测到该报文中携带有软件刷新事件识别码时,判定监测到软件刷新事件的发生。S12. When the operation message is monitored and it is detected that the message carries a software refresh event identification code, it is determined that the occurrence of a software refresh event is monitored.

具体的,当车辆中有车载软件在进行更新时车辆会产生携带有软件刷新事件识别码的报文,从而通过监测在车载网络中的操作报文,能够确定是否监测到软件刷新事件的发生。Specifically, when there is in-vehicle software in the vehicle that is being updated, the vehicle will generate a message carrying the software refresh event identification code, so that by monitoring the operation messages in the in-vehicle network, it can be determined whether the occurrence of the software refresh event is monitored.

优选的,所述监测车载网络中的操作报文后,在所述当监测到所述操作报文且检测到该报文中携带有软件刷新事件识别码前,还包括:当监测到所述操作报文且检测到该报文中的头部携带有诊断报文识别码时,判定当前报文为诊断报文;此时认为检测到诊断仪操作事件,即所述外部终端设备正在操作车载ECU。则步骤S12具体包括:当检测到所述诊断报文中携带有软件刷新事件识别码时,判定监测到软件刷新事件的发生。优选的,所述车载网络与所述车载终端采用UDS协议进行通信,所述诊断报文识别码为7或1。当然,该诊断报文识别码也可以是其他值,此处不做一一赘述。Preferably, after the monitoring of the operation message in the in-vehicle network, before the operation message is monitored and it is detected that the message carries the software refresh event identification code, the method further includes: when the operation message is detected. When operating the message and detecting that the header of the message carries the diagnostic message identification code, it is determined that the current message is a diagnostic message; at this time, it is considered that a diagnostic instrument operation event is detected, that is, the external terminal device is operating the vehicle ECU. Then, step S12 specifically includes: when it is detected that the diagnostic message carries the software refresh event identification code, it is determined that the occurrence of the software refresh event is monitored. Preferably, the in-vehicle network communicates with the in-vehicle terminal using a UDS protocol, and the identification code of the diagnostic message is 7 or 1. Of course, the diagnostic message identification code may also be other values, which will not be described in detail here.

在判定所述当前报文为诊断报文后,因所述诊断报文涵盖了常规诊断事件和软件刷新事件,因此需要进一步判断所述诊断报文是否表示有软件刷新事件的发生。此时,通过判断所述操作报文是否携带有软件刷新事件识别码来确定是否监测到软件刷新事件的发生。优选的,所述软件刷新事件识别码为“6E F1 84”,即此时所述操作报文可以为“7XX XX6E F1 84 XX XX XX XX”。值得说明的是,所述软件刷新事件识别码还可以更换成软件刷新流程中的其它识别码,该软件刷新事件识别码也可以设定为其他值,只要能够唯一识别软件刷新事件即可,都在本发明的保护范围内。After it is determined that the current message is a diagnostic message, since the diagnostic message covers a conventional diagnostic event and a software refresh event, it is necessary to further determine whether the diagnostic message indicates the occurrence of a software refresh event. At this time, it is determined whether the occurrence of the software refresh event is monitored by judging whether the operation message carries the software refresh event identification code. Preferably, the software refresh event identification code is "6E F1 84", that is, the operation message at this time may be "7XX XX6E F1 84 XX XX XX XX". It is worth noting that the software refresh event identification code can also be replaced with other identification codes in the software refresh process, and the software refresh event identification code can also be set to other values, as long as the software refresh event can be uniquely identified. within the protection scope of the present invention.

具体的,在步骤S2中,所述响应于监测到所述软件刷新事件,获取所述外部终端设备对所述车载软件更新后的车载软件版本信息,包括:Specifically, in step S2, in response to monitoring the software refresh event, obtaining the in-vehicle software version information after the in-vehicle software is updated by the external terminal device, including:

S21、响应于监测到所述软件刷新事件,向所述服务器上传与所述软件刷新事件对应的更新识别信息;S21. In response to monitoring the software refresh event, upload update identification information corresponding to the software refresh event to the server;

S22、接收所述服务器根据所述更新识别信息而发送过来的软件版本信息获取指令,并根据所述软件版本信息获取指令获取所述外部终端设备对所述车载软件更新后的车载软件版本信息。S22: Receive a software version information acquisition instruction sent by the server according to the update identification information, and acquire in-vehicle software version information after the in-vehicle software is updated by the external terminal device according to the software version information acquisition instruction.

优选的,所述车载软件为ECU软件,所述更新识别信息为车辆上所述车载ECU发生更新的ECU的识别码。进一步的,所述车载软件发生更新的ECU的识别码可以为所述操作报文中携带ECU的识别码,比如所述ECU的识别码为所述操作报文中的“7XX”。参见表1,表1为所述软件刷新事件的格式定义。Preferably, the in-vehicle software is ECU software, and the update identification information is an identification code of an ECU on the vehicle where the in-vehicle ECU is updated. Further, the identification code of the ECU whose in-vehicle software is updated may be the identification code of the ECU carried in the operation message, for example, the identification code of the ECU is "7XX" in the operation message. Refer to Table 1, which defines the format of the software refresh event.

表1软件刷新事件的格式定义Table 1 Format definition of software refresh event

长度(Byte)length (Byte)描述describe11事件编号ID,填1Event ID, fill in 111ECU数目Number of ECUs11ECU编码1ECU code 1……...11ECU编码nECU code n

优选的,步骤S21具体包括:Preferably, step S21 specifically includes:

S211、响应于监测到所述软件刷新事件,将预设的标志位置为第一值,并获取及保存与所述软件刷新事件对应的更新识别信息;S211, in response to monitoring the software refresh event, set a preset flag position as a first value, and acquire and save the update identification information corresponding to the software refresh event;

S212、响应于监测到所述标志位置为第一值,向所述服务器上传与所述软件刷新事件对应的更新识别信息,并将所述标志位置为第二值。S212. In response to monitoring that the flag position is a first value, upload update identification information corresponding to the software refresh event to the server, and set the flag position to a second value.

具体的,所述标志位为flag,所述第一值为1,所述第二值为0。当响应于监测到所述软件刷新事件时,将flag置为1,并获取及保存与所述软件刷新事件对应的更新识别信息;响应于监测到flag为1时,向所述服务器上传与所述软件刷新事件对应的更新识别信息,并将flag置为0。Specifically, the flag bit is flag, the first value is 1, and the second value is 0. When the software refresh event is detected in response to monitoring, the flag is set to 1, and the update identification information corresponding to the software refresh event is obtained and saved; in response to the flag being 1, the server uploads the relevant information to the server. The update identification information corresponding to the software refresh event described above is set, and the flag is set to 0.

在本实施例中,在监测到软件刷新事件后,通过获取及保存与对应的更新识别信息并将标志位置为第一值,这样即使车辆发生意外事故(例如车辆当前与服务器不能正常联网,或者车辆非正常下电等),在车辆恢复正常后,依然可以立即响应于监测到所述标志位置为第一值,并及时向所述服务器上传与所述软件刷新事件对应的更新识别信息,有效确保服务器最终能够同步更新车载软件的更新版本信息。In this embodiment, after the software refresh event is detected, the corresponding update identification information is obtained and saved and the flag position is set as the first value, so that even if the vehicle has an accident (for example, the vehicle cannot be connected to the server normally, or abnormal power-off of the vehicle, etc.), after the vehicle returns to normal, it is still possible to immediately respond to monitoring that the position of the flag is the first value, and upload the updated identification information corresponding to the software refresh event to the server in time, effectively Make sure that the server can finally synchronize the updated version information of the in-vehicle software.

优选的,检测所述标志位的时机设定为:在整车上电时。具体的,考虑到实时性,在获取到所述更新识别信息后,可以立即将所述更新识别信息上传至服务器。但是每次车载终端与服务器之间建立连接都会使用流量,若是在车载终端获取到所述更新识别信息后立即上传至服务器,则需要多次建立车载终端与服务器之间的连接,会浪费车载终端的流量。因此,为达到省流目的,可以在整车上电时,才将所述更新识别信息发送给所述服务器,因车辆在每次上电启动时,都需要将国标数据上传到服务器,因此可以在上传国际数据的同时将所述更新识别信息上传至服务器,从而节省车辆流量。Preferably, the timing for detecting the flag bit is set as: when the whole vehicle is powered on. Specifically, considering the real-time nature, after the updated identification information is acquired, the updated identification information may be uploaded to the server immediately. However, traffic is used every time a connection is established between the vehicle-mounted terminal and the server. If the updated identification information is uploaded to the server immediately after the vehicle-mounted terminal obtains the information, the connection between the vehicle-mounted terminal and the server needs to be established multiple times, which will waste the vehicle-mounted terminal. traffic. Therefore, in order to achieve the purpose of saving traffic, the updated identification information can be sent to the server when the whole vehicle is powered on. Because the national standard data needs to be uploaded to the server every time the vehicle is powered on and started, it can be The updated identification information is uploaded to the server when the international data is uploaded, thereby saving vehicle traffic.

在整车上电时,监测所述标志位,当所述标志位置为第一值时,此时表明在整车上电前已经发生有软件刷新事件,需要向所述服务器上传与所述软件刷新事件对应的更新识别信息;当所述标志位置为第二值时,此时表明在整车上电前并未发生有软件刷新事件。When the whole vehicle is powered on, the flag bit is monitored. When the flag position is the first value, it indicates that a software refresh event has occurred before the whole vehicle is powered on, and the software needs to be uploaded to the server. Update identification information corresponding to the refresh event; when the flag position is the second value, it indicates that no software refresh event has occurred before the vehicle is powered on.

优选的,所述将标志位置为第二值的时机设定为:在接收到所述服务器根据接收到的所述更新识别信息而返回的应答指令时。所述服务器在接收到所述更新识别信息后,会返回一个应答指令,在接收到所述应答指令时,将所述标志位置为第二值。Preferably, the timing of setting the flag position to the second value is set as: when a response instruction returned by the server according to the received update identification information is received. After receiving the updated identification information, the server will return a response command, and when receiving the response command, set the flag position to the second value.

进一步的,上述步骤S1~S2的过程可参考图2。Further, for the process of the above steps S1-S2, reference may be made to FIG. 2 .

具体的,在步骤S3中,将所述车载软件版本信息上传至服务器进行保存,以使所述服务器同步更新数据库中的车载软件版本信息。进一步的,在将所述车载软件版本信息上传至服务器的同时还可以一并上传所述车载软件版本信息对应的车载软件升级包,从而所述服务器一并更新所述数据库中的车载软件升级包。则此时,步骤S2为:在响应于监测到所述软件刷新事件时,获取所述外部终端设备对所述车载软件更新后的车载软件版本信息和与所述车载软件版本信息对应的车载软件升级包;步骤S3为:将所述车载软件版本信息和所述车载软件升级包上传至服务器进行保存。Specifically, in step S3, the in-vehicle software version information is uploaded to the server for storage, so that the server synchronously updates the in-vehicle software version information in the database. Further, while uploading the on-board software version information to the server, the on-board software upgrade package corresponding to the on-board software version information can also be uploaded together, so that the server updates the on-board software upgrade package in the database together. . At this time, step S2 is: in response to monitoring the software refresh event, acquiring the on-board software version information after the external terminal device has updated the on-board software and the on-board software corresponding to the on-board software version information. upgrade package; step S3 is: uploading the in-vehicle software version information and the in-vehicle software upgrade package to the server for storage.

相比于现有技术,本发明实施例公开的车载软件版本信息同步方法,首先监测外部终端设备对车辆的车载软件更新而产生的软件刷新事件;然后在响应于监测到所述软件刷新事件时,获取所述外部终端设备对所述车载软件更新后的车载软件版本信息,从而在服务器需要同步车载软件版本信息时无需周期性的查询车载软件版本信息,最后将所述车载软件版本信息上传至服务器进行保存,使得服务器及时地进行车载软件版本信息的同步。本发明实施例在服务器需要同步车载软件版本信息时无需周期性的查询车载软件版本信息,而是当车载软件有更新时直接获取对应的车载软件版本信息并及时上传至服务器,无需车载终端周期性读取车辆上各个车载软件的版本信息,避免车载终端周期性读取版本信息而影响到车载网络,不用过多占用车载终端发送与接收信息的资源并节省了网络流量。Compared with the prior art, the method for synchronizing on-board software version information disclosed in the embodiment of the present invention firstly monitors the software refresh event generated by the on-board software update of the vehicle by the external terminal device; , obtain the in-vehicle software version information updated by the external terminal device to the in-vehicle software, so that when the server needs to synchronize the in-vehicle software version information, there is no need to periodically query the in-vehicle software version information, and finally upload the in-vehicle software version information to The server saves, so that the server synchronizes the version information of the in-vehicle software in a timely manner. In this embodiment of the present invention, when the server needs to synchronize the on-board software version information, it is not necessary to periodically query the on-board software version information, but when the on-board software is updated, the corresponding on-board software version information is directly obtained and uploaded to the server in time, without the need for the on-board terminal to periodically Read the version information of each in-vehicle software on the vehicle, avoid the in-vehicle terminal periodically reading the version information and affect the in-vehicle network, do not occupy too much resources for the in-vehicle terminal to send and receive information, and save network traffic.

实施例二Embodiment 2

参见图3,图3是本发明实施例提供的一种车载软件版本信息同步装置10的结构框图;包括:Referring to FIG. 3, FIG. 3 is a structural block diagram of an in-vehicle software version information synchronization device 10 provided by an embodiment of the present invention; including:

软件刷新事件监测模块11,用于监测外部终端设备对车辆的车载软件更新而产生的软件刷新事件;其中,所述外部终端设备用于通过自身预先存储的车载软件更新程序来对车辆的所述车载软件进行本地更新;The software refreshevent monitoring module 11 is used to monitor the software refresh events generated by the on-board software update of the vehicle by the external terminal device; wherein, the external terminal device is used to Local update of in-vehicle software;

版本信息获取模块12,用于响应于监测到所述软件刷新事件,获取所述外部终端设备对所述车载软件更新后的车载软件版本信息;A versioninformation acquisition module 12, configured to acquire the in-vehicle software version information after the in-vehicle software is updated by the external terminal device in response to monitoring the software refresh event;

版本信息上传模块13,用于将所述车载软件版本信息上传至服务器进行保存。The versioninformation uploading module 13 is used for uploading the in-vehicle software version information to the server for saving.

值得说明的是,本发明实施例所述的车载软件版本信息同步装置10可以为车辆中的车载终端,所述车载终端是车辆监控管理系统的前端设备,集成了数据处理和数据通信等多项功能,具有强大的业务调度功能和数据处理能力。所述外部终端设备可以是汽车诊断仪或其他能够对车辆中的车载软件进行更新的设备。It is worth noting that the device 10 for synchronizing on-board software version information according to the embodiment of the present invention may be an on-board terminal in a vehicle. The on-board terminal is a front-end device of a vehicle monitoring and management system, which integrates data processing and data communication. It has powerful business scheduling functions and data processing capabilities. The external terminal device may be a car diagnostic instrument or other device capable of updating the on-board software in the vehicle.

优选的,所述软件刷新事件监测模块11,具体用于:Preferably, the software refreshes theevent monitoring module 11, specifically for:

监测车载网络中的操作报文;其中,所述操作报文为所述外部终端设备在对车辆进行操作时由车辆产生的;Monitoring operation messages in the vehicle-mounted network; wherein, the operation messages are generated by the vehicle when the external terminal device operates the vehicle;

当监测到所述操作报文且检测到该报文中携带有软件刷新事件识别码时,判定监测到软件刷新事件的发生。When the operation message is monitored and it is detected that the message carries the software refresh event identification code, it is determined that the occurrence of the software refresh event is monitored.

具体的,当车辆中有车载软件在进行更新时车辆会产生携带有软件刷新事件识别码的报文,所述软件刷新事件监测模块11通过监测在车载网络中的操作报文,能够判断是否监测到软件刷新事件的发生。Specifically, when there is in-vehicle software in the vehicle that is being updated, the vehicle will generate a message carrying the software refresh event identification code, and the software refreshevent monitoring module 11 can determine whether to monitor the operation message in the in-vehicle network by monitoring the operation message. until the occurrence of a software refresh event.

优选的,所述监测车载网络中的操作报文后,在所述当监测到所述操作报文且检测到该报文中携带有软件刷新事件识别码前,还包括:当监测到所述操作报文且检测到该报文中的头部携带有诊断报文识别码时,判定当前报文为诊断报文;此时认为检测到诊断仪操作事件,即所述外部终端设备正在操作车载ECU。则此时当检测到所述诊断报文中携带有软件刷新事件识别码时,判定监测到软件刷新事件的发生。优选的,所述车载网络与所述车载终端采用UDS协议进行通信,所述诊断报文识别码为7或1。Preferably, after the monitoring of the operation message in the in-vehicle network, before the operation message is monitored and it is detected that the message carries the software refresh event identification code, the method further includes: when the operation message is detected. When operating the message and detecting that the header of the message carries the diagnostic message identification code, it is determined that the current message is a diagnostic message; at this time, it is considered that a diagnostic instrument operation event is detected, that is, the external terminal device is operating the vehicle ECU. At this time, when it is detected that the diagnostic message carries the software refresh event identification code, it is determined that the occurrence of the software refresh event is monitored. Preferably, the in-vehicle network communicates with the in-vehicle terminal using a UDS protocol, and the identification code of the diagnostic message is 7 or 1.

在判定所述当前报文为诊断报文后,因所述诊断报文涵盖了常规诊断事件和软件刷新事件,因此需要进一步判断所述诊断报文是否表示有软件刷新事件的发生。此时,判断所述操作报文是否携带有软件刷新事件识别码,从而判定是否监测到软件刷新事件的发生。优选的,所述软件刷新事件识别码为“6E F1 84”,即此时所述操作报文可以为“7XX XX6E F1 84 XX XX XX XX”。值得说明的是,所述软件刷新事件识别码还可以更换成软件刷新流程中的其它识别码,只要能够唯一识别软件刷新事件即可,都在本发明的保护范围内。After it is determined that the current message is a diagnostic message, since the diagnostic message covers a conventional diagnostic event and a software refresh event, it is necessary to further determine whether the diagnostic message indicates the occurrence of a software refresh event. At this time, it is determined whether the operation message carries the software refresh event identification code, so as to determine whether the occurrence of the software refresh event is monitored. Preferably, the software refresh event identification code is "6E F1 84", that is, the operation message at this time may be "7XX XX6E F1 84 XX XX XX XX". It should be noted that the software refresh event identification code can also be replaced with other identification codes in the software refresh process, as long as the software refresh event can be uniquely identified, all within the protection scope of the present invention.

优选的,所述版本信息获取模块12,具体用于:Preferably, the versioninformation acquisition module 12 is specifically used for:

响应于监测到所述软件刷新事件,向所述服务器上传与所述软件刷新事件对应的更新识别信息;In response to monitoring the software refresh event, uploading update identification information corresponding to the software refresh event to the server;

接收所述服务器根据所述更新识别信息而发送过来的软件版本信息获取指令,并根据所述软件版本信息获取指令获取所述外部终端设备对所述车载软件更新后的车载软件版本信息。Receive the software version information acquisition instruction sent by the server according to the update identification information, and acquire the in-vehicle software version information after the in-vehicle software is updated by the external terminal device according to the software version information acquisition instruction.

优选的,所述车载软件为ECU软件,所述更新识别信息为车辆上所述车载ECU发生更新的ECU的识别码。进一步的,所述车载软件发生更新的ECU的识别码可以为所述操作报文中携带ECU的识别码,比如所述ECU的识别码为所述操作报文中的“7XX”。Preferably, the in-vehicle software is ECU software, and the update identification information is an identification code of an ECU on the vehicle where the in-vehicle ECU is updated. Further, the identification code of the ECU whose in-vehicle software is updated may be the identification code of the ECU carried in the operation message, for example, the identification code of the ECU is "7XX" in the operation message.

优选的,所述响应于监测到所述软件刷新事件,向所述服务器上传与所述软件刷新事件对应的更新识别信息,具体包括:Preferably, in response to monitoring the software refresh event, uploading the update identification information corresponding to the software refresh event to the server specifically includes:

响应于监测到所述软件刷新事件,将预设的标志位置为第一值,并获取及保存与所述软件刷新事件对应的更新识别信息;In response to monitoring the software refresh event, set the preset flag position as the first value, and acquire and save the update identification information corresponding to the software refresh event;

响应于监测到所述标志位置为第一值,向所述服务器上传与所述软件刷新事件对应的更新识别信息,并将所述标志位置为第二值。In response to monitoring that the flag position is a first value, upload update identification information corresponding to the software refresh event to the server, and set the flag position to a second value.

具体的,所述标志位为flag,所述第一值为1,所述第二值为0。当响应于监测到所述软件刷新事件时,将flag置为1,并获取及保存与所述软件刷新事件对应的更新识别信息;响应于监测到flag=1时,向所述服务器上传与所述软件刷新事件对应的更新识别信息,并将flag置为0。Specifically, the flag bit is flag, the first value is 1, and the second value is 0. In response to monitoring the software refresh event, set the flag to 1, and acquire and save the update identification information corresponding to the software refresh event; in response to monitoring the flag=1, upload the relevant information to the server. The update identification information corresponding to the software refresh event described above is set, and the flag is set to 0.

优选的,检测所述标志位的时机设定为:在整车上电时。具体的,考虑到实时性,在获取到所述更新识别信息后,可以立即将所述更新识别信息上传至服务器。但是每次车载终端与服务器之间建立连接都会使用流量,若是在车载终端获取到所述更新识别信息后立即上传至服务器,则需要多次建立车载终端与服务器之间的连接,会浪费车载终端的流量。因此,为达到省流目的,可以在整车上电时,才将所述更新识别信息发送给所述服务器,因车辆在每次上电启动时,都需要将国标数据上传到服务器,因此可以在上传国际数据的同时将所述更新识别信息上传至服务器,从而节省车辆流量。Preferably, the timing for detecting the flag bit is set as: when the whole vehicle is powered on. Specifically, considering the real-time nature, after the updated identification information is acquired, the updated identification information may be uploaded to the server immediately. However, traffic is used every time a connection is established between the vehicle-mounted terminal and the server. If the updated identification information is uploaded to the server immediately after the vehicle-mounted terminal obtains the information, the connection between the vehicle-mounted terminal and the server needs to be established multiple times, which will waste the vehicle-mounted terminal. traffic. Therefore, in order to achieve the purpose of saving traffic, the updated identification information can be sent to the server when the whole vehicle is powered on. Because the national standard data needs to be uploaded to the server every time the vehicle is powered on and started, it can be The updated identification information is uploaded to the server when the international data is uploaded, thereby saving vehicle traffic.

在整车上电时,监测所述标志位,当所述标志位置为第一值时,此时表明在整车上电前已经发生有软件刷新事件,需要向所述服务器上传与所述软件刷新事件对应的更新识别信息;当所述标志位置为第二值时,此时表明在整车上电前并未发生有软件刷新事件。When the whole vehicle is powered on, the flag bit is monitored. When the flag position is the first value, it indicates that a software refresh event has occurred before the whole vehicle is powered on, and the software needs to be uploaded to the server. Update identification information corresponding to the refresh event; when the flag position is the second value, it indicates that no software refresh event has occurred before the vehicle is powered on.

优选的,所述将标志位置为第二值的时机设定为:在接收到所述服务器根据接收到的所述更新识别信息而返回的应答指令时。所述服务器在接收到所述更新识别信息后,会返回一个应答指令,在接收到所述应答指令时,将所述标志位置为第二值。Preferably, the timing of setting the flag position to the second value is set as: when a response instruction returned by the server according to the received update identification information is received. After receiving the updated identification information, the server will return a response command, and when receiving the response command, set the flag position to the second value.

具体的,所述版本信息上传模块13将所述车载软件版本信息上传至服务器进行保存,以使所述服务器同步更新数据库中的车载软件版本信息。进一步的,在将所述车载软件版本信息上传至服务器的同时还可以一并上传所述车载软件版本信息对应的车载软件升级包,从而所述服务器一并更新所述数据库中的车载软件升级包。则此时,在响应于监测到所述软件刷新事件时,获取所述外部终端设备对所述车载软件更新后的车载软件版本信息和与所述车载软件版本信息对应的车载软件升级包;将所述车载软件版本信息和所述车载软件升级包上传至服务器进行保存。Specifically, the versioninformation uploading module 13 uploads the in-vehicle software version information to the server for storage, so that the server synchronously updates the in-vehicle software version information in the database. Further, while uploading the on-board software version information to the server, the on-board software upgrade package corresponding to the on-board software version information can also be uploaded together, so that the server updates the on-board software upgrade package in the database together. . Then at this time, in response to monitoring the software refresh event, obtain the on-board software version information after the external terminal device has updated the on-board software and the on-board software upgrade package corresponding to the on-board software version information; The in-vehicle software version information and the in-vehicle software upgrade package are uploaded to the server for storage.

相比于现有技术,本发明实施例公开的车载软件版本信息同步装置10,首先所述软件刷新事件监测模块11监测外部终端设备对车辆的车载软件更新而产生的软件刷新事件;然后在响应于监测到所述软件刷新事件时,所述版本信息获取模块12获取所述外部终端设备对所述车载软件更新后的车载软件版本信息,最后所述版本信息上传模块13将所述车载软件版本信息上传至服务器进行保存,使得服务器及时地进行车载软件版本信息的同步。本发明实施例在服务器需要同步车载软件版本信息时无需周期性的查询车载软件版本信息,而是当车载软件有更新时直接获取对应的车载软件版本信息并及时上传至服务器,无需车载软件版本信息同步装置10周期性读取车辆上各个车载软件的版本信息,避免车载软件版本信息同步装置10周期性读取版本信息而影响到车载网络,不用过多占用车载软件版本信息同步装置10发送与接收信息的资源并节省了网络流量。Compared with the prior art, in the in-vehicle software version information synchronization device 10 disclosed in the embodiment of the present invention, first, the software refreshevent monitoring module 11 monitors the software refresh events generated by the in-vehicle software update of the vehicle by the external terminal device; When monitoring the software refresh event, the versioninformation acquisition module 12 acquires the in-vehicle software version information after the external terminal device has updated the in-vehicle software, and finally the version information uploadmodule 13 uploads the in-vehicle software version. The information is uploaded to the server for storage, so that the server can synchronize the vehicle software version information in time. In the embodiment of the present invention, when the server needs to synchronize the on-board software version information, it is not necessary to periodically query on-board software version information, but when the on-board software is updated, the corresponding on-board software version information is directly obtained and uploaded to the server in time, without the need for on-board software version information The synchronization device 10 periodically reads the version information of each in-vehicle software on the vehicle, so as to avoid the in-vehicle software version information synchronization device 10 periodically reading version information and affecting the in-vehicle network. information resources and save network traffic.

实施例三Embodiment 3

参见图4,图4是本发明实施例提供的一种车辆20的结构示意图;该实施例的车辆20包括:处理器21、存储器22以及存储在所述存储器22中并可在所述处理器21上运行的计算机程序。所述处理器21执行所述计算机程序时实现上述各个车载软件版本信息同步方法实施例中的步骤,例如图1所示的步骤S1~S3。或者,所述处理器21执行所述计算机程序时实现上述各装置实施例中各模块/单元的功能,例如软件刷新事件监测模块11。Referring to FIG. 4, FIG. 4 is a schematic structural diagram of avehicle 20 provided by an embodiment of the present invention; thevehicle 20 in this embodiment includes: aprocessor 21, amemory 22, and aprocessor 21, amemory 22, and amemory 22 and available in theprocessor 21 computer programs running on it. When theprocessor 21 executes the computer program, the steps in each of the above-mentioned embodiments of the method for synchronizing the version information of the in-vehicle software are implemented, for example, steps S1 to S3 shown in FIG. 1 . Alternatively, when theprocessor 21 executes the computer program, the functions of the modules/units in the above device embodiments are implemented, for example, the software refreshevent monitoring module 11 .

示例性的,所述计算机程序可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器22中,并由所述处理器21执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在所述车辆20中的执行过程。例如,所述计算机程序可以被分割成软件刷新事件监测模块11、版本信息获取模块12和版本信息上传模块13,各模块具体功能如下:Exemplarily, the computer program may be divided into one or more modules/units, and the one or more modules/units are stored in thememory 22 and executed by theprocessor 21 to complete the present invention. invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in thevehicle 20 . For example, the computer program can be divided into a software refreshevent monitoring module 11, a versioninformation acquisition module 12 and a version information uploadmodule 13, and the specific functions of each module are as follows:

软件刷新事件监测模块11,用于监测外部终端设备对车辆的车载软件更新而产生的软件刷新事件;其中,所述外部终端设备用于通过自身预先存储的车载软件更新程序来对车辆的所述车载软件进行本地更新;The software refreshevent monitoring module 11 is used to monitor the software refresh events generated by the on-board software update of the vehicle by the external terminal device; wherein, the external terminal device is used to Local update of in-vehicle software;

版本信息获取模块12,用于响应于监测到所述软件刷新事件,获取所述外部终端设备对所述车载软件更新后的车载软件版本信息;A versioninformation acquisition module 12, configured to acquire the in-vehicle software version information after the in-vehicle software is updated by the external terminal device in response to monitoring the software refresh event;

版本信息上传模块13,用于将所述车载软件版本信息上传至服务器进行保存。The versioninformation uploading module 13 is used for uploading the in-vehicle software version information to the server for saving.

所述处理器21可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器21是所述车辆20的控制中心,利用各种接口和线路连接整个车辆20的各个部分。Theprocessor 21 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), Off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. Theprocessor 21 is the control center of thevehicle 20 , and uses various interfaces and lines to connect various parts of theentire vehicle 20 .

所述存储器22可用于存储所述计算机程序和/或模块,所述处理器21通过运行或执行存储在所述存储器22内的计算机程序和/或模块,以及调用存储在存储器22内的数据,实现所述车辆20的各种功能。所述存储器22可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,所述存储器22可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Thememory 22 can be used to store the computer programs and/or modules, and theprocessor 21 executes or executes the computer programs and/or modules stored in thememory 22 and calls the data stored in thememory 22, Various functions of thevehicle 20 are realized. Thememory 22 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.); the storage data area may Stores data (such as audio data, phonebook, etc.) created according to the use of the mobile phone, and the like. In addition, thememory 22 may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, internal memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (Secure Digital, SD) card, Flash Card, at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

其中,所述车辆20集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器21执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。Wherein, if the modules/units integrated in thevehicle 20 are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the present invention can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed by theprocessor 21, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media Electric carrier signals and telecommunication signals are not included.

实施例四Embodiment 4

参见图5,图5是本发明一实施例提供的一种车载软件版本信息同步系统30的结构框图;包括服务器31及如上述实施例三所述的车辆20;所述服务器31,用于保存所述车载软件版本信息。Referring to FIG. 5, FIG. 5 is a structural block diagram of an in-vehicle software version information synchronization system 30 provided by an embodiment of the present invention; it includes aserver 31 and thevehicle 20 as described in the third embodiment; theserver 31 is used for storing The in-vehicle software version information.

具体的所述车辆20与所述服务器31的工作过程请参考上述实施例的工作过程,在此不再赘述。For the specific working process of thevehicle 20 and theserver 31, please refer to the working process of the above-mentioned embodiment, which will not be repeated here.

相比于现有技术,本发明公开的车载软件版本信息同步系统30,首先车辆20监测外部终端设备对车辆的车载软件更新而产生的软件刷新事件;然后在响应于监测到所述软件刷新事件时,车辆20获取所述外部终端设备对所述车载软件更新后的车载软件版本信息,最后所述车辆20将所述车载软件版本信息上传至服务器进行保存,使得服务器31及时地进行车载软件版本信息的同步。本发明实施例在服务器31需要同步车载软件版本信息时车辆20无需周期性的查询车载软件版本信息,而是当车载软件有更新时直接获取对应的车载软件版本信息并及时上传至服务器,无需车载终端周期性读取车辆上各个车载软件的版本信息,避免车载终端周期性读取版本信息而影响到车载网络,不用过多占用车载终端发送与接收信息的资源并节省了网络流量。Compared with the prior art, in the vehicle-mounted software version information synchronization system 30 disclosed in the present invention, firstly, thevehicle 20 monitors the software refresh event generated by the vehicle-mounted software update of the vehicle by the external terminal device; when thevehicle 20 obtains the on-board software version information after the on-board software is updated by the external terminal device, and finally thevehicle 20 uploads the on-board software version information to the server for storage, so that theserver 31 can timely update the on-board software version information. Synchronization of information. In this embodiment of the present invention, when theserver 31 needs to synchronize the in-vehicle software version information, thevehicle 20 does not need to periodically query the in-vehicle software version information, but directly obtains the corresponding in-vehicle software version information when the in-vehicle software is updated and uploads it to the server in time, without the need for in-vehicle software version information. The terminal periodically reads the version information of each in-vehicle software on the vehicle, which prevents the in-vehicle terminal from periodically reading the version information and affects the in-vehicle network, does not occupy too much resources for the in-vehicle terminal to send and receive information, and saves network traffic.

需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本发明提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。It should be noted that the device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical unit, that is, it can be located in one place, or it can be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. In addition, in the drawings of the apparatus embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art can understand and implement it without creative effort.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above are the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can also be made, and these improvements and modifications may also be regarded as It is the protection scope of the present invention.

Claims (10)

CN201910391953.8A2019-05-132019-05-13Vehicle-mounted software version information synchronization method, device and system and vehicleActiveCN111935199B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910391953.8ACN111935199B (en)2019-05-132019-05-13Vehicle-mounted software version information synchronization method, device and system and vehicle

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910391953.8ACN111935199B (en)2019-05-132019-05-13Vehicle-mounted software version information synchronization method, device and system and vehicle

Publications (2)

Publication NumberPublication Date
CN111935199Atrue CN111935199A (en)2020-11-13
CN111935199B CN111935199B (en)2023-07-25

Family

ID=73282520

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910391953.8AActiveCN111935199B (en)2019-05-132019-05-13Vehicle-mounted software version information synchronization method, device and system and vehicle

Country Status (1)

CountryLink
CN (1)CN111935199B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113194147A (en)*2021-04-292021-07-30东风汽车集团股份有限公司Vehicle equipment information synchronization method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102902552A (en)*2011-07-262013-01-30福特全球技术公司Method and apparatus for automatic module upgrade
CN104639600A (en)*2013-11-062015-05-20通用汽车有限责任公司System and method for preparing vehicle for remote reflash event
CN105025058A (en)*2014-04-282015-11-04广州汽车集团股份有限公司 Vehicle remote diagnosis method, vehicle remote monitoring method and vehicle terminal
US9575743B1 (en)*2015-09-212017-02-21Hyundai Motor CompanyApparatus for updating software of vehicle terminal and software providing server
CN106484455A (en)*2015-09-022017-03-08腾讯科技(深圳)有限公司A kind of methods, devices and systems of the installation data of more new application
CN107656752A (en)*2017-10-312018-02-02北京新能源汽车股份有限公司Method and device for updating vehicle controller software and vehicle
CN108025684A (en)*2015-09-292018-05-11日立汽车系统株式会社The information update system of on-vehicle control apparatus and on-vehicle control apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102902552A (en)*2011-07-262013-01-30福特全球技术公司Method and apparatus for automatic module upgrade
CN104639600A (en)*2013-11-062015-05-20通用汽车有限责任公司System and method for preparing vehicle for remote reflash event
CN105025058A (en)*2014-04-282015-11-04广州汽车集团股份有限公司 Vehicle remote diagnosis method, vehicle remote monitoring method and vehicle terminal
CN106484455A (en)*2015-09-022017-03-08腾讯科技(深圳)有限公司A kind of methods, devices and systems of the installation data of more new application
US9575743B1 (en)*2015-09-212017-02-21Hyundai Motor CompanyApparatus for updating software of vehicle terminal and software providing server
CN108025684A (en)*2015-09-292018-05-11日立汽车系统株式会社The information update system of on-vehicle control apparatus and on-vehicle control apparatus
CN107656752A (en)*2017-10-312018-02-02北京新能源汽车股份有限公司Method and device for updating vehicle controller software and vehicle

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈铭军,王天军,叶则南,毛晨轩: "工厂模式下模块化整车在线刷新技术", 《上海汽车》*

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113194147A (en)*2021-04-292021-07-30东风汽车集团股份有限公司Vehicle equipment information synchronization method and system
CN113194147B (en)*2021-04-292022-04-29东风汽车集团股份有限公司Vehicle equipment information synchronization method and system

Also Published As

Publication numberPublication date
CN111935199B (en)2023-07-25

Similar Documents

PublicationPublication DateTitle
CN115225699B (en)Vehicle data acquisition method, vehicle-mounted remote information processor and storage medium
US20220156057A1 (en)In-vehicle update device, update processing program, and program update method
US11288054B2 (en)Vehicular communication system
CN113285861A (en)Vehicle data acquisition method based on intelligent central gateway
CN110928561B (en)Vehicle controller software version management method and device, vehicle and storage medium
EP3805918A1 (en)Program update system, program transmission device, and program transmission method
US11444891B2 (en)Electronic control unit, abnormality determination program, and abnormality determination method
DE102022122167A1 (en) PROCEDURE FOR REAL-TIME ECU CRASH REPORTING AND RECOVERY
JP2013246718A (en)Control system and program updating method
CN114170705A (en)Vehicle data uploading method, device and equipment
CN114500315A (en) Equipment status monitoring method, device, computer equipment and storage medium
CN113968107A (en)Activation method and device of vehicle tire pressure sensor, electronic equipment and storage medium
CN113010122B (en) Image forming device monitoring device, method, system and storage medium
CN113726624A (en)Method and device for acquiring CAN (controller area network) signal by TBOX (tunnel boring machine) device
CN111935199B (en)Vehicle-mounted software version information synchronization method, device and system and vehicle
CN112306871A (en)Data processing method, device, equipment and storage medium
CN114463930B (en)Alarm event processing method and device, electronic equipment and medium
US20220365766A1 (en)Ota master, update control method, and non-transitory storage medium
US12024184B2 (en)ECU, monitoring ECU, and CAN system
CN110704076A (en)Data processing method and device, vehicle-mounted controller and computer-readable storage medium
CN112714010B (en)Network topology management method and device, expansion unit and storage medium
CN113535757A (en)Method, device and equipment for discovering cold and hot data and readable storage medium
CN118316706A (en)Vehicle data acquisition method, device and system, gateway equipment and vehicle
CN115242575A (en)CANFD network-based message processing method, device, equipment and storage medium
DE102022122162A1 (en) EMBEDDED SYSTEM TIME RECORDING IN AUTOMOBILES

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp