[go: up one dir, main page]

CN115047852A - Vehicle software flashing method and system - Google Patents

Vehicle software flashing method and system Download PDF

Info

Publication number
CN115047852A
CN115047852A CN202210686806.5A CN202210686806A CN115047852A CN 115047852 A CN115047852 A CN 115047852A CN 202210686806 A CN202210686806 A CN 202210686806A CN 115047852 A CN115047852 A CN 115047852A
Authority
CN
China
Prior art keywords
control unit
electronic control
ecu
function
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.)
Pending
Application number
CN202210686806.5A
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.)
Dongfeng Peugeot Citroen Automobile Co Ltd
Original Assignee
Dongfeng Peugeot Citroen Automobile 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 Dongfeng Peugeot Citroen Automobile Co Ltd filed Critical Dongfeng Peugeot Citroen Automobile Co Ltd
Priority to CN202210686806.5A priority Critical patent/CN115047852A/en
Publication of CN115047852A publication Critical patent/CN115047852A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)
  • Lighting Device Outwards From Vehicle And Optical Signal (AREA)

Abstract

本发明公开了一种车辆软件刷写方法和系统,在网络上周期性广播用于使电控单元ECU进入“电子集成模式”的功能帧,当网络上的电控单元ECU接收到多个连续的该功能帧时,电控单元ECU进入“电子集成模式”,进入“电子集成模式”的电控ECU的DTC故障存储被禁用、电控单元ECU停止发送功能报文且不再对网络通讯进行诊断,当软件刷写完成后电控单元ECU退出“电子集成模式”。本发明可以实现快速恢复ECU网络通信的最大带宽,对目标ECU快速进行配置操作;同时当网络上的ECU处于配置阶段时,关闭连接到车辆通信网络ECU的故障DTC存储,有效保证了电控单元软件刷写的稳定性、高可靠性,提升数据传输效率。

Figure 202210686806

The invention discloses a vehicle software flashing method and system, which periodically broadcasts a function frame for making an electronic control unit ECU enter an "electronic integration mode" on a network, and when the electronic control unit ECU on the network receives multiple consecutive In this function frame, the electronic control unit ECU enters the "electronic integration mode", the DTC fault storage of the electronic control ECU entering the "electronic integration mode" is disabled, the electronic control unit ECU stops sending function messages and no longer conducts network communication. Diagnosis, when the software flashing is completed, the electronic control unit ECU exits the "electronic integration mode". The invention can quickly restore the maximum bandwidth of the ECU network communication, and quickly perform configuration operations on the target ECU; at the same time, when the ECU on the network is in the configuration stage, the fault DTC storage connected to the vehicle communication network ECU is closed to effectively ensure the electronic control unit. Software flashing stability, high reliability, improve data transmission efficiency.

Figure 202210686806

Description

一种车辆软件刷写方法和系统Method and system for flashing vehicle software

技术领域technical field

本发明属于汽车通讯技术领域,具体涉及一种车辆软件刷写方法和系统。The invention belongs to the technical field of automobile communication, and in particular relates to a vehicle software flashing method and system.

背景技术Background technique

目前,汽车上各电控单元ECU主要采用CAN/LIN总线的通信方式,基于UDS协议进行诊断通信。ISO14229定义了6类功能,26种服务。在进行车辆软件刷写前,诊断设备通常采用功能寻址的方式,在CAN网上广播发送0x85和0x28服务的报文,分别对CAN总线上的电控单元ECU进行DTC故障存储使能/禁止、目标ECU功能报文发送使能/禁止的操作,以降低CAN总线带宽的负载率。但是,若CAN总线上的某个电控单元ECU出现未能正常接收0x28或0x85报文的情况,这些电控单元ECU将不能正常执行故障存储的使能/禁止或通信的关闭/开启,从而影响其他ECU的软件刷写。例如,若CAN网络上的电控单元ECU1未正常接收到0x85或0x28指令(如出现接收丢帧等异常情况)以禁止DTC存储/关闭通讯,由于ECU1此时仍处于正常通讯状态(可以在CAN网络上接收和发送报文),若此时其他ECU均接收到0x28指令关闭了通讯,ECU1会由于接收不到其他ECU反馈的报文,从而报告大量通讯故障DTC。同时,由于ECU1可以正常通讯,ECU1会持续在CAN总线上发送应用报文或网络管理报文,占用带宽,影响其他ECU的软件刷写,甚至使其他ECU的软件刷写失败。因此,需要一种改进的汽车软件刷写方法,使CAN/LIN总线上可正常通讯的ECU能够稳定接收到DTC故障存储使能/禁止、功能报文发送使能/禁止指令,保证软件的稳定可靠刷写。At present, each electronic control unit ECU on the car mainly adopts the communication mode of CAN/LIN bus, and carries out diagnostic communication based on the UDS protocol. ISO14229 defines 6 types of functions and 26 types of services. Before flashing the vehicle software, the diagnostic equipment usually uses functional addressing to broadcast and send 0x85 and 0x28 service messages on the CAN network, respectively enabling/disabling the DTC fault storage for the electronic control unit ECU on the CAN bus. The target ECU function message sends the enable/disable operation to reduce the load rate of the CAN bus bandwidth. However, if a certain electronic control unit ECU on the CAN bus fails to receive the 0x28 or 0x85 message normally, these electronic control unit ECUs will not be able to normally perform the enabling/disabling of fault storage or the closing/opening of communication. Affects software flashing of other ECUs. For example, if the electronic control unit ECU1 on the CAN network does not normally receive the 0x85 or 0x28 command (such as an abnormal situation such as frame loss in reception) to prohibit DTC storage/close communication, because ECU1 is still in a normal communication state at this time (can Receive and send messages on the network), if other ECUs receive the 0x28 command to close the communication at this time, ECU1 will report a large number of communication failure DTCs because it cannot receive the messages fed back by other ECUs. At the same time, since ECU1 can communicate normally, ECU1 will continue to send application messages or network management messages on the CAN bus, occupying bandwidth, affecting the software flashing of other ECUs, and even causing the software flashing of other ECUs to fail. Therefore, an improved vehicle software flashing method is required, so that the ECU that can communicate normally on the CAN/LIN bus can stably receive the DTC fault storage enable/disable, function message transmission enable/disable commands, and ensure the stability of the software. Reliable flashing.

发明内容SUMMARY OF THE INVENTION

为解决上述问题,本发明提出一种车辆软件刷写方法和系统。In order to solve the above problems, the present invention provides a method and system for flashing vehicle software.

实现本发明目的之一的一种车辆软件刷写方法,包括如下步骤:A vehicle software flashing method for realizing one of the objectives of the present invention comprises the following steps:

