[go: up one dir, main page]

CN108334282A - Method and device for downloading program file of automobile electronic control unit - Google Patents

Method and device for downloading program file of automobile electronic control unit Download PDF

Info

Publication number
CN108334282A
CN108334282A CN201711466122.XA CN201711466122A CN108334282A CN 108334282 A CN108334282 A CN 108334282A CN 201711466122 A CN201711466122 A CN 201711466122A CN 108334282 A CN108334282 A CN 108334282A
Authority
CN
China
Prior art keywords
program file
electronic control
control unit
download
vehicle electronic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711466122.XA
Other languages
Chinese (zh)
Other versions
CN108334282B (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.)
Ningde Shidai Runzhi Software Technology Co ltd
Original Assignee
Contemporary Amperex 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 Contemporary Amperex Technology Co Ltd filed Critical Contemporary Amperex Technology Co Ltd
Priority to CN201711466122.XA priority Critical patent/CN108334282B/en
Publication of CN108334282A publication Critical patent/CN108334282A/en
Application granted granted Critical
Publication of CN108334282B publication Critical patent/CN108334282B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0635Configuration or reconfiguration of storage systems by changing the path, e.g. traffic rerouting, path reconfiguration
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明提供了一种汽车电子控制单元的程序文件下载方法和装置,涉及电子电气领域。该汽车电子控制单元的程序文件下载方法,包括:获取车载程序文件与汽车电子控制单元的闪存中的单位存储块的映射关系;下载车载程序文件至汽车电子控制单元的闪存中的单位存储块;获取中断写入单位存储块,中断写入单位存储块为车载程序文件下载过程中断时正被写入的单位存储块;基于中断写入单位存储块以及映射关系,得到车载程序文件中需要继续下载的数据部分;将车载程序文件中需要继续下载的数据部分下载至汽车电子控制单元的闪存中的单位存储块。采用本发明实施例中的技术方案能够减少出现中断情况下的车载程序文件下载所花费的时间。

The invention provides a method and device for downloading a program file of an automobile electronic control unit, and relates to the field of electronics and electricity. The program file downloading method of the automotive electronic control unit includes: obtaining the mapping relationship between the vehicle-mounted program file and the unit storage block in the flash memory of the automotive electronic control unit; downloading the vehicle-mounted program file to the unit storage block in the flash memory of the automotive electronic control unit; Obtain the interrupt write unit storage block, the interrupt write unit storage block is the unit storage block being written when the download process of the vehicle program file is interrupted; based on the interrupt write unit storage block and the mapping relationship, it is obtained that the vehicle program file needs to continue downloading the data part; download the data part that needs to be downloaded continuously in the vehicle program file to the unit storage block in the flash memory of the vehicle electronic control unit. Adopting the technical solution in the embodiment of the present invention can reduce the time spent on downloading the vehicle program file in case of interruption.

Description

汽车电子控制单元的程序文件下载方法和装置Method and device for downloading program files of automotive electronic control unit

技术领域technical field

本发明涉及电子电气领域,尤其涉及一种汽车电子控制单元的程序文件下载方法和装置。The invention relates to the field of electronics and electricity, in particular to a method and device for downloading program files of an automotive electronic control unit.

背景技术Background technique

电子控制单元(Electronic Control Unit,ECU)在车辆上的应用非常广泛。电子控制单元可以根据采集的各项参数信息,结合存储在电子控制单元的程序进行运算。将运算的结果转变为控制信号,从而实现电子控制单元对车辆的整体控制。Electronic Control Units (Electronic Control Units, ECUs) are widely used in vehicles. The electronic control unit can perform calculations according to the collected parameter information in combination with the program stored in the electronic control unit. The result of the calculation is converted into a control signal, so as to realize the overall control of the vehicle by the electronic control unit.

为了满足用户对车辆控制功能的各种要求,电子控制单元需要下载各类程序。在下载程序文件的过程中,可能会出现电源掉电或者报文丢失等异常情况。若出现上述异常情况,程序文件下载收到影响,下载得到的程序文件可能不完整或出现错误,导致程序文件无法运行,也就无法实现程序文件运行产生的功能。需要对整个程序文件重新进行下载。比如:若程序文件的大小为1MB,利用控制器局域网络(Controller Area Network,CAN)总线传输报文,设定每10毫秒收到一帧报文,则将大小为1MB的程序文件全部下载下来大约需要50分钟至60分钟。重新下载整个程序文件花费的时间较长。而且,若出现多次异常情况,则需要多次对整个程序文件重新进行下载。延长了程序文件下载所花费的时间。In order to meet the various requirements of users for vehicle control functions, the electronic control unit needs to download various programs. During the process of downloading program files, abnormal situations such as power failure or message loss may occur. If the above-mentioned abnormal situation occurs, the download of the program file will be affected, and the downloaded program file may be incomplete or have errors, resulting in the failure of the program file to run, and the function generated by the operation of the program file cannot be realized. The entire program file needs to be downloaded again. For example: if the size of the program file is 1MB, use the controller area network (Controller Area Network, CAN) bus to transmit the message, set to receive a frame of message every 10 milliseconds, then download all the program files with the size of 1MB It takes about 50 minutes to 60 minutes. It takes a long time to re-download the entire program file. Moreover, if multiple abnormal situations occur, the entire program file needs to be re-downloaded multiple times. Increased the time it takes for program files to download.

发明内容Contents of the invention

本发明实施例提供了一种汽车电子控制单元的程序文件下载方法和装置,能够减少出现中断情况下的车载程序文件下载所花费的时间。Embodiments of the present invention provide a method and device for downloading a program file of an automotive electronic control unit, which can reduce the time spent on downloading a vehicle program file when an interruption occurs.

第一方面,本发明实施例提供了一种汽车电子控制单元的程序文件下载方法,包括:获取车载程序文件与汽车电子控制单元的闪存中的单位存储块的映射关系;下载车载程序文件至汽车电子控制单元的闪存中的单位存储块;获取中断写入单位存储块,中断写入单位存储块为车载程序文件下载过程中断时正被写入的单位存储块;基于中断写入单位存储块以及映射关系,得到车载程序文件中需要继续下载的数据部分;将车载程序文件中需要继续下载的数据部分下载至汽车电子控制单元的闪存中的单位存储块。In the first aspect, an embodiment of the present invention provides a method for downloading a program file of an automotive electronic control unit, comprising: obtaining the mapping relationship between the vehicle-mounted program file and the unit storage block in the flash memory of the automotive electronic control unit; downloading the vehicle-mounted program file to the vehicle The unit storage block in the flash memory of the electronic control unit; obtain the interrupt write unit storage block, the interrupt write unit storage block is the unit storage block being written when the vehicle program file download process is interrupted; write the unit storage block based on the interrupt and The mapping relationship obtains the data part that needs to be continuously downloaded in the vehicle program file; and downloads the data part that needs to be continuously downloaded in the vehicle program file to the unit storage block in the flash memory of the vehicle electronic control unit.

第二方面,本发明实施例提供了一种汽车电子控制单元的程序文件下载装置,包括:映射获取模块,被配置为获取车载程序文件与汽车电子控制单元的闪存中的单位存储块的映射关系;下载模块,被配置为下载车载程序文件至汽车电子控制单元的闪存中的单位存储块;中断获取模块,被配置为获取中断写入单位存储块,中断写入单位存储块为车载程序文件下载过程中断时正被写入的单位存储块;查找模块,被配置为基于中断写入单位存储块以及映射关系,得到车载程序文件中需要继续下载的数据部分;下载模块,还配置为将车载程序文件中需要继续下载的数据部分下载至汽车电子控制单元的闪存中的单位存储块。In a second aspect, an embodiment of the present invention provides a program file downloading device for an automotive electronic control unit, including: a mapping acquisition module configured to acquire a mapping relationship between an on-vehicle program file and a unit storage block in the flash memory of the automotive electronic control unit ; The download module is configured to download the vehicle program file to the unit storage block in the flash memory of the automotive electronic control unit; the interrupt acquisition module is configured to obtain the interrupt write unit storage block, and the interrupt write unit storage block is the vehicle program file download The unit storage block being written when the process is interrupted; the search module is configured to obtain the data part that needs to be downloaded continuously in the vehicle program file based on the interrupt write unit storage block and the mapping relationship; the download module is also configured to convert the vehicle program The part of the data that needs to be downloaded in the file is downloaded to the unit storage block in the flash memory of the automotive electronic control unit.

本发明实施例提供了一种汽车电子控制单元的程序文件下载方法和装置。可在下载车载程序文件至汽车电子控制单元发生中断的情况下,获取中断写入单位存储块,根据车载程序文件与汽车电子控制单元的内存中的单位存储块的映射关系,下载车载程序文件中因为中断需要继续下载的数据部分。在本发明实施例中,可以将车载程序文件下载过程中未有效下载至汽车电子控制单元中的车载程序文件的数据部分,重新下载至汽车电子控制单元。从而避免在下载车载程序文件发生中断,而进行整个车载程序文件的下载刷写流程。进而减少中断情况下的车载程序文件下载所花费的时间。Embodiments of the present invention provide a method and device for downloading program files of an automotive electronic control unit. When the downloading of the vehicle program file to the vehicle electronic control unit is interrupted, the interrupt write unit storage block can be obtained, and the vehicle program file can be downloaded according to the mapping relationship between the vehicle program file and the unit storage block in the memory of the vehicle electronic control unit. The part of the data that needs to continue to be downloaded because of the interruption. In the embodiment of the present invention, the data part of the vehicle program file that is not effectively downloaded to the vehicle electronic control unit during the download process of the vehicle program file can be re-downloaded to the vehicle electronic control unit. In this way, it is avoided that the downloading of the vehicle-mounted program file is interrupted, and the process of downloading and flashing the entire vehicle-mounted program file is carried out. Further, the time spent on downloading the vehicle program file in the case of interruption is reduced.

