[go: up one dir, main page]

CN115469899A - Firmware upgrade method, device, equipment, medium and vehicle-mounted system - Google Patents

Firmware upgrade method, device, equipment, medium and vehicle-mounted system Download PDF

Info

Publication number
CN115469899A
CN115469899A CN202210669773.3A CN202210669773A CN115469899A CN 115469899 A CN115469899 A CN 115469899A CN 202210669773 A CN202210669773 A CN 202210669773A CN 115469899 A CN115469899 A CN 115469899A
Authority
CN
China
Prior art keywords
upgrade
upgrading
upgraded
unit
vehicle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210669773.3A
Other languages
Chinese (zh)
Inventor
罗亚斌
勾晓菲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Co Wheels Technology Co Ltd
Original Assignee
Beijing Co Wheels Technology 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 Beijing Co Wheels Technology Co Ltd filed Critical Beijing Co Wheels Technology Co Ltd
Priority to CN202210669773.3A priority Critical patent/CN115469899A/en
Publication of CN115469899A publication Critical patent/CN115469899A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本公开提供一种人机交互系统固件升级方法、装置、设备、介质及车载系统,以解决相关技术中不具备远程升级技术升级条件的车载系统无法自动进行固件升级,进而导致耗费人力,升级准确性低,影响生产效率的问题,该方法包括:检测车载系统中的待升级单元;根据所述待升级单元获取所述车载系统对应的第一升级数据,所述第一升级数据中包括升级文件和升级列表,所述升级列表用于确定所述待升级单元,所述升级文件用于使所述待升级单元进行升级;将所述第一升级数据和第一升级指令发送至所述车载系统,所述升级指令用于指示所述车载系统基于所述第一升级数据对每个所述待升级单元进行固件升级。

Figure 202210669773

The present disclosure provides a firmware upgrade method, device, equipment, medium, and vehicle-mounted system of a human-computer interaction system to solve the problem that the vehicle-mounted system that does not have the upgrade conditions for remote upgrade technology in the related art cannot automatically perform firmware upgrades, resulting in labor-intensive and accurate upgrades. The problem of low reliability and affecting production efficiency, the method includes: detecting the unit to be upgraded in the vehicle-mounted system; obtaining the first upgrade data corresponding to the vehicle-mounted system according to the unit to be upgraded, and the first upgrade data includes an upgrade file and an upgrade list, the upgrade list is used to determine the unit to be upgraded, and the upgrade file is used to upgrade the unit to be upgraded; the first upgrade data and the first upgrade instruction are sent to the vehicle-mounted system The upgrade instruction is used to instruct the vehicle-mounted system to upgrade the firmware of each unit to be upgraded based on the first upgrade data.

Figure 202210669773

Description

固件升级方法、装置、设备、介质及车载系统Firmware upgrade method, device, equipment, medium and vehicle-mounted system

技术领域technical field

本公开涉及智能汽车领域,特别涉及一种固件升级方法、装置、设备、介质及车载系统。The present disclosure relates to the field of smart cars, and in particular to a firmware upgrade method, device, equipment, medium, and vehicle-mounted system.

背景技术Background technique

近年来,智能车辆己经成为世界车辆工程领域研究的热点和汽车工业增长的新动力,然而,在智能汽车的生产过程的零部件研发/测试阶段和整车下线检测阶段,智能汽车的一些车载系统不具备远程升级技术(On the Air,OTA)升级条件,例如人机交互系统(Human Machine Interface,HMI),所以没法将该系统中的多个电子控制单元(ElectronicControl Unit,ECU)和子系统统一刷写成一个相对版本统一的可用版本,只能一个ECU件、一个ECU件的去刷,这样不仅耗废人力,且升级的准确性不高,极易导致最后版本参差不齐,影响生产效率。In recent years, smart vehicles have become a hot topic in the field of vehicle engineering research in the world and a new driving force for the growth of the automotive industry. The on-board system does not have the upgrade conditions for remote upgrade technology (On the Air, OTA), such as the human machine interface (Human Machine Interface, HMI), so it is impossible to integrate multiple electronic control units (Electronic Control Unit, ECU) and sub-systems in the system. The system is uniformly flashed into a relatively uniform available version, which can only be flashed one ECU piece by one ECU piece. This not only consumes manpower, but also the accuracy of the upgrade is not high, which can easily lead to uneven final versions and affect production. efficiency.

发明内容Contents of the invention

本发明提供一种固件升级方法、装置、设备、介质及车载系统,用以解决相关技术中不具备远程升级技术升级条件的车载系统无法自动进行固件升级,进而导致耗费人力,升级准确性低,影响生产效率的问题。The present invention provides a firmware upgrade method, device, equipment, medium, and vehicle-mounted system, which are used to solve the problem that the vehicle-mounted systems in the related art that do not have the upgrade conditions for remote upgrade technology cannot automatically perform firmware upgrades, resulting in labor-intensive and low-accuracy upgrades. Issues affecting productivity.

第一方面,本发明实施例提供一种固件升级方法,应用于检测端,该方法包括:In the first aspect, the embodiment of the present invention provides a firmware upgrade method, which is applied to the detection end, and the method includes:

检测车载系统中的待升级单元;Detect the unit to be upgraded in the vehicle system;

根据待升级单元获取车载系统对应的第一升级数据,第一升级数据中包括升级文件和升级列表,升级列表用于确定待升级单元,升级文件用于使待升级单元进行升级;Obtain the first upgrade data corresponding to the vehicle-mounted system according to the unit to be upgraded, the first upgrade data includes an upgrade file and an upgrade list, the upgrade list is used to determine the unit to be upgraded, and the upgrade file is used to upgrade the unit to be upgraded;

将第一升级数据和第一升级指令发送至车载系统,升级指令用于指示车载系统基于第一升级数据对每个待升级单元进行固件升级。The first upgrade data and the first upgrade instruction are sent to the vehicle-mounted system, and the upgrade instruction is used to instruct the vehicle-mounted system to upgrade the firmware of each unit to be upgraded based on the first upgrade data.

在一种可能的实施方式中,本发明实施例提供的方法中,方法还包括:In a possible implementation, in the method provided in the embodiment of the present invention, the method further includes:

接收车载系统发送的升级结果信息;Receive the upgrade result information sent by the vehicle system;

若升级结果信息中指示升级失败,则根据升级结果信息和第一升级数据确定第二升级数据,第二升级数据是第一升级数据中升级失败的待升级单元对应的升级数据;If the upgrade result information indicates that the upgrade fails, the second upgrade data is determined according to the upgrade result information and the first upgrade data, and the second upgrade data is the upgrade data corresponding to the unit to be upgraded that fails to upgrade in the first upgrade data;

将第二升级数据和第二升级指令发送至车载系统,以使升级失败的待升级单元再次升级。The second upgrade data and the second upgrade instruction are sent to the vehicle-mounted system, so that the unit to be upgraded that fails to upgrade can be upgraded again.

