A low power adaptive sleep method
By detecting the interface voltage of external devices and adjusting the wake-up method of wireless communication devices, the high power consumption problem caused by inconsistent interface voltages in the prior art is solved, and a long-term standby and flexible wake-up method of low-power wireless devices is realized.
Patent Information
- Application Number
- CN202510179845.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-19
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2045-02-19
AI Technical Summary
The existing wireless communication devices have high additional power consumption due to inconsistent interface voltages when the chip is sleeping, and the wake-up method cannot be adjusted adaptively according to the voltage of different external devices, resulting in the device being unable to wake up normally.
By connecting the wake-up pin to the communication interface, detect the interface voltage of the external device, and adjust the chip sleep wake-up mode and wake-up pin interface voltage according to the status of the external device, so that the internal and external voltages are the same, thereby eliminating the sleep current loss.
It realizes the long-term operation of low-power wireless devices in standby state, reduces the voltage differential current power consumption, and improves the adaptability and flexibility of the device, and can automatically adjust the sleep wake-up mode according to the external device status.
Smart Images

Figure CN119645508B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication technology, and in particular to a low-power adaptive sleep method. Background Art
[0002] At present, wireless communication devices basically use a fixed sleep method to handle pins that are left floating or set high. If the interface voltage connected to the external device is inconsistent with the voltage of the external device when the chip is in sleep mode, a certain current will be generated to cause additional power consumption, resulting in a large sleep current and high actual sleep power consumption. At the same time, different external device voltages will also lead to different wake-up methods for wireless communication devices. Existing methods usually use a fixed wake-up method. If the voltage of the external device changes, it will cause the current wireless communication device to be unable to wake up from sleep. Therefore, how to achieve adaptive adjustment of the chip wake-up method and interface voltage of the wireless communication device according to different external device voltages is a problem that needs to be solved. Summary of the invention
[0003] The present invention provides a low-power adaptive sleep method to solve the problem that the prior art cannot realize adaptive adjustment of the chip wake-up mode and interface voltage of wireless communication equipment according to different external equipment voltages.
[0004] The present invention provides a low-power adaptive sleep method, comprising:
[0005] Step 1: The wake-up pin of the wireless communication device is connected to the external device, and the wireless communication device is connected to the external device through the communication interface, and the wake-up pin is connected to the communication interface; during the initialization of the program operation and the wake-up initialization of the wireless communication device, the communication interface is delayed to ensure that the first transmission signal of the communication interface is only used as a wake-up trigger function;
[0006] Step 2: After the wireless communication device wakes up along the delay, it detects the input level of the communication interface, determines the high and low level states of the current wake-up pin, and thus determines the state of the external device;
[0007] Step three, according to the status of the external device, reconfigure the wake-up trigger mode during the wake-up initialization and pull the wake-up pin up and down, and record the current trigger mode flag; before the wireless communication device enters low-power sleep, re-read the trigger mode flag to determine the status of the wake-up pin, and set the wake-up pin level to the same level as the external device.
[0008] Furthermore, in step one, the communication interface is a serial port transmission pin RX, and the serial port transmission pin RX of the wireless communication device is connected to the wake-up pin.
[0009] Furthermore, in step one, during the program running initialization and wake-up initialization of the wireless communication device, the serial port transmission pin RX connected to the wake-up pin is delayed. After wake-up, after defining the function of the serial port transmission pin RX, it is delayed for 500ms, and then the serial communication function of the serial port transmission pin RX is configured and enabled to ensure that the first transmission signal of the serial port transmission pin RX is only used as a wake-up trigger function, and the truncated garbled data after wake-up is filtered out.
[0010] Furthermore, in step two, the input level of the serial port transmission pin RX is detected to determine the high and low level states of the current wake-up pin, thereby judging the state of the external device; the state of the external device includes running state, light sleep state and deep sleep state, which correspond to the serial port transmission pin RX level being high level, high level and low level respectively.
[0011] Further, in step three, according to the state of the external device, the wake-up trigger mode is reconfigured in the wake-up initialization and the wake-up pin is pulled up and down, and the value of the current trigger mode flag is recorded; when the detection is a high level, it is configured to be the wake-up pin pull-up state, falling edge wake-up, and the value of the trigger mode flag is recorded as 1; when the detection is a high level, it is configured to be the wake-up pin pull-down state, rising edge wake-up, and the value of the trigger mode flag is recorded as 0;
[0012] Before the wireless communication device enters low-power sleep mode, the value of the trigger mode flag is re-read to determine the state of the wake-up pin; when the value of the trigger mode flag is 1, the wake-up pin level is configured to be high when the wireless communication device is in sleep mode; when the value of the trigger mode flag is 0, the wake-up pin level is configured to be low when the wireless communication device is in sleep mode, and the wake-up pin level during sleep mode is configured to be the same level as that of the external device.
[0013] The present invention has the following beneficial effects: A low-power adaptive sleep method of the present invention can increase the standby time of low-power wireless devices and reduce the voltage difference current power consumption. It can also improve the adaptability and flexibility of low-power modules and automatically adjust the sleep and wake-up mode according to the state of external devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0015] Figure 1 A flowchart of a low-power adaptive sleep method provided by the present invention;
[0016] Figure 2 It is a structural block diagram of wireless communication equipment and external equipment. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. The technical solutions provided by the embodiments of the present invention are described in detail below in conjunction with the drawings.
[0018] The present invention connects the wake-up pin to the communication interface on a miniaturized circuit with limited interface resources, detects the interface voltage of the external device, adjusts the chip sleep wake-up mode and the wake-up pin interface voltage, makes the internal and external voltages the same, eliminates the sleep current loss, and further reduces the sleep power consumption. Based on the low-power sleep function of the chip, the present invention judges the actual use status of the external device according to the level status of the external device, and achieves the lowest power consumption adaptive adjustment by adjusting the internal wake-up pin state and the wake-up mode.
[0019] See also Figure 1 and Figure 2 , a low-power adaptive sleep method provided by an embodiment of the present invention includes:
[0020] Step 1: The wake-up pin of the wireless communication device is connected to the external device, and the wireless communication device is connected to the external device through a communication interface, and the wake-up pin is connected to the communication interface; during the program running initialization and wake-up initialization of the wireless communication device, the communication interface is delayed to ensure that the first transmission signal of the communication interface is only used as a wake-up trigger function.
[0021] In this embodiment, the wireless communication device has a low-power module, a data acquisition wake-up module, a main controller and a wireless radio frequency module. The low-power module, the data acquisition wake-up module and the wireless radio frequency module are connected to the main controller respectively. The data acquisition wake-up module is connected to the external device through the serial port transmission pin RX (UART_RX) and the serial port transmission pin TX (UART_TX). The low-power module is connected to the external device through the wake-up pin (WKUP_SIG).
[0022] For example, the serial port transmission pin RX of the wireless communication device is connected to the wake-up pin. When the wireless communication device sends data for the first time, the data signal must contain rising edge and falling edge characteristics, and the wake-up condition can be met for any wake-up method.
[0023] During the initialization of the wireless communication device program and the initialization of wake-up, the serial port transmission pin RX connected to the wake-up pin is delayed. After wake-up, after defining the function of the serial port transmission pin RX, it is delayed for 500ms, and then the serial communication function of the serial port transmission pin RX is configured and enabled to ensure that the first transmission signal of the serial port transmission pin RX is only used as a wake-up trigger function, and the truncated garbled data after wake-up is filtered.
[0024] Step 2: After the wireless communication device wakes up along the delay, it detects the input level of the communication interface, determines the high and low level states of the current wake-up pin, and thus determines the state of the external device.
[0025] Specifically, the input level of the serial port transmission pin RX is detected to determine the high and low level states of the current wake-up pin, thereby judging the state of the external device; the state of the external device includes the running state, the light sleep state and the deep sleep state, which correspond to the serial port transmission pin RX level being high, high and low respectively. In order to ensure that there is no voltage difference current between the wireless communication device and the external device, it is necessary to ensure that the serial port transmission pin RX automatically matches the external level and can be woken up and operated normally.
[0026] Step three, according to the status of the external device, reconfigure the wake-up trigger mode during the wake-up initialization and pull the wake-up pin up and down, and record the current trigger mode flag; before the wireless communication device enters low-power sleep, re-read the trigger mode flag to determine the status of the wake-up pin, and set the wake-up pin level to the same level as the external device.
[0027] Specifically, according to the state of the external device, the wake-up trigger mode is reconfigured in the wake-up initialization and the wake-up pin is pulled up and down, and the value of the current trigger mode flag (flag_wakemod) is recorded; when the detection is a high level, it is configured to be in the wake-up pin pull-up state, falling edge wake-up, and the trigger mode flag flag_wakemod=1 is recorded; when the detection is a high level, it is configured to be in the wake-up pin pull-down state, rising edge wake-up, and the trigger mode flag flag_wakemod=0 is recorded;
[0028] Before the wireless communication device enters low-power sleep mode, the value of the trigger mode flag flag_wakemod is re-read to determine the wake-up pin state; when the value of the trigger mode flag flag_wakemod is 1, the wake-up pin level is configured to be high when the wireless communication device is in sleep mode; when the value of the trigger mode flag flag_wakemod is 0, the wake-up pin level is configured to be low when the wireless communication device is in sleep mode, and the wake-up pin level during sleep mode is configured to be the same level as that of the external device, thereby reducing the voltage difference current power consumption.
[0029] According to the above method, the complete process of device adaptive adjustment is as follows: when the wireless communication device enters the light sleep state from the running state, the wake-up pin has no voltage change, is synchronized to a high level, the internal and external levels are consistent, and there is no leakage current. When the wireless communication device enters the deep sleep state from the light sleep state, the wake-up pin voltage changes from a high level to a low level, which will wake up the wireless communication device once. The wireless communication device records the current wake-up pin state and completes the above sleep adaptive configuration. When entering the sleep state again, the wake-up pin will be synchronously set to a low level to complete the automatic adjustment of the sleep level.
[0030] The above-described embodiments of the present invention do not limit the protection scope of the present invention.
Claims
1. A low power adaptive sleep method, characterized in that: include: Step 1: The wake-up pin of the wireless communication device is connected to the external device, and the wireless communication device is connected to the external device through the communication interface, and the wake-up pin is connected to the communication interface; during the initialization of the program operation and the wake-up initialization of the wireless communication device, the communication interface is delayed to ensure that the first transmission signal of the communication interface is only used as a wake-up trigger function; Step 2: After the wireless communication device wakes up along the delay, it detects the input level of the communication interface, determines the high and low level states of the current wake-up pin, and thus determines the state of the external device; Step 3: According to the state of the external device, reconfigure the wake-up trigger mode in the wake-up initialization and pull up and down the wake-up pin, and record the current trigger mode flag; before the wireless communication device enters low-power sleep, re-read the trigger mode flag to determine the state of the wake-up pin, and set the wake-up pin level to the same level as the external device; In step 1, the communication interface is a serial port transmission pin RX, and the serial port transmission pin RX of the wireless communication device is connected to the wake-up pin; In step 1, during the initialization of the wireless communication device program and the initialization of the wake-up, the serial port transmission pin RX connected to the wake-up pin is delayed. After the RX function of the serial port transmission pin is defined after wake-up, a delay of 500ms is performed, and then the serial communication function of the serial port transmission pin RX is configured and enabled to ensure that the first transmission signal of the serial port transmission pin RX is only used as a wake-up trigger function, and the truncated garbled data after wake-up is filtered; In step 2, the input level of the serial port transmission pin RX is detected to determine the high and low level states of the current wake-up pin, thereby judging the state of the external device; the state of the external device includes the running state, the light sleep state and the deep sleep state, which correspond to the serial port transmission pin RX level being high level, high level and low level respectively; In step 3, according to the state of the external device, the wake-up trigger mode is reconfigured in the wake-up initialization and the wake-up pin is pulled up and down, and the value of the current trigger mode flag is recorded; when the detection is a high level, it is configured to be the wake-up pin pull-up state, falling edge wake-up, and the value of the trigger mode flag is recorded as 1; when the detection is a high level, it is configured to be the wake-up pin pull-down state, rising edge wake-up, and the value of the trigger mode flag is recorded as 0; Before the wireless communication device enters low-power sleep mode, the value of the trigger mode flag is re-read to determine the state of the wake-up pin; when the value of the trigger mode flag is 1, the wake-up pin level is configured to be high when the wireless communication device is in sleep mode; when the value of the trigger mode flag is 0, the wake-up pin level is configured to be low when the wireless communication device is in sleep mode, and the wake-up pin level during sleep mode is configured to be the same level as that of the external device.
Citation Information
Patent Citations
Wake-up circuit of chip and control method thereof, and chip
CN112306214A
Low-power-consumption sleep and wake-up circuit for wireless network adapter
CN221707926U