CN102621950A - Pure electric vehicle carload controller refreshing instrument and refreshing method - Google Patents

Pure electric vehicle carload controller refreshing instrument and refreshing method Download PDF

Info

Publication number
CN102621950A
CN102621950A CN2012100650034A CN201210065003A CN102621950A CN 102621950 A CN102621950 A CN 102621950A CN 2012100650034 A CN2012100650034 A CN 2012100650034A CN 201210065003 A CN201210065003 A CN 201210065003A CN 102621950 A CN102621950 A CN 102621950A
Authority
CN
China
Prior art keywords
data
chip
usb
entire car
car controller
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
CN2012100650034A
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.)
Chery Automobile Co Ltd
Original Assignee
SAIC Chery 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 SAIC Chery Automobile Co Ltd filed Critical SAIC Chery Automobile Co Ltd
Priority to CN2012100650034A priority Critical patent/CN102621950A/en
Publication of CN102621950A publication Critical patent/CN102621950A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention relates to a pure electric vehicle carload controller refreshing instrument and a refreshing method. The refreshing instrument is arranged between a carload controller and an upper computer; the refreshing instrument mainly comprises a USB (universal serial bus) chip, a microcontroller chip and a CAN (controller area network) transceiver, wherein the USB chip has a function of converting a USB data into parallel port data and carries out data exchange between the microcontroller chip and the upper computer; and the microcontroller chip sends and receives a CAN message through the CAN transceiver, and CANH and CANL communication lines are arranged between the CAN transceiver and the carload controller. The refreshing instrument and the refreshing method provided by the invention overcome the trouble that the controller is dismounted when a BDM (background debugging mode) is whitewashed, and a diagnostic line with a CAN interface is connected with the carload controller; and a USB interface on a PC (personal computer) supplies power to the refreshing instrument, a USB port is virtual as a COM (component object model) port to carry out data transmission, and the USB interface can carry out renovation directly through CAN communication, thereby being convenient and rapid.

Description