附图说明Description of drawings

从下面结合附图对本发明的具体实施方式的描述中可以更好地理解本发明其中,相同或相似的附图标记表示相同或相似的特征。The present invention can be better understood from the following description of specific embodiments of the present invention in conjunction with the accompanying drawings, wherein the same or similar reference numerals represent the same or similar features.

图1为本发明一实施例提供的一种汽车电子控制单元的程序文件下载方法;Fig. 1 is a kind of program file downloading method of automobile electronic control unit provided by an embodiment of the present invention;

图2为本发明实施例中一种汽车电子控制单元的闪存中的单位存储块的划分示意图;2 is a schematic diagram of division of unit storage blocks in a flash memory of an automotive electronic control unit in an embodiment of the present invention;

图3为本发明另一实施例中汽车电子控制单元的程序文件下载方法的流程图;Fig. 3 is the flow chart of the program file downloading method of automobile electronic control unit in another embodiment of the present invention;

图4为本发明又一实施例中汽车电子控制单元的程序文件下载方法的流程图;Fig. 4 is the flow chart of the program file downloading method of automobile electronic control unit in another embodiment of the present invention;

图5为本发明再一实施例中汽车电子控制单元的程序文件下载方法的流程图;5 is a flowchart of a method for downloading a program file of an automotive electronic control unit in another embodiment of the present invention;

图6为本发明一实施例中一种汽车电子控制单元的程序文件下载装置的结构示意图;6 is a schematic structural diagram of a program file downloading device for an automotive electronic control unit in an embodiment of the present invention;

图7为本发明另一实施例中一种汽车电子控制单元的程序文件下载装置的结构示意图;7 is a schematic structural diagram of a program file downloading device for an automotive electronic control unit in another embodiment of the present invention;

图8为本发明又一实施例中一种汽车电子控制单元的程序文件下载装置的结构示意图;8 is a schematic structural diagram of a program file downloading device for an automotive electronic control unit in another embodiment of the present invention;

图9为本发明又一实施例中一种汽车电子控制单元的程序文件下载装置的结构示意图。FIG. 9 is a schematic structural diagram of a program file downloading device for an automotive electronic control unit in yet another embodiment of the present invention.

具体实施方式Detailed ways

下面将详细描述本发明的各个方面的特征和示例性实施例。在下面的详细描述中,提出了许多具体细节,以便提供对本发明的全面理解。但是,对于本领域技术人员来说很明显的是,本发明可以在不需要这些具体细节中的一些细节的情况下实施。下面对实施例的描述仅仅是为了通过示出本发明的示例来提供对本发明的更好的理解。本发明决不限于下面所提出的任何具体配置和算法,而是在不脱离本发明的精神的前提下覆盖了元素、部件和算法的任何修改、替换和改进。在附图和下面的描述中,没有示出公知的结构和技术,以便避免对本发明造成不必要的模糊。Features and exemplary embodiments of various aspects of the invention will be described in detail below. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by showing examples of the present invention. The present invention is by no means limited to any specific configurations and algorithms presented below, but covers any modification, substitution and improvement of elements, components and algorithms without departing from the spirit of the invention. In the drawings and the following description, well-known structures and techniques have not been shown in order to avoid unnecessarily obscuring the present invention.

本发明实施例提供一种汽车电子控制单元的程序文件下载方法。在一个示例中,可应用于汽车中的汽车电子控制单元(Electronic Control Unit,ECU)通过车载终端从远端服务器下载车载程序文件的场景中。或者,应用于具有汽车电子控制单元的车载终端从远端服务器下载车载程序文件的场景中。其中,车载终端与远端服务器可无线通信连接。比如,车载终端与远端服务器通过数据网络、无线保真(Wireless Fidelity,WiFi)、蓝牙或紫蜂等无线通信技术进行通信,实现数据传输。车载终端与汽车电子控制单元可通过有线通信或无线通信实现数据传输。An embodiment of the present invention provides a method for downloading a program file of an automotive electronic control unit. In one example, it can be applied to a scenario where an electronic control unit (Electronic Control Unit, ECU) in a car downloads a car program file from a remote server through a car terminal. Or, it is applied to a scenario where a vehicle-mounted terminal with a vehicle electronic control unit downloads a vehicle-mounted program file from a remote server. Wherein, the vehicle terminal and the remote server can be connected through wireless communication. For example, the vehicle-mounted terminal communicates with the remote server through wireless communication technologies such as a data network, Wireless Fidelity (Wi-Fi), Bluetooth, or Zigbee to realize data transmission. The vehicle-mounted terminal and the vehicle electronic control unit can realize data transmission through wired communication or wireless communication.

在另一个示例中,本发明实施例提供的车载程序文件下载方法和装置,也可应用于携带有车载程序文件的硬件设备与车载终端有线连接,将车载程序文件传输给车载终端,将车载程序文件从车载终端下载至汽车电子控制单元。车载终端与汽车电子控制单元可通过有线通信或无线通信实现数据传输。In another example, the method and device for downloading vehicle-mounted program files provided by the embodiments of the present invention can also be applied to a wired connection between a hardware device carrying a vehicle-mounted program file and a vehicle-mounted terminal, to transmit the vehicle-mounted program file to the vehicle-mounted terminal, and to download the vehicle-mounted program file The file is downloaded from the vehicle terminal to the vehicle electronic control unit. The vehicle-mounted terminal and the vehicle electronic control unit can realize data transmission through wired communication or wireless communication.

图1为本发明一实施例提供的一种汽车电子控制单元的程序文件下载方法。如图1所示,汽车电子控制单元的程序文件下载方法包括步骤101至步骤105Fig. 1 is a method for downloading a program file of an electronic control unit of an automobile provided by an embodiment of the present invention. As shown in Figure 1, the program file downloading method of automobile electronic control unit comprises step 101 to step 105

在步骤101中,获取车载程序文件与汽车电子控制单元的闪存中的单位存储块的映射关系。In step 101, the mapping relationship between the vehicle program file and the unit storage block in the flash memory of the vehicle electronic control unit is obtained.

汽车电子控制单元中的车载程序文件存储在闪存中。在下载车载程序文件之前,可先获取汽车电子控制单元的闪存中的单位存储块,并根据车载程序文件的大小,获取车载程序文件与单位存储块的对应关系。不同大小的车载程序文件占用单位存储块的数目也不同。通过车载程序文件与单位存储块的对应关系,可得每个单位存储块存储的是车载程序文件的哪一部分。On-board program files in the car's electronic control unit are stored in flash memory. Before downloading the vehicle program file, the unit storage block in the flash memory of the vehicle electronic control unit can be obtained first, and the corresponding relationship between the vehicle program file and the unit storage block can be obtained according to the size of the vehicle program file. Vehicle-mounted program files of different sizes occupy different numbers of unit storage blocks. According to the corresponding relationship between the on-vehicle program file and the unit storage block, which part of the on-vehicle program file is stored in each unit storage block can be obtained.

在一个示例中,单位存储块可以为汽车电子控制单元的闪存的最小擦写单位。在另一个示例中,单位存储块也可以为汽车电子控制单元的闪存的最小擦写单位的整数倍。In one example, the unit storage block may be the minimum erase/write unit of the flash memory of the automotive electronic control unit. In another example, the unit storage block may also be an integer multiple of the minimum erasable unit of the flash memory of the automotive electronic control unit.

在一个示例中,车载程序文件可以是汽车新下载的控制应用的程序文件,也可以是汽车已有的控制应用的更新程序文件。从形式上来说,车载程序文件可以为s19文件或hex文件。In an example, the vehicle program file may be a program file of a control application newly downloaded by the vehicle, or an update program file of an existing control application of the vehicle. In terms of form, the vehicle program file can be an s19 file or a hex file.

在步骤102中,下载车载程序文件至汽车电子控制单元的闪存中的单位存储块。In step 102, download the vehicle program file to the unit storage block in the flash memory of the vehicle electronic control unit.

在一个示例中,若车载程序文件较小,则可以将整个车载程序文件直接下载至汽车电子控制单元的闪存中的单位存储块。In one example, if the vehicle program file is relatively small, the entire vehicle program file can be directly downloaded to a unit storage block in the flash memory of the vehicle electronic control unit.

在另一个示例中,若车载程序文件较大,则可以将车载程序文件分割为多个数据包,将多个数据包依次下载至汽车电子控制单元的内存中的单位存储块。In another example, if the vehicle-mounted program file is large, the vehicle-mounted program file can be divided into multiple data packages, and the multiple data packages are sequentially downloaded to the unit storage block in the memory of the vehicle electronic control unit.

