The application provides a terminal device charging
mode switching control method and device, equipment and storage medium, the method is applied to the terminal device with charging input and reverse power supply function, the terminal includes
application processor,
microcontroller and notification
control circuit connected with both, the circuit is provided with first and second two notification channels, respectively connecting the non-maskable interrupt pin and general pin of
application processor. In the above method, the
microcontroller is responsible for the
device type and working mode identification when the external device is connected; when the first type of emergency event is identified, the non-maskable wake-up interrupt
signal is sent to the
application processor through the first channel, and the application processor is forced to wake up for
processing; when the second type of ordinary state event is identified, the state update
signal is sent to the application processor through the second channel, and the
signal only updates the state register without triggering the interrupt to wake up the application processor in sleep.