S1、在网络上周期性广播用于使电控单元进入“电子集成模式”的功能帧;S1. Periodically broadcast a function frame for making the electronic control unit enter the "electronic integration mode" on the network;

周期性广播该功能帧可以确保处于网络上的所有电控单元都能收到,克服了现有行业技术中只在CAN网上广播一次0x85和0x28服务(ISO14229定义的功能指令)的方式导致可能有的ECU没有收到的问题;Periodic broadcasting of this function frame can ensure that all electronic control units on the network can receive it, which overcomes the fact that the existing industry technology only broadcasts 0x85 and 0x28 services (function commands defined by ISO14229) on the CAN network once. The ECU did not receive the problem;

所述功能帧可以由诊断设备发出,也可以是整车控制器发出;The function frame can be sent by the diagnostic equipment, or sent by the vehicle controller;

S2、当网络上的电控单元接收到连续的多个该功能帧时,电控单元进入“电子集成模式”,进入“电子集成模式”的电控单元的DTC故障存储被禁用、电控单元停止发送功能报文且不再对网络通讯进行诊断;S2. When the electronic control unit on the network receives multiple consecutive functional frames, the electronic control unit enters the "electronic integration mode", and the DTC fault storage of the electronic control unit entering the "electronic integration mode" is disabled, and the electronic control unit Stop sending function messages and no longer diagnose network communication;

网络上的电控单元ECU接收到多个连续的该功能帧才进入“电子集成模式”可以避免传输或接收功能报文过程中电控单元意外进入“电子集成模式”的情况;The electronic control unit ECU on the network enters the "electronic integration mode" after receiving multiple consecutive frames of this function, which can avoid the situation that the electronic control unit accidentally enters the "electronic integration mode" during the process of transmitting or receiving function messages;

经过预设时间后,停止发送使电控单元进入“电子集成模式”的功能帧;After the preset time has elapsed, stop sending the function frame that makes the electronic control unit enter the "electronic integration mode";

S3、当所有电控单元进入“电子集成模式”后,依次对需要软件刷写的目标电控单元启动软件刷写流程;S3. After all the electronic control units enter the "electronic integration mode", start the software flashing process for the target electronic control units that need software flashing in turn;

S4、依次对所有目标电控单元进行软件刷写,具体包括如下步骤:S4. Perform software flashing on all target electronic control units in sequence, which specifically includes the following steps:

诊断设备通过物理寻址的方式向目标电控单元发送指令获取目标电控单元的Authentication Zone及Identification Zone信息;The diagnostic equipment sends an instruction to the target electronic control unit to obtain the Authentication Zone and Identification Zone information of the target electronic control unit by means of physical addressing;

诊断设备向目标电控单元发送用于数据请求下载、数据传输的指令;The diagnostic equipment sends instructions for data request download and data transmission to the target electronic control unit;

所述Authentication Zone包括识别目标电控单元ECU所需的参数,如功能号、供应商代码、零件号;所述Identification Zone包括识别软件所需的参数,如软件下载日期、软件号;The Authentication Zone includes parameters required for identifying the target electronic control unit ECU, such as function number, supplier code, and part number; the Identification Zone includes parameters required for identifying software, such as software download date, software number;

诊断设备解锁目标电控单元ECU;The diagnostic device unlocks the target electronic control unit ECU;

诊断设备通过例程服务擦除目标电控单元ECU软件待存储区域;The diagnostic equipment erases the to-be-storage area of the target electronic control unit ECU software through routine services;

诊断设备向目标电控单元ECU发送用于数据请求下载、数据传输的指令,直至将刷写文件中的数据全部发送完毕,诊断设备发送请求退出传输的指令使目标电控单元ECU结束数据传输;The diagnostic device sends an instruction for data request download and data transmission to the target electronic control unit ECU, until all data in the flash file is sent, and the diagnostic device sends an instruction to request to quit the transmission to make the target electronic control unit ECU end the data transmission;

诊断设备通过例程服务使目标电控单元ECU对存储区域进行校验;The diagnostic equipment enables the target electronic control unit ECU to verify the storage area through routine services;

校验完成后,诊断设备生成新的Identification Zone信息,并发送指令将Identification Zone信息写入目标电控单元ECU中;After the verification is completed, the diagnostic equipment generates new Identification Zone information, and sends an instruction to write the Identification Zone information into the target electronic control unit ECU;

诊断设备采用功能寻址方式发送指令使CAN网络中所有电控单元切换到扩展会话模式;The diagnostic equipment uses the functional addressing mode to send instructions to switch all the electronic control units in the CAN network to the extended session mode;

S5、所有目标电控单元的软件刷写完成后,网络上周期性广播用于使所有电控单元退出“电子集成模式”的功能帧;S5. After the software flashing of all target electronic control units is completed, the function frame for making all electronic control units exit the "electronic integration mode" is periodically broadcast on the network;

S6、当网络上的电控单元接收到步骤S5所述的多个连续的该功能帧时,电控单元退出“电子集成模式”,恢复功能报文的收发,并允许更新记录DTC。S6. When the electronic control unit on the network receives a plurality of consecutive functional frames as described in step S5, the electronic control unit exits the "electronic integration mode", resumes the sending and receiving of function messages, and allows the DTC to be updated and recorded.

进一步地,所述步骤S1前还包括:Further, before the step S1, it also includes:

将待刷写软件的目标电控单元的会话模式切换为扩展会话模式;Switch the session mode of the target electronic control unit of the software to be flashed to the extended session mode;

判断待刷写软件的目标电控单元是否满足刷写条件,满足刷写条件后继续下一步操作。It is judged whether the target electronic control unit of the software to be flashed meets the flashing conditions, and the next step is continued after the flashing conditions are met.

所述刷写条件包括:车辆车速小于设定值且车辆处于非Ready状态;所述设定值可以是5Km/h,但不限于此值;所述Ready状态即车辆已经做好所有准备、启动成功、可以随时启程。The flashing conditions include: the vehicle speed is less than the set value and the vehicle is in a non-Ready state; the set value may be 5Km/h, but is not limited to this value; the Ready state means that the vehicle has been prepared and started Success, you can start at any time.

进一步地,所述控制电控单元进入/或退出“电子集成模式”的功能帧包括第一功能帧、第二功能帧,第一功能帧用于指示CAN总线通讯的网络状态,第二功能帧用于使能和非使能电控单元更新存储故障DTC。Further, the function frame for controlling the electronic control unit to enter/or exit the "electronic integration mode" includes a first function frame and a second function frame, the first function frame is used to indicate the network state of CAN bus communication, and the second function frame. Used to enable and disable the ECU to update the memory fault DTC.