第二方面,本发明实施例提供一种固件升级方法,应用于车载系统,包括:In the second aspect, an embodiment of the present invention provides a method for upgrading firmware, which is applied to a vehicle-mounted system, including:

接收检测端发送的第一升级数据和第一升级指令,第一升级数据中包括升级文件和升级列表,升级列表用于确定待升级单元,升级文件用于使待升级单元进行升级;Receiving the first upgrade data and the first upgrade instruction sent by the detection end, the first upgrade data includes an upgrade file and an upgrade list, the upgrade list is used to determine the unit to be upgraded, and the upgrade file is used to upgrade the unit to be upgraded;

根据第一升级指令和第一升级数据对每个待升级单元进行固件升级。Perform firmware upgrade for each unit to be upgraded according to the first upgrade instruction and the first upgrade data.

在一种可能的实施方式中,本发明实施例提供的方法中,在根据升级指令和升级文件对每个待升级单元进行固件升级之后,方法还包括:In a possible implementation manner, in the method provided by the embodiment of the present invention, after performing firmware upgrade for each unit to be upgraded according to the upgrade instruction and the upgrade file, the method further includes:

生成升级结果信息,若固件升级失败,则在升级结果信息中添加升级失败列表,升级失败列表包括升级失败的待升级单元;Generate upgrade result information. If the firmware upgrade fails, add an upgrade failure list to the upgrade result information. The upgrade failure list includes units to be upgraded that fail to upgrade;

将升级结果信息发送至检测端。Send the upgrade result information to the detection end.

在一种可能的实施方式中,本发明实施例提供的方法中,方法还包括:In a possible implementation, in the method provided in the embodiment of the present invention, the method further includes:

接收检测端发送的第二升级数据和第二升级指令,第二升级数据是第一升级数据中升级失败的待升级单元对应的升级数据;Receiving the second upgrade data and the second upgrade instruction sent by the detection end, the second upgrade data is the upgrade data corresponding to the unit to be upgraded that fails to upgrade in the first upgrade data;

根据第二升级指令和第二升级数据对升级失败列表中的待升级单元进行固件升级。Perform firmware upgrade on the units to be upgraded in the upgrade failure list according to the second upgrade instruction and the second upgrade data.

第三方面,本发明实施例提供一种固件升级装置,包括:In a third aspect, an embodiment of the present invention provides a firmware upgrade device, including:

检测单元,用于检测车载系统中的待升级单元;The detection unit is used to detect the unit to be upgraded in the vehicle system;

获取单元,用于根据待升级单元获取车载系统对应的第一升级数据,第一升级数据中包括升级文件和升级列表,升级列表用于确定待升级单元,升级文件用于使待升级单元进行升级;The obtaining unit is used to obtain the first upgrade data corresponding to the vehicle-mounted system according to the unit to be upgraded, the first upgrade data includes an upgrade file and an upgrade list, the upgrade list is used to determine the unit to be upgraded, and the upgrade file is used to upgrade the unit to be upgraded ;

发送单元,用于将第一升级数据和第一升级指令发送至车载系统,升级指令用于指示车载系统基于第一升级数据对每个待升级单元进行固件升级。The sending unit is configured to send the first upgrade data and the first upgrade instruction to the vehicle-mounted system, and the upgrade instruction is used to instruct the vehicle-mounted system to upgrade the firmware of each unit to be upgraded based on the first upgrade data.

在一种可能的实施方式中,本发明实施例提供的装置中,装置还包括:In a possible implementation manner, in the device provided in the embodiment of the present invention, the device further includes:

接收单元,用于接收车载系统发送的升级结果信息;The receiving unit is used to receive the upgrade result information sent by the vehicle system;

确定单元,用于若升级结果信息中指示升级失败,则根据升级结果信息和第一升级数据确定第二升级数据,第二升级数据是第一升级数据中升级失败的待升级单元对应的升级数据;The determination unit is configured to determine the second upgrade data according to the upgrade result information and the first upgrade data if the upgrade result information indicates that the upgrade fails, and the second upgrade data is the upgrade data corresponding to the unit to be upgraded that fails to upgrade in the first upgrade data ;

发送单元还用于将第二升级数据和第二升级指令发送至车载系统,以使升级失败的待升级单元再次升级。The sending unit is also used to send the second upgrade data and the second upgrade instruction to the vehicle-mounted system, so that the unit to be upgraded that fails to upgrade can be upgraded again.

第四方面,本发明实施例提供一种固件升级装置,包括:In a fourth aspect, an embodiment of the present invention provides a firmware upgrade device, including:

接收单元,用于接收检测端发送的第一升级数据和第一升级指令,第一升级数据中包括升级文件和升级列表,升级列表用于确定待升级单元,升级文件用于使待升级单元进行升级;The receiving unit is used to receive the first upgrade data and the first upgrade instruction sent by the detection end, the first upgrade data includes an upgrade file and an upgrade list, the upgrade list is used to determine the unit to be upgraded, and the upgrade file is used to make the unit to be upgraded perform upgrade;

升级单元,用于根据第一升级指令和第一升级数据对每个待升级单元进行固件升级。The upgrading unit is configured to upgrade the firmware of each unit to be upgraded according to the first upgrading instruction and the first upgrading data.

在一种可能的实施方式中,本发明实施例提供的装置中,升级单元还用于:In a possible implementation, in the device provided in the embodiment of the present invention, the upgrade unit is also used for:

生成升级结果信息,若固件升级失败,则在升级结果信息中添加升级失败列表,升级失败列表包括升级失败的待升级单元;Generate upgrade result information. If the firmware upgrade fails, add an upgrade failure list to the upgrade result information. The upgrade failure list includes units to be upgraded that fail to upgrade;

将升级结果信息发送至检测端。Send the upgrade result information to the detection end.

在一种可能的实施方式中,本发明实施例提供的装置中,接收单元还用于:In a possible implementation manner, in the device provided in the embodiment of the present invention, the receiving unit is also used for:

接收检测端发送的第二升级数据和第二升级指令,第二升级数据是第一升级数据中升级失败的待升级单元对应的升级数据;Receiving the second upgrade data and the second upgrade instruction sent by the detection end, the second upgrade data is the upgrade data corresponding to the unit to be upgraded that fails to upgrade in the first upgrade data;

升级单元还用于根据第二升级指令和第二升级数据对升级失败列表中的待升级单元进行固件升级。The upgrading unit is also used to upgrade the firmware of the units to be upgraded in the upgrading failure list according to the second upgrading instruction and the second upgrading data.

第五方面,本发明实施例提供了一种电子设备,包括:至少一个处理器、至少一个存储器以及存储在存储器中的计算机程序指令,当计算机程序指令被处理器执行时实现本发明实施例第一方面或第二方面提供的方法。In a fifth aspect, an embodiment of the present invention provides an electronic device, including: at least one processor, at least one memory, and computer program instructions stored in the memory. When the computer program instructions are executed by the processor, the first embodiment of the present invention is implemented. The method provided in the first aspect or the second aspect.

