The invention provides a CAN (Controller
Area Network)
bus-based retransmittable ECU (
Electronic Control Unit)
software online upgrading method, which comprises the following steps of: compiling a new user program to generate a BIN file, reading the to-be-programmed BIN file by upper
computer software, adding a file identification head, a file
byte length and
verification information to the BIN file, calculating the number of blocks of the whole file according to the size of 511 * 8 bytes transmitted by a single block, and updating the number of the blocks of the whole file according to the size of 511 * 8 bytes; the number of bytes of the last block of data, the number of CAN messages of the last block, the
data verification value of the whole file and the
verification value of each block of data; the BIN file is packaged into a start transmission command, a single block transmission command, a single block transmission end command and a block transmission end command after being subjected to
data processing, and compared with the prior art, efficient and safe remote upgrading is realized through an innovative
protocol design and a fault-tolerant mechanism on the basis of a low-cost
CAN bus, so that the remote upgrading efficiency is improved. A standardized solution is provided for
embedded system maintenance, and the method has a wide industrial application prospect.