A kind of pure electric automobile entire car controller refresh tool and method for refreshing
Technical field
The present invention relates to a kind of pure electric automobile entire car controller refresh tool and method for refreshing, comprising refresh tool upper computer software, refresh tool bottom software and refresh tool hardware.The refresh tool upper computer software carries out communication through computer USB (Universal Serial BUS) interface and refresh tool hardware.Refresh tool is carried out communication through CAN (Controller Area Network) communication and automobile controller to be refreshed, and follows KWP2000 (Key Word Protocol 2000) agreement, realizes software refreshing through the CAN communication.
Background technology
In the pure electric automobile performance history, often need make the modification of software code, the renewal of controlling models etc., thereby cause the software of entire car controller often need write with a brush dipped in Chinese ink again.
Tradition is cumbersome through writing with a brush dipped in Chinese ink of BDM (Background Debugging Mode) interface, because the BDM interface generally all is placed on the automobile controller enclosure in hardware designs, mainly is convenient to program debug; So want to write with a brush dipped in Chinese ink through the BDM interface, have only dismantled the entire car controller shell after, just can write with a brush dipped in Chinese ink; Suitable wastes time and energy; In the face of large quantities of automobile controllers of having loaded onto car, carry out software refreshing, progress is quite slow.
Summary of the invention
The present invention has designed a kind of pure electric automobile entire car controller refresh tool and method for refreshing; The technical matters of its solution is the mode that tradition refreshes through the BDM interface, have only dismantled the entire car controller shell after, just can write with a brush dipped in Chinese ink; Suitable wastes time and energy; In the face of large quantities of automobile controllers of having loaded onto car, carry out software refreshing, progress is quite slow; Refresh through instruments such as INCA in addition, refresh rate is slower, and configuration is comparatively complicated.
In order to solve the technical matters of above-mentioned existence, the present invention has adopted following scheme:
A kind of pure electric automobile entire car controller refresh tool is characterized in that: between entire car controller and host computer, be provided with a refresh tool.
Further, said refresh tool mainly comprise have the USB chip, microcontroller chip and CAN transceiver; Wherein, the USB chip has usb data changes the function of parallel port data and microcontroller chip and host computer is carried out exchanges data; Microcontroller chip sends and receives CAN message to the CAN transceiver; There are two communication lines of CANH and CANL between CAN transceiver and the entire car controller.
Further, said USB chip is the FT245BL chip, and said microcontroller chip is the Mpc5607b master chip, and said CAN transceiver is the JTA1050 transceiver.
A kind of method for refreshing of pure electric automobile entire car controller refresh tool may further comprise the steps:
Step 1, choose through upper computer software and will brush the executable file of waiting to refresh in the entire car controller, give the FT245BL chip with data transmission through usb bus;
Step 2, FT245BL chip are passed to the Mpc5607b master chip with data through 8 tunnel parallel ports; Master chip changes through the RXF# pin level of FT245BL chip; The parallel port data are read collection; And with the data of the data of gathering as CAN message, the JTA1050 transceiver through CAN passes to entire car controller to be refreshed;
Step 3, entire car controller to be refreshed receive the CAN message of sending, and make corresponding response; The response of making is passed through the CAN bus with the form of CAN message, is received by the Mpc5607b master chip;
Step 4, Mpc5607b master chip convert the data in the CAN message data of 8 tunnel parallel ports to again, through the level of TXE# pin of monitoring FT245BL, on the com port that data transmission is invented to USB;
The data of step 5, upper machine-readable com port judge whether entire car controller feedback data to be refreshed is correct, whether can carry out next step refresh operation.
This pure electric automobile entire car controller refresh tool and method for refreshing have following beneficial effect:
The present invention has overcome the trouble of dismounting controller when BDM writes with a brush dipped in Chinese ink,, link to each other with entire car controller through the diagnostics lines that has the CAN interface; Going up USB interface through PC supplies power to refresh tool; And the USB mouth is invented com port carry out data transmission, directly refresh through the CAN communication, convenient and swift.
Description of drawings
Fig. 1: the hardware of pure electric automobile entire car controller refresh tool of the present invention connects synoptic diagram;
Fig. 2: pure electric automobile entire car controller refresh tool working procedure process flow diagram of the present invention.
Embodiment
Below in conjunction with Fig. 1 and Fig. 2, the present invention is further specified:
As shown in Figure 1:
(1) chooses through upper computer software and will brush the executable file of waiting to refresh in the entire car controller, give the FT245BL chip with data transmission through usb bus;
(2) the FT245BL chip is passed to the Mpc5607b master chip with data through 8 tunnel parallel ports; Master chip changes through the RXF# pin level of FT245BL chip; The parallel port data are read collection; And with the data of the data of gathering as CAN message, the JTA1050 transceiver through CAN passes to entire car controller to be refreshed;
(3) entire car controller to be refreshed receives the CAN message of sending, and makes corresponding response; The response of making is passed through the CAN bus with the form of CAN message, is received by the Mpc5607b master chip;
(4) the Mpc5607b master chip converts the data in the CAN message data of 8 tunnel parallel ports to again, through the level of TXE# pin of monitoring FT245BL, on the com port that data transmission is invented to USB;
(5) data of upper machine-readable com port judge whether entire car controller feedback data to be refreshed is correct, whether can carry out next step refresh operation.
Specifically:
1, the FT245BL chip invents com port;
Chip in the pure electric automobile entire car controller refresh tool hardware is FT245BL chip and Freescale Mpc5607b master chip.When refresh tool was linked on the computer through the USB mouth, computer can be checked through a kind of new hardware, promptly has been checked through the FT245BL chip, and this moment, the drive installation with this chip got final product.When in use, can that USB mouth that refresh tool is connected with computer be invented com port uses.
2, upper computer software and FT245BL set up communication;
Upper computer software is write through VC++6.0, realizes the communication with the FT245BL chip through the comm control.Upper computer software is selected to write with a brush dipped in Chinese ink the executable file (like the file of .s19 form) in the entire car controller; Click refresh button; To read the data of executable file then; Form with CAN message data is combined into one group of data, is passed in the refresh tool hardware through the USB oral instructions, and whether the variation of the master chip in the refresh tool hardware through FT245BL chip RXF# pin level can be checked through has data transmission to come.
Upper computer software is MFC (the Microsoft Foundation Classes) program that adopts VC++ 6.0 to write, and mainly is reception and the transmission that realizes com port (COM) data; The refresh tool bottom software mainly comprises the driving of CAN communication, the read-write of FT245BL chip data, and the conversion of parallel port data and CAN data.
3, receive parallel port data and convert CAN message data form to;
The Mpc5607b master chip can be carried out from FT245BL reception data or to the FT245BL write data according to reception, the transmission chip selection signal of FT245BL chip.When host computer was passed to refresh tool with data through the USB oral instructions, the RXF# pin level of FT245BL chip changed.The Mpc5607b master chip changes according to this, and the parallel port data are read collection, 8 tunnel parallel port data is done merge to be handled then, and be stored in a length and be in 8 the variable, and with the data storage of this variable as CAN message.
4, the Mpc5607b master chip sends and receives CAN message;
The Mpc5607b master chip will pass through the CAN communication with the parallel port data of CAN message data storage, pass to entire car controller to be refreshed; Entire car controller to be refreshed receives the CAN message data that has transformed, and to this CAN message, makes corresponding response.The response of making is passed through the CAN bus with the form of CAN message, is received by the refresh tool master chip.
5, CAN message data converts the parallel port data to;
The Mpc5607b master chip converts the data in the CAN message data of 8 tunnel parallel ports to again, and the level of the TXE# pin through monitoring FT245BL chip is on the com port that data transmission is invented to USB.
6, host computer receives data and handles;
The data of upper machine-readable com port judge that whether entire car controller feedback data to be refreshed is correct, whether can carry out next step refresh operation, does different responses according to condition of different.
If the data of returning are correct, then carry out next step data transmission, up to the whole end of transmissions of this executable file that will write with a brush dipped in Chinese ink; If the data of returning are incorrect, then refresh and stop, according to stopping at, which refreshes the stage, report different informations.
As shown in Figure 2, program circuit of the present invention is following:
(1) numeral input and output of initialization Mpc5607b master chip and CAN driver;
(2) the Mpc5607b master chip judges through the RXF# signal of FT245BL chip whether host computer has data to send to refresh tool;
(3) if host computer has data to send to refresh tool, the Mpc5607b master chip is merged into a byte with the data that 8 tunnel parallel ports receive, and the data that will receive continuously are put among the array ParallelData [];
(4) with the data of the data in the ParallelData [] array, send to entire car controller as CAN message;
(5) the Mpc5607b master chip receives the CAN message of the feedback that entire car controller to be refreshed provides;
(6) the CAN message data with feedback unpacks, and is put into successively among the CanReceiveData [];
(7) the Mpc5607b master chip is judged the TXE# signal of FT245BL chip, determines whether to transmit data;
(8) if the Mpc5607b master chip is confirmed the transmission data, the Mpc5607b master chip is transferred to the FT245BL chip with data among the CanReceiveData [] through the parallel port;
(9) on the com port that the FT245BL chip invents the parallel port data to the FT245BL chip through the USB oral instructions, supply host computer to receive;
(10) host computer judges whether the data that receive are correct; If incorrect, will give through message box etc. and refresh personnel relevant error message is provided;
(11) if correct, host computer will be carried out next step refresh operation, judge whether data are sent completion;
(12) if judgment data has been sent completion, refresh end; If judgment data is not sent completion, data are transferred to refresh tool through the com port that the FT245BL chip invents, and the program of getting back to occur again and handle in (2).
Combine accompanying drawing that the present invention has been carried out exemplary description above; Obvious realization of the present invention does not receive the restriction of aforesaid way; As long as the various improvement of having adopted method design of the present invention and technical scheme to carry out; Or design of the present invention and technical scheme are directly applied to other occasion without improving, all in protection scope of the present invention.