进一步地,所述第一功能帧所指代的CAN总线通讯的状态包括如下几种:Standby、Normal_Mode、Switch_to_standby、Wake、COM_OFF,分别代表等待状态、正常状态、切换到等待状态、唤醒状态、通信关闭状态;所述第二功能帧所指代的使能状态包括如下两种:NOT_ACTIVATED、ACTIVATED,分别代表使能ECU更新存储故障DTC和非使能ECU更新存储故障DTC。Further, the states of the CAN bus communication referred to by the first function frame include the following: Standby, Normal_Mode, Switch_to_standby, Wake, COM_OFF, respectively representing waiting state, normal state, switching to waiting state, wake-up state, communication Closed state; the enabled state referred to by the second function frame includes the following two: NOT_ACTIVATED and ACTIVATED, which respectively represent the enabling ECU to update the storage fault DTC and the non-enable ECU to update the storage fault DTC.

进一步地,当CAN网络上的电控单元收到多次连续的第一功能帧和第二功能帧,且第一功能帧和第二功能帧所代表的指令分别为“通信关闭状态”和“非使能电控单元更新存储故障DTC”时,该电控单元进入“电子集成模式”;所述“非使能电控单元更新存储故障DTC”状态下的电控单元的DTC故障存储被禁用。Further, when the electronic control unit on the CAN network receives multiple consecutive first function frames and second function frames, and the instructions represented by the first function frame and the second function frame are respectively "communication off state" and " When the electronic control unit is not enabled to update the storage fault DTC", the electronic control unit enters the "electronic integration mode"; the DTC fault storage of the electronic control unit in the "non-enabled electronic control unit update storage fault DTC" state is disabled. .

进一步地,当软件刷写完毕后,CAN网络上周期性广播用于使电控单元退出“电子集成模式”的功能帧,当网络上的电控单元收到多次连续的第一功能帧和第二功能帧,且第一功能帧所代表的指令不为“通信关闭状态”、第二功能帧所代表的指令为“使能ECU更新存储故障DTC”时,该电控单元退出“电子集成模式”。Further, when the software is flashed, the CAN network periodically broadcasts a function frame for the electronic control unit to exit the "electronic integration mode". When the electronic control unit on the network receives multiple consecutive first function frames and When the second function frame, and the command represented by the first function frame is not "communication off state", and the command represented by the second function frame is "enable ECU to update storage fault DTC", the electronic control unit exits the "electronic integration" model".

进一步地,所述电控单元进入/或退出“电子集成模式”的功能帧还包括第三功能帧、第四功能帧,第三功能帧用于请求LIN总线上的目标电控单元使能/非使能跛行模式;第四功能帧用于使能和非使能LIN总线上的电控单元更新存储故障DTC。Further, the functional frame in which the electronic control unit enters/or exits the "electronic integration mode" also includes a third functional frame and a fourth functional frame, and the third functional frame is used to request the target electronic control unit on the LIN bus to enable/ Limp mode is disabled; the fourth functional frame is used to enable and disable the ECU on the LIN bus to update the memory fault DTC.

进一步的,当LIN网络上的电控单元收到多次连续的第三功能帧和第四功能帧,且第三功能帧和第四功能帧所代表的指令为“非使能跛行模式”和“非使能LIN总线上的电控单元更新存储故障DTC”时,该电控单元进入“电子集成模式”;软件刷写完毕后,LIN网络上周期性发送使电控单元退出“电子集成模式”的功能帧;当LIN网络上的电控单元收到多次连续的第三功能帧和第四功能帧,且第三功能帧和第四功能帧所代表的指令为“使能跛行模式”和“使能LIN总线上的电控单元更新存储故障DTC”时,该电控单元退出“电子集成模式”。Further, when the electronic control unit on the LIN network receives multiple consecutive third function frames and fourth function frames, and the instructions represented by the third function frame and the fourth function frame are "non-enabled limp mode" and When "the electronic control unit on the LIN bus is not enabled to update the storage fault DTC", the electronic control unit enters the "electronic integration mode"; after the software is refreshed, the LIN network periodically sends the electronic control unit to exit the "electronic integration mode". ” function frame; when the electronic control unit on the LIN network receives multiple consecutive third and fourth function frames, and the commands represented by the third and fourth function frames are “enable limp mode” and "enable the ECU on the LIN bus to update the memory fault DTC", the ECU exits the "electronic integration mode".

处于上述“非使能跛行模式”状态下的电控单元禁止激活跛行模式;处于“非使能LIN总线上的电控单元更新存储故障DTC”状态下的电控单元的DTC故障存储被禁用。The ECU in the above-mentioned "non-enabled limp mode" state is prohibited from activating the limp mode; the ECU in the "non-enabled LIN bus update storage fault DTC" state of the ECU is disabled for DTC fault storage.

处于上述“使能跛行模式”状态下的电控单元的跛行模式被激活;处于“使能LIN总线上的电控单元更新存储故障DTC”状态下的电控单元的DTC故障存储开启。The limp mode of the electronic control unit in the above-mentioned state of "enable limp mode" is activated; the DTC fault storage of the electronic control unit in the state of "enable the electronic control unit on the LIN bus to update the storage fault DTC" is turned on.

进一步地,所述第三功能帧和第四功能帧由整车控制器发出,输出到ECU LIN总线;还可通过CAN总线上的CAN ECU发出,输出到ECU LIN总线;所述CAN ECU也是LIN主节点。Further, the third function frame and the fourth function frame are sent by the vehicle controller and output to the ECU LIN bus; they can also be sent through the CAN ECU on the CAN bus and output to the ECU LIN bus; the CAN ECU is also a LIN bus. master node.

进一步地,当总线上的电控单元切换到“电子集成模式”时,在停止故障事件信息存储前将尚未发送的故障事件信息传输后即停止所有故障事件的传输。Further, when the electronic control unit on the bus is switched to the "electronic integration mode", the transmission of all fault events is stopped after the transmission of the fault event information that has not been sent before the storage of the fault event information is stopped.

实现本发明目的之二的车辆软件刷写系统,包括广播模块、功能帧判断模块、模式切换模块、软件刷写及校验模块;The vehicle software flashing system for realizing the second objective of the present invention includes a broadcast module, a function frame judgment module, a mode switching module, a software flashing and verification module;

所述广播模块用于在网络上周期性广播用于使电控单元进入/退出“电子集成模式”的功能帧;The broadcast module is used to periodically broadcast function frames used to make the electronic control unit enter/exit the "electronic integration mode" on the network;

所述功能帧判断模块用于判断电控单元是否接收到多个连续的功能帧;当电控单元接收到多个连续的功能帧时,模式切换模块使电控单元进入/退出“电子集成模式”;The function frame judgment module is used for judging whether the electronic control unit has received a plurality of consecutive function frames; when the electronic control unit receives a plurality of consecutive function frames, the mode switching module makes the electronic control unit enter/exit the "electronic integration mode". ";

