The application discloses a
state management method of trusted
authentication based on star flashing, and relates to the technical field of low-
power consumption and reliable
connection control of sensor equipment. The method is based on a state
machine to adaptively switch between a
sleep state, a wake-up scanning state, an initialization state, a working state and a disconnected timing state. The sensor is triggered by a low-
power consumption timing circuit from a deep
sleep state to enter the wake-up scanning state, and a star flashing communication module scanning management module is started. In the wake-up scanning state, whether to enter the initialization state or return to sleep is determined according to a connection result and a
timer. In the initialization state, parameters are synchronized and instructions are listened to, so as to determine whether to enter the working state or remain in the initialization state. In the working state,
data acquisition and transmission are performed, and when a connection is abnormal or an instruction is received, the disconnected timing state or the initialization state is switched to. In the disconnected timing state, a connection is tried to be recovered, and if the
recovery is successful, the initialization state is returned, and if the
recovery fails, the
sleep state is returned.