Movatterモバイル変換


[0]ホーム

URL:


CN111935199B - 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
CN111935199B
CN111935199BCN201910391953.8ACN201910391953ACN111935199BCN 111935199 BCN111935199 BCN 111935199BCN 201910391953 ACN201910391953 ACN 201910391953ACN 111935199 BCN111935199 BCN 111935199B
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.)
Active
Application number
CN201910391953.8A
Other languages
Chinese (zh)
Other versions
CN111935199A (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

Classifications

Landscapes

Abstract

The invention discloses a vehicle-mounted software version information synchronization method, which comprises the following steps: monitoring a software refreshing event generated by updating vehicle-mounted software of a vehicle by external terminal equipment; the external terminal device is used for locally updating the vehicle-mounted software of the vehicle through a vehicle-mounted software updating program stored in advance; responding to the monitoring of the software refreshing event, and acquiring the updated vehicle-mounted software version information of the vehicle-mounted software by the external terminal equipment; and uploading the version information of the vehicle-mounted software to a server for storage. The embodiment of the invention also discloses a vehicle-mounted software version information synchronization device, a vehicle-mounted software version information synchronization system and a vehicle. By adopting the embodiment of the invention, the version information can be timely synchronized, the influence on the vehicle-mounted network caused by the periodical reading of the version information by the vehicle-mounted terminal is avoided, and excessive occupation of resources for transmitting and receiving information by the vehicle-mounted terminal is not required.

Description

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

技术领域technical field

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

背景技术Background technique

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

发明内容Contents of the invention

本发明实施例的目的是提供一种车载软件版本信息同步方法、装置、系统及车辆,能够及时的进行版本信息同步,避免车载终端周期性读取版本信息而对车载网络带来影响,无需过多占用车载终端发送与接收信息的资源。The purpose of the embodiments of the present invention is to provide a vehicle-mounted software version information synchronization method, device, system, and vehicle, which can synchronize version information in a timely manner, avoiding the impact on the vehicle-mounted network caused by the periodic reading of version information by the vehicle-mounted terminal, without occupying too many resources for the vehicle-mounted terminal to send and receive information.

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

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

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

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

相比于现有技术,本发明实施例公开的车载软件版本信息同步方法,首先监测外部终端设备对车辆的车载软件更新而产生的软件刷新事件;然后在响应于监测到所述软件刷新事件时,获取所述外部终端设备对所述车载软件更新后的车载软件版本信息,最后将所述车载软件版本信息上传至服务器进行保存,使得服务器及时地进行车载软件版本信息的同步。本发明实施例在服务器需要同步车载软件版本信息时无需周期性的查询车载软件版本信息,而是当车载软件有更新时直接获取对应的车载软件版本信息并及时上传至服务器,无需车载终端周期性读取车辆上各个车载软件的版本信息,避免车载终端周期性读取版本信息而影响到车载网络,不用过多占用车载终端发送与接收信息的资源并节省了网络流量。Compared with the prior art, the vehicle-mounted software version information synchronization method disclosed in the embodiments of the present invention firstly monitors the software refresh event generated by the external terminal device updating the vehicle-mounted software of the vehicle; then obtains the vehicle-mounted software version information after the external terminal device updates the vehicle-mounted software in response to the monitored software refresh event, and finally uploads the vehicle-mounted software version information to a server for storage, so that the server can synchronize the vehicle-mounted software version information in a timely manner. In the embodiments of the present invention, when the server needs to synchronize the version information of the vehicle-mounted software, there is no need to periodically query the vehicle-mounted software version information. Instead, when the vehicle-mounted software is updated, the corresponding vehicle-mounted software version information is directly obtained and uploaded to the server in a timely manner. The vehicle-mounted terminal does not need to periodically read the version information of each vehicle-mounted software on the vehicle, which prevents the vehicle-mounted terminal from periodically reading the version information and affecting the vehicle-mounted network.

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

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

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

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

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

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

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

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

响应于监测到所述标志位置为第一值,向所述服务器上传与所述软件刷新事件对应的更新识别信息,并将所述标志位置为第二值。In response to detecting 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 on-vehicle software is ECU software, and the update identification information is the identification code of the ECU on the vehicle where the ECU software has been updated.

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

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

为实现上述目的,本发明另一实施例提供了一种车载软件版本信息同步装置,包括:In order to achieve the above object, 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 event generated by the external terminal device to update the vehicle-mounted software of the vehicle; wherein, the external terminal device is used to locally update the vehicle-mounted software of the vehicle through its own pre-stored vehicle-mounted software update program;

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

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

相比于现有技术,本发明实施例公开的车载软件版本信息同步装置,首先所述软件刷新事件监测模块监测外部终端设备对车辆的车载软件更新而产生的软件刷新事件;然后在响应于监测到所述软件刷新事件时,所述版本信息获取模块获取所述外部终端设备对所述车载软件更新后的车载软件版本信息,最后所述版本信息上传模块将所述车载软件版本信息上传至服务器进行保存,使得服务器及时地进行车载软件版本信息的同步。本发明实施例在服务器需要同步车载软件版本信息时无需周期性的查询车载软件版本信息,而是当车载软件有更新时直接获取对应的车载软件版本信息并及时上传至服务器,无需车载软件版本信息同步装置周期性读取车辆上各个车载软件的版本信息,避免车载软件版本信息同步装置周期性读取版本信息而影响到车载网络,不用过多占用车载软件版本信息同步装置发送与接收信息的资源并节省了网络流量。Compared with the prior art, in the vehicle-mounted software version information synchronization device disclosed in the embodiments of the present invention, firstly, the software refresh event monitoring module monitors the software refresh event generated by the external terminal device updating the vehicle-mounted software; then, when the software refresh event is detected in response to the monitoring, the version information acquisition module obtains the vehicle-mounted software version information after the external terminal device updates the vehicle-mounted software, and finally the version information uploading module uploads the vehicle-mounted software version information to the server for storage, so that the server can synchronize the vehicle-mounted software version information in a timely manner. In the embodiments of the present invention, when the server needs to synchronize the version information of the vehicle software, it is not necessary to periodically query the vehicle software version information. Instead, when the vehicle software is updated, the corresponding vehicle software version information is directly obtained and uploaded to the server in a timely manner. The vehicle software version information synchronization device is not required to periodically read the version information of each vehicle software on the vehicle, and the vehicle network is prevented from being periodically read by the vehicle software version information synchronization device.

为实现上述目的,本发明另一实施例提供了一种车辆,包括处理器、存储器以及存储在所述存储器中且被配置为由所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如上述任一实施例所述的车载软件版本信息同步方法。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. When the processor executes the computer program, the method for synchronizing vehicle software version information as described in any of the above embodiments is implemented.

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

附图说明Description of drawings

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

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

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

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

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

具体实施方式Detailed ways

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

实施例一Embodiment one

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

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

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

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

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

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

具体的,在步骤S1中,所述监测外部终端设备对车辆的车载软件更新而产生的软件刷新事件,包括:Specifically, in step S1, the software refresh event generated by monitoring the vehicle-mounted software update of 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 detected and it is detected that the message carries a software refresh event identification code, it is determined that an occurrence of a software refresh event is detected.

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

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

在判定所述当前报文为诊断报文后,因所述诊断报文涵盖了常规诊断事件和软件刷新事件,因此需要进一步判断所述诊断报文是否表示有软件刷新事件的发生。此时,通过判断所述操作报文是否携带有软件刷新事件识别码来确定是否监测到软件刷新事件的发生。优选的,所述软件刷新事件识别码为“6E F1 84”,即此时所述操作报文可以为“7XX XX6E F1 84XX XX XX XX”。值得说明的是,所述软件刷新事件识别码还可以更换成软件刷新流程中的其它识别码,该软件刷新事件识别码也可以设定为其他值,只要能够唯一识别软件刷新事件即可,都在本发明的保护范围内。After determining that the current message is a diagnostic message, since the diagnostic message covers both conventional diagnostic events and software refresh events, it is necessary to further determine whether the diagnostic message indicates the occurrence of a software refresh event. At this time, whether the occurrence of the software refresh event is detected is determined by judging whether the operation message carries a 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 84XX 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, all within the protection scope of the present invention.

具体的,在步骤S2中,所述响应于监测到所述软件刷新事件,获取所述外部终端设备对所述车载软件更新后的车载软件版本信息,包括:Specifically, in step S2, in response to the monitoring of the software refresh event, acquiring the vehicle software version information after the external terminal device has updated the vehicle software, 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 the software version information acquisition instruction sent by the server according to the update identification information, and acquire the vehicle software version information after the external terminal device has updated the vehicle software according to the software version information acquisition instruction.

优选的,所述车载软件为ECU软件,所述更新识别信息为车辆上所述车载ECU发生更新的ECU的识别码。进一步的,所述车载软件发生更新的ECU的识别码可以为所述操作报文中携带ECU的识别码,比如所述ECU的识别码为所述操作报文中的“7XX”。参见表1,表1为所述软件刷新事件的格式定义。Preferably, the on-vehicle software is ECU software, and the update identification information is the identification code of the ECU on the vehicle where the on-vehicle ECU is updated. Further, the identification code of the ECU whose 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. See Table 1, Table 1 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 coden

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

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

S212、响应于监测到所述标志位置为第一值,向所述服务器上传与所述软件刷新事件对应的更新识别信息,并将所述标志位置为第二值。S212. In response to detecting 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 a flag, the first value is 1, and the second value is 0. When the software refresh event is detected in response, 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 monitoring flag being 1, the update identification information corresponding to the software refresh event is uploaded to the server, and the flag is set to 0.

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

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

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

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

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

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

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

实施例二Embodiment two

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

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

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

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

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

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

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

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

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

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

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

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

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

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

优选的,所述车载软件为ECU软件,所述更新识别信息为车辆上所述车载ECU发生更新的ECU的识别码。进一步的,所述车载软件发生更新的ECU的识别码可以为所述操作报文中携带ECU的识别码,比如所述ECU的识别码为所述操作报文中的“7XX”。Preferably, the on-vehicle software is ECU software, and the update identification information is the identification code of the ECU on the vehicle where the on-vehicle ECU is updated. Further, the identification code of the ECU whose 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 update identification information corresponding to the software refresh event to the server, specifically including:

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

响应于监测到所述标志位置为第一值,向所述服务器上传与所述软件刷新事件对应的更新识别信息,并将所述标志位置为第二值。In response to detecting 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 a flag, the first value is 1, and the second value is 0. When the software refresh event is detected in response, 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 monitoring of flag=1, the update identification information corresponding to the software refresh event is uploaded to the server, and the flag is set to 0.

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

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

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

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

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

实施例三Embodiment Three

参见图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 a vehicle 20 provided by an embodiment of the present invention; the vehicle 20 of this embodiment includes: a processor 21, a memory 22, and a computer program stored in the memory 22 and operable on the processor 21. When the processor 21 executes the computer program, it implements the steps in the above-mentioned embodiments of the vehicle software version information synchronization method, such as steps S1 to S3 shown in FIG. 1 . Or, when the processor 21 executes the computer program, it realizes the functions of the modules/units in the above-mentioned device embodiments, for example, the software refresh event monitoring module 11 .

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

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

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

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

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

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

其中,所述车辆20集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器21执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。Wherein, if the integrated modules/units of the vehicle 20 are realized in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the present invention realizes all or part of the processes in the methods of the above-mentioned embodiments, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor 21, it can realize the steps of the above-mentioned various method embodiments. 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. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electrical carrier signal, a telecommunication signal, and a software distribution medium.

实施例四Embodiment Four

参见图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 a server 31 and the vehicle 20 as described in the third embodiment above; the server 31 is used to save the in-vehicle software version information.

具体的所述车辆20与所述服务器31的工作过程请参考上述实施例的工作过程,在此不再赘述。For the specific working process of the vehicle 20 and the server 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, the vehicle 20 monitors a software refresh event generated by an external terminal device updating the vehicle-mounted software; then, when the software refresh event is detected in response to monitoring, the vehicle 20 obtains the vehicle-mounted software version information after the external terminal device has updated the vehicle-mounted software, and finally the vehicle 20 uploads the vehicle-mounted software version information to a server for storage, so that the server 31 synchronizes the vehicle-mounted software version information in a timely manner. In the embodiment of the present invention, when the server 31 needs to synchronize the version information of the vehicle software, the vehicle 20 does not need to periodically query the vehicle software version information, but directly obtains the corresponding vehicle software version information and uploads it to the server in time when the vehicle software is updated, without the need for the vehicle terminal to periodically read the version information of each vehicle software on the vehicle, avoiding the vehicle network from being affected by the vehicle terminal's periodic reading of the version information, without occupying too many resources for the vehicle terminal to send and receive information, and saving network traffic.

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

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

Claims (7)

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
CN111935199A CN111935199A (en)2020-11-13
CN111935199Btrue 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113194147B (en)*2021-04-292022-04-29东风汽车集团股份有限公司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
工厂模式下模块化整车在线刷新技术;陈铭军,王天军,叶则南,毛晨轩;《上海汽车》;20180910(第9期);全文*

Also Published As

Publication numberPublication date
CN111935199A (en)2020-11-13

Similar Documents

PublicationPublication DateTitle
US11943233B2 (en)Vehicle communication apparatus, in-vehicle network system, and vehicle communication method
US11032300B2 (en)Intrusion detection system based on electrical CAN signal for in-vehicle CAN network
CN108011904B (en) Information sending method, receiving method, device and information sending and receiving system
US11023223B2 (en)Software update program for in-vehicle devices and associated server
US11288054B2 (en)Vehicular communication system
CN108475222A (en)Vehicle-mounted updating device, more new system and update processing routine
CN110958161B (en)Block chain link point monitoring method and device and storage medium
CN112015489A (en)Management method, device, storage medium and system for vehicle-mounted software
US11444891B2 (en)Electronic control unit, abnormality determination program, and abnormality determination method
CN111301317A (en)Event generation method, event generation device and vehicle-mounted equipment
DE102022122167A1 (en) PROCEDURE FOR REAL-TIME ECU CRASH REPORTING AND RECOVERY
DE102020208245A1 (en) Data storage device and data storage program
KR20220139759A (en)System for managing update of ecu in vehicle and method thereof
CN107005450A (en)CAN(Controller Area Network:Controller local area network) communication system and error message tape deck
WO2019146488A1 (en)Driving state monitoring device, driving state monitoring method, and driving state monitoring system
JP2013246718A (en)Control system and program updating method
CN111935199B (en)Vehicle-mounted software version information synchronization method, device and system and vehicle
CN113010122B (en) Image forming device monitoring device, method, system and storage medium
CN113968107A (en)Activation method and device of vehicle tire pressure sensor, electronic equipment and storage medium
US20180239668A1 (en)Systems and methods for an error logging mechanism at controller area network buses
US12024184B2 (en)ECU, monitoring ECU, and CAN system
CN118316706A (en)Vehicle data acquisition method, device and system, gateway equipment and vehicle
US20240106676A1 (en)Vehicle control system, control method, electronic device, and recording medium
CN118467452A (en)Method and device for communication of server operating system
CN112104708B (en)Communication method and device of diagnostic equipment, electronic equipment and storage medium

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