在一个示例中,可使用无线传输技术将车载程序文件下载至汽车电子控制单元的闪存中的单位存储块,不需要专业操作人员将携带有车载程序文件的硬件设备与汽车的接口连接,从而为了提高车载程序文件下载的效率。上述实施例中下载车载程序文件至汽车电子控制单元的闪存中的单位存储块,具体可以实现为通过车载终端,从远端服务器下载车载程序至汽车电子控制单元的闪存中的单位存储块。也就是说,车载终端可从远端服务器下载车载程序文件,汽车电子控制单元可从车载终端下载车载程序文件。比如,汽车电子控制单元可通过统一诊断服务(UDS,Unified Diagnostic Service)或通用测量与标定协议(XCP,Universal Measurement and Calibration Protocol)等下载协议与车载终端进行通信。In one example, the vehicle-mounted program file can be downloaded to the unit storage block in the flash memory of the electronic control unit of the vehicle by using wireless transmission technology, and professional operators are not required to connect the hardware device carrying the vehicle-mounted program file with the interface of the vehicle, so as to Improve the efficiency of downloading in-vehicle program files. In the above embodiment, downloading the vehicle-mounted program file to the unit storage block in the flash memory of the vehicle electronic control unit can be specifically implemented as downloading the vehicle-mounted program from the remote server to the unit storage block in the flash memory of the vehicle electronic control unit through the vehicle-mounted terminal. That is to say, the vehicle-mounted terminal can download the vehicle-mounted program file from the remote server, and the vehicle electronic control unit can download the vehicle-mounted program file from the vehicle-mounted terminal. For example, the automotive electronic control unit can communicate with the vehicle terminal through download protocols such as Unified Diagnostic Service (UDS) or Universal Measurement and Calibration Protocol (XCP, Universal Measurement and Calibration Protocol).

在一个示例中,车载程序文件也可以是经过加密的车载程序文件。In an example, the vehicle program file may also be an encrypted vehicle program file.

在步骤103中,获取中断写入单位存储块。In step 103, the interrupt write unit storage block is obtained.

在下载车载程序文件至汽车电子控制单元的闪存中的单位存储模块的过程中,可能会出现中断情况。比如汽车电子控制单元的电源掉电,或者,汽车电子控制单元接收的承载车载程序文件的报文丢失,都会引起下载过程的中断。在下载过程中断时,汽车电子控制单元可能已经下载到了车载程序文件的部分内容,中断写入单位存储块为车载程序文件下载过程中断时正被写入的单位存储块。获取在车载程序文件下载过程中断时正被写入的单位存储块,以便于后续根据中断写入单元存储块,继续进行下载。Interruptions may occur during the download of on-board program files to the unit memory module in the flash memory of the vehicle electronic control unit. For example, the power supply of the electronic control unit of the vehicle is powered off, or the message carrying the program file on the vehicle received by the electronic control unit of the vehicle is lost, which will cause the interruption of the downloading process. When the download process is interrupted, the vehicle electronic control unit may have downloaded part of the vehicle program file, and the interrupted writing unit storage block is the unit storage block being written when the vehicle program file download process is interrupted. Acquiring the unit storage block being written when the downloading process of the vehicle program file is interrupted, so that the subsequent downloading can be continued by writing the unit storage block according to the interruption.

在步骤104中,基于中断写入单位存储块以及映射关系,得到车载程序文件中需要继续下载的数据部分。In step 104, based on the interrupt write unit storage block and the mapping relationship, the data part in the vehicle program file that needs to be downloaded continuously is obtained.

在步骤101中获取到了车载程序文件与汽车电子控制单元的闪存中的单位存储块的映射关系,因此可以根据该映射关系,查找到在映射关系中与中断写入单位存储块对应的车载程序文件的数据部分。与中断写入单位存储块对应的车载程序文件的数据部分,以及中断写入单位存储块之后的单位存储块可为车载程序文件中需要继续下载的数据部分。In step 101, the mapping relationship between the vehicle-mounted program file and the unit storage block in the flash memory of the automotive electronic control unit can be obtained, so the vehicle-mounted program file corresponding to the interrupt write unit storage block in the mapping relationship can be found according to the mapping relationship the data portion of the . The data portion of the on-vehicle program file corresponding to the interrupted write unit storage block, and the unit storage block after the interrupted write unit storage block may be the data portion in the on-vehicle program file that needs to be continuously downloaded.

在步骤105中,将车载程序文件中需要继续下载的数据部分下载至汽车电子控制单元的闪存中的单位存储块。In step 105, the data part in the vehicle program file that needs to be downloaded continuously is downloaded to the unit storage block in the flash memory of the vehicle electronic control unit.

比如,图2为本发明实施例中一种汽车电子控制单元的闪存中的单位存储块的划分示意图。如图2所示,汽车电子控制单元的闪存划分为5个单位存储块,分别为单位存储块1、单位存储块2、单位存储块3、单位存储块4和单位存储块5。每个单位存储块可看作闪存的一个分区。车载程序文件与单位存储块对应,可划分为数据部分1、数据部分2、数据部分3、数据部分4和数据部分5。数据部分1至数据部分5可组合成整个车载程序文件。其中,数据部分1与单位存储块1对应,数据部分2与单位存储块2对应,数据部分3与单位存储块3对应,数据部分4与单位存储块4对应,数据部分5与单位存储块5对应。若下载过程中断时,中断写入单位存储块为单位存储块4,则数据部分4和数据部分5需要继续下载。For example, FIG. 2 is a schematic diagram of division of unit storage blocks in a flash memory of an automotive electronic control unit in an embodiment of the present invention. As shown in Figure 2, the flash memory of the automotive electronic control unit is divided into five unit storage blocks, which are unit storage block 1, unit storage block 2, unit storage block 3, unit storage block 4 and unit storage block 5. Each unit memory block can be regarded as a partition of flash memory. The vehicle program file corresponds to the unit storage block, and can be divided into data part 1, data part 2, data part 3, data part 4 and data part 5. Data part 1 to data part 5 can be combined into an entire vehicle program file. Wherein, the data part 1 corresponds to the unit storage block 1, the data part 2 corresponds to the unit storage block 2, the data part 3 corresponds to the unit storage block 3, the data part 4 corresponds to the unit storage block 4, and the data part 5 corresponds to the unit storage block 5 correspond. If the downloading process is interrupted, the interrupted writing unit storage block is the unit storage block 4, then the data part 4 and the data part 5 need to continue downloading.

在本发明实施例中,可以将车载程序文件下载过程中未有效下载至汽车电子控制单元中的车载程序文件的数据部分,重新下载至汽车电子控制单元。从而避免在下载车载程序文件发生中断,而进行整个车载程序文件的下载刷写流程。进而减少中断情况下的车载程序文件下载所花费的时间。In the embodiment of the present invention, the data part of the vehicle program file that is not effectively downloaded to the vehicle electronic control unit during the download process of the vehicle program file can be re-downloaded to the vehicle electronic control unit. In this way, it is avoided that the downloading of the vehicle-mounted program file is interrupted, and the process of downloading and flashing the entire vehicle-mounted program file is carried out. Further, the time spent on downloading the vehicle program file in the case of interruption is reduced.

图3为本发明另一实施例中汽车电子控制单元的程序文件下载方法的流程图。图3与图1的不同之处在于,图1中的步骤104可具体细化为图3中的步骤1041和步骤1042,图1中的步骤105可具体细化为图3中的步骤1051和步骤1052,图3中的汽车电子控制单元的程序文件下载方法还可包括步骤106。FIG. 3 is a flow chart of a method for downloading program files of an automotive electronic control unit in another embodiment of the present invention. The difference between Fig. 3 and Fig. 1 is that step 104 in Fig. 1 can be specifically refined as step 1041 and step 1042 in Fig. 3, and step 105 in Fig. 1 can be specifically refined as step 1051 and step 1042 in Fig. 3 Step 1052 , the method for downloading the program file of the vehicle electronic control unit in FIG. 3 may also include step 106 .

在步骤1041中,基于中断写入单位存储块,在映射关系中查找与中断写入单位存储块的起始地址对应的车载程序文件的数据部分。In step 1041, based on the interrupt write unit storage block, the data part of the vehicle program file corresponding to the start address of the interrupt write unit storage block is searched in the mapping relationship.

在一个示例中,上述实施例中的映射关系可包括车载程序文件的各个数据部分与汽车电子控制单元的闪存中的各个单位存储块的起始地址的对应关系。已知中断写入单元存储块,则可根据映射关系,确定需要继续下载的数据部分。In one example, the mapping relationship in the above embodiment may include the corresponding relationship between each data part of the vehicle program file and the start address of each unit storage block in the flash memory of the vehicle electronic control unit. If it is known that the storage block of the writing unit is interrupted, the data part that needs to be downloaded continuously can be determined according to the mapping relationship.

可为单位存储块预先设置标识,使不同的单位存储块具有不同的标识,以便于记录和查找。单位存储块的标识可为编号,也可为该单位存储块的起始地址。The identifier can be preset for the unit storage block, so that different unit storage blocks have different identifiers for easy recording and searching. The identifier of the unit storage block may be a serial number, or may be the starting address of the unit storage block.

在步骤1042中,将与中断写入单位存储块的起始地址对应的车载程序文件的数据部分及之后的数据部分,作为车载程序文件中需要继续下载的数据部分。In step 1042, the data portion of the on-vehicle program file corresponding to the start address of the interrupt write unit storage block and the subsequent data portion are taken as the data portion of the on-vehicle program file that needs to be downloaded continuously.