第六方面,本发明实施例提供了一种计算机可读存储介质,其上存储有计算机程序指令,当计算机程序指令被处理器执行时实现本发明实施例第一方面或第二方面提供的方法。In the sixth aspect, the embodiments of the present invention provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method provided in the first aspect or the second aspect of the embodiments of the present invention is implemented .

第七方面,本发明实施例提供了一种车载系统,该车辆包括如第四部分的固件升级装置。In a seventh aspect, an embodiment of the present invention provides a vehicle-mounted system, and the vehicle includes the firmware upgrade device described in the fourth part.

第八方面,本发明实施例提供了一种检测设备,该车辆包括如第三部分的固件升级装置。In an eighth aspect, an embodiment of the present invention provides a detection device, and the vehicle includes the firmware upgrade device as described in the third part.

本发明实施例提供的固件升级方法,首先检测车载系统中的待升级单元,根据待升级单元获取车载系统对应的第一升级数据,然后将第一升级数据和第一升级指令发送至车载系统,以使车载系统基于第一升级数据进行固件升级。与相关技术相比,提供了一种固件升级方法,不仅解决了车载系统无法自动进行固件升级,进而导致耗费人力,升级准确性低,影响生产效率的问题,提高了升级准确性,降低生产成本,提高生产效率。The firmware upgrade method provided by the embodiment of the present invention first detects the unit to be upgraded in the vehicle-mounted system, obtains the first upgrade data corresponding to the vehicle-mounted system according to the unit to be upgraded, and then sends the first upgrade data and the first upgrade command to the vehicle-mounted system, The vehicle system is configured to perform firmware upgrade based on the first upgrade data. Compared with related technologies, it provides a firmware upgrade method, which not only solves the problem that the vehicle system cannot automatically upgrade the firmware, which leads to labor-intensive, low upgrade accuracy, and affects production efficiency, but also improves the upgrade accuracy and reduces production costs. ,Increase productivity.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.

图1为本发明实施例提供的一种人机交互系统固件升级方法的流程示意图;FIG. 1 is a schematic flowchart of a method for upgrading firmware of a human-computer interaction system provided by an embodiment of the present invention;

图2为本发明实施例提供的另一人机交互系统固件升级方法的流程示意图;Fig. 2 is a schematic flowchart of another method for upgrading firmware of a human-computer interaction system provided by an embodiment of the present invention;

图3为本发明实施例提供的一种人机交互系统固件升级方法的具体流程示意图;FIG. 3 is a schematic flowchart of a method for upgrading firmware of a human-computer interaction system provided by an embodiment of the present invention;

图4为本发明实施例提供的一种人机交互系统固件升级装置的结构示意图;FIG. 4 is a schematic structural diagram of a firmware upgrade device for a human-computer interaction system provided by an embodiment of the present invention;

图5为本发明实施例提供的另一人机交互系统固件升级装置的结构示意图;5 is a schematic structural diagram of another human-computer interaction system firmware upgrade device provided by an embodiment of the present invention;

图6为本发明实施例提供的一种人机交互系统固件升级设备的结构示意图。FIG. 6 is a schematic structural diagram of a firmware upgrade device for a human-computer interaction system provided by an embodiment of the present invention.

具体实施方式detailed description

为了能够更清楚地理解本公开的上述目的、特征和优点,下面将对本公开的方案进行进一步描述。需要说明的是,在不冲突的情况下,本公开的实施例及实施例中的特征可以相互组合。In order to more clearly understand the above objects, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that, in the case of no conflict, the embodiments of the present disclosure and the features in the embodiments can be combined with each other.

在下面的描述中阐述了很多具体细节以便于充分理解本公开,但本公开还可以采用其他不同于在此描述的方式来实施;显然,说明书中的实施例只是本公开的一部分实施例,而不是全部的实施例。In the following description, many specific details are set forth in order to fully understand the present disclosure, but the present disclosure can also be implemented in other ways than described here; obviously, the embodiments in the description are only some of the embodiments of the present disclosure, and Not all examples.

下面对文中出现的一些词语进行解释:The following is an explanation of some words that appear in the text:

1、本发明实施例中术语“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。1. The term "and/or" in the embodiment of the present invention describes the association relationship of associated objects, indicating that there may be three relationships, for example, A and/or B, which may mean: A exists alone, A and B exist simultaneously, and There are three cases of B. The character "/" generally indicates that the contextual objects are an "or" relationship.

本发明实施例描述的应用场景是为了更加清楚的说明本发明实施例的技术方案,并不构成对于本发明实施例提供的技术方案的限定,本领域普通技术人员可知,随着新应用场景的出现,本发明实施例提供的技术方案对于类似的技术问题,同样适用。其中,在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上。The application scenarios described in the embodiments of the present invention are to illustrate the technical solutions of the embodiments of the present invention more clearly, and do not constitute limitations on the technical solutions provided by the embodiments of the present invention. It appears that the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems. Wherein, in the description of the present invention, unless otherwise specified, "plurality" means two or more.

2、本发明实施例中术语“ECU”,指电子控制单元(Electronic Control Unit,ECU),又称“行车电脑”、“车载电脑”等。它和普通的电脑一样,由微控制器(MCU)、存储器(ROM、RAM)、输入/输出接口(I/O)、模数转换器(A/D)以及整形、驱动等大规模集成电路组成。2. The term "ECU" in the embodiments of the present invention refers to an electronic control unit (Electronic Control Unit, ECU), also known as "driving computer", "vehicle computer" and so on. Like an ordinary computer, it consists of a microcontroller (MCU), memory (ROM, RAM), input/output interface (I/O), analog-to-digital converter (A/D), and large-scale integrated circuits such as shaping and driving. composition.

3、本发明实施例中术语“IPC”,指仪表板(Instrument Panel Cluster,IPC)。3. The term "IPC" in the embodiments of the present invention refers to an instrument panel (Instrument Panel Cluster, IPC).

4、本发明实施例中术语“SOC”,指芯片级系统(System on Chip,SOC),一般说来,SOC称为系统级芯片,也有称片上系统,意指它是一个产品,是一个有专用目标的集成电路,其中包含完整系统并有嵌入软件的全部内容。4. The term "SOC" in the embodiment of the present invention refers to a system on chip (System on Chip, SOC). Generally speaking, a SOC is called a system-on-chip, and also called a system on a chip, which means that it is a product and a A dedicated target integrated circuit that contains the complete system and has the entire contents of the embedded software.

