Nothing Special   »   [go: up one dir, main page]

CN107346244B - A kind of automobile EPS director demon automation download system and method - Google Patents

A kind of automobile EPS director demon automation download system and method Download PDF

Info

Publication number
CN107346244B
CN107346244B CN201710482954.4A CN201710482954A CN107346244B CN 107346244 B CN107346244 B CN 107346244B CN 201710482954 A CN201710482954 A CN 201710482954A CN 107346244 B CN107346244 B CN 107346244B
Authority
CN
China
Prior art keywords
eps
controller
data
program
host 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.)
Active
Application number
CN201710482954.4A
Other languages
Chinese (zh)
Other versions
CN107346244A (en
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.)
Wuhan University of Technology WUT
Original Assignee
Wuhan University of Technology WUT
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 Wuhan University of Technology WUT filed Critical Wuhan University of Technology WUT
Priority to CN201710482954.4A priority Critical patent/CN107346244B/en
Publication of CN107346244A publication Critical patent/CN107346244A/en
Application granted granted Critical
Publication of CN107346244B publication Critical patent/CN107346244B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

It include host computer, USB-CAN box, feature board, EPS controller, barcode scanning gun the invention discloses a kind of automobile EPS director demon automation download system and method, system;Host computer is connect with USB-CAN box by USB interface, and USB-CAN box passes through CAN bus respectively and connect with feature board, EPS controller, and feature board is connect with EPS controller each other by serial ports and CAN bus;Barcode scanning gun scans the two dimensional code on EPS controller, is sent into host computer after obtaining data by conducting wire.The present invention considerably simplifies EPS director demon downloading process, can quickly and reliably complete the downloading of director demon.

Description