与中断写入单元存储块的起始地址对应的车载程序文件的数据部分可能已经写入中断写入单元存储块,但还未完全写入。已经写入中断写入单元存储块的数据也属于需要继续下载的数据部分。将与中断写入单位存储块的起始地址对应的车载程序文件的数据部分及之后的数据部分,作为需要继续下载的数据部分。The data portion of the vehicle program file corresponding to the start address of the interrupt writing unit storage block may have been written into the interrupt write unit storage block, but not completely written. The data that has been written into the storage block of the interrupted writing unit also belongs to the data part that needs to be downloaded continuously. The data portion of the on-vehicle program file corresponding to the start address of the interruption writing unit storage block and the subsequent data portion are taken as the data portion that needs to be downloaded continuously.

在步骤1051中,对中断写入单位存储块进行擦除。In step 1051, the interrupt write unit storage block is erased.

由于中断写入单位存储块还没有写入完毕,而且单位存储块可能是汽车电子控制单元中闪存的最小擦写单位。对中断写入单位存储块进行擦除,防止将需要继续下载的数据部分写入到单位存储块中时发生数据混淆。Since the writing of the interrupted unit storage block has not been completed, and the unit storage block may be the smallest erasing unit of the flash memory in the automotive electronic control unit. Erase the interrupted write unit storage block to prevent data confusion when the data that needs to be downloaded continuously is written into the unit storage block.

在步骤1052中,将车载程序文件中需要继续下载的数据部分下载至中断写入单位存储块以及中断写入单位存储块之后的单位存储块。In step 1052, the data part in the on-vehicle program file that needs to be downloaded continuously is downloaded to the interrupted writing unit storage block and the unit storage block after the interrupted writing unit storage block.

车载程序文件中需要继续下载的数据部分包括与中断写入单位存储块的起始地址对应的车载程序文件的数据部分及之后的数据部分。与中断写入单位存储块的起始地址对应的车载程序文件的数据部分写入中断写入单位存储块,与中断写入单位存储块的起始地址对应的车载程序文件的数据部分之后的数据部分也分别对应写入中断写入单位存储块之后的单位存储块。The data part of the on-vehicle program file that needs to be continuously downloaded includes the data part of the on-vehicle program file corresponding to the start address of the interrupted writing unit storage block and the subsequent data part. The data portion of the vehicle program file corresponding to the start address of the interrupt write unit storage block is written into the interrupt write unit storage block, and the data after the data portion of the vehicle program file corresponding to the start address of the interrupt write unit storage block The parts also respectively correspond to the unit memory blocks after the writing interruption to the unit memory blocks.

在步骤106中,在将车载程序文件下载至汽车电子控制单元的闪存中的单位存储块时,记录已写入单位存储块。In step 106, when the vehicle program file is downloaded to the unit storage block in the flash memory of the vehicle electronic control unit, it is recorded that the unit storage block has been written.

为了可以更快的获取中断写入单元存储块,可以在将车载程序文件下载至汽车电子控制单元的闪存中的单位存储块时,记录已写入单位存储块。在获取中断写入单位存储块时,可以将最新记录到的已写入单位存储块,作为中断写入单位存储块。In order to obtain the interrupt write unit storage block faster, when the vehicle program file is downloaded to the unit storage block in the flash memory of the vehicle electronic control unit, it is possible to record the written unit storage block. When acquiring the interrupt write unit storage block, the latest recorded written unit storage block may be used as the interrupt write unit storage block.

在一个示例中,单位存储块均可位于汽车电子控制单元的闪存中的程序下载区中。由于下载的车载程序文件可能在传输过程中出错,造成下载的车载程序文件并不完整或出现错误。因此,在下载了车载程序文件后,可对车载程序文件进行完整性和准确性的检查。不能够立刻将下载的车载程序文件写入到汽车电子控制单元的闪存中。可在汽车电子控制单元的闪存中设置程序下载区,使程序下载区独立于汽车电子控制单元的闪存中运行程序文件的部分。对车载程序文件的检查可在程序下载区中进行。In one example, each unit memory block can be located in the program download area in the flash memory of the automotive electronic control unit. Because the downloaded vehicle program file may be wrong during the transmission process, the downloaded vehicle program file is incomplete or has errors. Therefore, after the in-vehicle program file is downloaded, the in-vehicle program file can be checked for completeness and accuracy. The downloaded on-board program file cannot be written into the flash memory of the vehicle electronic control unit immediately. The program download area can be set in the flash memory of the automotive electronic control unit, so that the program download area is independent from the part of the running program file in the flash memory of the automotive electronic control unit. The check of the vehicle program file can be carried out in the program download area.

在一个示例中,还可对中断写入单位存储块进行检测,若中断写入单位存储块为汽车电子控制单元的闪存中的首个单位存储块,则将整个车载程序文件下载至汽车电子控制单元的闪存中的单位存储块。In one example, the interrupted write unit storage block can also be detected, and if the interrupted write unit storage block is the first unit storage block in the flash memory of the automotive electronic control unit, the entire vehicle program file is downloaded to the automotive electronic control unit. A unit memory block in the unit's flash memory.

若中断写入单位存储块布置汽车电子控制单元的闪存中的首个存储块,则将与中断写入单位存储块对应的车载程序文件的数据部分以及之后的数据部分分别对应写入中断写入单位存储块以及中断写入单位存储块之后的单位存储块。If the interrupt write unit storage block arranges the first storage block in the flash memory of the automotive electronic control unit, then the data part of the vehicle-mounted program file corresponding to the interrupt write unit storage block and the subsequent data part are correspondingly written into the interrupt write The unit memory block and the unit memory block after interrupt writing the unit memory block.

图4为本发明又一实施例中汽车电子控制单元的程序文件下载方法的流程图。图4与图1的不同之处在于,图4所示的汽车电子控制单元的程序文件下载方法还可包括步骤107至步骤110。Fig. 4 is a flow chart of a method for downloading program files of an automotive electronic control unit in another embodiment of the present invention. The difference between FIG. 4 and FIG. 1 is that the method for downloading the program file of the automotive electronic control unit shown in FIG. 4 may further include steps 107 to 110 .

在步骤107中,在将车载程序文件下载至汽车电子控制单元中的过程中,回读下载至汽车电子控制单元中的车载程序文件。In step 107, during the process of downloading the vehicle program file to the vehicle electronic control unit, the vehicle program file downloaded to the vehicle electronic control unit is read back.

其中,车载程序文件包括循环冗余校验码(Cyclic Redundancy Check,CRC)。车载程序文件包括的循环冗余校验码是传输前的车载程序文件的循环冗余校验码。比如,可将循环冗余校验码放置在车载程序文件的头信息中。在下载车载程序文件的过程中,循环冗余校验码可下载至汽车电子控制单元的闪存中的首个单位存储块中。Wherein, the vehicle program file includes a cyclic redundancy check code (Cyclic Redundancy Check, CRC). The cyclic redundancy check code included in the vehicle program file is the cyclic redundancy check code of the vehicle program file before transmission. For example, the cyclic redundancy check code can be placed in the header information of the vehicle program file. In the process of downloading the vehicle program file, the cyclic redundancy check code can be downloaded to the first unit memory block in the flash memory of the vehicle electronic control unit.

循环冗余校验码主要用来检测或校验数据传输或者保存后可能出现的错误。为了避免下载得到的车载程序文件不完整或不准确,可对下载得到的车载程序文件进行循环冗余校验。The cyclic redundancy check code is mainly used to detect or verify errors that may occur after data transmission or storage. In order to avoid incomplete or inaccurate downloaded vehicle program files, a cyclic redundancy check may be performed on the downloaded vehicle program files.

在步骤108中,根据回读得到的下载至汽车电子控制单元中的车载程序文件,生成校验用循环冗余校验码。In step 108, a cyclic redundancy check code for verification is generated according to the read-back vehicle program file downloaded to the vehicle electronic control unit.

在车载程序文件下载至汽车电子控制单元的闪存的存储块的过程中,不断将下载得到的车载程序文件的数据回读,根据回读的车载程序文件,计算得到回读的车载程序文件的循环冗余校验码,即校验用循环校验码。In the process of downloading the on-board program file to the storage block of the flash memory of the automotive electronic control unit, the data of the downloaded on-board program file is continuously read back, and the cycle of the read-back on-board program file is calculated according to the read-back on-board program file Redundancy check code, that is, a cyclic check code for verification.

在步骤109中,若校验用循环冗余校验码与车载程序文件中包括的循环冗余校验码不一致,则重新下载车载程序文件。In step 109, if the checking cyclic redundancy check code is inconsistent with the cyclic redundancy check code included in the vehicle program file, re-download the vehicle program file.

若校验用循环冗余校验码与车载程序文件中包括的循环冗余校验码不一致,表示下载得到的车载程序文件与未传输前的车载程序文件不一致。也就是说,下载得到的车载程序文件是不完整和/或不准确的。If the cyclic redundancy check code used for verification is inconsistent with the cyclic redundancy check code included in the vehicle program file, it means that the downloaded vehicle program file is inconsistent with the vehicle program file before transmission. That is to say, the downloaded vehicle program file is incomplete and/or inaccurate.

