The invention relates to a vehicle-end electronic control unit and an upgrading method thereof, and the method comprises the following steps: 1), when a program starts to run, judging a program flag bit and whether there is an upgrade package; (2) if the program mark position is a bit and an upgrade package exists, starting a flashing process after receiving a flashing instruction; if flashing is completed, the upgrade package is cleared; if an accident occurs in the flashing process, clearing the program flag bit; if the program mark position is bit and no upgrade package exists, normal operation is carried out; and if the program flag bit is not set and an upgrade package exists, carrying out a self-repairing process, and repeating resetting until the flashing is completed or a cut-off condition is met. According to the method, self-repairing retry can be achieved through multiple times of soft reset in one power-on period, adverse factors of the flashing environment are reduced to the maximum degree, and the method is low in hardware resource requirement and easy to achieve on a vehicle-mounted electronic control unit.
本发明涉及一种车端电控单元及其升级方法,方法包括以下步骤:1),程序开始运行时,判断程序标志位和是否有升级包;2),若程序标志位置位,有升级包,则在接收到刷写指令后开始刷写流程;若刷写完成则清除升级包;若刷写过程中出现意外,则清除程序标志位;若程序标志位置位,无升级包,则正常运行;若程序标志位未置位,有升级包,则进行自修复过程,重复进行复位,直至刷写完成或者达到截止条件。本发明可以在一个上电周期内通过多次软复位实现自修复重试,最大程度降低刷写环境的不利因素,而且本发明的方法对硬件资源要求较低,易于在车载电控单元上实现。
Vehicle end electric control unit and upgrading method thereof
一种车端电控单元及其升级方法
2022-05-27
Patent
Electronic Resource
Chinese
Electric quantity control method in part upgrading process, part upgrading system and vehicle
European Patent Office | 2024
|Electric vehicle discharging control method, vehicle control unit and electric vehicle
European Patent Office | 2021
|Electric vehicle, control method and device thereof, storage medium and vehicle control unit
European Patent Office | 2021
|Automotive engineering | 1993
|