更进一步地,当电控单元接收到多个连续的第一功能帧和第二功能帧时,模式切换模块使CAN网络上的电控单元进入/退出“电子集成模式”;当电控单元接收到多个连续的第三功能帧和第四功能帧时,模式切换模块使LIN网络上的电控单元进入/退出“电子集成模式”;Further, when the electronic control unit receives a plurality of consecutive first function frames and second function frames, the mode switching module enables the electronic control unit on the CAN network to enter/exit the "electronic integration mode"; when the electronic control unit receives When there are multiple consecutive third function frames and fourth function frames, the mode switching module makes the electronic control unit on the LIN network enter/exit the "electronic integration mode";

更进一步地,当CAN网络上的电控单元收到连续的多个第一功能帧和第二功能帧时:如果第一功能帧和第二功能帧所代表的指令分别为“通信关闭状态”和“非使能电控单元更新存储故障DTC”时,电控单元进入“电子集成模式”;如果第一功能帧所代表的指令不为“通信关闭状态”、第二功能帧所代表的指令为“使能ECU更新存储故障DTC”时,CAN网络上的电控单元退出“电子集成模式”。Further, when the electronic control unit on the CAN network receives multiple consecutive first function frames and second function frames: if the instructions represented by the first function frame and the second function frame are respectively "communication closed state" and "non-enable electronic control unit to update storage fault DTC", the electronic control unit enters "electronic integration mode"; if the command represented by the first function frame is not "communication off state", the command represented by the second function frame For "enable ECU update storage fault DTC", the electronic control unit on the CAN network exits "electronic integration mode".

更进一步地,当LIN网络上的电控单元收到连续的多个第三功能帧和第四功能帧时:如果第三功能帧和第四功能帧所代表的指令为“非使能跛行模式”和“非使能LIN总线上的电控单元更新存储故障DTC”时,LIN网络上的电控单元进入“电子集成模式”;如果第三功能帧和第四功能帧所代表的指令为“使能跛行模式”和“使能LIN总线上的电控单元更新存储故障DTC”时,该电控单元退出“电子集成模式”;Further, when the electronic control unit on the LIN network receives a plurality of consecutive third and fourth function frames: if the commands represented by the third and fourth function frames are "disable limp mode" ” and “Non-enable the ECU on the LIN bus to update the storage fault DTC”, the ECU on the LIN network enters the “electronic integration mode”; if the commands represented by the third and fourth function frames are “ When "enable limp mode" and "enable ECU on LIN bus to update storage fault DTC", the ECU exits "electronic integration mode";

所述的模式切换模块用于使电控单元进入或退出“电子集成模式”;The mode switching module is used to make the electronic control unit enter or exit the "electronic integration mode";

处于“电子集成模式”下的电控单元的DTC故障存储被禁用、电控单元停止发送功能报文且不再对网络通讯进行诊断;The DTC fault storage of the electronic control unit in "electronic integration mode" is disabled, the electronic control unit stops sending function messages and no longer diagnoses network communication;

所述软件刷写及校验模块用于刷写目标电控单元的软件,软件刷写完成后对目标电控单元的存储区域进行校验。The software flashing and verification module is used for flashing the software of the target electronic control unit, and after the software flashing is completed, the storage area of the target electronic control unit is verified.

进一步地,还包括刷写条件判断模块,用于判断待刷写软件的目标电控单元是否满足刷写条件,当不满足刷写条件时,广播模块停止在网络上周期性广播用于使电控单元进入“电子集成模式”的功能帧。Further, it also includes a flashing condition judgment module, which is used to judge whether the target electronic control unit of the software to be flashed meets the flashing condition. The control unit enters the function frame of "electronic integration mode".

有益效果:Beneficial effects:

本发明创新性地增加电控单元的“电子集成模式”,该模式可以实现快速恢复电控单元网络通信的最大带宽,以便对目标电控单元快速进行配置操作;同时当网络上的电控单元处于配置阶段时,关闭连接到车辆CAN、LIN通信网络电控单元的故障DTC存储(所有电控单元都具有通信层诊断功能,以确保监控其他电控单元传输的信息),这样能够有效保证电控单元软件刷写的稳定性、高可靠性,提升数据传输效率。The invention innovatively increases the "electronic integration mode" of the electronic control unit, which can quickly restore the maximum bandwidth of the network communication of the electronic control unit, so as to quickly configure the target electronic control unit; at the same time, when the electronic control unit on the network In the configuration stage, close the fault DTC storage connected to the vehicle CAN and LIN communication network ECUs (all ECUs have a communication layer diagnostic function to ensure monitoring of information transmitted by other ECUs), which can effectively ensure that the The stability and high reliability of the control unit software flashing and writing, improve the data transmission efficiency.

附图说明Description of drawings

图1是本发明所述方法的流程图;Fig. 1 is the flow chart of the method of the present invention;

图2是本发明所述“电子集成模式”数据流示意图。Figure 2 is a schematic diagram of the data flow of the "electronic integration mode" of the present invention.

具体实施方式Detailed ways

下列具体实施方式用于对本发明权利要求技术方案的解释,以便本领域的技术人员理解本权利要求书。本发明的保护范围不限于下列具体的实施结构。本领域的技术人员做出的包含有本发明权利要求书技术方案而不同于下列具体实施方式的也是本发明的保护范围。The following specific embodiments are used to explain the technical solutions of the claims of the present invention, so that those skilled in the art can understand the claims. The protection scope of the present invention is not limited to the following specific implementation structures. The technical solutions made by those skilled in the art that include the technical solutions of the claims of the present invention and are different from the following specific embodiments are also the protection scope of the present invention.

诊断设备通过车辆OBD诊断口与车辆网关连接,车辆软件刷写基于UDS诊断协议,需要使用0x10、0x31、0x22、0x27、0x34、0x36、0x37、0x11等服务。下面将介绍所述服务。The diagnostic equipment is connected to the vehicle gateway through the vehicle OBD diagnostic port. The vehicle software is flashed based on the UDS diagnostic protocol, and services such as 0x10, 0x31, 0x22, 0x27, 0x34, 0x36, 0x37, and 0x11 are required. The services are described below.

0x10服务用于切换当前ECU(Electronic Control Unit,电控单元)的会话模式。可以在软件刷写开始前,将默认会话模式切换为扩展会话模式;在刷写条件满足时,将扩展模式切换为编程会话模式;在数据刷写后,将会话模式由编程会话模式切换为扩展会话模式;使能ECU DTC记录后,将会话模式切换至默认会话模式以完成所有的软件刷写操作。The 0x10 service is used to switch the session mode of the current ECU (Electronic Control Unit). The default session mode can be switched to the extended session mode before the software flashing starts; when the flashing conditions are met, the extended mode can be switched to the programming session mode; after the data flashing, the session mode can be switched from the programming session mode to the extended session mode Session mode; after enabling ECU DTC recording, switch session mode to default session mode to complete all software flashing operations.