A kind of automobile EPS director demon automation download system and method
Technical field
The invention belongs to technical field of automobile control, are related to a kind of electric boosting steering system (EPS) control of electric car The program downloading system and method for device master control chip processed, the downloading including Bootloader and application program.
Background technique
The program downloading of embedded system is the important link of current electronic product exploitation and production.Traditional method is to make It is only tried out with the downloading of BDM (Background Debug Mode) tool or upgrade applications, this method in research and development of products rank Section, in the production of big batch products, not only low efficiency, the program code of downloading are also unreliable for this method for down loading.And it uses The method of online updating application program based on Bootloader is it is possible to prevente effectively from the above problem.Bootloader also cries starting This section of code is first carried out in bootstrap, hardware device after powering on.In automobile electronics, Bootloader's is mainly used to Online updating application program.
It generally when carrying out program downloading to chip, need to be carried out in two steps: Bootloader downloading and application program downloading. When Bootloader download complete when, it usually needs give chip power-on and power-off again, and will update traffic sign placement be application program more New model.Power-on and power-off and the function of changing renewal model are realized generally by two mechanical switch, but this method is not only Low efficiency, and producers also can often malfunction when downloading program.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of automobile EPS director demons to automate download system And method.
Technical solution used by system of the invention is: a kind of automobile EPS director demon automation download system, It is characterized in that: including host computer, USB-CAN box, feature board, EPS controller, barcode scanning gun;
The feature board is used for storage section Bootloader data, realizes Bootloader renewal model and application program Renewal model automatic switchover, the automatic power-on and power-off of EPS controller;The host computer and the USB-CAN box are connected by USB interface It connects, the USB-CAN box passes through CAN bus respectively and connect with the feature board, EPS controller, and the feature board and EPS are controlled Device is connected each other by serial ports with CAN bus;The barcode scanning gun scans the two dimensional code on the EPS controller, after obtaining data It is sent into the host computer by conducting wire.
Technical solution used by method of the invention is: a kind of automobile EPS director demon automation method for down loading, It is characterized in that, comprising the following steps:
Step 1: configuration EPS controller information;
Step 2: tester scans the two dimensional code on EPS controller by barcode scanning gun, when upper computer detection to EPS controls When two-dimensional barcode information on device changes, it is Bootloader renewal model that program renewal model, which is arranged, in feature board automatically;
Step 3: offline downloading Bootloader program;
Step 4: download online application program;
Step 5: after the completion of the offline downloading of EPS controller and download online, the key that host computer downloads program is believed Breath is recorded in txt file, and is uploaded in the database of background server by local area network.
The invention has the advantages that
(1) download system is easy to operate.Producers pass through the two dimensional code on barcode scanning gun scanning monitor, upper computer software After receiving the information, so that it may carry out program downloading;
(2) download efficiency of system is high, highly reliable.Download system realizes Bootloader and application by feature board One key of program is downloaded, and is realized controller power-on and power-off by the program in feature board and changed the function of renewal model, is replaced The step of for manual operation mechanical switch;
(3) download system is integrated with product back-tracing module, facilitates the maintenance and management in controller later period.When controller is complete After downloading at program, information relevant to the controller can be stored in txt file by upper computer software, and by local area network It passes in the database of background server.
Detailed description of the invention
Fig. 1 is the system the general frame of the embodiment of the present invention;
Fig. 2 is the method flow diagram of the embodiment of the present invention;
Fig. 3 is the Bootloader program file of the embodiment of the present invention and the process of analysis figure of application file.
Specific embodiment
Understand for the ease of those of ordinary skill in the art and implement the present invention, with reference to the accompanying drawings and embodiments to this hair It is bright to be described in further detail, it should be understood that implementation example described herein is merely to illustrate and explain the present invention, not For limiting the present invention.
Referring to Fig.1, a kind of automobile EPS director demon automation download system provided by the invention, including host computer 1, USB-CAN box 2, feature board 3, EPS controller 4, barcode scanning gun 5;Feature board 3 is used for storage section Bootloader data, realizes Bootloader renewal model and the automatic switchover of application program update mode, the automatic power-on and power-off of EPS controller 4;Host computer with USB-CAN box 2 is connected by USB interface, and USB-CAN box 2 is connect by CAN bus with feature board 3, EPS controller 4 respectively, Feature board 3 is connect with EPS controller 4 each other by serial ports and CAN bus;Barcode scanning gun 5 scans the two dimensional code on EPS controller 4, It is sent into host computer 1 after obtaining data by conducting wire.
Barcode scanning gun 5 scans the two dimensional code of EPS controller 4, and the ID number of EPS controller 4 is transmitted in host computer 1;When 1 inspection When measuring the ID of EPS controller 4 and changing, the order for starting to download program, function are sent to feature board 3 by USB-CAN box 2 The update mark of EPS controller 4 is set Bootloader renewal model by energy plate 3, then will be stored in the program of feature board 4 Code downloads to EPS controller 4;After Bootloader, which is downloaded, to be completed, feature board 3 sets the update mark of EPS controller 4 It is set to application program update mode, and sends the signal to host computer 1, under then host computer 1 is started by USB-CAN box 2 Carry application code;After the completion of the program downloading of EPS controller, host computer 1 is by controller ID number, Bootloader version Number, application version number, the information such as program download time and operator be stored in txt file, and by local area network by its It uploads in the database of background server.
See Fig. 2, a kind of automobile EPS director demon automation method for down loading provided by the invention, comprising the following steps:
Step 1: configuration 4 information of EPS controller;
The information that need to be configured includes the information of controller application program file, tester.
Step 2: tester scans the two dimensional code on EPS controller 4 by barcode scanning gun 5, when host computer 1 detects EPS When two-dimensional barcode information on controller 4 changes, setting program renewal model is that Bootloader updates mould to feature board 3 automatically Formula;
The judgment method whether 4 two-dimensional barcode information of EPS controller changes: host computer 1 can store the two of last controller Code information is tieed up, when the two-dimensional barcode information for obtaining current controller with barcode scanning gun 5, the two is compared;If the program of controller Failed download, host computer will not store the two-dimensional barcode information.The advantages of this judgment method: program can be downloaded to avoid function is had become Controller repeated downloads, improve controller production efficiency;Meanwhile to the controller of program failed download, can attempt again Downloading.
Step 3: offline downloading Bootloader program;
When detecting that 4 two-dimensional barcode information of EPS controller changes, setting program renewal model is feature board 3 automatically Bootloader renewal model.Firstly, feature board 3 is to one byte specific data of the transmission of EPS controller 4, (data are controlled by EPS 4 main control chip of device determines), EPS controller 4 is according to the time for receiving data, the baud rate of the serial communication of arbitration functions plate 3; Then, feature board 3 sends data to EPS controller 4 by serial ports, and the effect of this partial data is initialization EPS controller 4 CAN module;After serial data is sent completely, if 4 successful data reception of EPS controller, EPS controller 4 can issue burning Successful signal.Feature board 3 sends data to EPS controller 4 by CAN module again, this partial data is Bootloader Program.If downloading mistake occurs in offline downloading process, feature board 3 can be alarmed by indicator light, and can pass through USB-CAN box 2 upload to error message the status display area in 1 interface of host computer, and stop offline downloading process.
Step 4: download online application program;
After the completion of offline downloading, feature board 3 can carry out principal and power on operation to EPS controller 4, and journey is arranged Sequence renewal model is application program update mode.After being provided with, EPS controller 4 can issue application program downloading initial signal, After host computer 1 receives the signal, it will start to download application program by USB-CAN box 2.It, can be right when application program is downloaded Downloading data encryption, the Bootloader program of EPS controller 4 can will receive data and first be decrypted, then be then stored into The area FLASH of 4 main control chip of EPS controller.Equally, if downloading mistake occurs in download online process, host computer 1 can be aobvious in state Show that area shows error message, and stops online downloading process.
Step 5: after the completion of the offline downloading of EPS controller 4 and download online, key that host computer 1 downloads program Information is recorded in txt file, and is uploaded in the database of background server by local area network.Key message includes: control Device ID number, Bootloader version number, application version number, program download time, operator, Bootloader with apply journey Whether sequence is downloaded successfully etc..
See Fig. 3, the Bootloader program file of the present embodiment and application file be with HEX file format into Row storage, and be all encryption file;Before the offline downloading of starting, need to Bootloader program file and application file into Row parsing;
For Bootloader program file, first decryption obtains HEX file, carries out data line by line according to HEX file format It interprets, is converted into 16 data processed, and carry out data check;After data check is errorless, to valid data encapsulation group packet, if obtaining Dry data packet, and store it in the area FLASH of feature board 3;
For application file, data parsing is carried out using Bootloader program file analytic method, then to envelope Each data packet of dress group packet carries out CRC check;Data packet after parsing will be stored in host computer 1.
The present invention considerably simplifies EPS director demon downloading process, can quickly and reliably complete to control The downloading of device program.
It should be understood that the part that this specification does not elaborate belongs to the prior art.
It should be understood that the above-mentioned description for preferred embodiment is more detailed, can not therefore be considered to this The limitation of invention patent protection range, those skilled in the art under the inspiration of the present invention, are not departing from power of the present invention Benefit requires to make replacement or deformation under protected ambit, fall within the scope of protection of the present invention, this hair It is bright range is claimed to be determined by the appended claims.

Claims (9)

1. a kind of automobile EPS director demon automates method for down loading, downloading system is automated using automobile EPS director demon System, it is characterised in that: the system comprises host computer (1), USB-CAN box (2), feature board (3), EPS controllers (4), barcode scanning Rifle (5);
The feature board (3) is used for storage section Bootloader data, realizes Bootloader renewal model and application program Renewal model automatic switchover, the automatic power-on and power-off of EPS controller (4);The host computer and the USB-CAN box (2) pass through USB Interface connection, the USB-CAN box (2) is connect by CAN bus with the feature board (3), EPS controller (4) respectively, described Feature board (3) is connect with EPS controller (4) each other by serial ports and CAN bus;The barcode scanning gun (5) scans the EPS control Two dimensional code on device (4) is sent into the host computer (1) after obtaining data by conducting wire;
It the described method comprises the following steps:
Step 1: configuration EPS controller (4) information;
Step 2: tester is by the two dimensional code in barcode scanning gun (5) scanning EPS controller (4), when host computer (1) detects When two-dimensional barcode information on EPS controller (4) changes, setting program renewal model is feature board (3) automatically Bootloader renewal model;
Step 3: offline downloading Bootloader program;
Step 4: download online application program;
Step 5: after the completion of the offline downloading of EPS controller (4) and download online, key that host computer (1) downloads program Information is recorded in txt file, and is uploaded in the database of background server by local area network.
2. automobile EPS director demon according to claim 1 automates method for down loading, it is characterised in that: institute in step 1 Stating EPS controller (4) information includes controller application program file information, tester's information.
3. automobile EPS director demon according to claim 1 automates method for down loading, it is characterised in that: in step 2, The judgment method whether EPS controller (4) two-dimensional barcode information changes is: host computer (1) stores last time EPS controller (4) Two-dimensional barcode information compares the two when the two-dimensional barcode information for obtaining current EPS controller (4) by barcode scanning gun (5);If The program failed download of EPS controller (4), host computer (1) will not then store the two-dimensional barcode information.
4. automobile EPS director demon according to claim 1 automates method for down loading, it is characterised in that: institute in step 3 Offline downloading Bootloader program is stated, specific implementation includes following sub-step:
Step 3.1: feature board (3) sends the specific data that a byte is determined by EPS controller (4), EPS to EPS controller (4) Controller (4) is according to the time for receiving data, the baud rate of the serial communication of arbitration functions plate (3);
Step 3.2: feature board (3) sends data to EPS controller (4) by serial ports, for initializing EPS controller (4) CAN module;After serial data is sent completely, for EPS controller (4) if successful data reception, EPS controller (4) issues burning Successful signal;
Step 3.3: feature board (3) sends data to EPS controller (4) by CAN module, this data is Bootloader journey Sequence.
5. automobile EPS director demon according to claim 4 automates method for down loading, it is characterised in that: step 3.3 In, if downloading mistake occurs in offline downloading process, feature board (3) is alarmed by indicator light, and passes through USB-CAN box (2) Error message is uploaded in host computer (1), offline downloading process is stopped.
6. automobile EPS director demon according to claim 1 automates method for down loading, it is characterised in that: institute in step 4 Download online application program is stated, specific implementation includes following sub-step:
Step 4.1: after the completion of offline downloading, feature board (3) carries out principal and power on operation to EPS controller (4), and Setting program renewal model is application program update mode;
Step 4.2:EPS controller (4) issues application program downloading initial signal and passes through after host computer (1) receives the signal USB-CAN box (2) starts to download application program.
7. automobile EPS director demon according to claim 6 automates method for down loading, it is characterised in that: step 4.2 In, if downloading mistake occurs in download online process, feature board (3) is alarmed by indicator light, and passes through USB-CAN box (2) Error message is uploaded in host computer (1), online downloading process is stopped.
8. automobile EPS director demon according to claim 1 automates method for down loading, which is characterized in that institute in step 5 Stating key message includes: controller ID number, Bootloader version number, application version number, program download time, operation Whether member, Bootloader program and application program download successful information.
9. automobile EPS director demon according to any one of claims 1 to 8 automates method for down loading, feature exists It is to be stored with HEX file format in: Bootloader program file and application file, and is all encryption text Part;Before the offline downloading of starting, Bootloader program file need to be parsed with application file;
For Bootloader program file, first decryption obtains HEX file, carries out data interpretation line by line according to HEX file format, 16 data processed are converted into, and carry out data check;After data check is errorless, to valid data encapsulation group packet, several are obtained Data packet, and store it in the area FLASH of feature board (3);
For application file, data parsing is carried out using Bootloader program file analytic method, then to encapsulation group Each data packet of packet carries out CRC check;Data packet after parsing will be stored in host computer (1).
CN201710482954.4A 2017-06-22 2017-06-22 A kind of automobile EPS director demon automation download system and method Active CN107346244B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710482954.4A CN107346244B (en) 2017-06-22 2017-06-22 A kind of automobile EPS director demon automation download system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710482954.4A CN107346244B (en) 2017-06-22 2017-06-22 A kind of automobile EPS director demon automation download system and method

