CN105573807A - ECU online program upgrading system and method based on CAN bus - Google Patents
ECU online program upgrading system and method based on CAN bus Download PDFInfo
- Publication number
- CN105573807A CN105573807A CN201511014001.2A CN201511014001A CN105573807A CN 105573807 A CN105573807 A CN 105573807A CN 201511014001 A CN201511014001 A CN 201511014001A CN 105573807 A CN105573807 A CN 105573807A
- Authority
- CN
- China
- Prior art keywords
- ecu
- program
- slave computer
- data
- computer
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Abstract
The invention discloses an ECU online program upgrading system and an ECU online program upgrading method based on a CAN bus. The ECU online program upgrading system comprises a PC, a CAN card and a vehicle-mounted embedded control unit ECU, wherein the PC is provided with a host application program; one end of the CAN card is connected with the PC through a USB interface; the other end of the CAN card is connected with the vehicle-mounted embedded control unit ECU through the CAN bus; the vehicle-mounted embedded control unit ECU is provided with a lower computer Bootloader program for boot load; the communication protocol of host software and the lower computer Bootloader program is compiled based on standard CCP protocol. According to the ECU online program upgrading system and the ECU online program upgrading method based on the CAN bus, online program upgrading of the ECU can be achieved through the CAN bus, the ECU does not need to be dismounted from a vehicle, but only one end of the CAN card is connected with the USB interface of the PC and the other end of the CAN card is connected with the CAN bus of the ECU, then the ECU program can be upgraded through the host software, no extra hardware is needed, and thus the operation is very convenient and rapid.
Description
Technical field
The present invention relates to electric vehicle engineering field, particularly the online program upgrade system of a kind of ECU based on CAN and method.
Background technology
At present, ECU installs onboard, and upgrade program wherein, traditional method is downloaded by debugging interface (JTAG, DAP etc.), very inconvenient.For battery management system, its main control unit and being all fixed among casing from control module, if want upgrade applications, operates very inconvenient.Therefore, be necessary that the scheme designing a kind of more convenient and quicker realizes program upgrade.Now commercially have some online program upgrade schemes, wherein major part is based on RS232 bus, but RS232 Bus Speed is lower, and RS232 bus does not meet automobile application requirement.CAN, in automotive field extensive application, therefore designs the online program upgrade system of a set of ECU based on CAN and just seems necessary.
Summary of the invention
In order to overcome a program upgrade difficult problem of installing ECU onboard, the invention provides the online program upgrade system of a kind of ECU based on CAN and method.
Technical scheme of the present invention is:
The online program upgrade system of a kind of ECU based on CAN, comprise PC, CAN card and vehicle-mounted embedded type control module ECU that host computer application program is housed, described CAN card one end is connected by USB interface with PC, the other end connects vehicle-mounted embedded type control module ECU by CAN, vehicle-mounted embedded type control module ECU is provided with the slave computer Bootloader program for guiding loading, and the communications protocol of upper computer software and slave computer Bootloader program is that measured CCP agreement is write.
The online programme upgrade method of ECU based on CAN, comprises step:
S1, the compiling of new user program is generated HEX file, upper computer software loads and resolves this HEX file, obtains the routine data of being correlated with and address data memory;
S2, upper computer software are after having resolved HEX file, and just enter and the slave computer communication stage, first host computer can send out bind command, this order comprises slave computer address information, guarantee to connect with well-determined slave computer, slave computer receives bind command, assert program upgrading mark;
After S3, host computer and slave computer establish connection, carry out secret key checking by key mechanism, after key authentication procedure completes, host computer can send out erase command, and slave computer wipes out original routine data;
S4, afterwards host computer start to send start address data and data, slave computer receives start address data and data, and judge whether to need the data write Flash by having received according to start address, until total data finishes receiving and all writes in Flash;
After S5, data all write Flash, upper computer software sends and disconnects order, and slave computer clear program upgrading mark, reset slave computer, enters user program.
Preferably, after upper computer software has resolved file destination, according to address size, file destination is sorted.
Preferably, the paging work of data and Flash write algorithm and complete in slave computer Bootloader program, and upper computer software is only responsible for resolving file destination and is gone forward side by side line ordering.
Advantage of the present invention is:
The online program upgrade system of ECU based on CAN provided by the present invention and method, adopt CAN, realize the online program upgrade of ECU, without the need to ECU is removed from car, only need CAN card one end to connect the USB interface of PC, the other end connects the CAN of ECU, just can realize ECU program upgrade by upper computer software, extra hardware need not be increased, very convenient.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described:
Fig. 1 is the structural representation of the online program upgrade system of the ECU based on CAN of the present invention;
Based on the upper computer software surface chart of the online program upgrade system of the ECU of CAN in Fig. 2 embodiment of the present invention;
Based on the upper computer software process flow diagram of the online program upgrade system of the ECU of CAN in Fig. 3 embodiment of the present invention;
Based on the slave computer Bootloader program flow diagram of the online program upgrade system of the ECU of CAN in Fig. 4 embodiment of the present invention.
Embodiment
As shown in Figure 1, the online program upgrade system of the disclosed ECU based on CAN, comprise the PC that host computer application program is housed, the USBcanLight type CAN card of kvaser company and vehicle-mounted embedded type control module ECU, described CAN card one end is connected by USB interface with PC, the other end connects vehicle-mounted embedded type control module ECU by CAN, vehicle-mounted embedded type control module ECU is provided with the slave computer Bootloader program for guiding loading, the communications protocol of upper computer software and slave computer Bootloader program is that measured CCP agreement is write.The present invention, by CAN, realizes online program upgrade process, and only need CAN card one end to connect the USB interface of PC, the other end connects the CAN of ECU, just can be upgraded the user program in ECU by PC.
What Fig. 2 showed is upper computer software surface chart, and upper computer software is that LabVIEW development environment is write.Main interface is primarily of CAN card configuring area, and loading procedure selection area, help file area, loads progress viewing area and stress state viewing area.By the execution successively of difference in functionality in interface, the correct download of HEX file can be realized.
The online programme upgrade method of ECU based on CAN of the present invention comprises step:
S1, the compiling of new user program is generated HEX file, upper computer software loads and resolves this HEX file, obtains the routine data of being correlated with and address data memory;
S2, upper computer software are after having resolved HEX file, and just enter and the slave computer communication stage, first host computer can send out bind command, this order comprises slave computer address information, guarantee to connect with well-determined slave computer, slave computer receives bind command, assert program upgrading mark;
After S3, host computer and slave computer establish connection, carry out secret key checking by key mechanism, after key authentication procedure completes, host computer can send out erase command, and slave computer wipes out original routine data;
S4, afterwards host computer start to send start address data and data, slave computer receives start address data and data, and judge whether to need the data write Flash by having received according to start address, until total data finishes receiving and all writes in Flash;
After S5, data all write Flash, upper computer software sends and disconnects order, and slave computer clear program upgrading mark, reset slave computer, enters user program.
What Fig. 3 showed is upper computer software process flow diagram, after completing the configuration of CAN card, the HEX file needing to be loaded into is selected by " opening file " button in upper owner interface, click " Reprogram " button resolve place as HEX file, ensuing connection slave computer can be run successively after click " Download ", obtain seed, flow process such as unblock slave computer etc.
What Fig. 4 showed is slave computer Bootloader program flow diagram, and after host computer clicks " Download " button, host computer and slave computer carry out communication, and host computer only receives the correct response message of slave computer, just can enter next flow process.
This is specifically implemented by CAN, realizes the online program upgrade of ECU, and only need CAN card one end to connect the USB interface of PC, the other end connects the CAN of ECU, just can realize ECU program upgrade by upper computer software.
Above-described embodiment, only for technical conceive of the present invention and feature are described, its object is to person skilled in the art can be understood content of the present invention and implement according to this, can not limit the scope of the invention with this.All modifications done according to the Spirit Essence of main technical schemes of the present invention, all should be encompassed within protection scope of the present invention.
Claims (4)
1. the online program upgrade system of the ECU based on CAN, it is characterized in that: comprise PC, CAN card and vehicle-mounted embedded type control module ECU that host computer application program is housed, described CAN card one end is connected by USB interface with PC, the other end connects vehicle-mounted embedded type control module ECU by CAN, vehicle-mounted embedded type control module ECU is provided with the slave computer Bootloader program for guiding loading, and the communications protocol of upper computer software and slave computer Bootloader program is that measured CCP agreement is write.
2., based on the online programme upgrade method of ECU of CAN, it is characterized in that, comprise step:
S1, the compiling of new user program is generated HEX file, upper computer software loads and resolves this HEX file, obtains the routine data of being correlated with and address data memory;
S2, upper computer software are after having resolved HEX file, and just enter and the slave computer communication stage, first host computer can send out bind command, this order comprises slave computer address information, guarantee to connect with well-determined slave computer, slave computer receives bind command, assert program upgrading mark;
After S3, host computer and slave computer establish connection, carry out secret key checking by key mechanism, after key authentication procedure completes, host computer can send out erase command, and slave computer wipes out original routine data;
S4, afterwards host computer start to send start address data and data, slave computer receives start address data and data, and judge whether to need the data write Flash by having received according to start address, until total data finishes receiving and all writes in Flash;
After S5, data all write Flash, upper computer software sends and disconnects order, and slave computer clear program upgrading mark, reset slave computer, enters user program.
3. the online program upgrade system of the ECU based on CAN according to claim 2, is characterized in that, after upper computer software has resolved file destination, sort according to address size to file destination.
4. the online program upgrade system of the ECU based on CAN according to claim 3, it is characterized in that, the paging work of data and Flash write algorithm and complete in slave computer Bootloader program, and upper computer software is only responsible for resolving file destination and is gone forward side by side line ordering.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511014001.2A CN105573807A (en) | 2015-12-31 | 2015-12-31 | ECU online program upgrading system and method based on CAN bus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511014001.2A CN105573807A (en) | 2015-12-31 | 2015-12-31 | ECU online program upgrading system and method based on CAN bus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105573807A true CN105573807A (en) | 2016-05-11 |
Family
ID=55883980
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511014001.2A Pending CN105573807A (en) | 2015-12-31 | 2015-12-31 | ECU online program upgrading system and method based on CAN bus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105573807A (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106528198A (en) * | 2016-09-29 | 2017-03-22 | 陕西法士特齿轮有限责任公司 | Program downloading system and program downloading method applied to automobile electric-control unit |
CN106789210A (en) * | 2016-12-12 | 2017-05-31 | 中国船舶重工集团公司第七0五研究所 | A kind of many DSP intelligent nodes on-line software updating methods based on CAN |
CN106775818A (en) * | 2016-11-11 | 2017-05-31 | 广州视源电子科技股份有限公司 | ECU upgrade methods and ECU updating apparatus based on CAN |
CN106874018A (en) * | 2017-03-16 | 2017-06-20 | 武汉理工大学 | A kind of electric automobile Electric Air-Conditioner Controller software refreshing system and method |
CN106991065A (en) * | 2017-03-31 | 2017-07-28 | 东莞博力威电池有限公司 | Method by USB host computers with being communicated with CAN and/or LIN bus apparatus |
CN107404545A (en) * | 2016-05-20 | 2017-11-28 | 福特全球技术公司 | The virtual DNS record update methods that the dynamic IP addressing of vehicle Entrust Server changes |
CN108279916A (en) * | 2017-12-28 | 2018-07-13 | 宁德时代新能源科技股份有限公司 | Electronic control unit program updating method and device |
CN108647040A (en) * | 2018-05-10 | 2018-10-12 | 上海纳恩汽车技术有限公司 | A kind of Bootloader frameworks based on PEPS system and write with a brush dipped in Chinese ink method |
CN108921971A (en) * | 2018-05-30 | 2018-11-30 | 北京图森未来科技有限公司 | A kind of automatic driving vehicle digital data recording system and method, data acquisition equipment |
CN108920166A (en) * | 2018-07-17 | 2018-11-30 | 浙江中科领航汽车电子有限公司 | A kind of liquid crystal instrument for automobile upgrade method and system |
CN109614127A (en) * | 2018-11-12 | 2019-04-12 | 东风汽车集团有限公司 | The software updating apparatus and method of Vehicle Controller |
CN110647339A (en) * | 2019-09-19 | 2020-01-03 | 中国兵器工业集团第二一四研究所苏州研发中心 | Embedded product software online upgrading method |
CN111580842A (en) * | 2020-04-16 | 2020-08-25 | 北京遥感设备研究所 | On-line upgrading method and system for vehicle-mounted millimeter wave radar application program |
CN112162691A (en) * | 2020-09-29 | 2021-01-01 | 深圳市英威腾电动汽车驱动技术有限公司 | Data acquisition method, device and storage medium |
TWI744601B (en) * | 2018-09-18 | 2021-11-01 | 凱納股份有限公司 | Controlling system for electric bicycle and method thereof |
CN113721853A (en) * | 2021-08-31 | 2021-11-30 | 浩鲸云计算科技股份有限公司 | NVMe (network video Me) -based multi-path load balancing implementation method |
US11258629B2 (en) | 2018-09-18 | 2022-02-22 | Hyena Lic. | Controlling system for electric bicycle and method thereof |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1747472A (en) * | 2005-10-17 | 2006-03-15 | 浙江大学 | Universal embedded marker and marking method based on CCP |
DE102005034820A1 (en) * | 2005-07-26 | 2007-02-01 | Volkswagen Ag | System and method for executing a parallelized software update |
CN1996247A (en) * | 2006-12-21 | 2007-07-11 | 奇瑞汽车有限公司 | Method for burning FLASH for hybrid power vehicle controller |
CN101276488A (en) * | 2008-03-26 | 2008-10-01 | 中国科学院电工研究所 | Vehicular recording instrument capable of implementing intelligent CAN bus communication |
CN102495744A (en) * | 2011-11-29 | 2012-06-13 | 湖南南车时代电动汽车股份有限公司 | Control software upgrading method of electronic control devices of electric automobile based on controller area network (CAN) bus |
CN103838588A (en) * | 2012-11-20 | 2014-06-04 | 广州市暨华医疗器械有限公司 | Method for conducting online program updating on AT90 single-chip microcomputer through CAN interface |
CN104216745A (en) * | 2014-08-29 | 2014-12-17 | 万向钱潮股份有限公司 | Online upgrading system and method for semi-active suspension ECU (Electronic Control Unit) controller software |
CN104216714A (en) * | 2014-09-03 | 2014-12-17 | 东方电气(乐山)新能源设备有限公司 | DSP (Digital Signal Processor) programming method based on CAN (Controller Area Network) bus |
CN104572221A (en) * | 2015-01-30 | 2015-04-29 | 重庆邮电大学 | Vehicle-mounted ECU (electronic control unit) online updating system and method |
US20150283013A1 (en) * | 2012-02-21 | 2015-10-08 | Sizewise Rentals, L.L.C. | Autoleveling low profile patient support apparatus |
-
2015
- 2015-12-31 CN CN201511014001.2A patent/CN105573807A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102005034820A1 (en) * | 2005-07-26 | 2007-02-01 | Volkswagen Ag | System and method for executing a parallelized software update |
CN1747472A (en) * | 2005-10-17 | 2006-03-15 | 浙江大学 | Universal embedded marker and marking method based on CCP |
CN1996247A (en) * | 2006-12-21 | 2007-07-11 | 奇瑞汽车有限公司 | Method for burning FLASH for hybrid power vehicle controller |
CN101276488A (en) * | 2008-03-26 | 2008-10-01 | 中国科学院电工研究所 | Vehicular recording instrument capable of implementing intelligent CAN bus communication |
CN102495744A (en) * | 2011-11-29 | 2012-06-13 | 湖南南车时代电动汽车股份有限公司 | Control software upgrading method of electronic control devices of electric automobile based on controller area network (CAN) bus |
US20150283013A1 (en) * | 2012-02-21 | 2015-10-08 | Sizewise Rentals, L.L.C. | Autoleveling low profile patient support apparatus |
CN103838588A (en) * | 2012-11-20 | 2014-06-04 | 广州市暨华医疗器械有限公司 | Method for conducting online program updating on AT90 single-chip microcomputer through CAN interface |
CN104216745A (en) * | 2014-08-29 | 2014-12-17 | 万向钱潮股份有限公司 | Online upgrading system and method for semi-active suspension ECU (Electronic Control Unit) controller software |
CN104216714A (en) * | 2014-09-03 | 2014-12-17 | 东方电气(乐山)新能源设备有限公司 | DSP (Digital Signal Processor) programming method based on CAN (Controller Area Network) bus |
CN104572221A (en) * | 2015-01-30 | 2015-04-29 | 重庆邮电大学 | Vehicle-mounted ECU (electronic control unit) online updating system and method |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107404545A (en) * | 2016-05-20 | 2017-11-28 | 福特全球技术公司 | The virtual DNS record update methods that the dynamic IP addressing of vehicle Entrust Server changes |
CN107404545B (en) * | 2016-05-20 | 2022-09-09 | 福特全球技术公司 | Virtual DNS record updating method for dynamic IP address change of vehicle hosting server |
CN106528198A (en) * | 2016-09-29 | 2017-03-22 | 陕西法士特齿轮有限责任公司 | Program downloading system and program downloading method applied to automobile electric-control unit |
CN106775818A (en) * | 2016-11-11 | 2017-05-31 | 广州视源电子科技股份有限公司 | ECU upgrade methods and ECU updating apparatus based on CAN |
CN106789210A (en) * | 2016-12-12 | 2017-05-31 | 中国船舶重工集团公司第七0五研究所 | A kind of many DSP intelligent nodes on-line software updating methods based on CAN |
CN106874018A (en) * | 2017-03-16 | 2017-06-20 | 武汉理工大学 | A kind of electric automobile Electric Air-Conditioner Controller software refreshing system and method |
CN106991065B (en) * | 2017-03-31 | 2019-07-05 | 东莞博力威电池有限公司 | Pass through USB host computer and the method with the communication of CAN and/or LIN bus apparatus |
CN106991065A (en) * | 2017-03-31 | 2017-07-28 | 东莞博力威电池有限公司 | Method by USB host computers with being communicated with CAN and/or LIN bus apparatus |
CN108279916A (en) * | 2017-12-28 | 2018-07-13 | 宁德时代新能源科技股份有限公司 | Electronic control unit program updating method and device |
CN108647040A (en) * | 2018-05-10 | 2018-10-12 | 上海纳恩汽车技术有限公司 | A kind of Bootloader frameworks based on PEPS system and write with a brush dipped in Chinese ink method |
CN108921971A (en) * | 2018-05-30 | 2018-11-30 | 北京图森未来科技有限公司 | A kind of automatic driving vehicle digital data recording system and method, data acquisition equipment |
CN108920166A (en) * | 2018-07-17 | 2018-11-30 | 浙江中科领航汽车电子有限公司 | A kind of liquid crystal instrument for automobile upgrade method and system |
TWI744601B (en) * | 2018-09-18 | 2021-11-01 | 凱納股份有限公司 | Controlling system for electric bicycle and method thereof |
US11258629B2 (en) | 2018-09-18 | 2022-02-22 | Hyena Lic. | Controlling system for electric bicycle and method thereof |
CN109614127A (en) * | 2018-11-12 | 2019-04-12 | 东风汽车集团有限公司 | The software updating apparatus and method of Vehicle Controller |
CN110647339A (en) * | 2019-09-19 | 2020-01-03 | 中国兵器工业集团第二一四研究所苏州研发中心 | Embedded product software online upgrading method |
CN111580842A (en) * | 2020-04-16 | 2020-08-25 | 北京遥感设备研究所 | On-line upgrading method and system for vehicle-mounted millimeter wave radar application program |
CN112162691A (en) * | 2020-09-29 | 2021-01-01 | 深圳市英威腾电动汽车驱动技术有限公司 | Data acquisition method, device and storage medium |
CN113721853A (en) * | 2021-08-31 | 2021-11-30 | 浩鲸云计算科技股份有限公司 | NVMe (network video Me) -based multi-path load balancing implementation method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105573807A (en) | ECU online program upgrading system and method based on CAN bus | |
CN100570558C (en) | A kind of chip firmware updating method | |
EP4239469A2 (en) | Gateway device, firmware update method, and control program | |
US9223559B2 (en) | Information processing apparatus, electronic control unit, information processing method, and program | |
CN107992308B (en) | Plug-in management method for android terminal application program | |
CN103324506A (en) | Method and mobile phone for controlling installation of Android applications | |
CN105653262A (en) | Application program upgrade method, device and system | |
CN104199706A (en) | Firmware upgrade method and device for eMMC | |
CN104572221A (en) | Vehicle-mounted ECU (electronic control unit) online updating system and method | |
CN102880495A (en) | Mobile terminal and software upgrading method for same | |
CN103970565A (en) | Method for implementing FPGA multi-path downloading configuration in server system | |
CN110825403A (en) | Method and system for flashing ECU (electronic control Unit) of automobile | |
CN102279756A (en) | CPLD (Complex Programmable Logic Device) firmware updating method | |
CN103257869B (en) | A kind of ECU program smart download method | |
CN103164238A (en) | Method for automatically and continuously installing operating system | |
CN103019755B (en) | The wireless program method for down loading of multi-CPU in embedded system | |
CN104423993A (en) | Automotive electronic equipment software updating method and terminal and automotive electronic system | |
CN109189435A (en) | The firmware update of Complex Programmable Logic Devices | |
CN104391714A (en) | Software update method and software update device for vehicle | |
CN104133743B (en) | A kind of by burning file to the method for EMMC chip and device | |
CN104133701A (en) | Application installation method and device | |
CN103544413A (en) | Method and device for verifying software copyright in intelligent terminal | |
CN104699500A (en) | Method for realizing automatic upgrading of bootstrap program in intelligent equipment | |
CN111459468A (en) | DSP program on-line upgrading system and method for high-reliability serial port communication | |
CN111917842A (en) | OTA (over the air) upgrading method and system for automobile instrument and automobile instrument system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160511 |
|
RJ01 | Rejection of invention patent application after publication |