本发明提供一种ECU原车数据的查找与清除方法、存储介质,方法包括:获取第二程序文件,其与第一ECU对应的第一程序文件软件版本相同且其内存储的第一原车数据与第一程序文件中存储的第二原车数据不一致;逐一将第一程序文件的非空白扇区与第二程序文件中对应位置的扇区进行扇内数据比较,并依据相似度对第一程序文件的非空白扇区进行排序;依据排序由相似度最低的非空白扇区开始,逐一判断对应的非空白扇区内是否存储有与第一原车数据相对应的数据;若是,则清除所述数据。本发明解决了ECU再制造过程软件无法恢复的问题,能保证ECU正常工作;清除原车数据后的程序文件可以作为同软件版本ECU通用程序文件,实现批量化生产。
The invention provides a searching and clearing method and a storage medium for the data of the original ECU, including: obtaining the second program file whose software version is the same as that of the first program file corresponding to the first ECU and the data of the first original car stored in the first program file is inconsistent with that of the second original car stored in the first program file; The non-blank sector of the first program file is compared with the corresponding sector of the second program file one by one, and the non-blank sector of the first program file is sorted according to the similarity; According to the sorting starting from the non-blank sector with the lowest similarity, judge one by one whether there is data corresponding to the data of the first original car stored in the corresponding non-blank sector; If so, the data is cleared. The invention solves the problem that the software of ECU remanufacturing process cannot be recovered and can ensure the normal operation of ECU. The program file after clearing the original car data can be used as the general program file with the software version ECU to achieve mass production.