Publications (2)

Publication Number Publication Date
CN107346244A CN107346244A (en) 2017-11-14
CN107346244B true CN107346244B (en) 2019-09-10

Family

ID=60253377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710482954.4A Active CN107346244B (en) 2017-06-22 2017-06-22 A kind of automobile EPS director demon automation download system and method

Country Status (1)

Country Link
CN (1) CN107346244B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228217A (en) * 2018-01-18 2018-06-29 晶晨半导体(上海)股份有限公司 A kind of method for upgrading system
CN108681458A (en) * 2018-03-23 2018-10-19 天津清智科技有限公司 A kind of hand-held programmer and its control method
CN110001553B (en) * 2019-02-25 2021-07-09 南京航空航天大学 Automobile four-direction adjustable steering control device and controller downloading method
CN111209059B (en) * 2020-01-14 2023-03-03 中国北方车辆研究所 Embedded software multi-version control system and method
CN113934473B (en) 2021-12-17 2022-03-11 机科发展科技股份有限公司 Industrial electric vehicle driver application program downloading system and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002088972A1 (en) * 2001-04-26 2002-11-07 The Boeing Company A system and method for maintaining proper termination and error free communication in a network bus
CN104216745A (en) * 2014-08-29 2014-12-17 万向钱潮股份有限公司 Online upgrading system and method for semi-active suspension ECU (Electronic Control Unit) controller software

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002088972A1 (en) * 2001-04-26 2002-11-07 The Boeing Company A system and method for maintaining proper termination and error free communication in a network bus
CN104216745A (en) * 2014-08-29 2014-12-17 万向钱潮股份有限公司 Online upgrading system and method for semi-active suspension ECU (Electronic Control Unit) controller software