0x31服务主要用作例程服务,有三种用途:进行刷写条件的检查、擦除待写入的存储区、校验和。The 0x31 service is mainly used as a routine service and has three purposes: checking the flashing conditions, erasing the storage area to be written, and checking the sum.

0x22服务用于读取目标电控单元ECU的软件及硬件号等信息。The 0x22 service is used to read the software and hardware numbers of the target electronic control unit ECU.

0x27服务用于对ECU进行安全访问。The 0x27 service is used for secure access to the ECU.

0x34、0x36、0x37服务分别用于进行数据请求下载、数据传输及退出数据传输。0x34, 0x36, and 0x37 services are used for data request download, data transfer and exit data transfer respectively.

0x11服务用于进行ECU的重启操作。The 0x11 service is used to restart the ECU.

本发明结合UDS协议及CAN总线通讯的原理,在车辆软件刷写中引入“电子集成模式”。The invention combines the principle of UDS protocol and CAN bus communication, and introduces "electronic integration mode" in vehicle software flashing.

下面结合图1讲述本发明提供一个车辆软件刷写方法的实施例。The following describes an embodiment of a vehicle software flashing method provided by the present invention with reference to FIG. 1 .

车辆软件刷写基于UDS诊断协议及CAN总线通讯原理,使用0x10、0x31、0x22、0x27、0x34、0x36、0x37、0x11等诊断服务,同时在车辆软件刷写中引入“电子集成模式”概念。具体步骤如下所示:Vehicle software flashing is based on the UDS diagnostic protocol and CAN bus communication principle, using 0x10, 0x31, 0x22, 0x27, 0x34, 0x36, 0x37, 0x11 and other diagnostic services, and the concept of "electronic integration mode" is introduced into the vehicle software flashing. The specific steps are as follows:

Step1,所述0x10服务用于切换CAN网络上ECU的会话模式。诊断设备采用功能寻址的方式,使CAN网络上的所有电控单元ECU切换到扩展会话模式。Step1, the 0x10 service is used to switch the session mode of the ECU on the CAN network. The diagnostic equipment adopts the method of functional addressing, which makes all the electronic control unit ECUs on the CAN network switch to the extended session mode.

Step2,所述0x31服务主要用作例程服务。诊断设备通过物理寻址的方式,发送0x31请求报文,检查目标电控单元ECU是否满足刷写条件。刷写条件满足时,目标电控单元ECU回复肯定响应0x71报文。刷写条件不满足时,目标电控单元ECU回复否定响应NRC(Negative Response Codes)0x22报文。当不满足刷写条件时,退出后续的软件刷写流程。Step2, the 0x31 service is mainly used as a routine service. The diagnostic device sends a 0x31 request message through physical addressing to check whether the target electronic control unit ECU meets the flashing conditions. When the flashing conditions are met, the target electronic control unit ECU replies with a positive response 0x71 message. When the flashing conditions are not satisfied, the target electronic control unit ECU replies with a negative response NRC (Negative Response Codes) 0x22 message. When the flashing conditions are not met, exit the subsequent software flashing process.

Step3&Step4,诊断设备采用功能寻址的方式,周期发送第一功能帧和第二功能帧,当CAN网络上的电控单元ECU连续三次收到第一功能帧和第二功能帧,且第一功能帧和第二功能帧的值分别为COM_OFF和ACTIVATED时,CAN网络上的所有电控单元ECU进入“电子集成模式”,以禁止电控单元ECU更新存储DTC并禁止电控单元ECU发送非诊断报文,为刷写软件留出最大的网络带宽。当所有待刷写软件的电控单元ECU进入电子集成模式后,进入下一步骤。Step3&Step4, the diagnostic equipment adopts the function addressing method to periodically send the first function frame and the second function frame. When the electronic control unit ECU on the CAN network receives the first function frame and the second function frame for three consecutive times, and the first function frame When the values of the frame and the second function frame are COM_OFF and ACTIVATED respectively, all electronic control unit ECUs on the CAN network enter the "electronic integration mode" to prohibit the electronic control unit ECU from updating the stored DTC and prohibiting the electronic control unit ECU from sending non-diagnostic reports. file, and set aside the maximum network bandwidth for flashing software. When all the ECUs whose software is to be flashed enter the electronic integration mode, go to the next step.

Step5,诊断设备通过物理寻址方式,发送0x10的请求报文,使目标电控单元进入编程会话模式。Step 5, the diagnostic device sends a 0x10 request message through the physical addressing mode, so that the target electronic control unit enters the programming session mode.

Step6,所述0x22服务用于读取目标电控单元ECU的ZA(Authentication Zone)及ZI(Identification Zone)等信息。ZA包括识别目标电控单元ECU所需的参数,如功能号、供应商代码、零件号等。ZI包括识别软件所需的参数,如软件下载日期、软件号等信息。诊断设备通过物理寻址的方式,向目标电控单元ECU发送请求报文0x22获取电控单元的ZA及ZI信息。Step 6, the 0x22 service is used to read information such as ZA (Authentication Zone) and ZI (Identification Zone) of the target electronic control unit ECU. ZA includes parameters required to identify the target electronic control unit ECU, such as function number, supplier code, part number, etc. ZI includes parameters required to identify the software, such as software download date, software number and other information. The diagnostic device sends a request message 0x22 to the target electronic control unit ECU to obtain the ZA and ZI information of the electronic control unit by means of physical addressing.

Step7,所述0x27服务用于对ECU进行安全访问,解锁目标电控单元ECU。Step7, the 0x27 service is used to securely access the ECU and unlock the target electronic control unit ECU.

Step8,诊断设备通过例程服务0x31擦除目标电控单元ECU软件待存储区域。Step8, the diagnostic equipment erases the target electronic control unit ECU software to be stored area through the routine service 0x31.

Step9,所述0x34、0x36、0x37服务分别用于数据请求下载、数据传输及请求退出数据传输。诊断设备会循环发送数据传输服务(0x36),直至将刷写文件中的数据全部发送完毕。当数据全部发送完毕后,诊断设备发送请求退出传输的服务报文(0x37)结束数据传输。Step 9, the 0x34, 0x36, and 0x37 services are respectively used for data request download, data transmission and request to exit data transmission. The diagnostic device will cyclically send the data transmission service (0x36) until all the data in the flash file is sent. When all the data is sent, the diagnostic device sends a service message (0x37) requesting to quit the transmission to end the data transmission.

