The invention discloses a
data processing method for an ECU (
Electronic Control Unit) upgrading file of a vehicle
machine, relates to the technical field of
software upgrading of the vehicle
machine, can solve the difficulty of the ECU upgrading of the vehicle
machine which does not support a
file system, and realizes efficient integration, secure
encryption, accurate transmission and reliable unpacking and installation of each ECU upgrading file of the whole vehicle through the improvement of a packing and unpacking process. Comprising a packaging process and an unpackaging process, and the packaging process comprises the following steps: S1,
parsing firmware files of a target ECU, extracting program data in each
firmware file, and generating an internal
data structure; s2, a preset fixed-
byte continuous memory space is allocated to the current ECU to serve as a main data head, the memory space divided into front-end bytes serves as the main data head, and the memory space of rear-end bytes serves as a signature area; s3, writing DID configuration,
flash drive, data configuration and application program data blocks as required, and
processing each part of data according to the following rules; s4, updating an offset address field and a CRC32 check value in the main data head; and S5, circularly
processing all the ECUs.