若确定下载得到的车载程序文件是不完整和/或不准确的,则需要重新下载车载程序文件至汽车电子控制单元的闪存中的单位存储块。而且,不将下载得到的车载程序文件写入汽车电子控制单元的闪存中的程序运行区。还可直接删除不完整和/或不准确的下载得到的车载程序文件。If it is determined that the downloaded vehicle program file is incomplete and/or inaccurate, it is necessary to re-download the vehicle program file to the unit storage block in the flash memory of the vehicle electronic control unit. Moreover, the downloaded vehicle program file is not written into the program running area in the flash memory of the vehicle electronic control unit. Incomplete and/or inaccurately downloaded in-vehicle program files can also be directly deleted.

在步骤110中,若校验用循环冗余校验码与车载程序文件中包括的循环冗余校验码一致,则将程序下载区中下载的车载程序文件写入汽车电子控制单元的闪存中的程序运行区。In step 110, if the cyclic redundancy check code for verification is consistent with the cyclic redundancy check code included in the vehicle program file, write the vehicle program file downloaded in the program download area into the flash memory of the vehicle electronic control unit program execution area.

若校验用循环冗余校验码与车载程序文件中包括的循环冗余校验码一致,表示下载得到的车载程序文件与未传输前的车载程序文件一致。也就是说,下载得到的车载程序文件是完整且准确。If the cyclic redundancy check code used for verification is consistent with the cyclic redundancy check code included in the vehicle program file, it means that the downloaded vehicle program file is consistent with the vehicle program file before transmission. That is to say, the downloaded vehicle program file is complete and accurate.

汽车电子控制单元的闪存可包括程序下载区和程序运行区,程序下载区与程序运行区是相互独立的两个区域。其中,程序运行区运行当前汽车使用的程序文件。若确定下载得到的车载程序文件是完整、准确的,则可将下载得到的车载程序文件写入程序运行区。The flash memory of the automotive electronic control unit may include a program download area and a program running area, and the program download area and the program running area are two independent areas. Wherein, the program running area runs the program files currently used by the car. If it is determined that the downloaded vehicle program file is complete and accurate, the downloaded vehicle program file may be written into the program running area.

在一个示例中,若车载程序文件为更新程序文件等需要占用已经写入程序文件的程序运行区的部分。则可将程序运行区中运行的程序文件擦除,再将下载得到的车载程序文件写入程序运行区。可在汽车需要运行下载得到的车载程序文件时,在程序运行区运行下载得到的车载程序文件。In an example, if the vehicle-mounted program file is an update program file, etc., it needs to occupy a part of the program running area where the program file has been written. Then the program files running in the program running area can be erased, and then the downloaded vehicle program files can be written into the program running area. When the vehicle needs to run the downloaded vehicle program file, the downloaded vehicle program file can be run in the program running area.

在本发明实施例中,若下载得到的车载程序文件完整且准确,将下载得到的车载程序文件投入使用,使下载得到的车载程序文件在汽车中运行。避免将不完整和/或不准确的车载程序文件在汽车中运行,避免了汽车由于错误的车载程序文件运行产生的风险,从而提高了汽车控制的安全性。In the embodiment of the present invention, if the downloaded vehicle-mounted program file is complete and accurate, the downloaded vehicle-mounted program file is put into use, so that the downloaded vehicle-mounted program file is run in the vehicle. Avoid running incomplete and/or inaccurate vehicle-mounted program files in the vehicle, and avoid the risk of the vehicle due to the operation of wrong vehicle-mounted program files, thereby improving the safety of vehicle control.

图5为本发明再一实施例中汽车电子控制单元的程序文件下载方法的流程图。图5与图1的不同之处在于,图5所示的汽车电子控制单元的程序文件下载方法还可包括步骤111至步骤114。FIG. 5 is a flow chart of a method for downloading program files of an automotive electronic control unit in another embodiment of the present invention. The difference between FIG. 5 and FIG. 1 is that the method for downloading the program file of the automotive electronic control unit shown in FIG. 5 may further include steps 111 to 114 .

在步骤111中,设置下载状态标识位。In step 111, the download status flag is set.

下载状态标识位可表示车载程序文件的下载状态。可以利用下载状态标识位上不同的标识来区分车载程序文件的下载状态。在一个示例中,车载程序文件的下载状态可包括正在下载状态和下载完毕状态。车载状态标识位上的标识可为数字、字母、特殊字符等字符,或为一种字符组成的字符串,或为多种字符组成的字符串,在此并不限定。比如,若下载状态标识位上的标识为0,则表示处于正在下载状态;若下载状态标识位上的标识为1,则标识处于下载完毕状态。The download status identification bit can indicate the download status of the vehicle program file. The download status of the vehicle-mounted program file can be distinguished by using different identifications on the download status identification bit. In one example, the download status of the vehicle program file may include a downloading status and a downloading status. The identification on the vehicle status identification bit can be characters such as numbers, letters, special characters, or a string of one type of characters, or a string of multiple characters, which is not limited here. For example, if the flag on the download status flag is 0, it means that it is in the downloading state; if the flag on the download state flag is 1, then the flag is in the downloading state.

在步骤112中,若下载状态标识位为第一标识,则将程序下载区中下载的车载程序文件写入汽车电子控制单元的闪存中的程序运行区。In step 112, if the download status flag is the first flag, write the vehicle program file downloaded in the program download area into the program running area in the flash memory of the vehicle electronic control unit.

若下载状态标识位为第一标识,表示车载程序文件已下载完毕。可以将下载得到的车载程序文件写入到汽车电子控制单元的闪存中的程序运行区。If the download status flag is the first flag, it means that the in-vehicle program file has been downloaded. The downloaded vehicle program file can be written into the program running area in the flash memory of the vehicle electronic control unit.

在一个示例中,若车载程序文件为更新程序文件等需要占用已经写入程序文件的程序运行区的部分,则可擦除程序运行区中的程序文件,再将车载程序文件写入程序运行区。In one example, if the vehicle-mounted program file is a part of the program running area that needs to occupy the program running area that has been written into the program file, etc., the program file in the program running area can be erased, and then the vehicle-mounted program file can be written into the program running area .

在步骤113中,若下载状态标识位为第二标识,则发送表示程序下载区中的车载程序文件下载成功的提示消息。In step 113, if the download status flag is the second flag, a prompt message indicating that the download of the vehicle program file in the program download area is successful is sent.

若下载状态标识位为第二标识,表示车载程序文件下载成功。但并不立刻将程序下载区中的车载程序文件写入程序运行区。而是发出提示用户的提示消息。If the download status flag is the second flag, it means that the vehicle program file has been downloaded successfully. However, the vehicle-mounted program files in the program download area are not written into the program running area immediately. Instead, a prompt message prompting the user is issued.

在一个示例中,本发明实施例中的第二标识与上述实施例中的第一标识可以相同也可以不同。In an example, the second identifier in this embodiment of the present invention may be the same as or different from the first identifier in the foregoing embodiment.

在一个示例中,还可设置第三标识、第四标识等来表示其他下载状态,以及联动产生其他控制流程。In an example, a third flag, a fourth flag, etc. may also be set to represent other download states, and other control processes may be generated in conjunction.

提示消息可以是图像或文字的显示,也可以为语音内容,在此并不限定。The prompt message may be a display of an image or a text, or may be a voice content, which is not limited here.

在步骤114中,接收用户发送的控制指令,根据控制指令,确定是否将程序下载区中下载的车载程序文件写入程序运行区。In step 114, a control instruction sent by the user is received, and according to the control instruction, it is determined whether to write the vehicle program file downloaded in the program download area into the program running area.

在用户查看或收听到提示消息后,可发出控制指令,汽车电子控制单元的程序文件下载装置接收该控制指令。控制指令指示是否将程序下载区中下载的车载程序文件写入程序运行区。若控制指令指示将程序下载区中下载的车载程序文件写入程序运行区,则将程序下载区中下载的车载程序文件写入程序运行区。若控制指令指示不将程序下载区中下载的车载程序文件写入程序运行区,则不将程序下载区中下载的车载程序文件写入程序运行区。After the user checks or listens to the prompt message, he can issue a control command, and the program file downloading device of the automotive electronic control unit receives the control command. The control instruction indicates whether to write the vehicle program file downloaded in the program download area into the program running area. If the control instruction instructs to write the vehicle program file downloaded in the program download area into the program running area, write the vehicle program file downloaded in the program download area into the program running area. If the control instruction indicates not to write the vehicle program file downloaded in the program download area into the program running area, then the vehicle program file downloaded in the program download area will not be written into the program running area.

比如,车载程序文件为更新程序文件。当将更新程序文件成功下载至程序下载区时,可发出提示消息“更新程序文件已下载成功,请问是否立刻进行更新”。用户发出表示“立刻更新”或“暂时不更新”的控制指令。汽车电子控制单元的程序文件下载装置接收该控制指令。若控制指令表示“立刻更新”,则将程序下载区中下载的车载程序文件写入程序运行区。若控制指令表示“暂时不更新”,则不将程序下载区中下载的车载程序文件写入程序运行区。For example, the vehicle program file is an update program file. When the update program file is successfully downloaded to the program download area, a prompt message "update program file has been successfully downloaded, please update immediately" can be issued. The user issues a control command indicating "update immediately" or "not update temporarily". The program file downloading device of the automotive electronic control unit receives the control instruction. If the control command indicates "immediately update", the vehicle-mounted program file downloaded in the program download area is written into the program running area. If the control instruction indicates "don't update temporarily", the vehicle program file downloaded in the program download area will not be written into the program running area.