5、本发明实施例中术语“MCU”,指微控制单元(Microcontroller Unit,MCU),又称单片微型计算机(Single Chip Microcomputer)或者单片机,是把中央处理器(CentralProcess Unit;CPU)的频率与规格做适当缩减,并将内存(memory)、计数器(Timer)、USB、A/D转换、UART、PLC、DMA等周边接口,甚至LCD驱动电路都整合在单一芯片上,形成芯片级的计算机,为不同的应用场合做不同组合控制。5. The term "MCU" in the embodiments of the present invention refers to a micro control unit (Microcontroller Unit, MCU), also known as a single-chip microcomputer (Single Chip Microcomputer) or a single-chip microcomputer, which is the frequency of a central processing unit (CentralProcess Unit; CPU). Properly reduce the specifications, and integrate memory (memory), counter (Timer), USB, A/D conversion, UART, PLC, DMA and other peripheral interfaces, and even LCD driver circuits on a single chip to form a chip-level computer , to do different combinations of controls for different applications.

6、本发明实施例中术语“HMI”,指人机交互系统(Human Machine Interface,HMI),其中包含了IPC、SOC、MCU等。6. The term "HMI" in the embodiments of the present invention refers to a Human Machine Interface (HMI), which includes IPC, SOC, MCU and so on.

7、本发明实施例中术语“OTA”,指远程升级技术(On the Air,OTA),是通过移动通信的空中接口实现对移动终端设备及SIM卡数据进行远程管理的技术。7. The term "OTA" in the embodiments of the present invention refers to remote upgrade technology (On the Air, OTA), which is a technology for remote management of mobile terminal equipment and SIM card data through the air interface of mobile communication.

8、本发明实施例中术语“vin”,指整车唯一识别码(Vehicle IdentificationNumber,VIN)。因为SAE标准规定:VIN码由17位字符组成,所以俗称十七位码。它包含了车辆的生产厂家、年代、车型、车身型式及代码、发动机代码及组装地点等信息。正确解读VIN码,对于我们正确地识别车型,以致进行正确地诊断和维修都是十分重要的。8. The term "vin" in the embodiments of the present invention refers to a vehicle identification number (Vehicle Identification Number, VIN). Because the SAE standard stipulates that the VIN code consists of 17 characters, so it is commonly known as the seventeen-digit code. It contains information such as the manufacturer, year, model, body type and code, engine code and assembly location of the vehicle. Correctly interpreting the VIN code is very important for us to correctly identify the vehicle model, so as to perform correct diagnosis and maintenance.

9、本发明实施例中术语“DRE”,指线束工程师(Design Release Engineering,DRE)。9. The term "DRE" in the embodiments of the present invention refers to a harness engineer (Design Release Engineering, DRE).

10、本发明实施例中术语“EOL”,指整车下线检测系统(End on Line,EOL),主要是用于整车生产时的功能检测和版本升级。10. The term "EOL" in the embodiments of the present invention refers to the vehicle end-of-line detection system (End on Line, EOL), which is mainly used for function detection and version upgrade during vehicle production.

近年来,智能车辆己经成为世界车辆工程领域研究的热点和汽车工业增长的新动力,然而,在智能汽车的生产过程的零部件研发/测试阶段和整车下线检测阶段,智能汽车的一些车载系统,例如人机交互系统(Human Machine Interface,HMI),不具备远程升级技术(On the Air,OTA)升级条件,所以没法将该系统中的多个电子控制单元(ElectronicControl Unit,ECU)和子系统统一刷写成一个相对版本统一的可用版本,只能一个ECU件、一个ECU件的去刷,这样不仅耗废人力,且升级的准确性不高,极易导致最后版本参差不齐,影响生产效率。In recent years, smart vehicles have become a hot topic in the field of vehicle engineering research in the world and a new driving force for the growth of the automotive industry. Vehicle-mounted systems, such as Human Machine Interface (HMI), do not have the conditions for remote upgrade technology (On the Air, OTA), so it is impossible to upgrade multiple electronic control units (Electronic Control Unit, ECU) in the system. Unified flashing of subsystems and subsystems into a relatively uniform available version, only one ECU part and one ECU part can be flashed, which not only consumes manpower, but also the accuracy of the upgrade is not high, which can easily lead to uneven final versions and affect Productivity.

因此,亟需一种固件升级方法,解决了上述车载系统无法自动进行固件升级,进而导致耗费人力,升级准确性低,影响生产效率的问题。Therefore, there is an urgent need for a firmware upgrade method, which solves the problems that the above-mentioned vehicle-mounted system cannot automatically perform firmware upgrades, resulting in labor-intensive, low upgrade accuracy, and affecting production efficiency.

如图1所示,本公开实施例的固件升级方法,包括如下步骤:As shown in Figure 1, the firmware upgrade method of the disclosed embodiment includes the following steps:

步骤S101,检测车载系统中的待升级单元。Step S101, detecting the unit to be upgraded in the vehicle system.

具体实施时,将检测端与车载系统相连,通过检测,获取车载系统中的单元型号,并确定待升级单元。During specific implementation, the detection terminal is connected to the vehicle-mounted system, and the unit model in the vehicle-mounted system is obtained through detection, and the unit to be upgraded is determined.

步骤S102,根据待升级单元获取车载系统对应的第一升级数据。In step S102, the first upgrade data corresponding to the vehicle system is acquired according to the unit to be upgraded.

具体实施时,通过服务器或其他途径获得用于为车载系统升级的第一升级数据,该第一升级数据中包括升级文件和升级列表,其中升级列表用于确定待升级单元,升级文件用于使待升级单元进行升级。During specific implementation, the first upgrade data used to upgrade the vehicle-mounted system is obtained through a server or other means. The first upgrade data includes an upgrade file and an upgrade list, wherein the upgrade list is used to determine the unit to be upgraded, and the upgrade file is used to use The unit to be upgraded is upgraded.

步骤S103,将第一升级数据和第一升级指令发送至车载系统。Step S103, sending the first upgrade data and the first upgrade instruction to the vehicle system.

具体实施时,将获取到的第一升级数据发送至车载系统的指定位置,通常发送至车载系统进行OTA升级过程中用于存储升级文件的位置,同时发送升级指令至车载系统,该升级指令用于指示车载系统基于第一升级数据对每个待升级单元进行固件升级。使得车载系统能够跳过升级判定条件,直接进行固件升级。在发送之后,还可以接收车载系统发送的升级结果信息,该升级结果信息可以告知固件升级成功与否,若升级失败,则根据升级结果信息和第一升级数据确定第二升级数据,并将第二升级数据发送至车载系统,以使车载系统再次升级。During specific implementation, the acquired first upgrade data is sent to a designated location of the vehicle-mounted system, usually to the location where the upgrade file is stored during the OTA upgrade process of the vehicle-mounted system, and an upgrade command is sent to the vehicle-mounted system at the same time, and the upgrade command uses Instructing the vehicle-mounted system to upgrade the firmware of each unit to be upgraded based on the first upgrade data. This enables the vehicle-mounted system to skip the upgrade judgment conditions and directly upgrade the firmware. After sending, the upgrade result information sent by the vehicle-mounted system can also be received. The upgrade result information can inform whether the firmware upgrade is successful or not. If the upgrade fails, the second upgrade data is determined according to the upgrade result information and the first upgrade data, and the second The second upgrade data is sent to the vehicle system, so that the vehicle system can be upgraded again.