Claims (4)

1. a pure electric automobile entire car controller refresh tool is characterized in that: between entire car controller and host computer, be provided with a refresh tool.
2. according to the said pure electric automobile entire car controller of claim 1 refresh tool, it is characterized in that: said refresh tool mainly comprises USB chip, microcontroller chip and CAN transceiver; Wherein, the USB chip has usb data changes the function of parallel port data and microcontroller chip and host computer is carried out exchanges data; Microcontroller chip sends and receives CAN message through the CAN transceiver; There are two communication lines of CANH and CANL between CAN transceiver and the entire car controller.
3. according to the said pure electric automobile entire car controller of claim 2 refresh tool, it is characterized in that: said USB chip is the FT245BL chip, and said microcontroller chip is the Mpc5607b master chip, and said CAN transceiver is the JTA1050 transceiver.
4. method for refreshing according to the said pure electric automobile entire car controller of claim 3 refresh tool may further comprise the steps:
Step 1, choose through upper computer software and will brush the executable file of waiting to refresh in the entire car controller, give the FT245BL chip with data transmission through usb bus;
Step 2, FT245BL chip are passed to the Mpc5607b master chip with data through 8 tunnel parallel ports; Master chip changes through the RXF# pin level of FT245BL chip; The parallel port data are read collection; And with the data of the data of gathering as CAN message, the JTA1050 transceiver through CAN passes to entire car controller to be refreshed;
Step 3, entire car controller to be refreshed receive the CAN message of sending, and make corresponding response; The response of making is passed through the CAN bus with the form of CAN message, is received by the Mpc5607b master chip;
Step 4, Mpc5607b master chip convert the data in the CAN message data of 8 tunnel parallel ports to again, through the level of TXE# pin of monitoring FT245BL, on the com port that data transmission is invented to USB;
The data of step 5, upper machine-readable com port judge whether entire car controller feedback data to be refreshed is correct, whether can carry out next step refresh operation.
CN2012100650034A 2012-01-13 2012-01-13 Pure electric vehicle carload controller refreshing instrument and refreshing method Pending CN102621950A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100650034A CN102621950A (en) 2012-01-13 2012-01-13 Pure electric vehicle carload controller refreshing instrument and refreshing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100650034A CN102621950A (en) 2012-01-13 2012-01-13 Pure electric vehicle carload controller refreshing instrument and refreshing method

