ZigBee network can be divided into two working modes: beacon and non-beacon. In order to save energy consumption to the maximum extent, the beacon mode can make all network devices work and sleep synchronously; in the non-beacon mode, the coordinator and router must be in working state for a long time, and only the terminal device is allowed to enter the sleep mode periodically. In the beacon mode, the coordinator broadcasts 16 beacon frames with the same time slot interval to the network, generally with a time interval between 15ms-4min. The time slot is divided into two parts: the network active area and the network sleep area. Messages can only be sent in the network active area. In the non-beacon mode, the terminal node extracts data from the parent node, and the parent node caches data for the child node, so that the terminal device can enter the sleep mode periodically to achieve low power consumption. In the ZigBee network, the child node is usually in the sleep working state most of the time, but it needs to wake up periodically to confirm that it is still in the network, and can switch to the data transmission mode after a delay of 15ms to extract data.