如图2所示,本公开实施例的自动固件升级方法,包括如下步骤:As shown in Figure 2, the automatic firmware upgrade method of the embodiment of the present disclosure includes the following steps:

步骤S201,接收检测端发送的第一升级数据和第一升级指令。Step S201, receiving the first upgrade data and the first upgrade instruction sent by the detection end.

具体实施时,第一升级数据中包括升级文件和升级列表,升级列表用于确定待升级单元,升级文件用于使待升级单元进行升级。当然,也可以检测端发送的第二升级数据和第二升级指令,第二升级数据是第一升级数据中升级失败的待升级单元对应的升级数据。During specific implementation, the first upgrade data includes an upgrade file and an upgrade list, the upgrade list is used to determine the unit to be upgraded, and the upgrade file is used to upgrade the unit to be upgraded. Of course, the second upgrade data and the second upgrade instruction sent by the terminal may also be detected, and the second upgrade data is the upgrade data corresponding to the units to be upgraded that fail to upgrade in the first upgrade data.

步骤S202,根据第一升级指令和第一升级数据对每个待升级单元进行固件升级。Step S202, perform firmware upgrade for each unit to be upgraded according to the first upgrade instruction and the first upgrade data.

具体实施时,在接收到第一升级指令后,通过第一升级数据中的升级列表,确定待升级元件和待升级原件对应的升级文件,并通过确定的升级文件对待升级元件进行固件升级。在升级之后,还可以根据升级结果生成升级结果信息,并将升级结果信息发送至检测端。During specific implementation, after receiving the first upgrade instruction, determine the upgrade file corresponding to the component to be upgraded and the original component to be upgraded through the upgrade list in the first upgrade data, and perform firmware upgrade of the component to be upgraded through the determined upgrade file. After the upgrade, upgrade result information can also be generated according to the upgrade result, and the upgrade result information can be sent to the detection end.

具体生成升级结果信息时,若固件升级失败,则在升级结果信息中添加升级失败列表,升级失败列表用于使检测端确定升级失败的单元;若固件升级成功,则通过该升级结果信息通知检测端升级成功。When generating the upgrade result information specifically, if the firmware upgrade fails, an upgrade failure list is added to the upgrade result information, and the upgrade failure list is used to make the detection end determine the unit that failed the upgrade; if the firmware upgrade is successful, the detection is notified through the upgrade result information The terminal upgrade is successful.

如果步骤S201中接收的是第二升级指令和第二升级数据,则根据第二升级指令和第二升级数据对升级失败列表中的待升级单元进行固件升级,使得升级失败的待升级单元进行升级。If the second upgrade instruction and the second upgrade data are received in step S201, then according to the second upgrade instruction and the second upgrade data, the firmware upgrade is performed on the units to be upgraded in the upgrade failure list, so that the units to be upgraded that fail to upgrade are upgraded .

如图3所示,结合检测端和车载系统,对本发明实施例中固件升级方法进行详细说明,其中检测端即为EOL检测设备,车载系统即为HMI。在产线时(即HMI还是一个零部件时)或者其他无法使用OTA的场景中,可以通过EOL诊断触发升级HMI,在这种升级方式下,无需通过判断车速信号、档位信号、整车电量等来判断升级条件,具体步骤如下。As shown in FIG. 3 , the firmware upgrade method in the embodiment of the present invention is described in detail in combination with the detection terminal and the vehicle-mounted system, wherein the detection terminal is the EOL detection device, and the vehicle-mounted system is the HMI. In the production line (that is, when the HMI is still a component) or in other scenarios where OTA cannot be used, the HMI can be upgraded through EOL diagnosis. In this upgrade method, there is no need to judge the speed signal, gear signal, and vehicle power. Wait to determine the upgrade conditions, the specific steps are as follows.

步骤S301,检测车载系统中的待升级单元。Step S301, detecting the unit to be upgraded in the vehicle system.

具体实施时,将检测端与车载系统相连,通过检测,获取车载系统中的单元型号,并确定待升级单元。During specific implementation, the detection terminal is connected to the vehicle-mounted system, and the unit model in the vehicle-mounted system is obtained through detection, and the unit to be upgraded is determined.

步骤S302,根据待升级单元获取车载系统对应的第一升级数据。In step S302, the first upgrade data corresponding to the vehicle system is acquired according to the unit to be upgraded.

具体实施时,通过服务器或其他途径获得用于为车载系统升级的第一升级数据,EOL升级的升级包不能从OTA后台获取,因为没有整车vin码和当前整车固件版本号,所以升级文件只能通过EOL自己的服务器去获取,这些升级文件的输入来自供应商DRE等上游。该第一升级数据中包括升级文件包和升级列表,其中升级文件包通常是“zip”压缩文件包格式,内中包含多个升级文件,升级列表可以为“manifest.json”文件,用于确定车载系统中待升级单元和待升级单元对应的升级文件。During the specific implementation, the first upgrade data used to upgrade the vehicle system is obtained through the server or other means. The upgrade package of the EOL upgrade cannot be obtained from the OTA background, because there is no vehicle vin code and the current vehicle firmware version number, so the upgrade file It can only be obtained through EOL's own server, and the input of these upgrade files comes from upstream suppliers such as DRE. The first upgrade data includes an upgrade file package and an upgrade list, wherein the upgrade file package is usually a "zip" compressed file package format, which contains multiple upgrade files, and the upgrade list can be a "manifest.json" file for determining The unit to be upgraded and the upgrade file corresponding to the unit to be upgraded in the vehicle-mounted system.

步骤S303,将第一升级数据和第一升级指令发送至车载系统。Step S303, sending the first upgrade data and the first upgrade instruction to the vehicle system.

具体实施时,将获取到的第一升级数据和第一升级指令发送至车载系统的指定位置,通常发送至车载系统进行OTA升级过程中用于存储升级文件的位置,该第一升级指令用于指示车载系统基于第一升级数据进行固件升级。使得车载系统能够跳过升级判定条件,直接进行固件升级。During specific implementation, the acquired first upgrade data and the first upgrade instruction are sent to a designated location of the vehicle-mounted system, usually to the location where the upgrade file is stored during the OTA upgrade process of the vehicle-mounted system, and the first upgrade instruction is used for The vehicle system is instructed to perform firmware upgrade based on the first upgrade data. This enables the vehicle-mounted system to skip the upgrade judgment conditions and directly upgrade the firmware.

步骤S304,接收检测端发送的第一升级数据和第一升级指令。Step S304, receiving the first upgrade data and the first upgrade instruction sent by the detection end.