Step10,诊断设备通过例程服务(0x31)要求目标电控单元ECU对存储区域进行校验。Step10, the diagnostic equipment requests the target electronic control unit ECU to verify the storage area through the routine service (0x31).

Step11,校验正常完成后,诊断设备生成新的ZI信息,通过0x34服务将ZI信息写入目标电控单元ECU中。Step11, after the verification is completed normally, the diagnostic equipment generates new ZI information, and writes the ZI information into the target electronic control unit ECU through the 0x34 service.

Step12,诊断设备采用物理寻址的方式,通过服务0x11重启目标电控单元ECU。Step 12, the diagnostic device uses physical addressing to restart the target electronic control unit ECU by serving 0x11.

Step13,诊断设备采用功能寻址方式,通过0x10服务,使CAN网络中所有电控单元切换到扩展会话模式。Step 13, the diagnostic equipment adopts the functional addressing mode, and switches all the electronic control units in the CAN network to the extended session mode through the 0x10 service.

Step14&15,诊断设备采用功能寻址的方式,周期性的发送第一功能帧和第二功能帧,当CAN总线上的ECU连续3次收到诊断设备周期发送的第二功能帧的值为“NOT_ACTIVATED”,且第一功能帧的值不为COM_OFF时,CAN网络上的所有电控单元ECU跳出“电子集成模式”,使能DTC更新存储功能、使能电控单元ECU发送和接收报文,恢复非诊断报文和/或功能报文的通信。Step14&15, the diagnostic equipment uses the function addressing method to periodically send the first function frame and the second function frame. When the ECU on the CAN bus receives the second function frame periodically sent by the diagnostic equipment for three consecutive times, the value of the second function frame is "NOT_ACTIVATED" ”, and when the value of the first function frame is not COM_OFF, all electronic control unit ECUs on the CAN network jump out of the “electronic integration mode”, enable the DTC update storage function, enable the electronic control unit ECU to send and receive messages, restore Communication of non-diagnostic and/or functional messages.

Step16,诊断设备采用功能寻址方式,通过0x10(指令)服务使CAN网络中所有电控单元切换到默认会话模式。至此,整个软件下载流程结束。Step16, the diagnostic equipment adopts the functional addressing mode, and switches all the electronic control units in the CAN network to the default session mode through the 0x10 (command) service. At this point, the entire software download process ends.

本发明所述“电子集成模式”是指使用第一功能帧和第二功能帧作为诊断设备周期发送给CAN网络上电控单元ECU的输入数据流。第一功能帧用于指示CAN总线通讯的网络状态,有五种网络状态:Standby、Normal_Mode、Switch_to_standby、Wake、COM_OFF(关闭通信)。第二功能帧用于请求禁止ECU更新存储故障DTC,有两种状态:NOT_ACTIVATED、ACTIVATED。The "electronic integration mode" in the present invention refers to the input data stream sent to the electronic control unit ECU on the CAN network by using the first function frame and the second function frame as the diagnostic equipment cycle. The first function frame is used to indicate the network state of CAN bus communication, there are five network states: Standby, Normal_Mode, Switch_to_standby, Wake, COM_OFF (close communication). The second function frame is used to request to prohibit the ECU from updating the storage fault DTC, and there are two states: NOT_ACTIVATED, ACTIVATED.

电控单元ECU使用第三功能帧和第四功能帧作为ECU CAN总线通讯的输出数据流以及ECU LIN总线通讯的输入数据流。第三功能帧用于请求LIN总线上的ECU进入/退出limphome模式。第三功能帧通过一个bit位编码两种状态:0NOT_ACTIVATED、1ACTIVATED。ECU唤醒时为初始值0NOT_ACTIVATED。第四功能帧用于请求使能/非使能LIN总线上的ECU更新存储故障DTC。第四功能帧通过一个bit位编码两种状态:0NOT_ACTIVATED、1ACTIVATED。ECU唤醒时为初始值0NOT_ACTIVATED。The electronic control unit ECU uses the third function frame and the fourth function frame as the output data flow of the ECU CAN bus communication and the input data flow of the ECU LIN bus communication. The third function frame is used to request the ECU on the LIN bus to enter/exit the limphome mode. The third function frame encodes two states by one bit: 0NOT_ACTIVATED, 1ACTIVATED. The initial value is 0NOT_ACTIVATED when the ECU wakes up. The fourth function frame is used to request the ECU on the LIN bus to be enabled/disabled to update the storage fault DTC. The fourth functional frame encodes two states by one bit: 0NOT_ACTIVATED, 1ACTIVATED. The initial value is 0NOT_ACTIVATED when the ECU wakes up.

在满足刷写条件时,当CAN总线上的电控单元ECU连续3次接收到诊断设备周期发送的第一功能帧和第二功能帧,且第一功能帧和第二功能帧的值分别为COM_OFF和ACTIVATED时,此CAN网络上电控单元ECU进入“电子集成模式”;当LIN总线上的电控单元ECU连续3次接收到诊断设备周期发送的第三功能帧和第四功能帧时,且第三功能帧和第四功能帧的值均为“ACTIVATED”时,此LIN总线上电控单元ECU进入“电子集成模式”。所有电控单元ECU将停止在网络上传输功能信息(与电子集成模式及防盗功能相关的信息除外),且停止将故障事件信息传输到车辆的“缺陷事件历史”故障日志中。但是,当总线上的目标ECU切换到“电子集成模式”时,在停止故障事件信息存储前会传输尚未发送的最后一个故障事件信息。When the flashing conditions are met, when the electronic control unit ECU on the CAN bus receives the first function frame and the second function frame sent by the diagnostic equipment cycle three times in a row, and the values of the first function frame and the second function frame are respectively When COM_OFF and ACTIVATED, the electronic control unit ECU on the CAN network enters the "electronic integration mode"; when the electronic control unit ECU on the LIN bus receives the third and fourth function frames sent by the diagnostic equipment cycle for three consecutive times, And when the values of the third function frame and the fourth function frame are both "ACTIVATED", the electronic control unit ECU on the LIN bus enters the "electronic integration mode". All electronic control unit ECUs will stop transmitting function information on the network (except information related to electronic integration mode and anti-theft functions), and stop transmitting fault event information to the vehicle's "defect event history" fault log. However, when the target ECU on the bus switches to "electronic integration mode", the last fault event information that has not been sent is transmitted before the fault event information storage is stopped.

