CN110134422A - System and method based on OBD and CAN bus downloading flash drive upgrade controller software - Google Patents

System and method based on OBD and CAN bus downloading flash drive upgrade controller software Download PDF

Info

Publication number
CN110134422A
CN110134422A CN201910319172.8A CN201910319172A CN110134422A CN 110134422 A CN110134422 A CN 110134422A CN 201910319172 A CN201910319172 A CN 201910319172A CN 110134422 A CN110134422 A CN 110134422A
Authority
CN
China
Prior art keywords
entire car
car controller
chinese ink
host computer
brush dipped
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
CN201910319172.8A
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.)
Dongfeng Motor Corp
Original Assignee
Dongfeng Motor Corp
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 Dongfeng Motor Corp filed Critical Dongfeng Motor Corp
Priority to CN201910319172.8A priority Critical patent/CN110134422A/en
Publication of CN110134422A publication Critical patent/CN110134422A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Abstract

The system based on OBD and CAN bus downloading flash drive upgrade controller software that the invention discloses a kind of, host computer writes with a brush dipped in Chinese ink tool for proceeding as follows in the control software upgrade process of entire car controller: host computer, which writes with a brush dipped in Chinese ink tool and sends programming conversation modes by CAN communication equipment and instruct, enters entire car controller in the mode for updating program code;Host computer writes with a brush dipped in Chinese ink tool and sends secure access instruction to entire car controller by CAN communication equipment, and by preset access safety algorithm, progress host computer writes with a brush dipped in Chinese ink the inspection of shaking hands between tool and entire car controller;Host computer writes with a brush dipped in Chinese ink tool and local flash drive and control file is transferred in entire car controller by CAN communication equipment.The present invention compensates for the small deficiency in the space FlashROM of MCU, while improving the execution speed and efficiency of code, enhances the versatility that software writes with a brush dipped in Chinese ink process.

Description