Publications (1)

Publication Number Publication Date
CN102621950A true CN102621950A (en) 2012-08-01

Family

ID=46561915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100650034A Pending CN102621950A (en) 2012-01-13 2012-01-13 Pure electric vehicle carload controller refreshing instrument and refreshing method

Country Status (1)

Country Link
CN (1) CN102621950A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426201A (en) * 2015-10-30 2016-03-23 奇瑞汽车股份有限公司 Control method for refreshing monitoring chip
CN106682519A (en) * 2017-01-04 2017-05-17 重庆长安汽车股份有限公司 Method and system for remotely flashing vehicle controller program
CN106998281A (en) * 2017-04-05 2017-08-01 北京汽车研究总院有限公司 A kind of data update processing method, device, gateway controller and automobile
CN108647031A (en) * 2018-01-26 2018-10-12 上海仪电汽车电子***有限公司 Automobile instrument writes with a brush dipped in Chinese ink method and host computer online

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2584442Y (en) * 2002-12-06 2003-11-05 北方交通大学 Matching calibrating device for power assembly system of mixed power electric vehicle
US20100010704A1 (en) * 2008-07-11 2010-01-14 Toyota Jidosha Kabushiki Kaisha Degradation determining apparatus for power storage device and degradation determining method for power storage device
CN101850799A (en) * 2010-05-31 2010-10-06 重庆长安汽车股份有限公司 Controller FLASH programming method based on hybrid electric vehicle CAN bus communication
CN202110528U (en) * 2010-12-28 2012-01-11 重庆恩菲斯软件有限公司 ECU (electrical conversion unit) embedded type software refreshing and downloading programming system
CN102320276A (en) * 2011-07-05 2012-01-18 张化锴 Pure electric automobile entire car controller calibration system and calibration method based on the CAN bus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2584442Y (en) * 2002-12-06 2003-11-05 北方交通大学 Matching calibrating device for power assembly system of mixed power electric vehicle
US20100010704A1 (en) * 2008-07-11 2010-01-14 Toyota Jidosha Kabushiki Kaisha Degradation determining apparatus for power storage device and degradation determining method for power storage device
CN101850799A (en) * 2010-05-31 2010-10-06 重庆长安汽车股份有限公司 Controller FLASH programming method based on hybrid electric vehicle CAN bus communication
CN202110528U (en) * 2010-12-28 2012-01-11 重庆恩菲斯软件有限公司 ECU (electrical conversion unit) embedded type software refreshing and downloading programming system
CN102320276A (en) * 2011-07-05 2012-01-18 张化锴 Pure electric automobile entire car controller calibration system and calibration method based on the CAN bus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426201A (en) * 2015-10-30 2016-03-23 奇瑞汽车股份有限公司 Control method for refreshing monitoring chip
CN105426201B (en) * 2015-10-30 2019-03-12 奇瑞汽车股份有限公司 A kind of control method refreshing monitoring chip
CN106682519A (en) * 2017-01-04 2017-05-17 重庆长安汽车股份有限公司 Method and system for remotely flashing vehicle controller program
CN106998281A (en) * 2017-04-05 2017-08-01 北京汽车研究总院有限公司 A kind of data update processing method, device, gateway controller and automobile
CN106998281B (en) * 2017-04-05 2020-09-01 北京汽车集团越野车有限公司 Data updating processing method and device, gateway controller and automobile
CN108647031A (en) * 2018-01-26 2018-10-12 上海仪电汽车电子***有限公司 Automobile instrument writes with a brush dipped in Chinese ink method and host computer online