当CAN总线上的ECU连续3次收到诊断设备周期发送的第二功能帧的值为“NOT_ACTIVATED”且第一功能帧的值不为COM_OFF时,ECU跳出“电子集成模式”;当LIN总线上的电控单元ECU连续3次接收到诊断设备周期发送的第三功能帧和第四功能帧时,且第三功能帧和第四功能帧的值均为“NOT_ACTIVATED”时,此LIN总线上电控单元ECU跳出“电子集成模式”。诊断设备使能CAN/LIN网络中的电控单元发送和接收报文,并允许网络中的电控单元更新记录DTC。When the ECU on the CAN bus receives the second function frame value of “NOT_ACTIVATED” sent by the diagnostic equipment cycle three times in a row and the value of the first function frame is not COM_OFF, the ECU jumps out of the “electronic integration mode”; When the ECU of the ECU receives the third and fourth function frames periodically sent by the diagnostic equipment for three consecutive times, and the values of the third and fourth function frames are both "NOT_ACTIVATED", the LIN bus is powered on The control unit ECU jumps out of "electronic integration mode". The diagnostic equipment enables the electronic control unit in the CAN/LIN network to send and receive messages, and allows the electronic control unit in the network to update the record DTC.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

本申请还提供一种车辆软件刷写系统的实施例,包括广播模块、功能帧判断模块、模式切换模块、软件刷写及校验模块;The present application also provides an embodiment of a vehicle software flashing system, including a broadcast module, a function frame judgment module, a mode switching module, a software flashing and verification module;

所述广播模块用于在网络上周期性广播用于使电控单元进入/退出“电子集成模式”的功能帧;The broadcast module is used to periodically broadcast function frames used to make the electronic control unit enter/exit the "electronic integration mode" on the network;

所述功能帧判断模块用于判断电控单元是否接收到多个连续的功能帧;当电控单元接收到多个连续的功能帧时,模式切换模块使电控单元进入/退出“电子集成模式”;The function frame judgment module is used for judging whether the electronic control unit has received a plurality of consecutive function frames; when the electronic control unit receives a plurality of consecutive function frames, the mode switching module makes the electronic control unit enter/exit the "electronic integration mode". ";

所述的模式切换模块用于使电控单元进入或退出“电子集成模式”;The mode switching module is used to make the electronic control unit enter or exit the "electronic integration mode";

处于“电子集成模式”下的电控单元的DTC故障存储被禁用、电控单元停止发送功能报文且不再对网络通讯进行诊断;The DTC fault storage of the electronic control unit in "electronic integration mode" is disabled, the electronic control unit stops sending function messages and no longer diagnoses network communication;

所述软件刷写及校验模块用于刷写待刷写软件的目标电控单元的软件,软件刷写完成后对目标电控单元的存储区域进行校验。The software flashing and verification module is used for flashing the software of the target electronic control unit of the software to be flashed. After the software flashing is completed, the storage area of the target electronic control unit is verified.

在另一个实施例中还包括刷写条件判断模块,用于判断待刷写软件的目标电控单元是否满足刷写条件。刷写条件为:车速小于5km/h且车辆处于非Ready状态。当不满足刷写条件时,广播模块停止在CAN/LIN网络上周期性广播用于使电控单元进入“电子集成模式”的功能帧。In another embodiment, a flashing condition judgment module is further included, which is used for judging whether the target electronic control unit of the software to be flashed meets the flashing condition. The flashing conditions are: the vehicle speed is less than 5km/h and the vehicle is in a non-Ready state. When the flashing conditions are not met, the broadcasting module stops periodically broadcasting the function frame used to make the electronic control unit enter the "electronic integration mode" on the CAN/LIN network.

本说明书未作详细描述的内容属于本领域专业技术人员公知的现有技术。The content not described in detail in this specification belongs to the prior art known to those skilled in the art.

Claims (10)

1. A vehicle software flashing method is characterized by comprising the following steps:
s1, periodically broadcasting a function frame for enabling the electronic control unit to enter an electronic integration mode on the network;
s2, when the electric control unit on the network receives a plurality of continuous function frames, the electric control unit enters an electronic integration mode, DTC fault storage of the electric control unit entering the electronic integration mode is forbidden, the electric control unit stops sending the function message and does not diagnose network communication any more;
s3, when all the electric control units enter an electronic integration mode, starting a software flashing flow for the target electric control unit needing software flashing in sequence;
s4, sequentially performing software flashing on all target electric control units;
s5, after the software of all target electric control units is refreshed, periodically broadcasting a function frame for enabling the electric control units to exit from the electronic integration mode on the network;
and S6, when the electronic control unit on the network receives a plurality of continuous function frames described in the step S5, the electronic control unit exits the electronic integration mode, resumes the transceiving of the function messages and allows the DTC to be updated and recorded.
2. The vehicle software flashing method as recited in claim 1, wherein the function frames for controlling the ecu to enter and/or exit the electronic integration mode include a first function frame for indicating a network status of CAN bus communication, and a second function frame for enabling and disabling the ecu to update the storage fault DTC.
3. The vehicle software flashing method as recited in claim 2, wherein the ecu enters the "electronic integration mode" when the ecu on the CAN network receives a plurality of consecutive first and second function frames, and the commands represented by the first and second function frames are "communication off state" and "no-enable ecu updates the storage fault DTC", respectively.
4. The vehicle software flashing method of claim 2, wherein the electronic control unit periodically broadcasts a function frame for causing the electronic control unit to exit the "electronic integration mode" after the software flashing is completed, and the electronic control unit exits the "electronic integration mode" when the electronic control unit on the network receives a plurality of consecutive first function frames and second function frames, and the command represented by the first function frame is not in the "communication off state" and the command represented by the second function frame is "enable ECU update storage failure DTC".
5. The vehicle software flashing method as defined in claim 1, wherein the functional frames in which the ecu enters and/or exits the "electronic integration mode" further include a third functional frame requesting that the target ecu on the LIN bus enable/disable the limp-home mode; the fourth function frame is used to enable and disable the electronic control unit on the LIN bus to update the memory failure DTC.
6. The vehicle software flashing method as recited in claim 5, wherein the ecu enters the "electronic integration mode" when the ecu on the LIN network receives a plurality of consecutive third and fourth function frames, and the commands represented by the third and fourth function frames are "non-enabled limp home mode" and "the ecu on the non-enabled LIN bus updates the storage failure DTC"; after the software is written, periodically sending a functional frame which enables the electric control unit to exit from the electronic integration mode on the LIN network; when the electronic control unit on the LIN network receives a plurality of times of continuous third and fourth function frames, and the instructions represented by the third and fourth function frames are 'enable limp home mode' and 'the electronic control unit on the non-enable LIN bus updates the storage fault DTC', the electronic control unit exits from the 'electronic integration mode'.
7. The vehicle software flashing method according to claim 1, wherein the third functional frame and the fourth functional frame are transmitted by the vehicle controller and output to the ECU LIN bus; CAN also be sent out through the CAN ECU on the CAN bus and output to the ECU LIN bus.
8. The vehicle software flashing method of claim 1, wherein step S1 is preceded by:
switching a session mode of an electric control unit of software to be flashed into an extended session mode;
and judging whether the electric control unit of the software to be flashed meets the flashing condition or not, and continuing the next operation after meeting the flashing condition.
9. The vehicle software flashing method according to claim 1, wherein in the step S4, the method for sequentially flashing the target electronic control units of all the software to be flashed comprises the following steps:
sending an instruction to a target electric control unit in a physical addressing mode to acquire the information of the Authentication Zone and the Identification Zone of the target electric control unit;
unlocking the target electronic control unit;
sending instructions for requesting downloading and transmitting data to a target electronic control unit;
after all the data in the flash file are sent, sending an instruction for requesting to quit transmission to enable the target electronic control unit to finish data transmission;
verifying a storage area of the target electronic control unit;
after the verification is finished, generating new Identification Zone information, and writing the Identification Zone information into a target electronic control unit;
and sending an instruction by adopting a function addressing mode to switch all the electric control units in the CAN network to an extended session mode.
10. A vehicle software flashing system according to the method of claim 1, comprising a broadcasting module, a function frame judging module, a mode switching module, a software flashing and checking module;
the broadcasting module is used for periodically broadcasting a functional frame for enabling the electric control unit to enter/exit an electronic integration mode on the network;
the function frame judging module is used for judging whether the electric control unit receives a plurality of continuous function frames;
the mode switching module is used for enabling the electric control unit to enter or exit an electronic integration mode;
the DTC fault storage of the electric control unit in the 'electronic integration mode' is forbidden, the electric control unit stops sending the function message and does not diagnose the network communication any more;
the software flashing and verifying module is used for flashing software of the target electric control unit and verifying the storage area of the target electric control unit after the software flashing is finished.
CN202210686806.5A 2022-06-16 2022-06-16 Vehicle software flashing method and system Pending CN115047852A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210686806.5A CN115047852A (en) 2022-06-16 2022-06-16 Vehicle software flashing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210686806.5A CN115047852A (en) 2022-06-16 2022-06-16 Vehicle software flashing method and system