具体实施时,在接收到第一升级指令后,通过第一升级数据中的升级列表,确定待升级元件(即HMI中的待升级ECU)和待升级原件对应的升级文件,具体操作为解析固定地址中的manifest.json文件,得知需要升级哪些ECU,每个ECU的对应的升级文件是哪个,以及每个ECU的升级顺序。During specific implementation, after receiving the first upgrade instruction, the upgrade file corresponding to the component to be upgraded (that is, the ECU to be upgraded in the HMI) and the original component to be upgraded is determined through the upgrade list in the first upgrade data, and the specific operation is to analyze and fix The manifest.json file in the address, you can know which ECUs need to be upgraded, which is the corresponding upgrade file for each ECU, and the upgrade sequence of each ECU.

步骤S305,根据第一升级指令和第一升级数据对每个待升级单元进行固件升级。Step S305, perform firmware upgrade for each unit to be upgraded according to the first upgrade instruction and the first upgrade data.

具体实施时,利用上述步骤确定的升级文件对上述步骤确定待升级元件进行固件升级,即按照manifest.json中配置的升级顺序,依次对ECU进行升级。During specific implementation, use the upgrade files determined in the above steps to upgrade the firmware of the components to be upgraded determined in the above steps, that is, upgrade the ECUs in sequence according to the upgrade sequence configured in the manifest.json.

步骤S306,根据升级结果生成升级结果信息,并将升级结果信息发送至检测端。Step S306, generating upgrade result information according to the upgrade result, and sending the upgrade result information to the detection end.

具体生成升级结果信息时,若固件升级失败,则在升级结果信息中添加升级失败列表,升级失败列表用于使检测端确定升级失败的单元;若固件升级成功,则通过该升级结果信息通知检测端升级成功。When generating the upgrade result information specifically, if the firmware upgrade fails, an upgrade failure list is added to the upgrade result information, and the upgrade failure list is used to make the detection end determine the unit that failed the upgrade; if the firmware upgrade is successful, the detection is notified through the upgrade result information The terminal upgrade is successful.

步骤S307,检测端接收升级结果信息,并确定升级结果,若升级成功则结束固件升级流程,若升级失败,则进行步骤S308。In step S307, the detection end receives the upgrade result information and determines the upgrade result. If the upgrade is successful, the firmware upgrade process ends, and if the upgrade fails, the process proceeds to step S308.

步骤S308,根据升级结果信息和第一升级数据确定第二升级数据,并将第二升级数据和第二升级指令发送至车载系统,以使车载系统再次升级。Step S308, determining second upgrade data according to the upgrade result information and the first upgrade data, and sending the second upgrade data and a second upgrade instruction to the vehicle-mounted system, so that the vehicle-mounted system can be upgraded again.

如图4所示,本发明实施例提供一种人机交互系统固件升级装置,包括:As shown in Figure 4, an embodiment of the present invention provides a firmware upgrade device for a human-computer interaction system, including:

检测单元401,用于检测车载系统中的待升级单元;The detection unit 401 is used to detect the unit to be upgraded in the vehicle-mounted system;

获取单元402,用于根据待升级单元获取车载系统对应的第一升级数据,第一升级数据中包括升级文件和升级列表,升级列表用于确定待升级单元,升级文件用于使待升级单元进行升级;The obtaining unit 402 is used to obtain the first upgrade data corresponding to the vehicle-mounted system according to the unit to be upgraded, the first upgrade data includes an upgrade file and an upgrade list, the upgrade list is used to determine the unit to be upgraded, and the upgrade file is used to make the unit to be upgraded perform upgrade;

发送单元403,用于将第一升级数据和第一升级指令发送至车载系统,升级指令用于指示车载系统基于第一升级数据对每个待升级单元进行固件升级。The sending unit 403 is configured to send the first upgrade data and the first upgrade instruction to the vehicle-mounted system, and the upgrade instruction is used to instruct the vehicle-mounted system to upgrade the firmware of each unit to be upgraded based on the first upgrade data.

在一种可能的实施方式中,本发明实施例提供的装置中,装置还包括:In a possible implementation manner, in the device provided in the embodiment of the present invention, the device further includes:

接收单元,用于接收车载系统发送的升级结果信息;The receiving unit is used to receive the upgrade result information sent by the vehicle system;

确定单元,用于若升级结果信息中指示升级失败,则根据升级结果信息和第一升级数据确定第二升级数据,第二升级数据是第一升级数据中升级失败的待升级单元对应的升级数据;The determination unit is configured to determine the second upgrade data according to the upgrade result information and the first upgrade data if the upgrade result information indicates that the upgrade fails, and the second upgrade data is the upgrade data corresponding to the unit to be upgraded that fails to upgrade in the first upgrade data ;

发送单元还用于将第二升级数据和第二升级指令发送至车载系统,以使升级失败的待升级单元再次升级。The sending unit is also used to send the second upgrade data and the second upgrade instruction to the vehicle-mounted system, so that the unit to be upgraded that fails to upgrade can be upgraded again.

如图5所示,本发明实施例提供一种人机交互系统固件升级装置,包括:As shown in Figure 5, an embodiment of the present invention provides a firmware upgrade device for a human-computer interaction system, including:

接收单元501,用于接收检测端发送的第一升级数据和第一升级指令,第一升级数据中包括升级文件和升级列表,升级列表用于确定待升级单元,升级文件用于使待升级单元进行升级;The receiving unit 501 is used to receive the first upgrade data and the first upgrade instruction sent by the detection end, the first upgrade data includes an upgrade file and an upgrade list, the upgrade list is used to determine the unit to be upgraded, and the upgrade file is used to make the unit to be upgraded upgrade;

升级单元502,用于根据第一升级指令和第一升级数据对每个待升级单元进行固件升级。The upgrading unit 502 is configured to upgrade the firmware of each unit to be upgraded according to the first upgrading instruction and the first upgrading data.

在一种可能的实施方式中,本发明实施例提供的装置中,升级单元502还用于:In a possible implementation manner, in the device provided in the embodiment of the present invention, the upgrading unit 502 is also used to:

生成升级结果信息,若固件升级失败,则在升级结果信息中添加升级失败列表,升级失败列表包括升级失败的待升级单元;Generate upgrade result information. If the firmware upgrade fails, add an upgrade failure list to the upgrade result information. The upgrade failure list includes units to be upgraded that fail to upgrade;

将升级结果信息发送至检测端。Send the upgrade result information to the detection end.

在一种可能的实施方式中,本发明实施例提供的装置中,接收单元501还用于:In a possible implementation manner, in the device provided in the embodiment of the present invention, the receiving unit 501 is also used to:

接收检测端发送的第二升级数据和第二升级指令,第二升级数据是第一升级数据中升级失败的待升级单元对应的升级数据;Receiving the second upgrade data and the second upgrade instruction sent by the detection end, the second upgrade data is the upgrade data corresponding to the unit to be upgraded that fails to upgrade in the first upgrade data;

