The invention discloses a
firmware upgrading method based on fragmentation transmission under a Zigbee network, which comprises the following steps: S1,
firmware fragmentation and storage: firstly, a
firmware file is segmented into a plurality of 32-
byte fragments, and the fragments are stored in a storage space of an upgrading
system; s2, an OTA
upgrade starting command is sent; s3, fragmented data is transmitted in a mode of sending fragmented data one by one, and a
system sends one fragmented data each time and waits for a confirmation
signal of equipment; s4, recording a transmission state; s5, a
retransmission mechanism; s6,
verification and installation are carried out; s7, upgrading completion and state feedback; the problems that in the prior art, the firmware
transmission failure rate is high, and upgrading failure is uncontrollable can be effectively solved. The transmission reliability in a low-bandwidth network environment is ensured by a fragmented transmission and automatic
retransmission mechanism; due to the limitation of
breakpoint resume and
retransmission times, the overall upgrading efficiency is optimized, and excessive consumption of
system resources is avoided; the
data transmission security is high, the reliability of equipment upgrading is enhanced, and the method is easy to expand and implement and suitable for large-scale equipment upgrading.