CN103885791A - Programming device of vehicle controller - Google Patents
Programming device of vehicle controller Download PDFInfo
- Publication number
- CN103885791A CN103885791A CN201210558383.5A CN201210558383A CN103885791A CN 103885791 A CN103885791 A CN 103885791A CN 201210558383 A CN201210558383 A CN 201210558383A CN 103885791 A CN103885791 A CN 103885791A
- Authority
- CN
- China
- Prior art keywords
- control device
- vehicle control
- programming
- controller
- communication interface
- 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
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a programming device of a vehicle controller. The programming device comprises a communication interface which is a controller local area network CAN bus interface and connected with the vehicle controller, and a controller, the controller sends a transmission mode starting instruction to the vehicle controller via the communication interface so as to control the Boot loader of the vehicle controller to enter a transmission mode, and then analyzes an application program file to be programmed to obtain data information and sends the data information to the vehicle controller by virtue of a predetermined number of continuous data frames to program the vehicle controller. The programming device of the vehicle controller is compatible with a plurality of CAN communication conversion tools, and capable of checking and recording CAN data in real time and displaying the CAN data by virtue of a progress bar. Under the circumferences of a certain Baud rate and the same application file, in contrast with a programming tool based on CCP (CAN Calibration Protocol), the programming device of the vehicle controller has the advantages of few response times of the controller, short data transmission time and high working efficiency.
Description
Technical field
The present invention relates to field of automobile, particularly a kind of programming device of vehicle control device.
Background technology
The online updating of automobile controller application program uses ETAS(Etuo Agent Server at present, one opens up proxy server) or the dynamic array of VECTOR() etc. calibration tool carry out, can only use specific CAN(Controller Area Network, controller local area network) communication crossover tool, and software price is higher and code sealing, is unfavorable for autonomy-oriented custom-tailor and exploitation.
Automobile controller is to utilize CAN bus CCP(CAN Calibration Protocol at present, CAN bus is demarcated agreement) agreement carries out the online updating of application file, PC(personal computer, personal computer) software is by CCP agreement and controller bootloader(system start-up loading device) carry out communication, carry out parsing and the transmission of application program, complete controller flash(Flash EEPROM Memory, flash memory) wipe and programming.
Find in actual applications, use CCP to demarcate the flashburn tools of protocol development, because CCP agreement adopts CRO, DTO(Data Transfer Object, data transmission object) the corresponding mutual mode of instruction carries out communication, in CAN message length and baud rate certain in the situation that, increase the transmission time of data, thereby reduced transmission speed.
Summary of the invention
The present invention is intended at least one of solve the problems of the technologies described above.
For this reason, the object of the invention is to propose one can compatible multiple CAN communication crossover tool, has increased the dirigibility using, and has the programming device of the vehicle control device of the advantage that work efficiency is high.
To achieve these goals, embodiments of the invention have proposed a kind of programming device of vehicle control device, comprising: communication interface, described communication interface is CAN bus interface, described communication interface is connected with vehicle control device, and wherein, described communication interface is based on CAN bus ISO015765-3 agreement; Controller, described controller sends transmission mode sign on by communication interface to described vehicle control device and enters transmission mode with the Boot loader that controls described vehicle control device, and entering after described transmission mode, treating the application file of programming resolves, and obtain the data message of described application file, send described data message so that described vehicle control device is carried out to programming with the continuous data frame of preset number to described vehicle control device.
According to the programming device of the vehicle control device of the embodiment of the present invention, can compatible multiple CAN communication crossover tool, communicate based on CAN bus ISO015765-3 agreement and controller, can resolve line by line the data of application file, and transmit data line content in the mode of successive frame, and can real time inspection and record CAN data, and show by progress bar.In the case of the certain and identical application file of baud rate, than the flashburn tools based on CCP agreement, the response times with controller is few, data transmission period is short, the advantage that work efficiency is high.
In addition, the programming device of vehicle control device according to the above embodiment of the present invention can also have following additional technical characterictic:
In an embodiment of the present invention, described controller comprises: transport module, and described transport module sends transmission mode sign on by communication interface to described vehicle control device, enters transmission mode with the Bootloader that controls described vehicle control device; Parsing module, described parsing module is resolved for the application file for the treatment of programming, and obtains the data message of described application file; And sending module, described sending module is for sending described data message with the continuous data frame of preset number to described vehicle control device.
In an embodiment of the present invention, described controller also comprises: wipe module, described in wipe module for sending erasing instruction by described communication interface to described vehicle control device, and the reference position of the memory bank that will wipe is sent to described vehicle control device.
In an embodiment of the present invention, described controller also comprises: modular converter, described modular converter, in the time that described application file data are string format, is converted to ASCI I form by described application file.
In an embodiment of the present invention, described controller also comprises: display module, and the programming progress that described display module sends for receiving described sending module, and show described programming progress.
Additional aspect of the present invention and advantage in the following description part provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Brief description of the drawings
Above-mentioned and/or additional aspect of the present invention and advantage accompanying drawing below combination is understood becoming the description of embodiment obviously and easily, wherein:
Fig. 1 is the structural drawing of the programming device of vehicle control device according to an embodiment of the invention;
Fig. 2 is the structural drawing of the controller of the programming device of vehicle control device according to an embodiment of the invention;
Fig. 3 is the system hardware connection layout of the programming device of vehicle control device according to an embodiment of the invention; With
Fig. 4 is the workflow diagram of the programming device of vehicle control device according to an embodiment of the invention.
Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of identical or similar functions from start to finish.Be exemplary below by the embodiment being described with reference to the drawings, only for explaining the present invention, and can not be interpreted as limitation of the present invention.
In description of the invention, it will be appreciated that, term " " center ", " longitudinally ", " laterally ", " on ", D score, " front ", " afterwards ", " left side ", " right side ", " vertically ", " level ", " top ", " end ", " interior ", orientation or the position relationship of instructions such as " outward " are based on orientation shown in the drawings or position relationship, only the present invention for convenience of description and simplified characterization, instead of device or the element of instruction or hint indication must have specific orientation, with specific orientation structure and operation, therefore can not be interpreted as limitation of the present invention.In addition, term " first ", " second " be only for describing object, and can not be interpreted as instruction or hint relative importance.
In description of the invention, it should be noted that, unless otherwise clearly defined and limited, term " installation ", " being connected ", " connection " should be interpreted broadly, and for example, can be to be fixedly connected with, and can be also to removably connect, or connect integratedly; Can be mechanical connection, can be also electrical connection; Can be to be directly connected, also can indirectly be connected by intermediary, can be the connection of two element internals.For the ordinary skill in the art, can concrete condition understand above-mentioned term concrete meaning in the present invention.
Describe in detail according to the programming device of the vehicle control device of the embodiment of the present invention below in conjunction with accompanying drawing.
Fig. 1 is the structural drawing of the programming device of vehicle control device according to an embodiment of the invention.
As shown in Figure 1, the programming device 100 of vehicle control device according to an embodiment of the invention, comprising: communication interface 110 and controller 120.
Particularly, communication interface 110 is CAN bus interface, and is connected with vehicle control device, and wherein, communication interface 110 is based on CAN bus ISO015765-3 agreement.
Further, as shown in Figure 2, controller 120 comprises: transport module 121, parsing module 122, sending module 123, wipe module 124, modular converter 125 and display module 126.
Particularly, transport module 121 is for sending transmission mode sign on by communication interface 110 to vehicle control device, so that the Boot loader of vehicle control device enters transmission mode.In transmission mode, transmit the resolution data line number of the application file of wanting programming and the start address of resolution data.
Sending module 123 sends data message for the continuous data frame with preset number to vehicle control device.The data content that sends the application file of resolving when programming with successive frame, for example successive frame N is determined by the data amount check of every row, if number is less than or equal to the number that single frames transmits, sends with single frame.
Wipe module 124 and send erasing instruction by communication interface 110 to vehicle control device, the reference position of the memory bank that will wipe is sent to vehicle control device.Start address by the resolution data of application file sends to vehicle control device and confirms link order, until confirm that the work of wiping completes.
Programming progress demonstration that display module 126 sends for receiving sending module 123.In the time completing with the data line of successive frame transmission application file, show that the value of programming progress number increases a step-length.Wherein, resolution data is capable, as the basis of progress displaying bar step-length, often sends a data line, and progress displaying bar increases a step-length.
Fig. 3 is the system hardware connection layout of the programming device of vehicle control device according to an embodiment of the invention.
As shown in Figure 3, controller 120(PC instrument) by USB interface and communication interface 110(CAN communication tool interface) be connected, communication interface 110(CAN communication tool interface) be connected with vehicle control device by CAN bus.Controller 120(PC instrument) be for example but be not limited to PC.In one embodiment of the invention, preferably, communication interface 110 is based on CAN bus ISO015765-3 agreement.And this device can compatible multiple CAN communication tool interface, can and record time, the content of CAN bus data, real time inspection download progress by debug window Real Time Observation.
As shown in Figure 3, controller 120(PC instrument) software by communication interface 110(CAN communication tool interface) with vehicle control device carry out communication, resolve line by line and send application file data content, and carry out data transmission in the mode of successive frame, therefore in the situation that CAN baud rate is certain, reduce the response times of controller, thereby reduced data transmission period, improved work efficiency.And this device can compatible multiple CAN communication crossover tool, increase the dirigibility using.
As a concrete example, Fig. 4 is the workflow diagram of the programming device of vehicle control device according to an embodiment of the invention.
As shown in Figure 4, the workflow diagram of the programming device of vehicle control device according to an embodiment of the invention, comprises the following steps:
Step S401, starts.Be that programming work starts.
Step S402, controller carries out initialization to equipment, file.
Particularly, first by graphical interfaces initialization CAN bus baud rate, set ID identification shielding scope, to get rid of incoherent CAN bus message, thus the work efficiency of raising flashburn tools.Then specify the application file that will transmit programming, traversal file resolution file, the resolution data line number of acquisition file, as the basis of programming progress displaying bar step-length.The start address of last resolution data, the start address when wiping file data.
Step S403, enters transmission mode.
Controller sends transmission mode sign on by CAN bus to vehicle control device, makes vehicle control device bootloader enter transmission mode, under transmission mode, and the file data line number of resolving in transmitting step S402 and the start address of resolution data.
Step S404, safety certification.
In order to ensure the security permission of data programming, controller sends safety certification instruction and carries out safety certification, and confirms link order, to determine that whether certification is successful.
Step S405, whether certification is successful.Judge that whether safety certification is successful, if success continues execution step S406, otherwise execution step S417, i.e. EOP (end of program).
Step S406, starts to send erasing instruction.
After safety certification success, controller sends erasing instruction to vehicle control device, the start address of the application file data that will wipe of resolving in step S402 is sent to vehicle control device, and confirm link order, until confirm that the work of wiping completes.
Step S407, whether judgement is wiped and is completed.Wipe work by the judgement of confirmation link order and whether complete, if completed, perform step S408, otherwise execution step S417.
Step S408, transmission start address.
Be that programming process starts, the application file of specifying in analyzing step S402 line by line, parses address, data amount check and the data content of data line.Wherein, application file data behavior string format, need to be converted into ASCII fromat by transfer function and judge and send, and the data line start address of the application file after being parsed is sent to entire car controller, and confirm link order, be transmitted judging whether.
Step S409, by confirming link order judges whether the data line start address of resolving is transmitted, if completed, performs step S410, otherwise execution step S417.
Step S410, with successive frame transmission data.
The data content of the application file of resolving with successive frame transmission, for example successive frame N is determined by the data amount check of every row, if number is less than or equal to the number that single needle transmits, sends with single frame.Resolve line by line the also data content of transfer files, transfer the data content of a successive frame N, progress displaying bar numerical value increases a step-length.
Whether step S411, be transmitted according to the data line content of the application file of resolving in progress bar numerical value determining step S410, if completed, performs step S412, otherwise execution step S417.
Step S412, programming successive frame data.
The data line content of transmitting in the boot loader programming step S410 by vehicle control device, and confirm link order, to judge whether programming is successfully completed.
Step S413, by confirming link order, judges whether programming completes.If completed, perform step S414, otherwise execution step S417.
Step S414, judges whether application file data content all transmits and programming completes, and if it is performs step S415, otherwise execution step S408 continues the also data content of programming resolution file of transmission.
Step S415, exits transmission mode.After determining the whole end of transmissions of application file data content of resolving and programming completes, exit transmission mode, programming process finishes.
Step S416, restarts vehicle control device.After programming process finishes, controller sends instruction, and vehicle control device is restarted, and now progress bar has shown, shows and confirms dialog box, confirms that programming process finishes.
Step S417, EOP (end of program), while going wrong in transmission or programming process, operation failure, finishes and quits a program.
According to the programming device of the vehicle control device of the embodiment of the present invention, can compatible multiple CAN communication crossover tool, communicate based on CAN bus ISO015765-3 agreement and vehicle control device, can resolve line by line the data of application file, and transmit data line content in the mode of successive frame, and can real time inspection and record CAN data, and show by progress bar.In the case of the certain and identical application file of baud rate, than the flashburn tools based on CCP agreement, the response times with controller is few, data transmission period is short, the advantage that work efficiency is high.
In the description of this instructions, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, the schematic statement of above-mentioned term is not necessarily referred to identical embodiment or example.And specific features, structure, material or the feature of description can be with suitable mode combination in any one or more embodiment or example.
Although illustrated and described embodiments of the invention, those having ordinary skill in the art will appreciate that: in the situation that not departing from principle of the present invention and aim, can carry out multiple variation, amendment, replacement and modification to these embodiment, scope of the present invention is by claim and be equal to and limit.
Claims (5)
1. a programming device for vehicle control device, is characterized in that, comprising:
Communication interface, described communication interface is the CAN of controller local area network bus interface, and described communication interface is connected with vehicle control device, and wherein, described communication interface is based on CAN bus ISO015765-3 agreement;
Controller, described controller sends transmission mode sign on by communication interface to described vehicle control device and enters transmission mode with the Bootloader that controls described vehicle control device, and entering after described transmission mode, treating the application file of programming resolves, and obtain the data message of described application file, send described data message so that described vehicle control device is carried out to programming with the continuous data frame of preset number to described vehicle control device.
2. programming device as claimed in claim 1, is characterized in that, described controller comprises:
Transport module, described transport module sends transmission mode sign on by communication interface to described vehicle control device, enters transmission mode with the Bootloader that controls described vehicle control device;
Parsing module, described parsing module is resolved for the application file for the treatment of programming, and obtains the data message of described application file; And
Sending module, described sending module is for sending described data message with the continuous data frame of preset number to described vehicle control device.
3. the programming device of vehicle control device as claimed in claim 2, is characterized in that, described controller also comprises:
Wipe module, described in wipe module for sending erasing instruction by described communication interface to described vehicle control device, and the reference position of the memory bank that will wipe is sent to described vehicle control device.
4. the programming device of vehicle control device as claimed in claim 2, is characterized in that, described controller also comprises:
Modular converter, described modular converter, in the time that described application file data are string format, is converted to ASCII fromat by described application file.
5. the programming device of vehicle control device as claimed in claim 2, is characterized in that, described controller also comprises:
Display module, the programming progress that described display module sends for receiving described sending module, and show described programming progress.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210558383.5A CN103885791A (en) | 2012-12-20 | 2012-12-20 | Programming device of vehicle controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210558383.5A CN103885791A (en) | 2012-12-20 | 2012-12-20 | Programming device of vehicle controller |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103885791A true CN103885791A (en) | 2014-06-25 |
Family
ID=50954701
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210558383.5A Pending CN103885791A (en) | 2012-12-20 | 2012-12-20 | Programming device of vehicle controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103885791A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107229457A (en) * | 2016-03-24 | 2017-10-03 | 宝沃汽车(中国)有限公司 | Guiding loading method, device, electronic controller and the automobile of electronic controller |
CN107977220A (en) * | 2017-12-04 | 2018-05-01 | 清华大学 | A kind of method, apparatus and system for writing with a brush dipped in Chinese ink application program |
CN109263665A (en) * | 2018-10-19 | 2019-01-25 | 中车青岛四方车辆研究所有限公司 | City rail vehicle frame control deceleration of electrons control system and upgrade method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1251428A1 (en) * | 2001-04-19 | 2002-10-23 | Peugeot Citroen Automobiles SA | System for programming of computer systems in automobiles |
CN101286066A (en) * | 2007-12-28 | 2008-10-15 | 奇瑞汽车股份有限公司 | Automobile controller software refreshing method |
CN101850799A (en) * | 2010-05-31 | 2010-10-06 | 重庆长安汽车股份有限公司 | Controller FLASH programming method based on hybrid electric vehicle CAN bus communication |
CN102722119A (en) * | 2012-05-31 | 2012-10-10 | 深圳市元征科技股份有限公司 | Automobile ECU (Electronic Control Unit) flash device |
CN102768530A (en) * | 2012-08-14 | 2012-11-07 | 山东省科学院自动化研究所 | Function and parameter on-line configuration method of automobile integrated automobile body electronic control unit |
-
2012
- 2012-12-20 CN CN201210558383.5A patent/CN103885791A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1251428A1 (en) * | 2001-04-19 | 2002-10-23 | Peugeot Citroen Automobiles SA | System for programming of computer systems in automobiles |
CN101286066A (en) * | 2007-12-28 | 2008-10-15 | 奇瑞汽车股份有限公司 | Automobile controller software refreshing method |
CN101850799A (en) * | 2010-05-31 | 2010-10-06 | 重庆长安汽车股份有限公司 | Controller FLASH programming method based on hybrid electric vehicle CAN bus communication |
CN102722119A (en) * | 2012-05-31 | 2012-10-10 | 深圳市元征科技股份有限公司 | Automobile ECU (Electronic Control Unit) flash device |
CN102768530A (en) * | 2012-08-14 | 2012-11-07 | 山东省科学院自动化研究所 | Function and parameter on-line configuration method of automobile integrated automobile body electronic control unit |
Non-Patent Citations (1)
Title |
---|
李济泰等: ""基于ISO15765 协议的车载电控单元应用程序刷新系统设计"", 《汽车技术》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107229457A (en) * | 2016-03-24 | 2017-10-03 | 宝沃汽车(中国)有限公司 | Guiding loading method, device, electronic controller and the automobile of electronic controller |
CN107229457B (en) * | 2016-03-24 | 2020-12-11 | 宝沃汽车(中国)有限公司 | Electronic controller, guide loading method and device thereof and automobile |
CN107977220A (en) * | 2017-12-04 | 2018-05-01 | 清华大学 | A kind of method, apparatus and system for writing with a brush dipped in Chinese ink application program |
CN109263665A (en) * | 2018-10-19 | 2019-01-25 | 中车青岛四方车辆研究所有限公司 | City rail vehicle frame control deceleration of electrons control system and upgrade method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102495744B (en) | Control software upgrading method of electronic control devices of electric automobile based on controller area network (CAN) bus | |
EP3101547A1 (en) | Control system, method, program and information processing device | |
CN111372232B (en) | Method and system for first connection pairing of electric energy meter and Bluetooth circuit breaker | |
CN106980511B (en) | Firmware upgrading method, device and system | |
CN105302716A (en) | Method and apparatus for test in joint development mode | |
CN102779089B (en) | Automobile ECU key Simulation Methods and system thereof and verification method | |
CN102279756A (en) | CPLD (Complex Programmable Logic Device) firmware updating method | |
CN105974081A (en) | On-line water quality monitor instrument, operation and maintenance terminal and cloud system | |
CN105159109B (en) | A kind of PLC controller remote update system | |
CN101853173A (en) | Software upgrading method and device of programmable logic device of distributed system | |
US20220144291A1 (en) | Portable wireless connected diagnostic system for a vehicle | |
CN113467409A (en) | Fault diagnosis method and device for electronic control unit of vehicle | |
CN107357595A (en) | A kind of multiple driver firmware online updating system based on bus | |
CN103885791A (en) | Programming device of vehicle controller | |
CN105094877A (en) | Method for firmware upgrading, and host side device and system | |
CN107346244B (en) | A kind of automobile EPS director demon automation download system and method | |
CN113742121A (en) | Mechanical equipment fault diagnosis method and device | |
CN116225501B (en) | ECU upgrading method and device and readable storage medium | |
CN103699332A (en) | Method and system for obtaining vehicle debugging data | |
CN115437915A (en) | Vehicle-based version testing method and device and electronic equipment | |
CN107729035A (en) | Distributed battery management system download program and update method | |
CN102385849A (en) | Intelligent EDID (Extended Display Identification Data) burning method | |
CN111143262A (en) | Switching device, instrument control system and instrument control method | |
CN113960991B (en) | Vehicle fault diagnosis system, method and device, system-on-chip and vehicle | |
KR20060023862A (en) | Can network controll system and test and debugging method thereof |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140625 |