升级单元502还用于根据第二升级指令和第二升级数据对升级失败列表中的待升级单元进行固件升级。The upgrading unit 502 is further configured to upgrade the firmware of the units to be upgraded in the upgrading failure list according to the second upgrading instruction and the second upgrading data.

另外,结合图1-图5描述的本申请实施例的人机交互系统固件升级方法和装置可以由人机交互系统固件升级设备来实现。图6示出了本申请实施例提供的人机交互系统固件升级的电子设备的硬件结构示意图。In addition, the human-computer interaction system firmware upgrade method and device described in the embodiments of the present application described in conjunction with FIGS. 1-5 can be implemented by a human-computer interaction system firmware upgrade device. FIG. 6 shows a schematic diagram of a hardware structure of an electronic device for firmware upgrade of a human-computer interaction system provided by an embodiment of the present application.

下面具体参考图6,其示出了适于用来实现本公开实施例中的电子设备600的结构示意图。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring to FIG. 6 in detail below, it shows a schematic structural diagram of an electronic device 600 suitable for implementing an embodiment of the present disclosure. The electronic device shown in FIG. 6 is only an example, and should not limit the functions and application scope of the embodiments of the present disclosure.

如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理以实现如本公开所述的实施例的语音控制方法。在RAM 603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, an electronic device 600 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 601, which may be randomly accessed according to a program stored in a read-only memory (ROM) 602 or loaded from a storage device 608. The programs in the memory (RAM) 603 execute various appropriate actions and processes to implement the voice control method according to the embodiment of the present disclosure. In the RAM 603, various programs and data necessary for the operation of the electronic device 600 are also stored. The processing device 601 , ROM 602 and RAM 603 are connected to each other through a bus 604 . An input/output (I/O) interface 605 is also connected to the bus 604 .

通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices can be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration an output device 607 such as a computer; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While FIG. 6 shows electronic device 600 having various means, it should be understood that implementing or having all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码,从而实现如上所述的语音控制方法。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer readable medium, and the computer program includes program code for executing the method shown in the flow chart, thereby realizing the above The voice control method. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609 , or from storage means 608 , or from ROM 602 . When the computer program is executed by the processing device 601, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.

需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and the server can communicate using any currently known or future-developed network protocols such as HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol), and can communicate with digital data in any form or medium (eg, communication network) interconnections. Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network of.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.

上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device:

检测车载系统中的待升级单元;Detect the unit to be upgraded in the vehicle system;

根据待升级单元获取车载系统对应的第一升级数据,第一升级数据中包括升级文件和升级列表,升级列表用于确定待升级单元,升级文件用于使待升级单元进行升级;Obtain the first upgrade data corresponding to the vehicle-mounted system according to the unit to be upgraded, the first upgrade data includes an upgrade file and an upgrade list, the upgrade list is used to determine the unit to be upgraded, and the upgrade file is used to upgrade the unit to be upgraded;

将第一升级数据和第一升级指令发送至车载系统,升级指令用于指示车载系统基于第一升级数据对每个待升级单元进行固件升级。The first upgrade data and the first upgrade instruction are sent to the vehicle-mounted system, and the upgrade instruction is used to instruct the vehicle-mounted system to upgrade the firmware of each unit to be upgraded based on the first upgrade data.

可选的,当上述一个或者多个程序被该电子设备执行时,该电子设备还可以执行上述实施例所述的其他步骤。Optionally, when the above one or more programs are executed by the electronic device, the electronic device may also perform other steps described in the above embodiments.

本发明实施例提供了一种车载系统,该车辆包括如图5所示的固件升级装置。An embodiment of the present invention provides a vehicle-mounted system, and the vehicle includes a firmware upgrade device as shown in FIG. 5 .

本发明实施例提供了一种检测设备,该车辆包括如图4所示的固件升级装置。An embodiment of the present invention provides a detection device, and the vehicle includes a firmware upgrade device as shown in FIG. 4 .

可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.

描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of a unit does not constitute a limitation of the unit itself under certain circumstances.

本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described herein above may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), System on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

本发明实施例提供的人机交互系统固件升级方法,首先获取车载系统对应的第一升级数据,然后将第一升级数据发送至车载系统,并发送升级指令至车载系统,以使车载系统基于第一升级数据进行固件升级。与相关技术相比,提供了一种固件升级方法,解决了一些车载系统无法自动进行固件升级,进而导致耗费人力,升级准确性低,影响生产效率的问题,提高了升级准确性,降低生产成本,提高生产效率。In the firmware upgrade method of the human-computer interaction system provided by the embodiment of the present invention, the first upgrade data corresponding to the vehicle-mounted system is obtained first, and then the first upgrade data is sent to the vehicle-mounted system, and an upgrade command is sent to the vehicle-mounted system, so that the vehicle-mounted system is based on the first upgrade data. 1. Upgrade data for firmware upgrade. Compared with related technologies, it provides a firmware upgrade method, which solves the problems that some vehicle-mounted systems cannot automatically perform firmware upgrades, which leads to labor-intensive, low upgrade accuracy, and affects production efficiency, improves upgrade accuracy, and reduces production costs. ,Increase productivity.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While preferred embodiments of the present application have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be interpreted to cover the preferred embodiment and all changes and modifications that fall within the scope of the application.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies thereof, the present invention also intends to include these modifications and variations.

Claims (11)

