The application provides a method for sending a data packet based on a Wi-Fi switch circuit. The Wi-Fi switch circuit comprises a
power module, a switch module and an output module. The
power module comprises a button
cell and a front-stage
capacitor. The switch module comprises a
key switch. The output module comprises a Wi-Fi
chip. The method for sending a data packet comprises the following steps: in response to pressing the
key switch, the Wi-Fi switch circuit is instantaneously turned on, the Wi-Fi
chip is triggered to enter an initialization state, it is determined whether the Wi-Fi
chip has been bound to a receiving end device, the Wi-Fi chip sends a data packet, and the front-stage
capacitor supplies power to the Wi-Fi chip when the Wi-Fi chip sends the data packet. After the Wi-Fi chip sends the data packet each time, the Wi-Fi chip enters a
sleep state. During the
sleep state, the button
cell charges the front-stage
capacitor, so that the front-stage capacitor stores
electric energy. After a predetermined time length arrives, the Wi-Fi chip enters a working state again.