Professional Documents
Culture Documents
WM - W800 - Low Power Consumption Guide - v10
WM - W800 - Low Power Consumption Guide - v10
V1.0
Address: 18th Floor, Yindu Building, No. 67 Fucheng Road, Haidian District, Beijing
Tel: +86-10-62161900
1
Machine Translated by Google
2
Machine Translated by Google
Table of contents
3
Machine Translated by Google
4
Machine Translated by Google
1 Introduction
Introduces the W800 chip low-power configuration and corresponding applicable scenarios, and provides corresponding test examples.
DTIM: Delivery Traffic Indication Message, AP’s broadcast frame temporary storage period
1.4 References
5
Machine Translated by Google
2 Overview
Currently, W800 series chips have three low modes: PS-Mode (Power Sleep), Sleep and Standby in Station mode.
Power consumption mode. We provide a variety of configuration methods for these three modes. Users can select the corresponding mode and configure it based on specific needs.
ÿDTIM=1ÿ
Note: 1. DTIM can be configured on some APs. The larger the value is set, the longer the Station can sleep to reduce power consumption.
2. In PS-Mode mode, WiFi is turned off when not connected to the Internet.
After W800 is started, WiFi is turned off when it is not in networking, scanning or network configuration state. At this time, only the CPU and some peripherals are in
working status.
6
Machine Translated by Google
Wi-Fi OFF can be considered as a working mode where W800 is only used as an MCU.
4 PS-Mode mode
After connecting to the AP, W800 will turn off WiFi during the two DTIM intervals between AP broadcasting Beacon frames to save power.
If so, it will automatically wake up and turn on WiFi before the next Beacon frame arrives. The sleep time is determined by the DTIM time of the AP.
Set by using the interface void tls_wifi_set_psflag (bool enable, bool alwaysflag), please refer to the interface description
API description.
This interface needs to be set up after the chip is connected to the Internet and gets the IP. After sleeping, the system decides when to wake up.
4.1.2 AT command
Complete the setting by using the AT command AT+WPSM. For command description, please refer to the AT command manual.
Test in networking mode. If you need to save the energy-saving mark, AT+WPSM=!1
Function:
Format (ASCII):
AT+WPSM=[!?][enable]<CR>
+OK[=enable]<CR><LF><CR><LF>
parameter:
7
Machine Translated by Google
value meaning
0 Disable
1 Enable
This mode is suitable for scenarios that require the CPU to work all the time.
5 Sleep mode
Sleep mode is a low-power working mode that can wake up quickly. In this mode, power to the digital circuitry will remain on
state, so the contents of memory, registers, etc. will be maintained and can be connected quickly after waking up. But the start-up circuit and DPLL will be turned off, and the entire
The system clock will be stopped to reduce dynamic power consumption within the circuit.
Wake-up can be done through GPIO. Connect the wakeup (PIN3) pin of W800 and pull the wakeup pin high to complete the wake-up.
Awake.
Wake-up can also be done through a timer (PMU-Timer or RTC timer). The wake-up can be completed after the timer times out.
The PMU timer wakes up through the interface void tls_pmu_timer0_start(u16 second) or void
8
Machine Translated by Google
The time unit that can be set by the interface void tls_pmu_timer0_start(u16 second) is seconds;
The time unit that can be set by the interface void tls_pmu_timer1_start(u16 msec) is milliseconds;
5.1.2 AT command
The setting is completed by using the AT command AT+ENTS. For the command description, please refer to the AT command manual.
Function:
Format (ASCII):
AT+ENTS=[ps_type],[wake_type],[delay_time],[wake_time]<CR>
+OK<CR><LF><CR><LF>
parameter:
value meaning
0 Wi-Fi ON/OFF
1
Standby
2 Sleep
0 GPIO mode
1 Timer mode
delay_time: Delay time to enter Standby/Sleep mode, unit 10ms, valid value
100 ÿ10000msÿ
wake_time: wake-up time in Standby/Sleep mode, only available when waking up in Timer mode
9
Machine Translated by Google
This mode is suitable for scenarios that require lower power consumption while maintaining a WiFi connection. The device can wake up from Sleep state at regular intervals to
Note: PS-Mode can still be enabled when networking in Sleep mode to reduce power consumption during networking communication.
6 Standby mode
Standby mode is the lowest power consumption operating mode. In this mode, except for the circuit operation of the PMU power domain, all the
All circuits will be closed. Therefore, in this mode, only the RTC of W800 is still working, and everything else is unavailable. After each wake-up
Wake-up can be done through GPIO. Connect the wakeup (GPIO_A4) pin of W800 and pull the wakeup pin high to complete.
Be awakened.
Wake-up can also be done through a timer (PMU-Timer or RTC timer). The wake-up can be completed after the timer times out.
The PMU timer wakes up through the interface void tls_pmu_timer0_start(u16 second) or void
10
Machine Translated by Google
The time unit that can be set by the interface void tls_pmu_timer0_start(u16 second) is seconds;
The time unit that can be set by the interface void tls_pmu_timer1_start(u16 msec) is milliseconds;
6.1.2 AT command
The setting is completed by using the AT command AT+ENTS. For the command description, please refer to the AT command manual.
Function:
Format (ASCII):
AT+ENTS=[ps_type],[wake_type],[delay_time],[wake_time]<CR>
+OK<CR><LF><CR><LF>
parameter:
value meaning
0 Wi-Fi ON/OFF
1
Standby
2 Sleep
0 GPIO mode
1 Timer mode
delay_time: Delay time to enter Standby/Sleep mode, unit 10ms, valid value
100 ÿ10000msÿ
wake_time: wake-up time in Standby/Sleep mode, only available when waking up in Timer mode
11
Machine Translated by Google
This mode is suitable for sensor applications or scenarios where data transmission is not required most of the time. The device can periodically switch from
Wake up in Standby state, measure data and upload, and then continue to enter Standby.
When networking, we can also reduce power consumption through the following configurations:
Use the interface void tls_sys_clk_set(u32 clk) to set the CPU to a lower frequency. Currently available frequencies are:
When Wi-Fi is unavailable, the CPU clock can be configured to a clock less than 40MHz, and the minimum can be configured to 2MHz
When closing unused peripherals using the interface void tls_close_peripheral_clock(tls_peripheral_type_s devices)
bell;
Parameters in this interface can use "|" to turn off multiple peripheral clocks at the same time. For specific items that can be turned off, see tls_peripheral_type_s
12
Machine Translated by Google
Since the power consumption of the W800 SOC itself is tested, before the test, the power consumption of the W800 development board itself
Aÿ Remove the pull-up resistors at the Reset and Wakeup buttons, as shown in Figure 1 with serial numbers 1 and 2;
Bÿ In order to avoid the interference of the capacitor charging and discharging process on the test power consumption, remove the relevant capacitors on the W800 open board, such as
Special Note:
13
Machine Translated by Google
Since the pull-up resistor of the Wakeup button has been removed, the board cannot be in Standby mode through GPIO.
Use Agilent 34401A to be connected in series to the power supply circuit of 66319D to W800 to accurately record the power supply passing through W800.
of current.
14
Machine Translated by Google
By controlling the 66319D device through this software, the precise current data of the W800 can be automatically recorded and calculated.
The test connection diagram of this mode is as follows, that is, 34401A is connected in series to the power supply circuit of 66319D to W800, as shown below:
15
Machine Translated by Google
Connect to W800 through the serial port and enter the following AT commands in sequence:
AT+ENTS=1, 1, 5000, 30000 ---Set W800 to enter Standby state after 5 seconds and remain
16
Machine Translated by Google
After completing the above command and waiting for 8 seconds, adjust the RNAGE Level on the 34401A to the mA level, and you can see
The test connection diagram of this mode is as follows, that is, 66319D directly supplies power to W800.
*
After 66319D is powered on, press the Recall and Enter keys in sequence;
17
Machine Translated by Google
* Open the 14565A DCS software, select IO type and click the Auto-Detect button to enter the control interface.
Set the execution sequence number to 6 in sequence according to Figure 7, then connect the W800 through the serial port, and enter the following AT in sequence
instruction:
AT+ENTS=2, 1, 5000, 30000 ---Set W800 to enter Sleep state after 5 seconds and continue
30 seconds.
Complete the above command, wait for 8 seconds, and execute serial numbers 7 and 8 as shown in Figure 7 to obtain the sleep status of W800.
18
Machine Translated by Google
This mode is under development and debugging and will be provided later.
19