Similar Documents

Publication Publication Date Title
CN101309193B (en) USB-Flexray bus adapter based on micro-processor
CN105760335A (en) Spacecraft universal interface controller
CN201583832U (en) Novel portable PLC programming device
CN102621950A (en) Pure electric vehicle carload controller refreshing instrument and refreshing method
CN103901814B (en) A kind of multiaxial motion digital control system
CN102063747A (en) CAN data logger
CN201113878Y (en) Driver
CN201707601U (en) Automobile diagnosis system based on general bus paralleling
CN201751898U (en) 1553B bus test device
CN102033540A (en) System for testing automobile instrument with a controller area network (CAN) bus and testing method thereof
CN107370750A (en) A kind of date storage method of interconnecting module, device and interconnecting module
CN2845324Y (en) MVB equipment network interface card based on FPGA
CN108345558B (en) RS485 centralized configuration unit supporting multiple protocols
CN201751896U (en) ARINC429 bus testing device
CN201312329Y (en) LON-CAN gateway device taking AT89C51 as processing unit
CN101477716A (en) Energy consumption recording instrument for MVB interface type locomotive and controlling method thereof
CN101478453A (en) Handhold portable CANOPEN network data analyzer and controlling method thereof
CN201757857U (en) Can bus communication monitoring analyzer
CN115549782A (en) Information query method of optical module and related assembly thereof
CN102023959A (en) Communication conversion bridge set based on USB-HID (universal serial bus-human input device) protocol
CN115277297A (en) Portable MVB bus analyzer and bus debugging method
CN201278146Y (en) ATA interface signal capturing apparatus implemented based on FPGA
CN201830287U (en) Controller area network (CAN) open-RS232 gateway
CN102622937A (en) Robot demonstrator
CN201000569Y (en) Special chip for realizing bus controller function in ring bus numerical control 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
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120801