WO2010017775A1 - Procédé de commande à base de bus can (controller area network) pour rafraîchir les codes d'un contrôleur électronique de véhicule - Google Patents

Procédé de commande à base de bus can (controller area network) pour rafraîchir les codes d'un contrôleur électronique de véhicule Download PDF

Info

Publication number
WO2010017775A1
WO2010017775A1 PCT/CN2009/073233 CN2009073233W WO2010017775A1 WO 2010017775 A1 WO2010017775 A1 WO 2010017775A1 CN 2009073233 W CN2009073233 W CN 2009073233W WO 2010017775 A1 WO2010017775 A1 WO 2010017775A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
refresh
memory
diagnostic
bus
Prior art date
Application number
PCT/CN2009/073233
Other languages
English (en)
Chinese (zh)
Inventor
彭庆丰
左从兵
Original Assignee
奇瑞汽车股份有限公司
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 奇瑞汽车股份有限公司 filed Critical 奇瑞汽车股份有限公司
Publication of WO2010017775A1 publication Critical patent/WO2010017775A1/fr

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Definitions

  • the invention relates to a method for updating an electronic controller of an automobile, in particular to a method for controlling bus programming of a CAN (Local Area Network Controller) of an automotive electronic controller.
  • CAN Local Area Network Controller
  • the present invention provides a control method for code refresh of an automotive electronic controller based on a CAN bus, which can use a CAN bus-based diagnostic device for automotive electronics.
  • the controller Flash is refreshed. During the refresh process, it can detect whether the correct application exists in the controller Flash. If there is no correct application, it will be refreshed.
  • the method includes the following steps:
  • Step A From the normal application running state of the automotive electronic system to the refresh mode
  • Step B Verify the memory of the automotive electronic controller chip and determine whether the correct application is stored in the memory
  • Step C If there is no correct application in the memory, download the application from the diagnostic device, transfer it over the CAN bus, and refresh the application in Flash.
  • the step A specifically includes: entering a refresh mode by the interrupt vector table by a reset interrupt.
  • the step A specifically includes: the system receives a request from the authorized diagnostic device to enter the refresh mode diagnostic service request and enters a refresh mode.
  • the step B specifically includes: after entering the refresh module, first performing a self-test of the RAM memory. If the RAM self-test fails, the program waits for a watchdog reset. After the watchdog resets, the program performs a RAM self-test again.
  • the step B specifically includes: writing a specific data as a Magic Word check code at a specific address in the memory every time refreshing.
  • the step B specifically includes: the program inserts the magic in the specific address before entering the application
  • Word check code readout is compared with the check code stored in the program. If they match, the memory has the correct application. If it is inconsistent, the memory has not been flushed into the application, or the application has been brushed in before. Damaged, you need to brush into the application.
  • the CAN diagnostic protocol layer is responsible for receiving the CAN diagnostic service request message sent by the diagnostic device, and submitting the diagnostic service request to the CAN diagnostic service layer for processing, and then feeding back the response message of the diagnostic service layer to the diagnostic device; the CAN diagnostic service layer performs a specific diagnosis.
  • Service requests including diagnostic mode conversion services, security verification services, memory erasure services, and memory programming services, complete downloading applications from diagnostic devices and programming memory;
  • the memory storing the application is a Flash type memory.
  • FIG. 1 is a diagram showing an interrupt processing mechanism of the detecting method of the present invention
  • FIG. 2 is a structural diagram of a refresh module of the detecting method of the present invention.
  • FIG. 3 is a schematic diagram of the KWP2000 diagnostic service. detailed description
  • the invention designs an application control flow of a CAN bus programming in a flash area of an automotive electronic controller.
  • a refresh module in the controller application, which includes basic CAN communication and CAN diagnostic functions.
  • the entire controller application is divided into an Application Module and a Bootbloader Module.
  • Application module for performing real-time operations As a system and policy control algorithm, the refresh module is used to initiate boot and application programming.
  • the application interrupt can be divided into a reset interrupt and a general interrupt. If it is a general interrupt, the program enters the interrupt service subroutine of the application via the interrupt vector jump table, and then returns to the application's stack address to continue running the application; Is the reset interrupt, the program enters the refresh module from the interrupt vector table, first performs the RAM self-test and the Magic Word check code check. If it passes, the program jumps out of the refresh module, enters the application portal, executes the application; otherwise, it stays at Refresh the module and wait for the next program instruction.
  • the interrupt handling mechanism is shown in Figure 1.
  • Another way to enter the refresh mode is initiated by the diagnostic device's diagnostic service request: In the application, if the controller receives a request from the authorized diagnostic device to enter the refresh mode diagnostic service request, then the application also enters from the application. Refresh mode.
  • the structure diagram of the refresh module is shown in Figure 2.
  • the RAM self-test is first performed. If the RAM self-test fails, the program waits for the watchdog reset. After the watchdog reset, the program performs the RAM again. Check, if the RAM self-test fails repeatedly, it is an infinite loop; if the RAM self-test passes, the program performs Magic Word check code verification. If the Magic Word check code passes, it indicates that Flash has the correct application. The program enters the application and runs the application; if the Magic Word checksum fails, it means that there is no correct application in Flash and the program enters refresh mode.
  • the Magic Word check code is a specific data written in a specific address of the flash (such as the application's first and last addresses) every time the refresh is refreshed.
  • the Magic Word check code check in the refresh module reads the data in these specific addresses. Compared with a specific data, if it is consistent, the description indicates that Flash has the correct application. If it is inconsistent, the description is either not flashed into the application in Flash, or the previously brushed application is damaged. The application, so you need to enter the refresh mode.
  • the refresh mode is first initialized, and then enters the dispatch center.
  • the dispatch center is the clock-controlled loop running main function in the refresh mode;
  • the CAN diagnostic protocol layer is responsible for receiving the CAN diagnostic service request message sent by the diagnostic device, and The diagnostic service request is forwarded to the CAN diagnostic service layer for processing, and the response message of the diagnostic service layer is fed back to the diagnostic device;
  • the CAN diagnostic service layer performs specific diagnostic services, including diagnostic mode conversion service, password verification service, memory erasing service, and memory.
  • the programming service, etc. completes downloading the application from the diagnostic device and programming the Flash;
  • the application interface function provides a memory erase and memory programming interface function for the diagnostic request service.
  • the control method of the invention controls how to enter the refresh mode in the Bootloader Module and the Application Module respectively, and can conveniently perform CAN bus programming on the controller Flash by using the CAN bus diagnostic device; the Magic Word check code is designed in the Bootloader Module. As the basis for judging whether the correct application exists in the controller Flash.
  • the CAN diagnostic service layer mainly includes specific diagnostic services, as shown in Figure 3, which is a schematic diagram of the KWP2000 diagnostic service.
  • the diagnostic mode conversion service is used to convert the diagnostic mode to switch between the default diagnostic mode and the refresh diagnostic mode;
  • the controller reset service is used for controller reset after the application refresh is completed; End the current diagnostic mode service for returning to the default diagnostic mode;
  • the secure authentication service is used to enter the refresh mode required for secure password verification;
  • the remote call service is used to call the memory erase interface function and the memory burn interface function; request download service
  • the delivery data service is used to download specific application module file data.

Abstract

L'invention porte sur un procédé de commande à base de bus CAN (Controller Area Network) pour rafraîchir les codes d'un contrôleur électronique de véhicule, le procédé consistant : étape A : à entrer dans un mode de rafraîchissement à partir de l'état de lancement d'application normale du système du dispositif électronique ; étape B : à vérifier la mémoire du système électronique de véhicule, et à déterminer si la mémoire stocke ou non l'application correcte ; étape C : à télécharger les codes d'application à partir d'un dispositif de diagnostic, à les transférer sur la base du bus CAN et à rafraîchir l'application si la mémoire ne stocke pas l'application correcte.
PCT/CN2009/073233 2008-08-13 2009-08-13 Procédé de commande à base de bus can (controller area network) pour rafraîchir les codes d'un contrôleur électronique de véhicule WO2010017775A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNA2008100217728A CN101369153A (zh) 2008-08-13 2008-08-13 汽车电子控制器软件can线烧写的控制方法
CN200810021772.8 2008-08-13

Publications (1)

Publication Number Publication Date
WO2010017775A1 true WO2010017775A1 (fr) 2010-02-18

Family

ID=40413003

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/073233 WO2010017775A1 (fr) 2008-08-13 2009-08-13 Procédé de commande à base de bus can (controller area network) pour rafraîchir les codes d'un contrôleur électronique de véhicule

Country Status (2)

Country Link
CN (1) CN101369153A (fr)
WO (1) WO2010017775A1 (fr)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426201A (zh) * 2015-10-30 2016-03-23 奇瑞汽车股份有限公司 一种刷新监控芯片的控制方法
CN110825412A (zh) * 2019-11-01 2020-02-21 上海电气集团股份有限公司 基于LabVIEW的控制器程序的刷写系统及方法
CN110865822A (zh) * 2019-11-11 2020-03-06 摩登汽车有限公司 整车控制器用Bootloader刷写程序的启动架构及方法
CN111367559A (zh) * 2020-02-28 2020-07-03 威力扬汽车光电(滁州)有限公司 一种电控模组在线刷新补丁的刷新方法
CN112052025A (zh) * 2020-08-31 2020-12-08 中汽研扬州汽车工程研究院有限公司 一种基于bootloader的自更新与应用程序增量更新的系统设计方法
CN112506535A (zh) * 2020-05-22 2021-03-16 上海擎度汽车科技有限公司 一种汽车ECU控制器更新升级Bootloader软件的方法
CN112764787A (zh) * 2019-10-21 2021-05-07 重庆长安汽车股份有限公司 一种基于UDS的安全升级Bootloader设计方法
CN112925547A (zh) * 2021-03-22 2021-06-08 珞石(北京)科技有限公司 一种EtherCAT总线更新DSP程序的方法
CN114326679A (zh) * 2021-12-30 2022-04-12 重庆长安新能源汽车科技有限公司 一种基于一版集成软件刷写控制器的方法及系统

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369153A (zh) * 2008-08-13 2009-02-18 奇瑞汽车股份有限公司 汽车电子控制器软件can线烧写的控制方法
US9227483B2 (en) 2010-03-12 2016-01-05 GM Global Technology Operations LLC Vehicle connectivity systems, methods, and applications
CN102933427B (zh) * 2010-04-07 2016-01-20 株式会社京滨 车辆用控制装置以及程序改写方法
CN102053569A (zh) * 2010-12-13 2011-05-11 普华基础软件股份有限公司 用于汽车电子控制器的自刷新方法及其装置
CN102253849A (zh) * 2011-06-08 2011-11-23 重庆金美通信有限责任公司 一种基于CAN总线的智能型BootLoader
DE102011079402A1 (de) * 2011-07-19 2013-01-24 Bayerische Motoren Werke Aktiengesellschaft Steuervorrichtung für ein Kraftfahrzeug, Programmiervorrichtung und Programmiersystem
CN102495744B (zh) * 2011-11-29 2014-11-19 湖南南车时代电动汽车股份有限公司 基于can总线的电动汽车电控设备控制软件升级方法
CN102707979A (zh) * 2012-05-22 2012-10-03 奇瑞汽车股份有限公司 一种汽车控制器软件专用刷新工具及其软件刷新方法
CN103713527B (zh) * 2012-09-29 2017-03-22 博世汽车部件(苏州)有限公司 一种汽车电子控制器的刷新方法、刷写装置以及刷写系统
CN102929275B (zh) * 2012-11-09 2016-06-15 重庆长安汽车股份有限公司 汽车控制器的安全监控方法及系统
CN103264668B (zh) * 2013-05-29 2016-08-17 扬州泰博汽车电子智能科技有限公司 车身控制器及采用该车身控制器的烧录系统以及烧录方法
CN104572141B (zh) * 2013-10-10 2019-03-12 上海信耀电子有限公司 车用电控单元ecu的引导程序的在线更新方法
CN104793968A (zh) * 2014-05-23 2015-07-22 成都易控汽车电子技术有限公司 一种汽车电控单元程序烧写器及其实现方法
CN104331305B (zh) * 2014-10-15 2018-02-09 联合汽车电子有限公司 产品中应用程序的刷新配置方法
KR101603547B1 (ko) * 2014-11-06 2016-03-15 현대자동차주식회사 차량제어기 캘리브레이션 메모리 제어 방법 및 장치
CN106444730B (zh) * 2016-12-19 2022-06-21 普华基础软件股份有限公司 一种防软件僵死的电子控制单元的诊断方法
CN109189432A (zh) * 2018-09-18 2019-01-11 深圳市元征科技股份有限公司 一种汽车ecu数据刷写方法及相关设备
CN109673009B (zh) * 2018-11-13 2022-06-21 浙江合众新能源汽车有限公司 一种vcu软件空中升级方法及装置
CN110134422A (zh) * 2019-04-19 2019-08-16 东风汽车集团有限公司 基于obd与can总线下载闪存驱动升级控制器软件的系统及方法
CN113220318A (zh) * 2020-01-21 2021-08-06 广州汽车集团股份有限公司 电机控制器的程序更新方法、装置及可读存储介质
CN111475174A (zh) * 2020-03-31 2020-07-31 东风汽车集团有限公司 一种车载网关在线刷写、配置的装置及方法
CN117149478A (zh) * 2023-06-14 2023-12-01 杭州迪为科技有限公司 汽车电子控制器的复位管理方法、装置和汽车电子控制器

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1352742A (zh) * 1999-05-11 2002-06-05 罗伯特·博施有限公司 具有可编程控制装置的机动车诊断装置
US20050097541A1 (en) * 2003-11-04 2005-05-05 Holland Steven W. Low cost, open approach for vehicle software installation/updating and on-board diagnostics
CN1996247A (zh) * 2006-12-21 2007-07-11 奇瑞汽车有限公司 一种对混合动力车控制器进行flash烧写的方法
CN101369153A (zh) * 2008-08-13 2009-02-18 奇瑞汽车股份有限公司 汽车电子控制器软件can线烧写的控制方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1352742A (zh) * 1999-05-11 2002-06-05 罗伯特·博施有限公司 具有可编程控制装置的机动车诊断装置
US20050097541A1 (en) * 2003-11-04 2005-05-05 Holland Steven W. Low cost, open approach for vehicle software installation/updating and on-board diagnostics
CN1996247A (zh) * 2006-12-21 2007-07-11 奇瑞汽车有限公司 一种对混合动力车控制器进行flash烧写的方法
CN101369153A (zh) * 2008-08-13 2009-02-18 奇瑞汽车股份有限公司 汽车电子控制器软件can线烧写的控制方法

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426201B (zh) * 2015-10-30 2019-03-12 奇瑞汽车股份有限公司 一种刷新监控芯片的控制方法
CN105426201A (zh) * 2015-10-30 2016-03-23 奇瑞汽车股份有限公司 一种刷新监控芯片的控制方法
CN112764787A (zh) * 2019-10-21 2021-05-07 重庆长安汽车股份有限公司 一种基于UDS的安全升级Bootloader设计方法
CN110825412B (zh) * 2019-11-01 2023-06-02 上海电气集团股份有限公司 基于LabVIEW的控制器程序的刷写系统及方法
CN110825412A (zh) * 2019-11-01 2020-02-21 上海电气集团股份有限公司 基于LabVIEW的控制器程序的刷写系统及方法
CN110865822A (zh) * 2019-11-11 2020-03-06 摩登汽车有限公司 整车控制器用Bootloader刷写程序的启动架构及方法
CN110865822B (zh) * 2019-11-11 2023-09-29 摩登汽车有限公司 整车控制器用Bootloader刷写程序的启动架构及方法
CN111367559A (zh) * 2020-02-28 2020-07-03 威力扬汽车光电(滁州)有限公司 一种电控模组在线刷新补丁的刷新方法
CN111367559B (zh) * 2020-02-28 2023-07-04 威力扬汽车光电(滁州)有限公司 一种电控模组在线刷新补丁的刷新方法
CN112506535A (zh) * 2020-05-22 2021-03-16 上海擎度汽车科技有限公司 一种汽车ECU控制器更新升级Bootloader软件的方法
CN112506535B (zh) * 2020-05-22 2023-06-27 上海擎度汽车科技有限公司 一种汽车ECU控制器更新升级Bootloader软件的方法
CN112052025A (zh) * 2020-08-31 2020-12-08 中汽研扬州汽车工程研究院有限公司 一种基于bootloader的自更新与应用程序增量更新的系统设计方法
CN112925547A (zh) * 2021-03-22 2021-06-08 珞石(北京)科技有限公司 一种EtherCAT总线更新DSP程序的方法
CN114326679A (zh) * 2021-12-30 2022-04-12 重庆长安新能源汽车科技有限公司 一种基于一版集成软件刷写控制器的方法及系统
CN114326679B (zh) * 2021-12-30 2023-07-18 深蓝汽车科技有限公司 一种基于一版集成软件刷写控制器的方法及系统

Also Published As

Publication number Publication date
CN101369153A (zh) 2009-02-18

Similar Documents

Publication Publication Date Title
WO2010017775A1 (fr) Procédé de commande à base de bus can (controller area network) pour rafraîchir les codes d'un contrôleur électronique de véhicule
US20180341476A1 (en) Software updating device, software updating system, and software updating method
US8539472B2 (en) Method and system of updating shared memory
JP4577075B2 (ja) 自動車用制御ユニット
CN109086058A (zh) 车载程序升级系统
CN110825403A (zh) 一种汽车电子控制单元ecu刷写的方法及系统
CN107567629A (zh) 在可信执行环境容器中的动态固件模块加载器
WO2023024895A1 (fr) Socle de recharge, procédé et appareil de mise à niveau de socle de recharge, dispositif, et support de stockage
WO2019123747A1 (fr) Dispositif de commande électronique d'automobile et procédé de commande associé
CN108664256A (zh) 系统的固件更新方法、装置和电池管理系统
US20060218340A1 (en) Data validity determining method for flash EEPROM and electronic control system
CN113377384A (zh) 一种程序烧录方法、装置、车载终端及介质
JP2018160207A (ja) 車載制御装置、及び、プログラム更新ソフトウェア
CN109885331A (zh) 软件升级方法、控制方法、系统、存储介质及电子设备
WO2022160816A1 (fr) Procédé de traitement de données et dispositif associé
Ji et al. Implementation and research of bootloader for automobile ECU remote incremental update
US20090210613A1 (en) Method for Programming a Controller in a Motor Vehicle
US20220391192A1 (en) Ota master, center, system, method, non-transitory storage medium, and vehicle
CN115982710A (zh) 一种基于以太网ota安全升级方法
JP2015210669A (ja) プログラム書き換え方法
CN114675864A (zh) 双分区ecu重编程升级的控制方法、控制装置及系统
CN115454462A (zh) Ota管理器、系统、方法、非暂时性存储介质以及车辆
US20210065478A1 (en) Electronic control unit and non-transitory computer readable medium storing session establishment program
CN114281374A (zh) 车辆电控单元的远程刷写方法、系统及存储介质
CN113434163B (zh) 适用于电子控制单元的在线标定方法、系统、设备及介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09806378

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09806378

Country of ref document: EP

Kind code of ref document: A1