The application relates to the technical field of device
firmware updating, in particular to an AIoT device updating method and
system, which comprises the following steps: collecting a
process state, checking a
memory address overlap rate, generating a to-be-updated block, extracting a to-be-updated area, normalizing network parameters, calculating a
cosine similarity, generating an updating mark, combining the block and the mark, comparing a version hash, generating a replacement or skipping instruction, writing incremental data, determining a failure number through a Q-Learning model, counting the failure number, analyzing a global state, executing
recovery or version updating, and the like. In the application, the
memory address conflict overlap area is dynamically identified to reduce the upgrading interruption risk, network bandwidth,
packet loss rate and storage
delay parameters are evaluated to avoid inefficient updating, hash comparison is accurately used to judge version compatibility to prevent
system collapse, Q-Learning is combined to analyze load prediction
failure risk and enhance updating robustness, the failure number is counted to establish a multilevel fault-tolerant mechanism to maintain device basic functions, and dynamic scheduling and environment sensing are cooperated to improve stability and efficiency.