1. A firmware upgrading method is applied to a detection end and is characterized by comprising the following steps:
detecting a unit to be upgraded in a vehicle-mounted system;
acquiring first upgrading data corresponding to the vehicle-mounted system according to the unit to be upgraded, wherein the first upgrading data comprises an upgrading file and an upgrading list, the upgrading list is used for indicating the unit to be upgraded, and the upgrading file is used for upgrading the unit to be upgraded;
and sending the first upgrading data and a first upgrading instruction to the vehicle-mounted system, wherein the upgrading instruction is used for instructing the vehicle-mounted system to upgrade the firmware of each unit to be upgraded based on the first upgrading data.
2. The method of claim 1, wherein after sending the first upgrade data and the first upgrade instructions to the in-vehicle system, comprising:
receiving upgrading result information sent by the vehicle-mounted system;
if the upgrading result information indicates that upgrading fails, determining second upgrading data according to the upgrading result information and the first upgrading data, wherein the second upgrading data are upgrading data corresponding to the unit to be upgraded which fails to be upgraded in the first upgrading data;
and sending the second upgrading data and the second upgrading instruction to the vehicle-mounted system so as to upgrade the unit to be upgraded which fails to be upgraded again.
3. A firmware upgrading method is applied to a vehicle-mounted system and is characterized by comprising the following steps:
receiving first upgrading data and a first upgrading instruction sent by a detection end, wherein the first upgrading data comprise upgrading files and upgrading lists, the upgrading lists are used for indicating units to be upgraded, and the upgrading files are used for upgrading the units to be upgraded;
and upgrading the firmware of each unit to be upgraded according to the first upgrading instruction and the first upgrading data.
4. The method of claim 3, wherein after the firmware upgrade is performed on each of the units to be upgraded according to the upgrade instructions and the upgrade file, the method further comprises:
generating upgrade result information, and if the firmware fails to be upgraded, adding an upgrade failure list in the upgrade result information, wherein the upgrade failure list comprises the unit to be upgraded which fails to be upgraded;
and sending the upgrading result information to the detection end.
5. The method of claim 4, wherein the method further comprises:
receiving second upgrading data and a second upgrading instruction sent by a detection end, wherein the second upgrading data are upgrading data corresponding to the unit to be upgraded, which fails to be upgraded, in the first upgrading data;
and upgrading the firmware of the unit to be upgraded in the upgrading failure list according to the second upgrading instruction and the second upgrading data.
6. A firmware upgrade apparatus, comprising:
the detection unit is used for detecting a unit to be upgraded in the vehicle-mounted system;
the obtaining unit is used for obtaining first upgrading data corresponding to the vehicle-mounted system according to the unit to be upgraded, the first upgrading data comprises an upgrading file and an upgrading list, the upgrading list is used for determining the unit to be upgraded, and the upgrading file is used for upgrading the unit to be upgraded;
and the sending unit is used for sending the first upgrading data and a first upgrading instruction to the vehicle-mounted system, and the upgrading instruction is used for indicating the vehicle-mounted system to upgrade the firmware of each unit to be upgraded based on the first upgrading data.
7. A firmware upgrade apparatus, comprising:
the device comprises a receiving unit, a detecting end and a processing unit, wherein the receiving unit is used for receiving first upgrading data and a first upgrading instruction sent by the detecting end, the first upgrading data comprises an upgrading file and an upgrading list, the upgrading list is used for determining a unit to be upgraded, and the upgrading file is used for upgrading the unit to be upgraded;
and the upgrading unit is used for upgrading the firmware of each unit to be upgraded according to the first upgrading instruction and the first upgrading data.
8. An electronic device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-2 or 3-5.
9. A computer-readable storage medium having computer program instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1-2 or 3-5.
10. An in-vehicle system characterized by comprising the firmware upgrading apparatus according to claim 7.
11. A detection apparatus comprising the firmware upgrade device according to claim 6.
CN202210669773.3A 2022-06-14 2022-06-14 Firmware upgrade method, device, equipment, medium and vehicle-mounted system Pending CN115469899A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210669773.3A CN115469899A (en) 2022-06-14 2022-06-14 Firmware upgrade method, device, equipment, medium and vehicle-mounted system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210669773.3A CN115469899A (en) 2022-06-14 2022-06-14 Firmware upgrade method, device, equipment, medium and vehicle-mounted system

Publications (1)

Publication Number Publication Date
CN115469899A true CN115469899A (en) 2022-12-13

Family

ID=84363801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210669773.3A Pending CN115469899A (en) 2022-06-14 2022-06-14 Firmware upgrade method, device, equipment, medium and vehicle-mounted system

Country Status (1)

Country Link
CN (1) CN115469899A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116466973A (en) * 2023-04-24 2023-07-21 合芯科技有限公司 Multi-concurrency firmware upgrading method, system, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918102A (en) * 2019-01-30 2019-06-21 深圳市赛格车圣科技有限公司 Car body control module upgrade method and device
CN109976778A (en) * 2017-12-27 2019-07-05 比亚迪股份有限公司 The Oftware updating method and system, host computer and storage medium of vehicle electric product
CN113687847A (en) * 2021-07-30 2021-11-23 联合汽车电子有限公司 Information processing method and device, storage medium, detection instrument and vehicle
CN113918197A (en) * 2021-12-13 2022-01-11 苏州浪潮智能科技有限公司 Firmware upgrading method, system, storage medium and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976778A (en) * 2017-12-27 2019-07-05 比亚迪股份有限公司 The Oftware updating method and system, host computer and storage medium of vehicle electric product
CN109918102A (en) * 2019-01-30 2019-06-21 深圳市赛格车圣科技有限公司 Car body control module upgrade method and device
CN113687847A (en) * 2021-07-30 2021-11-23 联合汽车电子有限公司 Information processing method and device, storage medium, detection instrument and vehicle
CN113918197A (en) * 2021-12-13 2022-01-11 苏州浪潮智能科技有限公司 Firmware upgrading method, system, storage medium and equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116466973A (en) * 2023-04-24 2023-07-21 合芯科技有限公司 Multi-concurrency firmware upgrading method, system, computer equipment and storage medium
CN116466973B (en) * 2023-04-24 2024-04-05 合芯科技有限公司 Multi-concurrency firmware upgrading method, system, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US11989535B2 (en) Simulation method and recording medium
CN109918302B (en) Vehicle-mounted automatic testing method and device, vehicle-mounted multimedia system and automobile
CN111338662A (en) Firmware upgrading method and device for slave station and terminal
WO2022041720A1 (en) Uds-based communication method, ecu and upper computer
CN112015489A (en) Management method, device, storage medium and system for vehicle-mounted software
CN103605359A (en) Automobile diagnostic system and method
CN112560390A (en) Method, device and equipment for automatically generating ignore bin in cross coverage point
CN114356760A (en) A CANFD controller software remote upgrade test method and system based on L3 vehicle architecture
CN115469899A (en) Firmware upgrade method, device, equipment, medium and vehicle-mounted system
CN116893912A (en) Inter-core communication method, system, device, equipment and medium for vehicle-mounted software
CN117435220A (en) OTA upgrade method, device, electronic equipment and storage medium based on programming mode
KR20200062594A (en) Operating method in debugging system for vehicle
CN111625326B (en) Task pipeline execution method and device and electronic equipment
CN112767565A (en) OBU issuing and activating method and device based on vehicle machine and electronic equipment
CN117331719A (en) Operation method, device, vehicle and storage medium of a vehicle-mounted system
EP4365733A1 (en) Management system, method and apparatus, and device and storage medium
CN114896087B (en) Method, device, equipment and storage medium for realizing vehicle functions
CN113096269B (en) Information acquisition method and device, electronic equipment and storage medium
EP3637262A1 (en) Verification device for vehicle control device and vehicle control device
CN115743002A (en) Method and device for monitoring abnormal restart of vehicle-mounted instrument
CN116737270A (en) Equipment, system and method for rapid adaptation of instrument function
CN116804932A (en) Vehicle software identification recognition method and device, electronic equipment and storage medium
CN116165993A (en) Testing device, method and system for intelligent cabin of vehicle
CN118870346A (en) Vehicle remote upgrade method, vehicle upgrade platform, vehicle, medium and product
CN116017380A (en) Bluetooth module upgrading method and device based on Tbox platform and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination