CN101493771A - Electric-controlled unit program burn writing equipment and method - Google Patents

Electric-controlled unit program burn writing equipment and method Download PDF

Info

Publication number
CN101493771A
CN101493771A CNA2008100568828A CN200810056882A CN101493771A CN 101493771 A CN101493771 A CN 101493771A CN A2008100568828 A CNA2008100568828 A CN A2008100568828A CN 200810056882 A CN200810056882 A CN 200810056882A CN 101493771 A CN101493771 A CN 101493771A
Authority
CN
China
Prior art keywords
control unit
program
main control
unit
ecu
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
CNA2008100568828A
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.)
CHINA VAGON (BEIJING) AUTOMOBILE ELECTRONIC TECHNOLOGY Co Ltd
Original Assignee
CHINA VAGON (BEIJING) AUTOMOBILE ELECTRONIC TECHNOLOGY 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 CHINA VAGON (BEIJING) AUTOMOBILE ELECTRONIC TECHNOLOGY Co Ltd filed Critical CHINA VAGON (BEIJING) AUTOMOBILE ELECTRONIC TECHNOLOGY Co Ltd
Priority to CNA2008100568828A priority Critical patent/CN101493771A/en
Publication of CN101493771A publication Critical patent/CN101493771A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to an electric control unit program writing device and a method thereof. The electric control unit program writing device comprises a serial communication interface unit connected between a main control chip and a host computer, a program storage unit used for storing programs of the writing program received by a main control unit, a K line communication unit connected between the main control unit and an electric control unit and the main control unit; in the method, the main control unit is communicated with the host computer to download the writing program, and then stores the writing program into the program storage unit; the writing program is controlled to be read by a switch control circuit and transmitted to the electric control unit through the K line communication unit to be written. The device and the method are utilized to write the electric control unit, have high writing efficiency and writing accuracy, automatic rewriting function, simple and intuitive writing process, and can carry out writing operation to a plurality of electric control units.

Description

A kind of electric-controlled unit program burn writing equipment and method
Technical field
The present invention relates to the electronic control unit of automobile engine field, be specifically related to a kind of electric-controlled unit program burn writing equipment and method.
Background technology
ECU (Electrical Control Unit) ECU has critical role as the control module of automobile in field of automobile control, and along with the continuous maturation of ECU (Electrical Control Unit) technology, large batch of ECU (Electrical Control Unit) is produced need be very urgent.Wherein, be a very important committed step to the main control chip of ECU (Electrical Control Unit) such as the program burn writing of ST10F269.And at present, program burn writing mainly is to rely on artificial a slice a slice to carry out programming, many, effort not only consuming time, can not satisfy the needs of productive temp, if there is the improper chip program programming mistake that also can cause of manual operation, serious even can damage chip, cause very big loss.Therefore, the robotization of program burn writing step, high efficiency and reliability just become the requirement to electric-controlled unit program burn writing.
Summary of the invention
The purpose of this invention is to provide a kind of electric-controlled unit program burn writing equipment and the method that can carry out program burn writing expeditiously to ECU (Electrical Control Unit), have the advantages that speed is fast, order of accuarcy is high, efficient is high.
For achieving the above object, the invention provides a kind of electric-controlled unit program burn writing equipment, this equipment comprises serial communication interface unit, program storage unit (PSU) and main control unit, wherein: the serial communication interface unit, be connected between main control unit and the host computer, be used for the programming program that described host computer sends is sent to described main control unit; Program storage unit (PSU) is connected with described main control unit, is used to store the programming program that described main control unit receives; Described main control unit is connected with ON-OFF control circuit, is used for behind the signal of receiving key control circuit, reads the programming program in the described program storage unit (PSU) and sends to ECU (Electrical Control Unit);
Wherein, this equipment also comprises the K line communication unit that is connected between ECU (Electrical Control Unit) and the main control unit, is used for the programming program that main control unit sends is sent to described ECU (Electrical Control Unit).
Wherein, this equipment also comprises the signalling channel selected cell that is connected between described main control unit and the K line communication unit, described signalling channel selected cell is connected with several ECU (Electrical Control Unit) by K line communication unit, controls described one of them ECU (Electrical Control Unit) of signalling channel selected cell gating by main control unit.
Wherein, this equipment also comprises the control area net line communication unit that is connected between main control unit and the ECU (Electrical Control Unit), is used for the program burn writing status signal that ECU (Electrical Control Unit) sends is sent to main control unit.
Wherein, this equipment also comprises the display unit that is connected with described main control unit, is used to the program burn writing status signal that shows that ECU (Electrical Control Unit) sends.
The present invention also provides a kind of electric-controlled unit program burn writing method, and this method may further comprise the steps:
S1: the programming program that host computer sends is sent to main control unit by the serial communication interface unit;
S2: described main control unit is kept at the programming program that receives in the program storage unit (PSU);
S3: the program burn writing switching signal that described main control unit read switch control circuit sends, if low level, execution in step S4 is if high level finishes;
S4: read the programming program in the described program storage unit (PSU) and send to ECU (Electrical Control Unit) and carry out program burn writing.
In this method, wherein be connected with K line communication unit between main control unit and the ECU (Electrical Control Unit), in step S4, described main control unit sends to ECU (Electrical Control Unit) with the programming program that sends by described K line and carries out program burn writing.
In this method, wherein be connected with the signalling channel selected cell between main control unit and the K line communication unit, described signalling channel selected cell is connected with several ECU (Electrical Control Unit) by K line communication unit, it is characterized in that, in step S4: described main control unit is controlled described one of them ECU (Electrical Control Unit) of signalling channel selected cell gating, and the described programming program that reads is sent in the ECU (Electrical Control Unit) of gating.
In this method, wherein between main control unit and ECU (Electrical Control Unit), be connected with control area net line communication unit, it is characterized in that, in step S4, also comprise step: during described ECU (Electrical Control Unit) programming program the program burn writing status signal is sent to described main control unit by described control area net line communication unit.
In this method, wherein said main control unit is connected with display unit, it is characterized in that, in step S4, described main control unit receives and it outputed to display unit behind the program burn writing status signal and show.
The advantage of the method for program burn writing equipment of the present invention is, programming efficient height, programming accurately, have a programming function again automatically, and check the programming status signal by display unit, make programming process simple, intuitive, can carry out program burn writing a plurality of automatically controlled ECU (Electrical Control Unit).
Description of drawings
Fig. 1 is the composition frame chart of electric-controlled unit program burn writing equipment of the present invention;
Fig. 2 A is the main control unit circuit diagram of embodiment of the invention ECU (Electrical Control Unit) burn writing equipment;
Fig. 2 B is the main control unit circuit diagram of embodiment of the invention ECU (Electrical Control Unit) burn writing equipment;
Fig. 3 is the program storage unit (PSU) circuit diagram of embodiment of the invention ECU (Electrical Control Unit) burn writing equipment;
Fig. 4 is the serial communication interface element circuit figure of embodiment of the invention ECU (Electrical Control Unit) burn writing equipment;
Fig. 5 is the control area net line communication unit circuit diagram of embodiment of the invention ECU (Electrical Control Unit) burn writing equipment;
Fig. 6 is the signalling channel selected cell circuit diagram of embodiment of the invention program burn writing equipment;
Fig. 7 is the K line communication unit circuit diagram of embodiment of the invention program burn writing equipment;
Fig. 8 is the peripheral interface units circuit diagram of embodiment of the invention program burn writing equipment;
Fig. 9 is the switch control unit circuit diagram of embodiment of the invention program burn writing equipment;
Figure 10 is the process flow diagram of embodiment of the invention program burn writing method.
Embodiment
Following examples are used to illustrate the present invention, but are not used for limiting the scope of the invention.
As the composition frame chart of Fig. 1 for electric-controlled unit program burn writing equipment of the present invention, this equipment comprises: the serial communication interface unit, be connected between main control chip and the host computer, and be used for the programming program that described host computer sends is sent to described main control unit; Program storage unit (PSU) is connected with described main control unit, is used to store the programming program that described main control unit receives; Described main control unit is connected with ON-OFF control circuit, is used for behind the signal of receiving key control circuit, reads programming program and transmission in the described program storage unit (PSU); K line communication unit is connected between main control unit and the ECU (Electrical Control Unit), is used for the programming program that main control unit sends is sent to ECU (Electrical Control Unit).This equipment also comprises the signalling channel selected cell that is connected between described main control unit and the K line communication unit, described signalling channel selected cell is connected with several ECU (Electrical Control Unit) by K line communication unit, controls the ECU (Electrical Control Unit) that gating is connected with described signalling channel selected cell by main control unit.This equipment also comprises the control area net line communication unit that is connected between main control unit and the ECU (Electrical Control Unit), is used for the program burn writing status signal that ECU (Electrical Control Unit) sends is sent to main control unit.Described control area net line communication unit comprises and is connected to each other control area net communicating circuit and two film inductor circuit.This equipment also comprises the display unit that is connected with described main control unit, is used to the program burn writing status signal that shows that ECU (Electrical Control Unit) sends.
The present invention has used existing controller local area network CAN line communication technology and K line communication technology.
Controller local area network CAN (Controller Area Network) is one of most widely used fieldbus in the world.CAN appears in the auto industry at the end of the eighties at first, is proposed at first by German Bosch company.At that time, because the consumer is more and more for the requirement of automobile function, and the realization of these functions was based on electronic operation mostly, and this just makes the communication between the electronic installation become increasingly complex, and means the more signal wire that connects of needs simultaneously.The initial motivation that proposes the CAN bus is exactly in order to solve the communication between the electronic-controlled installation huge in the Hyundai Motor, to reduce ever-increasing signal wire.So they have designed a single network-bus, all peripheral components can be articulated on this bus.1993, CAN became international standard ISO11898 (high-speed applications) and ISO11519 (low-speed applications).
At present, CAN extensively is designed as the microcontroller communication in the automotive environment, and exchange message between vehicle-mounted each electronic-controlled installation ECU forms the Vehicle Electronic Control network.Such as: in engine management system, gearbox control, instrument equipment, the electronics trunk system, all embed the CAN control device.CAN is a kind of serial communication bus of many master modes, and basic design specifications requires that high bit rate is arranged, high anti-electromagnetic interference (EMI), and can detect any mistake of generation.When signal transmission distance reached 10Km, CAN still can provide the message transmission rate up to 50Kbit/s.
ECU (Electrical Control Unit) has an order wire that the K line is external, and wherein the K line is used for the bidirectional data transfers of self diagnosis instrument to ECU, can be used for the initialization of serial communication.
Fig. 2 A, Fig. 2 B are the main control unit circuit diagram of embodiment of the invention ECU (Electrical Control Unit) burn writing equipment, and the model that main control chip adopts ST company to produce in the present embodiment is the microcontroller of ST10F269, and it is a 16 embedded microcontroller.Random access memory, 32 tunnel with flash memories Flash, 4K of 16MB address space, 256K is caught/is compared, the output of 4 road pulse-width modulation PWMs, 2 road serial ports, 5 timers and expansion I/O etc.The function of main control chip is very powerful, has very rich in natural resources.The used I/O mouth of main control chip in the present embodiment is allocated as follows substantially: the address bus of peripheral storage unit and data bus port, electric-controlled unit program burn writing begin the report an error enable port and the sheet of port and peripheral storage unit of port, programming and select port etc., also have in addition power supply,, start-oscillation circuit, reset signal port etc.After mainboard begins to power on, main control chip is started working: according to the situation of the gauge tap of control panel, enter into different patterns: the AD4 pin of main control chip (104 pin) if when powering on ground connection (for low), then main control chip enters into the bootstrap pattern, program designation pattern just, the interior program of chip this moment can not be moved, and can wipe the flash memories Flash of chip and program burn writing; If the AD4 pin is not low, the program in the Flash that then brings into operation begins slave computer (ECU (Electrical Control Unit)) is carried out program burn writing.The reset signal of ST10F269 is provided by the outside, the no source crystal of the crystal by adopting 8MHZ of outside start-oscillation circuit.
Fig. 3 is the program storage unit (PSU) circuit diagram of embodiment of the invention ECU (Electrical Control Unit) burn writing equipment, the model that peripheral storage unit adopts ST company to produce in the present embodiment is the procedure stores chip of 29F400BB, it is the external program memory spare of a 4M of having capacity, access time is 45ns, read cycle is 8us, can repeat erasable 100000 times, procedure stores is more than 20 years.In the present embodiment, electric-controlled unit program is stored in this chip, in the program burn writing, main control chip reads the data of this chip internal, and by the K line data is delivered among the Flash of ECU (Electrical Control Unit).The procedure stores chip has A17~A0 totally 18 bit address lines, and D14~D0 is totally 15 position datawires; Pin 47 (BYTE#) is a preference pattern pin, is 16 bit data bus when connecing high level, and pin is 8 buses when being low; OE (pin 28) is the output enable pin, and low level is effective; CE (pin 26) selects enable pin for the sheet of chip; WE (11 pin) is for writing Enable Pin, and is effectively low; Chip adopts the 5V power supply.In the time of the main control chip program run, earlier select enable pin CE to write low to sheet and keep, enable this storage chip, will write enable pin WE then and write lowly, it can be write enable, address bus is selected data address then, and data bus writes data; During reading of data, output enable pin OE is write low, address bus is selected the address, and data bus is given data and is transferred to main control chip.
Fig. 4 is the serial communication interface element circuit figure of embodiment of the invention ECU (Electrical Control Unit) burn writing equipment, and this communication unit of present embodiment kind is the MAX232 interface chip.Because the host computer PC is different with the standard that the serial ports level between the main control chip ST10F269 is carried out, need carry out level conversion so carry out communication between the serial ports, conversion chip is exactly a slice MAX232 interface chip, and this unit also has the serial line interface of one 9 pin in addition.The principle of work of MAX232 is: chip is under the situation of power supply (5V), output/incoming level the signal of PC can be received the I/O pin of the serial ports of corresponding main control chip after internal conversion, thereby can be realized the serial communication between PC and the main control chip.Communication mainly is by the programming software in the PC main control chip on the programming mainboard to be carried out program burn writing between PC and the master control core.When not needing that main control chip carried out program burn writing, the serial ports switch that links to each other with PC on the control panel disconnects the serial ports of PC serial ports and main control chip.
Fig. 5 is the control area net line communication unit circuit diagram of embodiment of the invention ECU (Electrical Control Unit) burn writing equipment, is that main control chip ST10F269 and slave computer (wanting the ECU (Electrical Control Unit) of programming) carry out the control area net communication.The model that this unit is produced by a slice PHILIPS Co. in the present embodiment is that CAN communication special chip and the peripheral components thereof of PCA80C250 formed.Research and development form this chip according to CAN communication bus protocol specialized, under the situation of 5V power supply, can carry out real-time CAN communication with other each main frames, slave, carry out the data transmission of CAN network.Its peripheral components mainly also has a two film inductor (BB293S253N among the figure) except some resistor-capacitor units, two mutual disjunct inductance are just arranged in inside.Two film inductors are connected with two-way CAN signal CANL, CANH, and this is because the awareness character of signal determines that promptly the electrical specification of CAN signal has inductance characteristic.
Fig. 6 is the signalling channel selected cell circuit diagram of embodiment of the invention program burn writing equipment.This unit is made up of the multi-way switch chip 74HC4067 that two Motorolas produce in the present embodiment.74HC4067 is a have one tunnel input (output), multichannel output (input) characteristic.The 74HC4067 working method is as follows: 12 pin of chip are ground, and 24 pin connect power supply; 1 pin is an output/input end, and 2~9 pin, 16~23 pin are 16 road I/O ports, and 10,11,13,14 pin are four bit address pins, and 15 pin are chip selection signal E (effectively low).In application process, 16 circuit-switched data input ends connect 16 road ECU output signals respectively, and 1 pin and 10,11,13,14 pin, 15 pin connect master chip.Put low the time when E end, chip is started working, and at this moment, has one the tunnel will be switched on by 1 pin and be input in the master chip in 16 road signals, and concrete which road input is then by 4 tunnel address end datas decisions.So, the input that can control 16 road signals by control to the high-low level of 10,11,13,14 pin whether because four bit address pins, every have can 0,1 two states, so can obtain 2 4=16 line states.Through behind the said process, there is one road signal to arrive main control chip.By control, can realize the input of signal one by one to address pin.The present invention utilizes this principle of this chip, the data input port of 12 road electric-controlled unit program burn writings of outside is linked to each other with main control chip by K line communication unit with data output, so only input of an output on main control chip, be the output and the input pin of serial ports, and the control by the multi-way switch chip, reach the purpose of carrying out communication with different ECU (Electrical Control Unit), certainly 12 tunnel ECU (Electrical Control Unit) have been the invention is not restricted to, can design as required, realize at most being connected with 16 tunnel ECU (Electrical Control Unit), select not simultaneously at the chip of signal by selected cell, can also realize being connected with multichannel ECU (Electrical Control Unit) more.
Fig. 7 is the K line communication unit circuit diagram of embodiment of the invention program burn writing equipment, the essential K line of program burn writing part is the same with the control area net bus protocol, the K line also is a kind of bus communication mode that is in daily use, and it can only two communication between processes, can not form communication network; But it has advantages such as control is simple, with low cost, transmission speed is fast, data transmission is stable, is an a kind of good line system host-host protocol, and is therefore also very commonly used.33260 chips among the figure are that the K serial ports of a special use changes K core sheet, be the communication of K line the most frequently used also be most crucial chip, can realize the serial ports of main control chip and the conversion between the K line by it, use also very simple and clear: it needs two power supplys, be 12V and 5V, connect 1 pin and 7,8 pin of this chip respectively, ground is 3 pin; Serial ports is input as 5 pin and 6 pin, and the K line is 4 pin, in the time of use reply K line add 12V on draw.As shown in the figure, this circuit just can carry out the data transmission of K line.Be the two-way on the mainboard shown in the figure, also have 10 tunnel (because to 12 ECU (Electrical Control Unit) should be arranged) not shown in the diagram in addition.
Figure 8 shows that the peripheral interface units circuit diagram of embodiment of the invention program burn writing equipment.This partial circuit is fairly simple, is made up of with the same interface circuit shown in this figure one group one group.J1 is the interface that links to each other with mainboard with ECU (Electrical Control Unit) in this figure, and it comprises: 12V power supply, two ground, ST (self-defined commencing signal), ERR (the self-defined signal that reports an error), END (the self-defined signal of finishing), two-way control area net signal, K line (ISO among the figure).After wherein the 12V power supply is supplied with ECU (Electrical Control Unit), supplying with ECU (Electrical Control Unit) by ECU (Electrical Control Unit) power supply chip (CJ910) output 5V voltage uses, in two ground, one is power supply ground, other one connects the AD4 pin of the master chip of ECU (Electrical Control Unit), making it to power on promptly enters into the program designation pattern, thereby but be in the program burn writing state, begin, finish, reporting an error connects respectively
Fig. 9 is the switch control unit circuit diagram of embodiment of the invention program burn writing equipment.As an actual equipment that uses, the present invention is with each ON-OFF control circuit and the special making sheet of pilot lamp, as user's switch control/display panel.In this unit, comprise a double-point double-throw switch and a DPTT double-pole triple throw switch, their effect is respectively: whether the AD4 pin of power switch, control main control chip ground connection, serial ports input channel gauge tap and serial ports output channel gauge tap.In addition, can also select serial port of mainboard and PC communication still to be and the slave computer communication by direction control to toggle switch.Comprised the connector that links to each other with mainboard among the figure.In use, open switch S 2, slave computer AD4 ground connection then, pilot lamp D4 is bright simultaneously, and expression enters the program designation pattern; The direction of switch S 3 has then determined the communication of main control chip to select: with PC or slave computer communication.
The overall process of program burn writing is in the present embodiment: whether selecting needs and host computer according to actual conditions is that PC links to each other and downloads up-to-date program (situation that change is arranged such as electric-controlled unit program): if desired, then pass through the switch setting and the PC communication of ON-OFF control circuit, download up-to-date electric-controlled unit program in peripheral storage unit of the present invention by upper computer software, disconnect the communication with PC then, this moment, the serial ports of mainboard chip turned to the pattern that links to each other with ECU (Electrical Control Unit).After powering on, select and wherein one tunnel ECU (Electrical Control Unit) connection by the signalling channel selected cell by main control chip, the ECU (Electrical Control Unit) that this moment is selected is because the AD4 pin ground connection of main control chip, promptly entered the program burn writing pattern, ECU (Electrical Control Unit) is passed through the K line to its write data, before writing formal proceedings, write one section programming process program thereby earlier, this program is to use in the main control chip communication of programming process and mainboard, at the programming program process if unusual, then ECU (Electrical Control Unit) is returned error message in the main control chip by control area net line communication unit, main control chip is according to this information misjudgment form, when program run, select automatically " programming again ", operations such as " interruption programmings ", and light the corresponding error pilot lamp that is connected with main control unit.After the program burn writing success, wipe the programming process program thereby in the ECU (Electrical Control Unit), and return correct prompting, main control chip begins next road ECU (Electrical Control Unit) of gating and repeats said process.In the programming program process, main control chip is judged the problem that occurs in the programming process and is done corresponding operation, but the monolithic ECU (Electrical Control Unit) can't influence the program burn writing of next piece ECU (Electrical Control Unit).
As Figure 10 is the process flow diagram of embodiment of the invention program burn writing method, and it has summarized workflow of the present invention and implementation step, now specifically is described below:
After mainboard powered on, main control chip was started working.At first, its can judge the pattern that it enters according to the state of the ON-OFF control circuit that is attached thereto: program detects com-state, if serial ports connects is MAX232, then enters the pattern with upper machine communication; If join with K line communicating circuit, then enter the pattern of preparation routine programming.When with upper machine communication the time, main control chip and PC are set up serial communication, and by the communications protocol of main control chip program and upper computer software agreement, according to transmission data such as fixing frame format, baud rates, purpose mainly is that electric-controlled unit program is upgraded; Before data transmission, main control chip makes it carry out " write operation " pattern by the control to peripheral procedure stores chip, main control chip is carried out in the process of data transmission at host computer, and main control chip writes the peripheral routine storage chip with electric-controlled unit program.Behind the DTD, send control signals to connected pilot lamp by main control chip, this pilot lamp is lighted.8 ends of toggle switch S3 turn to ECU (Electrical Control Unit) main control chip and carry out communication then, and this moment, the serial ports closure of main control chip was to be connected with K line communication chip, promptly entered K line writing pattern.The program burn writing step of carrying out under this pattern is as follows:
1. selector channel step: main control unit is selected wherein one tunnel ECU (Electrical Control Unit) gating by the write operation to the signalling channel selected cell;
2. set up the communication step: because the switch setting of the AD4 pin of control main control chip when powering on makes ECU (Electrical Control Unit) enter the bootmode pattern.Main control chip sends handshake to ECU (Electrical Control Unit), and ECU (Electrical Control Unit) is returned the serial ports of scanning oneself and received (RXD), receives one zero byte, promptly presses communication mode work, receives a start bit, 8 data " 0 " position, a position of rest.According to time of reception and reception data length, ECU (Electrical Control Unit) can calculate corresponding baud rate.ECU (Electrical Control Unit) initialization this moment asynchronous serial port interface A SC0, and serial ports is sent out the TXD pin be changed to output, use this baud rate, send response signal to main control chip, main control chip is judged response signal: correctly, begin to carry out next step; Mistake, resend handshake, still mistake then continues to send handshake, three mistakes still, then the warning light that is connected with main control unit is lighted, point out this ECU (Electrical Control Unit) can't carry out program burn writing, simultaneously program is released this ECU (Electrical Control Unit) communication, enters into next ECU (Electrical Control Unit) of gating and begins carry out this step;
3. the level application under the program designation pattern writes: main control unit and ECU (Electrical Control Unit) are shaken hands after success sets up communication in step 2, and main control chip begins to load the one-level program to ECU (Electrical Control Unit), also cites approvingly the helical pitch preface.The master chip of ECU (Electrical Control Unit) also is ST10F269 in the present embodiment, this chip is under the program designation pattern, a characteristic is arranged: if serial ports (changeed by the K line) receives 32B (byte) data, after it receives full 32 bytes, program pointer can jump to flash memory cell (program storage unit (PSU)) automatically, and can reprint data this moment in its flash memory cell, this moment in the program designation process if interrupt, still the program designation pattern can be kept, other 32 byte datas can be loaded.Utilize these characteristics of ECU (Electrical Control Unit) main control chip, program burn writing equipment sends 32 byte datas to ECU (Electrical Control Unit), and this 32 byte data has illustrated the file size that will be loaded in the flash memories, the contents such as form of transmission data.Behind the 32 byte end of transmissions, just a level application loads and finishes.
4. two level applications load: after the main control chip 32 bytes loading of ECU (Electrical Control Unit) finished, because its program pointer points to flash memory cell, can load two level applications to ECU (Electrical Control Unit) this moment by main control chip.Side program has comprised the code that flash memory cell in the ECU (Electrical Control Unit) is carried out erase operation, and some necessary datas of the final program that to load have been stipulated: size of code, variable quantity, start address etc. during startup, and, side program has been made error handling processing during also to the electric-controlled unit program burn writing mistake, in the process of makeing mistakes, error code is returned to main control chip, main control chip makes a decision error code, and carry out corresponding operation according to the concrete condition of mistake, concrete operations have " entering programming again ", " resend data ", " skip this ECU (Electrical Control Unit) carried out programming ' etc.; Two level applications have also been done standard to the foundation of control area net communication.
The foundation of control area net communication: after the side program loading finishes, the control area net communication function of ECU (Electrical Control Unit) starts, after initialization is carried out in the control area net communication, the control area net communication program is divided into four parts to be carried out: standard information sends, standard information receives (whether inspection has information to send and give message pick-up 2 with data), message pick-up 2 (check whether new data is arranged, and the data of procedure stipulation are sent), control area net status checking.(can realize that by four steps main control chip and ECU (Electrical Control Unit) carry out data transmission, more detailed control area net communications protocol etc. please refer to pertinent literature)
4, three level applications load: the loading of the final program of ECU just.Main control chip elder generation hit program storage chip (29F400BB chip), make it enter " reading " mode of operation, main control chip can reading of data (concrete read operation see before the summary of literary composition to this chip), main control chip is transferred to ECU (Electrical Control Unit) with the data that read by the K line, before the transmission to the data processing of packing, gradation sends to ECU (Electrical Control Unit) with packet, after ECU (Electrical Control Unit) receives data, regulation according to two level applications, load the ECU (Electrical Control Unit) practical programs from the flash memory FLASH address of appointment, in loading process, by two level applications as watchdog routine, the electric-controlled unit program loading is monitored, mistake occurred and then corresponding error code is sent to ECU (Electrical Control Unit).
5, data send and finish: after data send and finish, ECU (Electrical Control Unit) sends end mark, main control chip is confirmed the program burn writing of back end to ECU (Electrical Control Unit), (this moment, ECU (Electrical Control Unit) was because the AD4 pin still is in bootmode by hardware ground connection to the Communication Control of ECU (Electrical Control Unit) in release, after its AD4 pin is earth-free, upward then can carry out electric-controlled unit program, the start address of program is exactly the start address of side program regulation in the program burn writing), then next ECU (Electrical Control Unit) is carried out program burn writing, the programming process with above narrate identical.
Above step summary is exactly: main control chip is selected one tunnel ECU (Electrical Control Unit) and is set up communication with it, begins to carry out program burn writing under the bootmode of ECU (Electrical Control Unit); In order to finish the programming step, need to load earlier the two stage application program, application program can guide ECU (Electrical Control Unit) to finish program code and write flash memory FLASH.In this process, the communication of control local is set up between main control chip and ECU (Electrical Control Unit), and error code is judged.
Though the present invention specifically illustrates and illustrates in conjunction with a preferred embodiment; but the personnel that are familiar with this technical field are appreciated that; wherein no matter still can make various changes in detail in form, this does not deviate from spirit of the present invention and scope of patent protection.

Claims (10)

1, a kind of electric-controlled unit program burn writing equipment is characterized in that, this equipment comprises serial communication interface unit, program storage unit (PSU) and main control unit, wherein:
The serial communication interface unit is connected between main control unit and the host computer, is used for the programming program that described host computer sends is sent to described main control unit;
Program storage unit (PSU) is connected with described main control unit, is used to store the programming program that described main control unit receives;
Described main control unit is connected with ON-OFF control circuit, is used for behind the signal of receiving key control circuit, reads the programming program in the described program storage unit (PSU) and sends to ECU (Electrical Control Unit);
2, electric-controlled unit program burn writing equipment as claimed in claim 1 is characterized in that, this equipment also comprises the K line communication unit that is connected between ECU (Electrical Control Unit) and the main control unit, is used for the programming program that main control unit sends is sent to described ECU (Electrical Control Unit).
3, electric-controlled unit program burn writing equipment as claimed in claim 2, it is characterized in that, this equipment also comprises the signalling channel selected cell that is connected between described main control unit and the K line communication unit, described signalling channel selected cell is connected with several ECU (Electrical Control Unit) by K line communication unit, controls described one of them ECU (Electrical Control Unit) of signalling channel selected cell gating by main control unit.
4, electric-controlled unit program burn writing equipment as claimed in claim 1, it is characterized in that, this equipment also comprises the control area net line communication unit that is connected between main control unit and the ECU (Electrical Control Unit), is used for the program burn writing status signal that ECU (Electrical Control Unit) sends is sent to main control unit.
5, electric-controlled unit program burn writing equipment as claimed in claim 4 is characterized in that, this equipment also comprises the display unit that is connected with described main control unit, is used to the program burn writing status signal that shows that ECU (Electrical Control Unit) sends.
6, a kind of electric-controlled unit program burn writing method is characterized in that, this method may further comprise the steps:
S1: the programming program that host computer sends is sent to main control unit by the serial communication interface unit;
S2: described main control unit is kept at the programming program that receives in the program storage unit (PSU);
S3: the program burn writing switching signal that described main control unit read switch control circuit sends, if low level, execution in step S4 is if high level finishes;
S4: read the programming program in the described program storage unit (PSU) and send to ECU (Electrical Control Unit) and carry out program burn writing.
7, electric-controlled unit program burn writing method as claimed in claim 6, wherein be connected with K line communication unit between main control unit and the ECU (Electrical Control Unit), in step S4, described main control unit sends to ECU (Electrical Control Unit) with the programming program that sends by described K line and carries out program burn writing.
8, electric-controlled unit program burn writing method as claimed in claim 7, wherein be connected with the signalling channel selected cell between main control unit and the K line communication unit, described signalling channel selected cell is connected with several ECU (Electrical Control Unit) by K line communication unit, it is characterized in that, in step S4: described main control unit is controlled described one of them ECU (Electrical Control Unit) of signalling channel selected cell gating, and the described programming program that reads is sent in the ECU (Electrical Control Unit) of gating.
9, electric-controlled unit program burn writing method as claimed in claim 8, wherein between main control unit and ECU (Electrical Control Unit), be connected with control area net line communication unit, it is characterized in that, in step S4, also comprise step: during described ECU (Electrical Control Unit) programming program the program burn writing status signal is sent to described main control unit by described control area net line communication unit.
10, electric-controlled unit program burn writing method as claimed in claim 9, wherein said main control unit is connected with display unit, it is characterized in that, and in step S4, described main control unit receives and it is outputed to display unit behind the program burn writing status signal and show.
CNA2008100568828A 2008-01-25 2008-01-25 Electric-controlled unit program burn writing equipment and method Pending CN101493771A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100568828A CN101493771A (en) 2008-01-25 2008-01-25 Electric-controlled unit program burn writing equipment and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100568828A CN101493771A (en) 2008-01-25 2008-01-25 Electric-controlled unit program burn writing equipment and method

Publications (1)

Publication Number Publication Date
CN101493771A true CN101493771A (en) 2009-07-29

Family

ID=40924385

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100568828A Pending CN101493771A (en) 2008-01-25 2008-01-25 Electric-controlled unit program burn writing equipment and method

Country Status (1)

Country Link
CN (1) CN101493771A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102820802A (en) * 2012-08-17 2012-12-12 深圳市英威腾电气股份有限公司 Inverter power supply system and signal transmission method thereof
CN103279371A (en) * 2013-05-22 2013-09-04 杭州电子科技大学 Distributed control system multi-slave-computer program online synchronization upgrading method
CN103345243A (en) * 2013-06-27 2013-10-09 深圳市元征科技股份有限公司 Method and device for brushing vehicle electronic control unit program
CN103544040A (en) * 2013-10-31 2014-01-29 无锡市矽成微电子有限公司 Rapid programming device
CN105335193A (en) * 2015-10-29 2016-02-17 杭州佳谷数控技术有限公司 Upgrading realization method of underwear machine control system
CN107203396A (en) * 2017-05-23 2017-09-26 中山市明阳电器有限公司 A kind of Industry Control plate and its update method by network online updating program
CN108984456A (en) * 2017-05-31 2018-12-11 无锡华润矽科微电子有限公司 The method and system for entering programming mode are realized based on two-way handshake
CN109460240A (en) * 2018-10-19 2019-03-12 郑州云海信息技术有限公司 A kind of firmware programming component and firmware programming method, system and storage medium
CN110543313A (en) * 2019-08-20 2019-12-06 珠海市杰理科技股份有限公司 chip programming device and chip programming test method
CN113934439A (en) * 2021-11-16 2022-01-14 思澈科技(重庆)有限公司 Multi-channel automatic identification burning system and method

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102820802A (en) * 2012-08-17 2012-12-12 深圳市英威腾电气股份有限公司 Inverter power supply system and signal transmission method thereof
CN102820802B (en) * 2012-08-17 2015-10-28 深圳市英威腾电气股份有限公司 Inverter system and signal transfer method thereof
CN103279371B (en) * 2013-05-22 2016-04-20 杭州电子科技大学 A kind of many methods from the upgrading of machine program on-line synchronous of dcs
CN103279371A (en) * 2013-05-22 2013-09-04 杭州电子科技大学 Distributed control system multi-slave-computer program online synchronization upgrading method
CN103345243A (en) * 2013-06-27 2013-10-09 深圳市元征科技股份有限公司 Method and device for brushing vehicle electronic control unit program
CN103544040A (en) * 2013-10-31 2014-01-29 无锡市矽成微电子有限公司 Rapid programming device
CN105335193A (en) * 2015-10-29 2016-02-17 杭州佳谷数控技术有限公司 Upgrading realization method of underwear machine control system
CN107203396A (en) * 2017-05-23 2017-09-26 中山市明阳电器有限公司 A kind of Industry Control plate and its update method by network online updating program
CN108984456A (en) * 2017-05-31 2018-12-11 无锡华润矽科微电子有限公司 The method and system for entering programming mode are realized based on two-way handshake
CN108984456B (en) * 2017-05-31 2021-04-23 华润微集成电路(无锡)有限公司 Method and system for entering programming mode based on two-way handshake
CN109460240A (en) * 2018-10-19 2019-03-12 郑州云海信息技术有限公司 A kind of firmware programming component and firmware programming method, system and storage medium
CN110543313A (en) * 2019-08-20 2019-12-06 珠海市杰理科技股份有限公司 chip programming device and chip programming test method
CN113934439A (en) * 2021-11-16 2022-01-14 思澈科技(重庆)有限公司 Multi-channel automatic identification burning system and method
CN113934439B (en) * 2021-11-16 2023-09-15 思澈科技(重庆)有限公司 Multichannel automatic identification burning system and method

Similar Documents

Publication Publication Date Title
CN101493771A (en) Electric-controlled unit program burn writing equipment and method
CN101378614B (en) LED lighting kenel control system and method
CN100383737C (en) SCM online loading and updating method and system
CN102999350B (en) A kind of FPGA program upgrading download online method in digital signal processing platform
CN101499046A (en) SPI equipment communication circuit
CN102012885A (en) System and method for realizing communication by adopting dynamic I2C bus
CN107977217A (en) The method of on-line loaded XILINX-FPGA multi versions more new procedures
CN201004013Y (en) Car diagnosis system
CN104598402A (en) Flash memory controller and control method of flash memory controller
CN101211266A (en) FPGA automatic downloading and on-line upgrading process
CN101727095A (en) Method for on-line burning of flash of electric controller of automobile
CN102063939B (en) Method and device for implementing electrically erasable programmable read-only memory
CN115033444B (en) 8051 core-based online debugging circuit control device
CN102520961A (en) Off-chip online programmable SOC (system on a chip) and control method for same
CN103488600A (en) Universal auxiliary machine synchronous serial interface circuit
CN113901754B (en) FPGA-based Ethernet MACIP board-level verification structure and method
CN104332135A (en) Parallel display circuit and display device thereof
CN102101457B (en) Control system of trailer lamp
CN101561790B (en) Method, system and device for communication between main control computer and slave computers
CN203894742U (en) Programmer of automotive electric control unit (ECU)
CN105718396A (en) I<2>C bus device with big data master device transmission function and communication method thereof
CN102375749B (en) Method for quickly downloading and updating firmware by using I2C (Inter-Integrated Circuit) bus
CN104678918A (en) CANOPEN main control equipment based on PC104 bus and control method of CANOPEN main control equipment
CN115237450A (en) Method for flashing ECU (electronic control Unit) by one-to-two method
CN116436720A (en) Method, device and system for online multiaxial parameter writing of EtherCAT

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20090729