图6为本发明一实施例中一种汽车电子控制单元的程序文件下载装置200的结构示意图。如图6所示,汽车电子控制单元的程序文件下载装置200包括映射获取模块201、下载模块202、中断获取模块203和查找模块204。FIG. 6 is a schematic structural diagram of a program file downloading device 200 for an automotive electronic control unit in an embodiment of the present invention. As shown in FIG. 6 , the program file downloading device 200 for an automotive electronic control unit includes a map acquisition module 201 , a download module 202 , an interrupt acquisition module 203 and a search module 204 .

映射获取模块201,被配置为获取车载程序文件与汽车电子控制单元的闪存中的单位存储块的映射关系。The mapping obtaining module 201 is configured to obtain the mapping relationship between the vehicle program file and the unit storage block in the flash memory of the vehicle electronic control unit.

下载模块202,被配置为下载车载程序文件至汽车电子控制单元的闪存中的单位存储块。The download module 202 is configured to download the vehicle program file to the unit storage block in the flash memory of the vehicle electronic control unit.

中断获取模块203,被配置为获取中断写入单位存储块,中断写入单位存储块为车载程序文件下载过程中断时正被写入的单位存储块。The interrupt acquisition module 203 is configured to acquire the interrupt write unit storage block, which is the unit storage block being written when the vehicle program file download process is interrupted.

查找模块204,被配置为基于中断写入单位存储块以及映射关系,得到车载程序文件中需要继续下载的数据部分。The search module 204 is configured to obtain the data part in the vehicle program file that needs to be downloaded continuously based on the interrupt write unit storage block and the mapping relationship.

下载模块202,还配置为将车载程序文件中需要继续下载的数据部分下载至汽车电子控制单元的闪存中的单位存储块。The downloading module 202 is further configured to download the data part that needs to be downloaded continuously in the vehicle program file to the unit storage block in the flash memory of the vehicle electronic control unit.

在本发明实施例中,可以将车载程序文件下载过程中未有效下载至汽车电子控制单元中的车载程序文件的数据部分,重新下载至汽车电子控制单元。从而避免在下载车载程序文件发生中断,而进行整个车载程序文件的下载刷写流程。进而减少中断情况下的车载程序文件下载所花费的时间。In the embodiment of the present invention, the data part of the vehicle program file that is not effectively downloaded to the vehicle electronic control unit during the download process of the vehicle program file can be re-downloaded to the vehicle electronic control unit. In this way, it is avoided that the downloading of the vehicle-mounted program file is interrupted, and the process of downloading and flashing the entire vehicle-mounted program file is carried out. Further, the time spent on downloading the vehicle program file in the case of interruption is reduced.

图7为本发明另一实施例中一种汽车电子控制单元的程序文件下载装置200的结构示意图。图7与图6的不同之处在于,图6中的下载模块202可包括图7中的擦除子模块2021和写入子模块2022。图7所示的汽车电子控制单元的程序文件下载装置200还可包括记录模块205。FIG. 7 is a schematic structural diagram of a program file downloading device 200 for an automotive electronic control unit in another embodiment of the present invention. The difference between FIG. 7 and FIG. 6 is that the download module 202 in FIG. 6 may include the erasing sub-module 2021 and the writing sub-module 2022 in FIG. 7 . The program file downloading device 200 of the vehicle electronic control unit shown in FIG. 7 may also include a recording module 205 .

擦除子模块2021,被配置为对中断写入单位存储块进行擦除。The erasing sub-module 2021 is configured to erase the interrupted writing unit storage block.

写入子模块2022,被配置为将车载程序文件中需要继续下载的数据部分下载至中断写入单位存储块以及中断写入单位存储块之后的单位存储块。The writing sub-module 2022 is configured to download the part of the data in the vehicle program file that needs to be downloaded continuously to the interrupted writing unit storage block and the unit storage block after the interrupted writing unit storage block.

记录模块205,被配置为在将车载程序文件下载至汽车电子控制单元的闪存中的单位存储块时,记录已写入单位存储块。The recording module 205 is configured to record the written unit storage block when the vehicle program file is downloaded to the unit storage block in the flash memory of the vehicle electronic control unit.

上述下载模块202还可被配置为:当中断写入单位存储块为汽车电子控制单元的闪存中的首个单位存储块时,将整个车载程序文件下载至汽车电子控制单元的闪存中的单位存储块。The above-mentioned downloading module 202 can also be configured to: when the interrupt write unit storage block is the first unit storage block in the flash memory of the automotive electronic control unit, download the entire vehicle program file to the unit storage in the flash memory of the automotive electronic control unit piece.

在一个示例中,映射关系包括车载程序文件的各个数据部分与汽车电子控制单元的闪存中的各个单位存储块的起始地址的对应关系。In one example, the mapping relationship includes the corresponding relationship between each data part of the vehicle program file and the start address of each unit storage block in the flash memory of the vehicle electronic control unit.

在一个示例中,上述实施例中的查找模块204可具体被配置为基于中断写入单位存储块,在映射关系中查找与中断写入单位存储块的起始地址对应的车载程序文件的数据部分;将与中断写入单位存储块的起始地址对应的车载程序文件的数据部分及之后的数据部分,作为车载程序文件中需要继续下载的数据部分。In an example, the search module 204 in the above-mentioned embodiment may be specifically configured to search for the data part of the on-vehicle program file corresponding to the start address of the interrupt write unit storage block in the mapping relationship based on the interrupt write unit storage block ; The data part of the vehicle-mounted program file corresponding to the starting address of the interrupt write unit storage block and the subsequent data part are used as the data part that needs to be downloaded continuously in the vehicle-mounted program file.

在一个示例中,上述实施例中的单位存储块位于汽车电子控制单元的闪存中的程序下载区。In one example, the unit storage block in the above embodiment is located in the program download area of the flash memory of the automotive electronic control unit.

图8为本发明又一实施例中一种汽车电子控制单元的程序文件下载装置200的结构示意图。图8与图6的不同之处在于,图8所示的汽车电子控制单元的程序下载装置200还可包括回读模块206、校验码生成模块207和第一写入模块208。FIG. 8 is a schematic structural diagram of a program file downloading device 200 for an automotive electronic control unit in yet another embodiment of the present invention. The difference between FIG. 8 and FIG. 6 is that the program downloading device 200 for the automotive electronic control unit shown in FIG.

回读模块206,被配置为在将车载程序文件下载至汽车电子控制单元中的过程中,回读下载至汽车电子控制单元中的车载程序文件,车载程序文件包括循环冗余校验码;The read-back module 206 is configured to read back the on-board program file downloaded to the automotive electronic control unit during the process of downloading the on-board program file to the automotive electronic control unit, and the on-board program file includes a cyclic redundancy check code;

校验码生成模块207,被配置为根据回读得到的下载至汽车电子控制单元的闪存中的单位存储块的车载程序文件,生成校验用循环冗余校验码;The verification code generation module 207 is configured to generate a cyclic redundancy check code for verification according to the on-board program file downloaded to the unit storage block in the flash memory of the automotive electronic control unit obtained by reading back;

上述下载模块202,还被配置为若校验用循环冗余校验码与车载程序文件中包括的循环冗余校验码不一致,则重新下载车载程序文件;The above download module 202 is also configured to re-download the vehicle program file if the cyclic redundancy check code used for verification is inconsistent with the cyclic redundancy check code included in the vehicle program file;

第一写入模块208,被配置为若校验用循环冗余校验码与车载程序文件中包括的循环冗余校验码一致,则将程序下载区中下载的车载程序文件写入汽车电子控制单元的闪存中的程序运行区。The first writing module 208 is configured to write the vehicle-mounted program file downloaded in the program download area into the vehicle electronics if the cyclic redundancy check code for verification is consistent with the cyclic redundancy check code included in the vehicle-mounted program file. The program execution area in the flash memory of the control unit.

图9为本发明又一实施例中一种汽车电子控制单元的程序文件下载装置200的结构示意图。图9与图6的不同之处在于,图9所示的汽车电子控制单元的程序下载装置200还可包括设置模块209、第二写入模块210、擦除模块211、发送模块212和接收模块213。FIG. 9 is a schematic structural diagram of a program file downloading device 200 for an automotive electronic control unit in yet another embodiment of the present invention. The difference between Fig. 9 and Fig. 6 is that the program downloading device 200 of the automotive electronic control unit shown in Fig. 9 can also include a setting module 209, a second writing module 210, an erasing module 211, a sending module 212 and a receiving module 213.

设置模块209,被配置为设置下载状态标识位。The setting module 209 is configured to set the download status identification bit.

第二写入模块210,被配置为若下载状态标识位为第一标识,则将程序下载区中下载的车载程序文件写入汽车电子控制单元的闪存中的程序运行区。The second writing module 210 is configured to write the vehicle program file downloaded in the program download area into the program running area in the flash memory of the vehicle electronic control unit if the download status flag is the first flag.

擦除模块211,被配置为擦除的程序运行区中的程序文件。The erasing module 211 is configured to erase program files in the program running area.

发送模块212,被配置为若下载状态标识位为第二标识,则发送表示程序下载区中的车载程序文件下载成功的提示消息。The sending module 212 is configured to send a prompt message indicating that the download of the vehicle program file in the program download area is successful if the download status flag is the second flag.