Based on OBD and CAN bus downloading flash drive upgrade controller software system and Method
Technical field
The present invention relates to vehicle communication bus technical fields, are based on OBD (On-Board in particular to one kind Diagnostics, onboard diagnostic system) with CAN (Controller Area Network, controller local area network) bus under Carry the system and method for flash drive upgrade controller software.
Background technique
It is researched and developed and stage after sale in automobile, often will appear the change due to whole vehicle functions demand and need to having filled The controller being fitted on vehicle carries out the update of software, and the type of controller is also varied, especially some low and middle-end MCU FlashRom (the read-only programmable device of the flash) limited storage space of (Microcontroller Unit, micro-control unit), If updating Flash program using traditional flow scheme of writing with a brush dipped in Chinese ink and needing to be solidificated in independent a few block spaces, keep in this way The memory space of application code is with regard to extremely limited, while the flash drive of some MCU is not supported to run in FlashRom, The flash drive Code copying being solidificated in FlashRom must correctly could be held into RAM (random access memory) space Row, is bound to cause the waste of resource in this way, that is, occupies the space FlashRom and occupy ram space again.Increase software design Complexity, versatility is strong.
Summary of the invention
The present invention provides a kind of system and method based on OBD and CAN bus downloading flash drive upgrade controller software, The present invention compensates for the small deficiency in the space FlashROM of MCU, while substantially increasing the execution speed and efficiency of code, enhances Software writes with a brush dipped in Chinese ink the versatility of process.
In order to achieve this, downloading flash drive upgrade controller software based on OBD and CAN bus designed by the present invention System, it is characterised in that: it includes that host computer writes with a brush dipped in Chinese ink tool, CAN communication equipment and entire car controller;
The host computer writes with a brush dipped in Chinese ink tool for proceeding as follows in the control software upgrade process of entire car controller:
Host computer is write with a brush dipped in Chinese ink tool and is instructed by CAN communication equipment transmission programming conversation modes to entire car controller, and vehicle is made Controller enters in the mode for updating program code;
Host computer writes with a brush dipped in Chinese ink tool and sends secure access instruction to entire car controller, by preset by CAN communication equipment Access safety algorithm carries out host computer and writes with a brush dipped in Chinese ink the inspection of shaking hands between tool and entire car controller;
Host computer writes with a brush dipped in Chinese ink tool and local flash drive and control file is transferred to full-vehicle control by CAN communication equipment In the RAM of device;
Host computer writes with a brush dipped in Chinese ink tool and carries out algorithm verification to flash drive and control file data, and host computer is write with a brush dipped in Chinese ink tool and will be calculated Method check results are sent to entire car controller, and host computer writes with a brush dipped in Chinese ink tool to the programming under entire car controller transmission routine control command Reliability checking command, entire car controller generate corresponding verification according to the programming reliability checking command under routine control command Value completes the programming reliability verification under routine control command when the algorithm check results are consistent with the check value.
A method of flash drive upgrade controller software being downloaded based on OBD and CAN bus, which is characterized in that it is wrapped Include following steps:
Step 1: when entire car controller carries out default conversation modes, and to host computer writing with a brush dipped in Chinese ink tool and send confirmation and enter default After the positive feedback of conversation modes, host computer, which writes with a brush dipped in Chinese ink tool and sends programming conversation modes by CAN communication equipment, to be instructed and gives vehicle control Device processed enters entire car controller in the mode for updating program code, when entire car controller confirmation enters more new procedures generation Tool is write with a brush dipped in Chinese ink to host computer after the mode of code and sends positive feedback, and enters step 2;
Step 2: host computer writes with a brush dipped in Chinese ink tool and sends secure access instruction to entire car controller by CAN communication equipment, passes through Preset access safety algorithm carries out host computer and writes with a brush dipped in Chinese ink the inspection of shaking hands between tool and entire car controller, works as entire car controller Determine shake hands upcheck after write with a brush dipped in Chinese ink tool to host computer and send positive feedback, and enter step 3;
Step 3: host computer write with a brush dipped in Chinese ink tool local flash drive and control file are transferred to by CAN communication equipment it is whole In the RAM of vehicle controller, when entire car controller determines the local correct backward host computer brush of flash drive and control file transmission It writes tool and sends positive feedback, and enter step 4;
Step 4: host computer writes with a brush dipped in Chinese ink tool and carries out algorithm verification to flash drive and control file data, and host computer writes with a brush dipped in Chinese ink work Algorithm check results are sent entire car controller by tool, and host computer is write with a brush dipped in Chinese ink tool and sent under routine control command to entire car controller Programming reliability checking command, entire car controller according under routine control command programming reliability checking command generate correspond to Check value, when the algorithm check results are consistent with the check value, complete routine control command under programming reliability Verification, entire car controller determine the programming reliability under routine control command verification pass through after to host computer writing with a brush dipped in Chinese ink tool send just Feedback;
Step 5: host computer writes with a brush dipped in Chinese ink the erasing flash memory command that tool is sent under routine control command and is assigned to entire car controller, So that entire car controller is executed the order of erasing internal flash code, wipes the code of flash memory internal, entire car controller determines flash memory Tool, which is write with a brush dipped in Chinese ink, to host computer after the completion of internal code deletion sends positive feedback;
Step 6: host computer, which writes with a brush dipped in Chinese ink tool, will need the flash memory application code updated to be transferred to by CAN communication equipment In entire car controller, entire car controller completes the application of flash memory to flash memory application code with flash drive and control file Program code upgrading.
The present invention transmits Flash driving and main protocol communication data to RAM, in this way according to difference by host computer Controller chip write with a brush dipped in Chinese ink demand only need to change host computer Flash driving and main protocol communication data, it is upper Machine software remains unchanged, and can be applicable in writing with a brush dipped in Chinese ink for a plurality of chips, and popularization, save the cost can be widely applied.
The present invention is cured to Flash by the way that Flash driving and main control file are transferred to ram space In memory space, to save the Flash memory space of MCU;Due to the hardware feature of memory, code is run in RAM Speed and efficiency ratio Flash in it is fast, therefore substantially increase the execution speed and efficiency of code.
Detailed description of the invention
Fig. 1 is the principle of the present invention block diagram;
Fig. 2 is that CAN bus of the invention writes with a brush dipped in Chinese ink main flow block diagram;
Fig. 3 is data transmission flow diagram of the invention;
Fig. 4 is programming conversation modes flow diagram of the invention.
Wherein, 1-host computer writes with a brush dipped in Chinese ink tool, 2-CAN communication equipment, 3-entire car controllers.
Specific embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail:
System designed by the present invention based on OBD and CAN bus downloading flash drive upgrade controller software, such as Fig. 1 Shown, it includes that host computer writes with a brush dipped in Chinese ink tool 1, CAN communication equipment 2 and entire car controller 3;
The host computer writes with a brush dipped in Chinese ink tool 1 for proceeding as follows in the control software upgrade process of entire car controller:
Host computer is write with a brush dipped in Chinese ink tool 1 and is instructed by the transmission programming conversation modes of CAN communication equipment 2 to entire car controller 3, makes whole Vehicle controller 3 enter update program code mode in (main function of the service is to make entire car controller 3 from normal work Pattern switching writes with a brush dipped in Chinese ink mode to Bootloader);
Host computer writes with a brush dipped in Chinese ink tool 1 and sends secure access instruction to entire car controller 3, by default by CAN communication equipment 2 Access safety algorithm, carry out host computer write with a brush dipped in Chinese ink between tool 1 and entire car controller 3 inspections of shaking hands (confirm host computer write with a brush dipped in Chinese ink Tool 1 and entire car controller 3 be all it is legal, just can be carried out the command operation of next step, in this way operation be mainly to ensure that it is upper The legitimacy of machine and controller, only both sides be all it is legal just allow to execute write with a brush dipped in Chinese ink software process, prevent any user to control The upgrading of device software processed);
Host computer writes with a brush dipped in Chinese ink tool 1 and local flash drive and control file is transferred to vehicle control by CAN communication equipment 2 In the RAM (Random Access Memory, random access memory) of device 3 processed, to carry out the FLASH program generation of controller Code upgrades, and in the present invention, flash drive and control file are the preconditions that controller carries out software upgrading, can save The space Flash, applicability are stronger;
Host computer writes with a brush dipped in Chinese ink tool 1 and carries out algorithm verification to flash drive and control file data, and host computer writes with a brush dipped in Chinese ink tool 1 will Algorithm check results are sent to entire car controller 3, and host computer is write with a brush dipped in Chinese ink tool 1 and sent under routine control command to entire car controller 3 Programming reliability checking command, entire car controller 3 according under routine control command programming reliability checking command generate pair The check value answered, when the algorithm check results are consistent with the check value, the programming completed under routine control command is reliable Property verification, the design can ensure that host computer and controller end flash drive and control file consistency.
The main function of CAN communication equipment 2 is by data from a type of Bus repeater to another type of bus Upper carry out communications, as CANoe adapter device tool it be will be in usb bus data forwarding to CAN bus.Host computer brush It writes tool 1 to connect by usb bus with CAN communication equipment 2, CAN communication equipment 2 passes through CAN bus and entire car controller 3 The connection of OBD interface.
In above-mentioned technical proposal, the entire car controller 3 is used for after receiving programming conversation modes instruction fixed Address ram (distribute according to different ram spaces, and address may be different, this address must be idle by ram space address And other application is not used) (specific Filling power is in order to ensure being switched to from application model to the specific Filling power of write-in The mark that can be write with a brush dipped in Chinese ink after mode is write with a brush dipped in Chinese ink, specific Filling power can be customized, such as 0X5A5AA5A5), it is then, whole The entrance of vehicle controller 3 diagnostic mode (it is the diagnosis DTC (error code) in order to close current controller into diagnostic mode, in order to avoid Write with a brush dipped in Chinese ink process and generate error code), diagnostic mode writes with a brush dipped in Chinese ink tool 1 to host computer after passing through and sends positive feedback, meanwhile, entire car controller 3 carry out forced resetting processing, and the effect of forced resetting is after writing with a brush dipped in Chinese ink, and only entire car controller 3 resets, just can be normal Run updated program, host computer write with a brush dipped in Chinese ink tool 1 receive wait 3 forced resetting of entire car controller after positive feedback after start to connect Receive subsequent new service command, it is ensured that all transmission data are all complete correct;
Entire car controller 3 is used for after preset access safety algorithm passes through, and sends positive feedback to entire car controller 3.
In above-mentioned technical proposal, host computer writes with a brush dipped in Chinese ink tool 1 and carries out CRC algorithm school to flash drive and control file data It tests, host computer writes with a brush dipped in Chinese ink tool 1 and sends entire car controller 3 for algorithm check results, and host computer writes with a brush dipped in Chinese ink tool 1 to entire car controller 3 send the programming reliability checking command under routine control command, and entire car controller 3 can according to the programming under routine control command Corresponding check value is generated by property checking command, when the CRC (Cyclic Redundancy Check, cyclic redundancy check) When algorithm check results are consistent with the check value, the programming reliability verification under routine control command is completed.
In above-mentioned technical proposal, the carrier that the host computer writes with a brush dipped in Chinese ink tool 1 is diagnostic equipment or PC machine.
In above-mentioned technical proposal, entire car controller 3 generally refers to the controller that software upgrading is supported on vehicle, final to need The file of writing with a brush dipped in Chinese ink updated needs programming into this controller, and entire car controller 3 is burnt in advance in the fixed memory of internal flash With the Bootloader Bootloader for mode of writing with a brush dipped in Chinese ink.
A method of flash drive upgrade controller software is downloaded based on OBD and CAN bus, as shown in figs. 2 to 4, it Include the following steps:
Step 1: when entire car controller 3 carries out default conversation modes, and to host computer write with a brush dipped in Chinese ink tool 1 send confirmation enter it is silent After recognizing the positive feedback of conversation modes, host computer is write with a brush dipped in Chinese ink tool 1 and is instructed by the transmission programming conversation modes of CAN communication equipment 2 to whole Vehicle controller 3 enters entire car controller 3 in the mode for updating program code, when the confirmation of entire car controller 3 enters update Tool 1 is write with a brush dipped in Chinese ink to host computer after the mode of program code and sends positive feedback, and enters step 2;
Step 2: host computer writes with a brush dipped in Chinese ink tool 1 and sends secure access instruction to entire car controller 3 by CAN communication equipment 2, leads to Preset access safety algorithm is crossed, host computer is carried out and writes with a brush dipped in Chinese ink the inspection of shaking hands between tool 1 and entire car controller 3, when vehicle control Device 3 processed determine shake hands upcheck after write with a brush dipped in Chinese ink tool 1 to host computer and send positive feedback, and enter step 3;
Step 3: host computer writes with a brush dipped in Chinese ink tool 1 and is transferred to local flash drive and control file by CAN communication equipment 2 In the RAM of entire car controller 3, when entire car controller 3 determines that local flash drive and control file transmission are correct backward upper Machine writes with a brush dipped in Chinese ink tool 1 and sends positive feedback, and enters step 4;
Step 4: host computer writes with a brush dipped in Chinese ink tool 1 and carries out algorithm verification to flash drive and control file data, and host computer is write with a brush dipped in Chinese ink Algorithm check results are sent entire car controller 3 by tool 1, and host computer writes with a brush dipped in Chinese ink tool 1 and sends routine control to entire car controller 3 Programming reliability checking command under order, entire car controller 3 is according to the programming reliability checking command under routine control command Corresponding check value is generated, when the algorithm check results are consistent with the check value, completes the volume under routine control command The verification of journey reliability, entire car controller 3, which determines, to be write with a brush dipped in Chinese ink after the programming reliability verification under routine control command passes through to host computer Tool 1 sends positive feedback;
Step 5: host computer writes with a brush dipped in Chinese ink the erasing flash memory command that tool 1 is sent under routine control command and is assigned to entire car controller 3, so that entire car controller 3 is executed the order of erasing internal flash code, wipe the code of flash memory internal, entire car controller 3 determines The code deletion of flash memory internal writes with a brush dipped in Chinese ink the transmission of tool 1 positive feedback to host computer after the completion, and (characteristic of flash memory is exactly to carry out writing behaviour It must first be wiped before work, otherwise can not carry out write operation (updating software code));
Step 6: host computer, which writes with a brush dipped in Chinese ink tool 1, will need the flash memory application code updated to transmit by CAN communication equipment 2 Into entire car controller 3, entire car controller 3 with flash drive and controls file completion flash memory to flash memory application code Application code upgrading.
Step 7: host computer is write with a brush dipped in Chinese ink tool 1 and is carried out under routine control to the flash drive upgrade file of entire car controller 3 The verification of verification programming reliability and consistency, and entire car controller 3 is resetted after verification passes through.So as to controller generation Code is run according to the program of update
It before the step 1 of above-mentioned technical proposal, needs to proceed as follows, host computer is write with a brush dipped in Chinese ink tool 1 and sent out to entire car controller 3 It is fed into mode of extension instruction, entire car controller 3 is made to enter mode of extension, the confirmation of entire car controller 3 enters mode of extension Tool 1, which is write with a brush dipped in Chinese ink, to host computer afterwards sends positive feedback;
Then, host computer writes with a brush dipped in Chinese ink tool 1 and sends the instruction for forbidding diagnostic function to entire car controller 3, makes entire car controller 3 Forbid the diagnostic function of error code, entire car controller 3 confirms that writing with a brush dipped in Chinese ink tool 1 to host computer after the diagnostic function for forbidding error code sends out Send positive feedback;
Then, host computer writes with a brush dipped in Chinese ink tool 1 and sends Communication Control instruction to entire car controller 3, and entire car controller 3 is made to forbid sending out It send using message, the confirmation of entire car controller 3, which is forbidden writing with a brush dipped in Chinese ink tool 1 to host computer after sending application message, sends positive feedback.
The step 3 of above-mentioned technical proposal specifically comprises the following steps:
Step 3.1: request downloading (RequestDownload:0x34), host computer write with a brush dipped in Chinese ink tool 1 and inform entire car controller 3 Address, host computer brush are write with a brush dipped in Chinese ink in first piece of binary data byte size of the flash drive data block that will be write with a brush dipped in Chinese ink, and starting It writes tool 1 and sends request download command to entire car controller 3, entire car controller 3 writes with a brush dipped in Chinese ink tool 1 and entire car controller in host computer Shaking hands between 3 writes with a brush dipped in Chinese ink tool 1 to host computer in the case where upchecking and sends positive feedback;
Step 3.2: transmission data block (TransferData Block#n:0x36), host computer write with a brush dipped in Chinese ink tool 1 according to flash memory First piece of binary data byte size of driving data block, and starting write with a brush dipped in Chinese ink address for each flash drive data block (number Refer to that space address is the continuous program code data to be updated in entire car controller 3, a general program code according to block File includes multiple data blocks) it is transferred to entire car controller 3,3 real-time judge of entire car controller requires the flash drive number of transmission Whether all received according to block, positive feedback notice host computer is sent if not receiving all and writes with a brush dipped in Chinese ink the continuation of tool 1 Current flash driving data block is transmitted, enters step 3.3 if all receiving;
Step 3.3: request transmission is exited (RequestTransferExit:0x37), and host computer is write with a brush dipped in Chinese ink the transmission of tool 1 and asked Transmission is asked to exit command to entire car controller 3, entire car controller 3 judges whether that entire flash drive binary data file all passes It is finished complete, entire car controller 3, which sends positive and negative host computer of feeding and writes with a brush dipped in Chinese ink tool 1, if end of transmission directly terminates data transmission Process;If without end of transmission entire car controller 3 send positive feedback notice host computer write with a brush dipped in Chinese ink tool 1 continue to transmit it is remaining Flash drive binary data file (main function of this service is the transmission for exit current data block)
In above-mentioned technical proposal, the flash drive binary data file is the S format text for meeting motorola standard Part or the HEX formatted file for meeting Intel standard.
The content that this specification is not described in detail belongs to the prior art well known to professional and technical personnel in the field.

Claims (10)

1. a kind of system based on OBD and CAN bus downloading flash drive upgrade controller software, it is characterised in that: it includes Host computer writes with a brush dipped in Chinese ink tool (1), CAN communication equipment (2) and entire car controller (3);
The host computer writes with a brush dipped in Chinese ink tool (1) for proceeding as follows in the control software upgrade process of entire car controller:
Host computer, which writes with a brush dipped in Chinese ink tool (1) and sends programming conversation modes by CAN communication equipment (2), to be instructed and gives entire car controller (3), is made Entire car controller (3) enters in the mode for updating program code;
Host computer writes with a brush dipped in Chinese ink tool (1) and gives entire car controller (3) by CAN communication equipment (2) transmission secure access instruction, by pre- If access safety algorithm, carry out host computer write with a brush dipped in Chinese ink the inspection of shaking hands between tool (1) and entire car controller (3);
Host computer writes with a brush dipped in Chinese ink tool (1) and local flash drive and control file is transferred to vehicle control by CAN communication equipment (2) In device (3) processed;
Host computer writes with a brush dipped in Chinese ink tool (1) and carries out algorithm verification to flash drive and control file data, and host computer writes with a brush dipped in Chinese ink tool (1) will Algorithm check results are sent to entire car controller (3), and host computer writes with a brush dipped in Chinese ink tool (1) and sends routine control to entire car controller (3) Programming reliability checking command under order, entire car controller (3) refer to according to the programming reliability verification under routine control command It enables and generates corresponding check value, when the algorithm check results are consistent with the check value, complete under routine control command Program reliability verification.
2. the system according to claim 1 based on OBD and CAN bus downloading flash drive upgrade controller software, Be characterized in that: the entire car controller (3) is used for special in fixed address ram write-in after receiving programming conversation modes instruction Fixed Filling power, then, entire car controller (3) enter diagnostic mode, and diagnostic mode is write with a brush dipped in Chinese ink tool (1) to host computer after passing through and sent out Positive feedback is sent, meanwhile, entire car controller (3) carries out forced resetting processing;
Entire car controller (3) is used for after preset access safety algorithm passes through, and sends positive feedback to entire car controller (3).
3. the system according to claim 1 based on OBD and CAN bus downloading flash drive upgrade controller software, Be characterized in that: host computer writes with a brush dipped in Chinese ink tool (1) and carries out CRC algorithm verification to flash drive and control file data, and host computer is write with a brush dipped in Chinese ink Tool (1) sends algorithm check results to entire car controller (3), and host computer is write with a brush dipped in Chinese ink tool (1) and sent to entire car controller (3) Programming reliability checking command under routine control command, entire car controller (3) are reliable according to the programming under routine control command Property checking command generate corresponding check value, when the CRC algorithm check results are consistent with the check value, completion routine control Programming reliability verification under system order.
4. the system according to claim 1 based on OBD and CAN bus downloading flash drive upgrade controller software, Be characterized in that: the carrier that the host computer writes with a brush dipped in Chinese ink tool (1) is diagnostic equipment or PC machine.
5. the system according to claim 1 based on OBD and CAN bus downloading flash drive upgrade controller software, Be characterized in that: entire car controller (3) preparatory programming in the fixed memory of internal flash has the Bootloader for the mode of writing with a brush dipped in Chinese ink.
6. a kind of method based on OBD and CAN bus downloading flash drive upgrade controller software, which is characterized in that it includes Following steps:
Step 1: when entire car controller (3) carries out default conversation modes, and to host computer write with a brush dipped in Chinese ink tool (1) send confirmation enter it is silent After recognizing the positive feedback of conversation modes, host computer writes with a brush dipped in Chinese ink tool (1) and sends programming conversation modes instruction by CAN communication equipment (2) Entire car controller (3) are given, enter entire car controller (3) in the mode for updating program code, when entire car controller (3) confirm It enters after the mode for updating program code and writes with a brush dipped in Chinese ink tool (1) transmission positive feedback to host computer, and enter step 2;
Step 2: host computer writes with a brush dipped in Chinese ink tool (1) and gives entire car controller (3) by CAN communication equipment (2) transmission secure access instruction, By preset access safety algorithm, carries out host computer and write with a brush dipped in Chinese ink the inspection of shaking hands between tool (1) and entire car controller (3), when Entire car controller (3) determine shake hands upcheck after write with a brush dipped in Chinese ink tool (1) to host computer and send positive feedback, and enter step 3;
Step 3: host computer writes with a brush dipped in Chinese ink tool (1) and is transferred to local flash drive and control file by CAN communication equipment (2) In entire car controller (3), when entire car controller (3) determine that local flash drive and control file transmit correct backward host computer It writes with a brush dipped in Chinese ink tool (1) and sends positive feedback, and enter step 4;
Step 4: host computer writes with a brush dipped in Chinese ink tool (1) and carries out algorithm verification to flash drive and control file data, and host computer writes with a brush dipped in Chinese ink work Tool (1) sends algorithm check results to entire car controller (3), and host computer writes with a brush dipped in Chinese ink tool (1) and sends example to entire car controller (3) Programming reliability checking command under process control order, entire car controller (3) is according to the programming reliability under routine control command Checking command generates corresponding check value, when the algorithm check results are consistent with the check value, completes routine control life Programming reliability verification under enabling, it is backward that entire car controller (3) determines that the verification of the programming reliability under routine control command passes through Host computer writes with a brush dipped in Chinese ink tool (1) and sends positive feedback;
Step 5: host computer writes with a brush dipped in Chinese ink the erasing flash memory command that tool (1) is sent under routine control command and is assigned to entire car controller (3), so that entire car controller (3) is executed the order of erasing internal flash code, wipe the code of flash memory internal, entire car controller (3) determine that the code deletion of flash memory internal writes with a brush dipped in Chinese ink tool (1) to host computer after the completion and sends positive feedback;
Step 6: host computer writes with a brush dipped in Chinese ink tool (1) and transmits the flash memory application code for needing to update by CAN communication equipment (2) To in entire car controller (3), entire car controller (3) is completed to dodge to flash memory application code with flash drive and control file The application code upgrading deposited.
7. the method according to claim 6 based on OBD and CAN bus downloading flash drive upgrade controller software, Be characterized in that: further including step 7 after the step 6: host computer writes with a brush dipped in Chinese ink tool (1) to the flash drive liter of entire car controller (3) Grade file carries out the verification of verification programming reliability and consistency under routine control, and makes entire car controller after verification passes through (3) it is resetted.
8. the method according to claim 6 based on OBD and CAN bus downloading flash drive upgrade controller software, Be characterized in that: before the step 1, needing to proceed as follows, host computer write with a brush dipped in Chinese ink tool (1) to entire car controller (3) send into Enter to mode of extension and instruct, entire car controller (3) is made to enter mode of extension, entire car controller (3) confirmation enters mode of extension Backward host computer writes with a brush dipped in Chinese ink tool (1) and sends positive feedback;
Then, host computer writes with a brush dipped in Chinese ink tool (1) and sends the instruction for forbidding diagnostic function to entire car controller (3), makes entire car controller (3) forbid the diagnostic function of error code, entire car controller (3), which confirms, writes with a brush dipped in Chinese ink work to host computer after the diagnostic function for forbidding error code Have (1) and sends positive feedback;
Then, host computer writes with a brush dipped in Chinese ink tool (1) and sends Communication Control instruction to entire car controller (3), forbids entire car controller (3) Sending application message, entire car controller (3) confirmation forbid after sending application message to host computer write with a brush dipped in Chinese ink tool (1) send it is positive and negative Feedback.
9. the method according to claim 6 based on OBD and CAN bus downloading flash drive upgrade controller software, Be characterized in that: step 3 specifically comprises the following steps:
Step 3.1: request downloading, host computer write with a brush dipped in Chinese ink tool (1) and inform the flash drive data that entire car controller (3) will be write with a brush dipped in Chinese ink Address is write with a brush dipped in Chinese ink in first piece of binary data byte size of block, and starting, and host computer writes with a brush dipped in Chinese ink tool (1) and sends request downloading life It enables and giving entire car controller (3), entire car controller (3) writes with a brush dipped in Chinese ink the inspection of shaking hands between tool (1) and entire car controller (3) in host computer It tests and writes with a brush dipped in Chinese ink tool (1) transmission positive feedback to host computer in the case where;
Step 3.2: transmission data block, host computer write with a brush dipped in Chinese ink tool (1) according to first piece of binary data of flash drive data block Byte-sized, and starting write with a brush dipped in Chinese ink address and give each flash drive transmission of data blocks to entire car controller (3), entire car controller (3) real-time judge requires whether the flash drive data block of transmission all receives, and sends out if not receiving all Send positive feedback notice host computer write with a brush dipped in Chinese ink tool (1) continue transmit current flash driving data block, if all receive if into Enter step 3.3;
Step 3.3: request transmission is exited, and host computer writes with a brush dipped in Chinese ink tool (1) transmission request transmission and exits command to entire car controller (3), entire car controller (3) judges whether entire flash drive binary data file all end of transmissions, if end of transmission Entire car controller (3), which sends positive and negative host computer of feeding, which writes with a brush dipped in Chinese ink tool (1), directly terminates data transmission process;If do not transmitted Finish, entire car controller (3) send positive feedback notice host computer write with a brush dipped in Chinese ink tool (1) continue to transmit remaining flash drive two into Data file processed.
10. the method according to claim 9 based on OBD and CAN bus downloading flash drive upgrade controller software, Be characterized in that: the flash drive binary data file is to meet the S formatted file of motorola standard or meet Intel to mark Quasi- HEX formatted file.
CN201910319172.8A 2019-04-19 2019-04-19 System and method based on OBD and CAN bus downloading flash drive upgrade controller software Pending CN110134422A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910319172.8A CN110134422A (en) 2019-04-19 2019-04-19 System and method based on OBD and CAN bus downloading flash drive upgrade controller software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910319172.8A CN110134422A (en) 2019-04-19 2019-04-19 System and method based on OBD and CAN bus downloading flash drive upgrade controller software

Publications (1)

Publication Number Publication Date
CN110134422A true CN110134422A (en) 2019-08-16

Family

ID=67570636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910319172.8A Pending CN110134422A (en) 2019-04-19 2019-04-19 System and method based on OBD and CAN bus downloading flash drive upgrade controller software

Country Status (1)

Country Link
CN (1) CN110134422A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825412A (en) * 2019-11-01 2020-02-21 上海电气集团股份有限公司 Controller program flashing system and method based on LabVIEW
CN111240695A (en) * 2020-01-07 2020-06-05 中车株洲电力机车有限公司 Online programming method for suspension controller of medium-low speed maglev train
CN111475187A (en) * 2020-03-25 2020-07-31 一汽奔腾轿车有限公司 Software flashing equipment capable of realizing single-electric-control flashing and OBD (on-board diagnostics) flashing
CN111475174A (en) * 2020-03-31 2020-07-31 东风汽车集团有限公司 Device and method for online writing and configuration of vehicle-mounted gateway
CN111813076A (en) * 2020-06-23 2020-10-23 深圳市元征科技股份有限公司 Vehicle ECU (electronic control Unit) flashing method and device, vehicle ECU and storage medium
CN112015453A (en) * 2020-09-14 2020-12-01 德明通讯(上海)有限责任公司 Firmware upgrading method for OBD (on-Board diagnostics) embedded equipment
CN112579105A (en) * 2020-12-10 2021-03-30 东风汽车集团有限公司 Flash method of whole vehicle initialization controller and related equipment
CN113342384A (en) * 2021-07-07 2021-09-03 江铃汽车股份有限公司 Security access strategy for vehicle controller module
CN114443111A (en) * 2022-04-11 2022-05-06 长安新能源南京研究院有限公司 Method and system for local differential flashing of controller

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369153A (en) * 2008-08-13 2009-02-18 奇瑞汽车股份有限公司 Control method for CAN line writing of vehicle electronic controller software
CN101850799A (en) * 2010-05-31 2010-10-06 重庆长安汽车股份有限公司 Controller FLASH programming method based on hybrid electric vehicle CAN bus communication

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369153A (en) * 2008-08-13 2009-02-18 奇瑞汽车股份有限公司 Control method for CAN line writing of vehicle electronic controller software
CN101850799A (en) * 2010-05-31 2010-10-06 重庆长安汽车股份有限公司 Controller FLASH programming method based on hybrid electric vehicle CAN bus communication

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825412B (en) * 2019-11-01 2023-06-02 上海电气集团股份有限公司 LabVIEW-based controller program refreshing system and method
CN110825412A (en) * 2019-11-01 2020-02-21 上海电气集团股份有限公司 Controller program flashing system and method based on LabVIEW
CN111240695A (en) * 2020-01-07 2020-06-05 中车株洲电力机车有限公司 Online programming method for suspension controller of medium-low speed maglev train
CN111240695B (en) * 2020-01-07 2023-08-08 中车株洲电力机车有限公司 Online programming method for levitation controller of medium-low speed maglev train
CN111475187A (en) * 2020-03-25 2020-07-31 一汽奔腾轿车有限公司 Software flashing equipment capable of realizing single-electric-control flashing and OBD (on-board diagnostics) flashing
CN111475187B (en) * 2020-03-25 2023-09-08 一汽奔腾轿车有限公司 Software refreshing equipment capable of realizing single-electric control refreshing and OBD refreshing
CN111475174A (en) * 2020-03-31 2020-07-31 东风汽车集团有限公司 Device and method for online writing and configuration of vehicle-mounted gateway
CN111813076A (en) * 2020-06-23 2020-10-23 深圳市元征科技股份有限公司 Vehicle ECU (electronic control Unit) flashing method and device, vehicle ECU and storage medium
CN111813076B (en) * 2020-06-23 2021-09-07 深圳市元征科技股份有限公司 Vehicle ECU (electronic control Unit) flashing method and device, vehicle ECU and storage medium
CN112015453A (en) * 2020-09-14 2020-12-01 德明通讯(上海)有限责任公司 Firmware upgrading method for OBD (on-Board diagnostics) embedded equipment
CN112579105A (en) * 2020-12-10 2021-03-30 东风汽车集团有限公司 Flash method of whole vehicle initialization controller and related equipment
CN112579105B (en) * 2020-12-10 2023-03-03 东风汽车集团有限公司 Flash method of whole vehicle initialization controller and related equipment
CN113342384A (en) * 2021-07-07 2021-09-03 江铃汽车股份有限公司 Security access strategy for vehicle controller module
CN113342384B (en) * 2021-07-07 2024-03-15 江铃汽车股份有限公司 Safety access strategy of vehicle controller module
CN114443111A (en) * 2022-04-11 2022-05-06 长安新能源南京研究院有限公司 Method and system for local differential flashing of controller

Similar Documents

Publication Publication Date Title
CN110134422A (en) System and method based on OBD and CAN bus downloading flash drive upgrade controller software
CN110474961B (en) Method for realizing multi-path remote OTA (over the air) upgrading of pure passenger vehicle based on CAN (controller area network) bus
CN110588540A (en) Writing method and device of vehicle configuration information
CN103559066B (en) Embedded software upgrade method based on CANOPEN agreement
CN107145140B (en) Automatic test system and test method for CAN interface of vehicle-mounted electronic control unit
CN111158718A (en) Local communication server, OTA (over the air) upgrading method thereof and cloud server
CN105278994A (en) Updating method and updating system of vehicle-mounted ECU (Electronic Control Unit) software
CN102306023B (en) Online configuration method of automobile controller
CN108491224A (en) A kind of vehicle-mounted Oftware updating method and system
CN106067840B (en) Remote debugging method and system for on-orbit satellite
CN106874018A (en) A kind of electric automobile Electric Air-Conditioner Controller software refreshing system and method
CN111679836A (en) Automobile ECU flashing system and method
CN111475174A (en) Device and method for online writing and configuration of vehicle-mounted gateway
CN109086058A (en) Onboard program upgrade-system
CN112698854A (en) Vehicle multi-controller flashing device
CN102749912B (en) Calibrating method and calibrating system for electric control unit of automatic transmission
CN113608772B (en) Application program upgrading method and device
CN104793975A (en) Method and device for updating application programs in electronic control units
CN105824653A (en) Automobile CAN bus data brush-writing method and device
CN107544473A (en) A kind of reprogramming method and device
CN108121553B (en) Method and device for updating application program
CN113406944A (en) Vehicle diagnosis method, apparatus, device and computer readable storage medium
CN116781211A (en) Equipment upgrading method and device, electronic equipment and storage medium
CN116319499A (en) Diagnostic method and device for vehicle, electronic equipment and storage medium
CN106063230A (en) Method and system for downloading data to at least one computer

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190816

RJ01 Rejection of invention patent application after publication