Publications (1)

Publication Number Publication Date
CN115047852A true CN115047852A (en) 2022-09-13

Family

ID=83161969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210686806.5A Pending CN115047852A (en) 2022-06-16 2022-06-16 Vehicle software flashing method and system

Country Status (1)

Country Link
CN (1) CN115047852A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117406698A (en) * 2023-12-12 2024-01-16 广汽埃安新能源汽车股份有限公司 ECU fault processing method and device in brushing process

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5634045A (en) * 1995-11-13 1997-05-27 Motorola, Inc. Integrated circuit input/output processor having improved timer capability
CN1872592A (en) * 2005-06-01 2006-12-06 丰田自动车株式会社 Vehicle electronic controlling device
CN113497819A (en) * 2020-04-02 2021-10-12 广州汽车集团股份有限公司 Remote upgrade security guarantee method and system and vehicle-mounted Tbox equipment
CN113590162A (en) * 2021-08-24 2021-11-02 北京经纬恒润科技股份有限公司 Data upgrading method and system
CN113703420A (en) * 2021-08-24 2021-11-26 中国第一汽车股份有限公司 Vehicle controller flashing method, flashing device, vehicle controller and storage medium
CN114327541A (en) * 2021-12-09 2022-04-12 一汽奔腾轿车有限公司 A kind of host computer OTA configurable program flashing system and flashing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5634045A (en) * 1995-11-13 1997-05-27 Motorola, Inc. Integrated circuit input/output processor having improved timer capability
CN1872592A (en) * 2005-06-01 2006-12-06 丰田自动车株式会社 Vehicle electronic controlling device
CN113497819A (en) * 2020-04-02 2021-10-12 广州汽车集团股份有限公司 Remote upgrade security guarantee method and system and vehicle-mounted Tbox equipment
CN113590162A (en) * 2021-08-24 2021-11-02 北京经纬恒润科技股份有限公司 Data upgrading method and system
CN113703420A (en) * 2021-08-24 2021-11-26 中国第一汽车股份有限公司 Vehicle controller flashing method, flashing device, vehicle controller and storage medium
CN114327541A (en) * 2021-12-09 2022-04-12 一汽奔腾轿车有限公司 A kind of host computer OTA configurable program flashing system and flashing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117406698A (en) * 2023-12-12 2024-01-16 广汽埃安新能源汽车股份有限公司 ECU fault processing method and device in brushing process
CN117406698B (en) * 2023-12-12 2024-03-01 广汽埃安新能源汽车股份有限公司 ECU fault processing method and device in brushing process

Similar Documents

Publication Publication Date Title
CN111061499B (en) ECU updating method and system based on file system
US9450911B2 (en) System and method for managing ethernet communication network for use in vehicle
CN102568054B (en) Information record carrier
CN110347412B (en) Electronic control unit firmware upgrade management method, device, equipment and storage medium
CN106218550B (en) Control method, electronic control unit, system and the vehicle of electronic control unit
JP5174025B2 (en) Apparatus and method for managing communication via a bus in an automobile in which a plurality of control devices are connected via a bus
US10673986B2 (en) Operation method of communication node for selective wake-up in vehicle network
EP3316524A1 (en) Protection device from cyber attacks to a vehicle through a diagnostic connector and related method
CN105703991B (en) Local interconnect network system and method
CN112198863A (en) Diagnostic function control method, system, storage medium, vehicle-mounted communication box and vehicle
CN109484474A (en) EPS control module and its control system and control method
CN115047852A (en) Vehicle software flashing method and system
CN113285860B (en) Method and system for flashing slave node through master node
CN112148312A (en) Firmware upgrading management method, device, equipment and medium for electronic controller
CN102033765B (en) BCM (Body Control Module) program upgrading method and vehicle-mounted electronic control system upgrading method
US12271277B2 (en) Method of controlling communication over a local interconnect network bus
US12117954B2 (en) Method of dialogue with a computer on an on-board bus of a vehicle
CN114090027B (en) A firmware flashing method and device
WO2024152834A1 (en) Ota upgrade method and storage medium
CN110509870B (en) Vehicle-mounted CAN network and vehicle-mounted CAN network management method
CN105334840B (en) Vehicle network child node collocation method
CN115129025A (en) Finished automobile off-line distribution method, finished automobile off-line distribution system, readable storage medium and equipment
CN113434163A (en) Online calibration method, system, equipment and medium suitable for electronic control unit
CN117749562A (en) Behavior learning-based ECU awakening method, device, equipment and storage medium
JPH1196082A (en) Memory rewriting device for vehicle

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