A kind of automobile controller software dedicated refresh instrument and software refreshing method thereof
Technical field
The invention belongs to technical field of automotive electronics, specially refer to a kind of automobile controller software dedicated refresh instrument and software refreshing method thereof.
Background technology
Along with the fast development of semicon industry, electronic product incorporates in the automobile industry gradually, makes automobile electronics be able to develop rapidly growth, the automobile control module widespread use.Yet; Automobile control module often need be write with a brush dipped in Chinese ink control module because software code revises again at test coupling Qualify Phase; Simultaneously after the automobile volume production; Also can write with a brush dipped in Chinese ink control module again because of the Control Software upgrading, so a kind of automobile controller software dedicated refresh instrument of automobile industry urgent need, to solve the problem of automobile control module software modification and upgrading.
Summary of the invention
The objective of the invention is to propose a kind of simple in structure, automobile controller software dedicated refresh instrument and software refreshing method thereof that cost is low, easy to use, to solve the problem of automobile control module software modification and upgrading.
Automobile controller software dedicated refresh instrument of the present invention comprises power module, data processing unit, CAN transceiver, OBD connector, be used for the computer data interface that is connected with computer; Said data processing unit links to each other with power module, CAN transceiver, computer data interface respectively, and said CAN transceiver links to each other with the OBD connector.
Further, observe for convenient, said data processing unit also is connected with the pilot lamp that is used for designation data processing unit duty.
Further, use for convenient, the said data-interface that is used for being connected with computer is a USB interface; Said data processing unit is formed by connecting single-chip microcomputer and usb data process chip, and perhaps said data processing unit is made up of the single-chip microcomputer with USB interface.
The software refreshing method of above-mentioned automobile controller software dedicated refresh instrument comprises the steps:
A: the computer data interface is linked to each other with computer, the OBD connector is linked to each other with automobile controller;
B: data processing unit is downloaded the software program code in the computer through the computer data interface, and software program code is stored in the data processing unit;
C: data processing unit, is brushed software program code in the automobile controller with CAN agreement and automobile controller communication through the OBD interface.
Wherein, comprise following steps in the said C step:
C1: with the data erase in the address realm of preparing refreshing in the automobile controller chip;
C2: want data updated to the automobile controller transmission;
C3: in the automobile controller chip, write data.
In the C1 step, all can confirm after whenever wiping the data of a unit; In the C2 step, all to confirm after the data of a unit of every transmission; In the C3 step, all to confirm after whenever writing the data of a unit.
Further; For guaranteeing that refresh data is accurate; The software refreshing method of above-mentioned automobile controller software dedicated refresh instrument also comprises the D step: automobile controller refreshes after the completion, at first automobile controller is resetted, and then reads the data of automobile controller chip; And compare with data processing unit software stored program code, whether the data that checking writes make mistakes.
It is low, easy to carry that automobile controller software dedicated refresh instrument of the present invention has a cost, writes with a brush dipped in Chinese ink advantages such as quick, accurate, be very suitable for developing and maintenance process in the software of automobile controller write with a brush dipped in Chinese ink, have good practicability.
Description of drawings
Fig. 1 is the structural drawing of automobile controller software dedicated refresh instrument of the present invention.
Embodiment
Contrast accompanying drawing below; Through the description to embodiment, the effect of mutual alignment between the shape of specific embodiments of the invention such as related each member, structure, the each several part and annexation, each several part and principle of work etc. are done further to specify.
Embodiment 1:
As shown in Figure 1; The automobile controller software dedicated refresh instrument of present embodiment comprises power module 1, data processing unit 2, CAN transceiver 3, OBD connector 4, be used for the USB interface 5, the LED light 6 that are connected with computer; Wherein data processing unit 2 is by power module 1 power supply; Data processing unit 2 is formed by connecting single-chip microcomputer 21 and usb data process chip 22; Single-chip microcomputer 21 links to each other with CAN transceiver 3, LED light 6, usb data process chip 22 respectively, and CAN transceiver 3 links to each other with OBD connector 4, and usb data process chip 22 links to each other with USB interface 5.
The software refreshing method of above-mentioned automobile controller software dedicated refresh instrument comprises the steps:
A: USB interface 5 is linked to each other with computer, OBD connector 4 is linked to each other with automobile controller;
B: single-chip microcomputer 21 passes through the software program code that USB interface 5 is downloaded in the computers, and software program code is stored in the single-chip microcomputer 21;
C: single-chip microcomputer 21, is brushed software program code in the automobile controller with CAN agreement and automobile controller communication through OBD interface 4;
D: automobile controller refreshes after the completion, at first automobile controller is resetted, and then reads the data of automobile controller chip, and compare with single-chip microcomputer 21 software stored program codes, and whether the data that checking writes make mistakes.
Wherein, comprise following steps in the said C step:
C1: with the data erase in the address realm of preparing refreshing in the automobile controller chip;
C2: want data updated to the automobile controller transmission;
C3: in the automobile controller chip, write data.
In the C1 step, all can confirm after whenever wiping the data of a unit; In the C2 step, all to confirm after the data of a unit of every transmission; In the C3 step, all to confirm after whenever writing the data of a unit.