QUICK UPGRADE METHOD FOR EMBEDDED SOFTWARE AND EMBEDDED DEVICE
Disclosed in embodiments of the present invention are a quick upgrade method for embedded software and an embedded device. The method comprises: determining valid data in a target upgrade file, and dividing the valid data into N valid data blocks; reading an i th valid data block, and detecting whet...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng ; fre |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | Disclosed in embodiments of the present invention are a quick upgrade method for embedded software and an embedded device. The method comprises: determining valid data in a target upgrade file, and dividing the valid data into N valid data blocks; reading an i th valid data block, and detecting whether the valid data block is identical to an original data block; if they are identical, adding 1 to i to obtain a new value of i, and determining whether the new value of i is larger than N, if not, returning to perform the step of reading the i th valid data block; if they are not identical, detecting whether all data in the valid data block consist of the same number in hexadecimal format, if yes, erasing the original data block, adding 1 to i to obtain a new value of i, and determining whether the new value of i is larger than N, if not, returning to perform the step of reading the i th valid data block; and if it is determined that the new value of i is larger than N, reading an end data block of the upgrade fi |
---|