Also Published As

Publication number Publication date
CN107346244A (en) 2017-11-14

Similar Documents

Publication Publication Date Title
CN107346244B (en) A kind of automobile EPS director demon automation download system and method
CN104199706B (en) A kind of eMMC firmware upgrade method and its equipment
CN104899055B (en) A kind of ME more new systems and its update method based on BIOS controls
US8904074B2 (en) Method and apparatus for distributing configuration files in a distributed control system
CN101673202A (en) Program writing method and system, pre-writing device and writing device
CN102945177A (en) Programmable logic controller (PLC) firmware upgrading system and method
US9201833B2 (en) Backplane controller capable of transferring and receiving data through USB interface
CN102662697A (en) Software upgrading method and device
CN105094877A (en) Method for firmware upgrading, and host side device and system
CN108196861B (en) Data upgrading method and diagnostic equipment thereof
CN111427602A (en) Method for upgrading firmware on line of intelligent platform management controller of VPX case
CN110196726A (en) A method of the load of FPGA program remote upgrading is realized based on CPU+CPLD
CN102081526B (en) Basic input/output system architecture
CN103475708A (en) Remote software updating method
CN107870776B (en) IPMC online upgrading method and device
CN106775904A (en) A kind of program burn writing system and method for microcontroller built-in type system
CN105224453A (en) The automatic test approach of system compatibility and device
CN108966189A (en) A kind of radio upgrade device and method based on bluetooth EDR
CN206892846U (en) A kind of program burn writing system of microcontroller built-in type system
CN116700751A (en) Upgrading method of server firmware and computing device
CN102419712A (en) Method and device for upgrading user side software
CN108103683A (en) Sewing-machine equipment and its software program update device
CN116541026A (en) Self-adaptive chip manufacturer bit stream burning method, device, equipment and medium
CN108234160A (en) A kind of airborne core processing computer radio upgrade method
CN208156647U (en) A kind of auxiliary device for the upgrading of distribution apparatus program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant