The invention relates to the technical field of intelligent power grids, and provides a remote
software upgrading method for an intelligent
electric energy meter, which comprises the following steps: S1, a
server generates an upgrading
package containing a
version identifier, and transmits the upgrading
package to the intelligent
electric energy meter in a fragmented manner through a TLS
encryption channel; s2, the intelligent
electric energy meter doubly verifies the integrity of the
upgrade package and the legality of the source through an SHA-256 check code and a
digital signature, the
upgrade package and the source legality are written into a
backup storage area of the
Flash memory after
verification is passed, and a CRC write-in check value is recorded; s3, performing secondary
verification on the
upgrade package of the
backup storage area, triggering restarting after
verification is passed, and writing data of the
backup area into the main partition in the restarting process; s4, if the main partition
system is not started or the
core function is abnormal within the set time, returning to an old version and generating a fault log containing a
timestamp; through a dynamic subpackage strategy, differential upgrading, SHA256 verification, a watchdog mechanism and a fault log
record, the upgrading efficiency and safety of the intelligent electric energy meter are remarkably improved, and the dynamic subpackage strategy dynamically adjusts the size of a data packet according to the network condition.