接收模块213,被配置为接收用户发送的控制指令,根据控制指令,确定是否将程序下载区中下载的车载程序文件写入程序运行区。The receiving module 213 is configured to receive a control instruction sent by the user, and determine whether to write the vehicle program file downloaded in the program download area into the program running area according to the control instruction.

需要明确的是,本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同或相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。对于装置实施例而言,相关之处可以参见方法实施例的说明部分。本发明并不局限于上文所描述并在图中示出的特定步骤和结构。本领域的技术人员可以在领会本发明的精神之后,做出各种改变、修改和添加,或者改变步骤之间的顺序。并且,为了简明起见,这里省略对已知方法技术的详细描述。It should be clear that each embodiment in this specification is described in a progressive manner, and the same or similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. place. For the device embodiment, for the related parts, refer to the description part of the method embodiment. The present invention is not limited to the specific steps and structures described above and shown in the drawings. Those skilled in the art may make various changes, modifications and additions, or change the order between steps after appreciating the spirit of the present invention. Also, for the sake of brevity, detailed descriptions of known methods and techniques are omitted here.

以上的结构框图中所示的功能模块和功能子模块可以实现为硬件、软件、固件或者它们的组合。当以硬件方式实现时,其可以例如是电子电路、专用集成电路(ASIC)、适当的固件、插件、功能卡等等。当以软件方式实现时,本发明的元素是被用于执行所需任务的程序或者代码段。程序或者代码段可以存储在机器可读介质中,或者通过载波中携带的数据信号在传输介质或者通信链路上传送。“机器可读介质”可以包括能够存储或传输信息的任何介质。The functional modules and functional sub-modules shown in the above structural block diagrams may be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an application specific integrated circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the invention are the programs or code segments employed to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted over transmission media or communication links by data signals carried in carrier waves. "Machine-readable medium" may include any medium that can store or transmit information.

Claims (20)

1. a kind of program file method for down loading of vehicle electronic control unit, which is characterized in that including:
Obtain the mapping relations of the unit memory block in the flash memory of onboard program file and vehicle electronic control unit;
Download the unit memory block in the onboard program file to the flash memory of the vehicle electronic control unit;
It obtains and interrupts write-in unit memory block, the interruption write-in unit memory block is in the onboard program file download process The unit memory block being just written into when disconnected;
Unit memory block and the mapping relations is written based on the interruption, obtains needing to continue in the onboard program file The data portion of download;
The sudden strain of a muscle that the data portion for continuing to download will be needed to be downloaded to the vehicle electronic control unit in the onboard program file Unit memory block in depositing.
2. the program file method for down loading of vehicle electronic control unit according to claim 1, which is characterized in that described to reflect The relationship of penetrating include each data portion of the onboard program file with it is each in the flash memory of the vehicle electronic control unit The correspondence of the initial address of unit memory block.
3. the program file method for down loading of vehicle electronic control unit according to claim 2, which is characterized in that the base Unit memory block and the mapping relations is written in the interruption, obtains needing to continue download in the onboard program file Data portion, including:
Unit memory block is written based on the interruption, is searched in the mapping relations and unit memory block is written with described interrupt The data portion of the corresponding onboard program file of initial address;
By with the data portion for interrupting the corresponding onboard program file of the write-in initial address of unit memory block and it Data portion afterwards, as the data portion for needing to continue to download in the onboard program file.
4. the program file method for down loading of vehicle electronic control unit according to claim 2, which is characterized in that described to incite somebody to action The data portion for continuing to download is needed to be downloaded to vehicle electronic control unit in the onboard program file, including:
Interruption write-in unit memory block is wiped;
The data portion that will need to continue in the onboard program file to download be downloaded to interruptions be written unit memory block with And the unit memory block interrupted after write-in unit memory block.
5. the program file method for down loading of the vehicle electronic control unit according in claim 1,3 or 4 any one, It is characterized in that, the unit memory block is located at the program download area in the flash memory of the vehicle electronic control unit.
6. the program file method for down loading of vehicle electronic control unit according to claim 1, which is characterized in that the vapour The program file method for down loading of vehicle electronic control unit further includes:
When the first unit memory block interrupted in the flash memory that write-in unit memory block is the vehicle electronic control unit, By the unit memory block in the entire onboard program file download to the flash memory of the vehicle electronic control unit.
7. program file method for down loading according to claim 5, which is characterized in that the journey of the vehicle electronic control unit Sequence document down loading method further includes:
During by the onboard program file download to the vehicle electronic control unit, readback is downloaded to the vapour The onboard program file in vehicle electronic control unit, the onboard program file includes cyclic redundancy check code;
According to the vehicle-mounted journey for the unit memory block being downloaded in the flash memory of the vehicle electronic control unit that readback obtains Preface part generates verification cyclic redundancy check code;
If the cyclic redundancy check code that the verification cyclic redundancy check code includes with the onboard program file is not Unanimously, then the onboard program file is re-downloaded;
If the cyclic redundancy check code one that the verification cyclic redundancy check code includes with the onboard program file It causes, then the onboard program file downloaded in described program download area is written in the flash memory of the vehicle electronic control unit Program Operational Zone.
8. the program file method for down loading of vehicle electronic control unit according to claim 5, which is characterized in that the vapour The program file method for down loading of vehicle electronic control unit further includes:
Download state flag is set;
If the download state flag is first identifier, the onboard program file that will be downloaded in described program download area The program Operational Zone in the flash memory of the vehicle electronic control unit is written.
9. the program file method for down loading of vehicle electronic control unit according to claim 7 or 8, which is characterized in that Before the onboard program file write-in described program Operational Zone downloaded in the download area by described program, further include:
Program file in the erasing program Operational Zone.
10. the program file method for down loading of vehicle electronic control unit according to claim 8 or claim 9, which is characterized in that institute The program file method for down loading for stating vehicle electronic control unit further includes:
If the download state flag is second identifier, the onboard program text indicated in described program download area is sent Part downloads successful prompting message.
11. the program file method for down loading of vehicle electronic control unit according to claim 10, which is characterized in that described The program file method for down loading of vehicle electronic control unit further includes:
The control instruction that user sends is received, according to the control instruction, it is determined whether by what is downloaded in described program download area Onboard program file write-in described program Operational Zone.
12. the program file method for down loading of vehicle electronic control unit according to claim 1, which is characterized in that in institute It states before obtaining the interruption write-in unit memory block, further includes:
When by unit memory block in the flash memory of the onboard program file download to the vehicle electronic control unit, record Have been written into unit memory block.
13. a kind of program file download apparatus of vehicle electronic control unit, which is characterized in that including:
Acquisition module is mapped, is configured as obtaining the unit in the flash memory of onboard program file and vehicle electronic control unit and stores The mapping relations of block;
Download module is configured as downloading the unit in the onboard program file to the flash memory of the vehicle electronic control unit Memory block;
Acquisition module is interrupted, is configured as obtaining and interrupts write-in unit memory block, the interruption write-in unit memory block is described The unit memory block that onboard program file download process is just being written into when interrupting;
Searching module is configured as, based on interruption write-in unit memory block and the mapping relations, obtaining described vehicle-mounted The data portion for continuing to download is needed in program file;
The download module, the data portion for being additionally configured to need to continue in the onboard program file to download are downloaded to described Unit memory block in the flash memory of vehicle electronic control unit.
14. the program file download apparatus of vehicle electronic control unit according to claim 13, which is characterized in that described Mapping relations include each data portion of the onboard program file with it is each in the flash memory of the vehicle electronic control unit The correspondence of the initial address of a unit memory block.
15. the program file download apparatus of vehicle electronic control unit according to claim 14, which is characterized in that described Searching module is specifically configured to:
Unit memory block is written based on the interruption, is searched in the mapping relations and unit memory block is written with described interrupt The data portion of the corresponding onboard program file of initial address;
By with the data portion for interrupting the corresponding onboard program file of the write-in initial address of unit memory block and it Data portion afterwards, as the data portion for needing to continue to download in the onboard program file.
16. the program file download apparatus of vehicle electronic control unit according to claim 14, which is characterized in that described Download module includes:
Submodule is wiped, is configured as wiping interruption write-in unit memory block;
Submodule is written, the data portion for being configured as to need to continue in the onboard program file to download be downloaded to it is described in Disconnected write-in unit memory block and the unit memory block interrupted after write-in unit memory block.
17. the program file download apparatus of vehicle electronic control unit according to claim 13, which is characterized in that described Download module is additionally configured to:
When the first unit memory block interrupted in the flash memory that write-in unit memory block is the vehicle electronic control unit, By the unit memory block in the entire onboard program file download to the flash memory of the vehicle electronic control unit.
18. according to the program file download apparatus described in claim 13,15 or 16, which is characterized in that the unit memory block Program download area in the flash memory of the vehicle electronic control unit;
The program file download apparatus of the vehicle electronic control unit further includes:
Readback module is configured as by the process in the onboard program file download to the vehicle electronic control unit In, readback is downloaded to the onboard program file in the vehicle electronic control unit, and the onboard program file includes following Ring redundancy check code;
Check code generation module is configured as being downloaded in the flash memory of the vehicle electronic control unit according to what readback obtained The onboard program file of unit memory block generates verification cyclic redundancy check code;
The download module includes with the onboard program file if being additionally configured to the verification cyclic redundancy check code The cyclic redundancy check code it is inconsistent, then re-download the onboard program file;
First writing module includes if being configured as the verification cyclic redundancy check code and the onboard program file The cyclic redundancy check code is consistent, then the automobile is written in the onboard program file downloaded in described program download area Program Operational Zone in the flash memory of electronic control unit.
19. the program file download apparatus of the vehicle electronic control unit according to claim 13,15 or 16, feature exist In the unit memory block is located at the program download area in the flash memory of the vehicle electronic control unit;
The program file download apparatus of the vehicle electronic control unit further includes:
Setup module is configured as setting download state flag;
Second writing module will be in described program download area if it is first identifier to be configured as the download state flag The program Operational Zone in the flash memory of the vehicle electronic control unit is written in the onboard program file downloaded.
20. the program file download apparatus of vehicle electronic control unit according to claim 19, which is characterized in that described The program file download apparatus of vehicle electronic control unit further includes:
Sending module sends if it is second identifier to be configured as the download state flag and indicates described program download area In the successful prompting message of onboard program file download.
CN201711466122.XA 2017-12-28 2017-12-28 Method and device for downloading program files of automobile electronic control unit Active CN108334282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711466122.XA CN108334282B (en) 2017-12-28 2017-12-28 Method and device for downloading program files of automobile electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711466122.XA CN108334282B (en) 2017-12-28 2017-12-28 Method and device for downloading program files of automobile electronic control unit

Publications (2)

Publication Number Publication Date
CN108334282A true CN108334282A (en) 2018-07-27
CN108334282B CN108334282B (en) 2021-07-09

Family

ID=62923876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711466122.XA Active CN108334282B (en) 2017-12-28 2017-12-28 Method and device for downloading program files of automobile electronic control unit

Country Status (1)

Country Link
CN (1) CN108334282B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030009518A1 (en) * 2001-07-06 2003-01-09 Intel Corporation Method and apparatus for peer-to-peer services
CN1487740A (en) * 2002-09-30 2004-04-07 北京中视联数字系统有限公司 Software downloading method in digital TV broadcast
CN1687899A (en) * 2005-06-15 2005-10-26 大唐微电子技术有限公司 Method, system and module for dynamically downloading application program to subscriber identity module
CN101253468A (en) * 2005-08-03 2008-08-27 桑迪士克股份有限公司 Method and system for dual mode access of a memory device
CN101546250A (en) * 2008-03-28 2009-09-30 北京爱国者存储科技有限责任公司 System for realizing breakpoint continuous transmission of mobile storage equipment
CN101546321A (en) * 2008-03-28 2009-09-30 北京爱国者存储科技有限责任公司 Breakpoint continuous transmission method of mobile storage equipment
CN101546251A (en) * 2008-03-28 2009-09-30 北京爱国者存储科技有限责任公司 Mobile storage equipment with breakpoint continuous transmission
CN103095529A (en) * 2013-01-09 2013-05-08 华为技术有限公司 Method and device for detecting engine device, firewall and network transmission file
US20130275638A1 (en) * 2010-02-05 2013-10-17 Advanced Micro Devices, Inc. Interrupt Virtualization
CN103812944A (en) * 2014-02-26 2014-05-21 安徽安凯汽车股份有限公司 Remote update system and method for electric automobile ECU
CN104281469A (en) * 2014-08-26 2015-01-14 东风电子科技股份有限公司 Method and system for realizing refreshing and writing of ECU (Electronic Control Unit) program
CN105183515A (en) * 2015-09-02 2015-12-23 深圳一电科技有限公司 Cloud deck firmware updating method and device
CN105743945A (en) * 2014-12-10 2016-07-06 广州市动景计算机科技有限公司 Method and system for downloading files on the basis of switching download sources
CN105808285A (en) * 2015-01-21 2016-07-27 福特全球技术公司 Vehicle control update methods and systems
CN105930193A (en) * 2016-05-05 2016-09-07 国网重庆市电力公司电力科学研究院 Operating system based energy meter software online upgrade method and system
CN106775778A (en) * 2017-02-06 2017-05-31 山东鲁能智能技术有限公司 Embedded program exploitation Program updates recognition methods and system
CN107229493A (en) * 2017-05-18 2017-10-03 宁德时代新能源科技股份有限公司 Program updating method and device
CN107291516A (en) * 2017-07-12 2017-10-24 珠海格力电器股份有限公司 Firmware upgrading method and system

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030009518A1 (en) * 2001-07-06 2003-01-09 Intel Corporation Method and apparatus for peer-to-peer services
CN1487740A (en) * 2002-09-30 2004-04-07 北京中视联数字系统有限公司 Software downloading method in digital TV broadcast
CN1687899A (en) * 2005-06-15 2005-10-26 大唐微电子技术有限公司 Method, system and module for dynamically downloading application program to subscriber identity module
CN101253468A (en) * 2005-08-03 2008-08-27 桑迪士克股份有限公司 Method and system for dual mode access of a memory device
CN101546250A (en) * 2008-03-28 2009-09-30 北京爱国者存储科技有限责任公司 System for realizing breakpoint continuous transmission of mobile storage equipment
CN101546321A (en) * 2008-03-28 2009-09-30 北京爱国者存储科技有限责任公司 Breakpoint continuous transmission method of mobile storage equipment
CN101546251A (en) * 2008-03-28 2009-09-30 北京爱国者存储科技有限责任公司 Mobile storage equipment with breakpoint continuous transmission
US20130275638A1 (en) * 2010-02-05 2013-10-17 Advanced Micro Devices, Inc. Interrupt Virtualization
CN103095529A (en) * 2013-01-09 2013-05-08 华为技术有限公司 Method and device for detecting engine device, firewall and network transmission file
CN103812944A (en) * 2014-02-26 2014-05-21 安徽安凯汽车股份有限公司 Remote update system and method for electric automobile ECU
CN104281469A (en) * 2014-08-26 2015-01-14 东风电子科技股份有限公司 Method and system for realizing refreshing and writing of ECU (Electronic Control Unit) program
CN105743945A (en) * 2014-12-10 2016-07-06 广州市动景计算机科技有限公司 Method and system for downloading files on the basis of switching download sources
CN105808285A (en) * 2015-01-21 2016-07-27 福特全球技术公司 Vehicle control update methods and systems
CN105183515A (en) * 2015-09-02 2015-12-23 深圳一电科技有限公司 Cloud deck firmware updating method and device
CN105930193A (en) * 2016-05-05 2016-09-07 国网重庆市电力公司电力科学研究院 Operating system based energy meter software online upgrade method and system
CN106775778A (en) * 2017-02-06 2017-05-31 山东鲁能智能技术有限公司 Embedded program exploitation Program updates recognition methods and system
CN107229493A (en) * 2017-05-18 2017-10-03 宁德时代新能源科技股份有限公司 Program updating method and device
CN107291516A (en) * 2017-07-12 2017-10-24 珠海格力电器股份有限公司 Firmware upgrading method and system

Also Published As

Publication number Publication date
CN108334282B (en) 2021-07-09

Similar Documents

Publication Publication Date Title
CN111010415B (en) Data transmission method and device for Internet of vehicles
CN108132795B (en) Software updating method and device of electronic control unit
US12001825B2 (en) Method and apparatus for vehicle software update installation
CN104955680B (en) Access restriction device, in-vehicle communication system, and communication restriction method
CN108446129B (en) Method and apparatus for multi-cycle vehicle software update compliance processing
EP3324299B1 (en) System and method for reprogramming ecu devices (electronic control units) in vehicles, via digital radio
US20160306624A1 (en) Vehicle control storage methods and systems
CN110460573A (en) A system and method applied to automotive ECU safety upgrade management
CN103631609A (en) Method and system for refreshing vehicle-mounted ECU application program
CN105589719A (en) System for remotely upgrading full vehicle-mounted controller softwares and upgrading method thereof
US20150331686A1 (en) Over-the-air vehicle issue resolution
CN108475222A (en) Vehicle-mounted updating device, more new system and update processing routine
CN103439961B (en) Automobile electronic control unit diagnostic function test method and system
CN102862450A (en) System and method for realizing upgrading of transmitting terminal of tire pressure monitoring system (TPMS) based on wireless communication
CN107229493A (en) Program updating method and device
CN112199439B (en) Data storage devices and non-transitory tangible computer-readable storage media
US20220308857A1 (en) Control device and terminal device
CN105453531A (en) Vehicle-mounted device, communication system, communication method, and program
CN105278978A (en) CANoe based ECU (Electronic Control Unit) software refresh method and apparatus
CN114115965A (en) OTA system dynamic differential upgrading method
CN108241514A (en) Vehicle-mounted program updating method and device
CN107102849B (en) Method and apparatus for file replacement with periodic ignition switch off
CN116451238A (en) ECU firmware upgrading method, device, equipment and readable storage medium
CN109597634A (en) The method, apparatus and vehicle of more new vehicle ECU
US20250004749A1 (en) Management apparatus, management system, management method, and computer program

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220120

Address after: 352100 science and technology building, No. 2, Xingang Road, Zhangwan Town, Jiaocheng District, Ningde City, Fujian Province

Patentee after: Ningde Shidai Runzhi Software Technology Co.,Ltd.

Address before: 352100 Xingang Road, Zhangwan Town, Jiaocheng District, Ningde, Fujian 1

Patentee before: Contemporary Amperex Technology Co.,Ltd.