# Hosted mode power consumption using AT commands

Source: [https://docs.qualcomm.com/doc/80-58740-3/topic/ncp-mode-power-measurement-use-cases.html](https://docs.qualcomm.com/doc/80-58740-3/topic/ncp-mode-power-measurement-use-cases.html)

### AT+PWR=&lt;power mode&gt;,[&lt;level&gt;]

Function: Configure power mode

Parameters
- &lt;power mode&gt;:
- - 0: normal mode.
    - 1: hibernate mode.
    - 2: standby mode.
- [&lt;level&gt;]: In hibernate mode, power level 0-2.

### AT+SLWKIO=&lt;wakeup io&gt;,&lt;trigger mode&gt;

Function: Configure GPIO as wake-up source.

Parameters
- &lt;wakeup io&gt;: GPIO wake-up IO number. Support GPIO 16
- &lt;trigger mode&gt;: wake-up trigger mode
- - 0: Wake-up by high level
    - 1: Wake-up by rising edge. The condition for rising edge wake-up is
                                that the external level must be low before entering sleep. Low-level
                                wake-up is not supported.

### AT+SLWKTIMER=&lt;mode&gt;,&lt;timeouts&gt;

Function: Configure timer as wake-up source.

Parameter
- &lt;mode&gt;: 0, standby mode, 1, hibernate mode
- &lt;timeouts&gt;: Set the wake-up duration in milliseconds. One-time wake-up
                        timer. Do not enter sleep again after waking up ,unless a new wake-up timer
                        is configured again.

### AT+SLWKDTIM=&lt;dtim&gt;

Function: Configure DTIM as wake-up source

Parameter
- &lt;dtim&gt;: Set the wake-up DTIM.

## I/O wake-up in standby mode 

Source: [https://docs.qualcomm.com/doc/80-58740-3/topic/ncp-mode-power-measurement-use-cases.html](https://docs.qualcomm.com/doc/80-58740-3/topic/ncp-mode-power-measurement-use-cases.html)

1. Reset the host application processor + QCC74x board.
2. Connect the board to the power analyzer as described in [Set up the hardware for VDD core 3.3V](https://docs.qualcomm.com/doc/80-58740-3/topic/power-measurement.html#power-measurement-point).
3. Set up the console connection as described in [Connect the console](https://docs.qualcomm.com/doc/80-58740-3/topic/power-measurement.html#console-connection).
4. Execute the command `AT+SLWKIO=28,0` on the host application
                processor serial port.
5. Execute the command `AT+PWR=2` on the host application processor
                serial port.
6. Execute the command `HOSTCMD wakeup 28` on the host application
                processor serial port.
7. QCC74x will wake up from sleep when GPIO28 is triggered HIGH.

Note: Only GPIO28 and GPIO16 are supported in standby mode as wake-up
            source.

## Timer based wake-up in standby mode

Source: [https://docs.qualcomm.com/doc/80-58740-3/topic/ncp-mode-power-measurement-use-cases.html](https://docs.qualcomm.com/doc/80-58740-3/topic/ncp-mode-power-measurement-use-cases.html)

1. Reset the host application processor + QCC74x board.
2. Connect the board to the power analyzer as described in [Set up the hardware for VDD core 3.3V](https://docs.qualcomm.com/doc/80-58740-3/topic/power-measurement.html#power-measurement-point).
3. Set up the console connection as described in [Connect the console](https://docs.qualcomm.com/doc/80-58740-3/topic/power-measurement.html#console-connection).
4. Execute the command `AT+SLWKTIMER=0,5000` on the host application
                processor serial port.
5. Execute the command `AT+PWR=2` on the host application processor
                serial port.
6. After 5000 milliseconds, QCC74x will wake up from standby mode.

## I/O wake-up in hibernate mode 

Source: [https://docs.qualcomm.com/doc/80-58740-3/topic/ncp-mode-power-measurement-use-cases.html](https://docs.qualcomm.com/doc/80-58740-3/topic/ncp-mode-power-measurement-use-cases.html)

1. Reset the host application processor + QCC74x board.
2. Connect the board to the power analyzer as described in [Set up the hardware for VDD core 3.3V](https://docs.qualcomm.com/doc/80-58740-3/topic/power-measurement.html#power-measurement-point).
3. Set up the console connection as described in [Connect the console](https://docs.qualcomm.com/doc/80-58740-3/topic/power-measurement.html#console-connection).
4. Execute the command `AT+SLWKIO=16,0` on the host application
                processor serial port.
5. Execute the command `AT+PWR=1,0` on the host application processor
                serial port.
6. Execute the command `HOSTCMD wakeup 28` on the host application
                processor serial port.
7. QCC74xwill wake up from sleep when GPIO16 is triggered HIGH.
8. Repeat steps 1-5 to measure power in HBN  0/1/2 modes using
                    `AT+PWR=1,0/1/2`.

Note: Only GPIO16 is supported in hibernate mode as wake-up
            source.

## Timer based wake-up in hibernate mode

Source: [https://docs.qualcomm.com/doc/80-58740-3/topic/ncp-mode-power-measurement-use-cases.html](https://docs.qualcomm.com/doc/80-58740-3/topic/ncp-mode-power-measurement-use-cases.html)

1. Reset the host application processor + QCC74x board.
2. Connect the board to the power analyzer as described in [Set up the hardware for VDD core 3.3V](https://docs.qualcomm.com/doc/80-58740-3/topic/power-measurement.html#power-measurement-point).
3. Set up the console connection as described in [Connect the console](https://docs.qualcomm.com/doc/80-58740-3/topic/power-measurement.html#console-connection).
4. Execute the command `AT+SLWKTIMER=1,5000` on the host application
                processor serial port.
5. Execute the command `AT+PWR=1,2` on the host application processor
                serial port.
6. After 5000 milliseconds, QCC74x will wake up from hibernate
                mode.
7. Repeat steps 1-5 to measure power in HBN 0/1/2 modes using
                    `AT+PWR=1,0/1/2`.

## DTIM mode

Source: [https://docs.qualcomm.com/doc/80-58740-3/topic/ncp-mode-power-measurement-use-cases.html](https://docs.qualcomm.com/doc/80-58740-3/topic/ncp-mode-power-measurement-use-cases.html)

1. Reset the host application processor + QCC74x board.
2. Connect the board to the power analyzer as described in [Set up the hardware for VDD core 3.3V](https://docs.qualcomm.com/doc/80-58740-3/topic/power-measurement.html#power-measurement-point).
3. Set up the console connection as described in [Connect the console](https://docs.qualcomm.com/doc/80-58740-3/topic/power-measurement.html#console-connection).
4. Connect to the access point using the command
                    `AT+CWJAP=”SSID”,”PASSWORD”`.
5. Execute the command `AT+SLWKDTIM=10` on the host application
                processor serial port.
6. Execute the command `AT+PWR=2` (enter standby mode) on the host
                application processor serial port.
7. Observe the analyzer and note down the average power readings over a period of 30
                seconds.
8. Repeat steps 1 -5 for measure power in DTIM 1/3/5/10 values in 2.4 GHz using
                    `AT+SLWKDTIM=1/3/5/10`.

## BLE advertising mode

Source: [https://docs.qualcomm.com/doc/80-58740-3/topic/ncp-mode-power-measurement-use-cases.html](https://docs.qualcomm.com/doc/80-58740-3/topic/ncp-mode-power-measurement-use-cases.html)

1. Reset the host application processor + QCC74x board.
2. Connect the board to the power analyzer as described in [Set up the hardware for VDD core 3.3V](https://docs.qualcomm.com/doc/80-58740-3/topic/power-measurement.html#power-measurement-point).
3. Set up the console connection as described in [Connect the console](https://docs.qualcomm.com/doc/80-58740-3/topic/power-measurement.html#console-connection).
4. Run these commands on the console to start BLE advertising (1.28 seconds 20
                bytes):

        AT+BLEINIT=2     			                     | BLE peripheral init                                                
        AT+BLETXPWR=0    			                     | Set BLE TX Power 0 dBm                                             
        AT+BLEADVDATA="020106110957575757575757575757575757575757" | Set 20 Bytes ADV DATA
        AT+BLEADVPARAM=2048,2048,2,7   	                     | Set 1.28 sec ADV interval                            
        AT+BLEADVSTART   			                     | Start BLE ADV                                                      
        AT+PWR=2   				                    | Enter low power mode   Copy to clipboard
5. Observe the analyzer and note down the average power readings over a period of 30
                seconds.

## BLE connection mode

Source: [https://docs.qualcomm.com/doc/80-58740-3/topic/ncp-mode-power-measurement-use-cases.html](https://docs.qualcomm.com/doc/80-58740-3/topic/ncp-mode-power-measurement-use-cases.html)

1. Reset the host application processor + QCC74x board.
2. Connect the board to the power analyzer as described in [Set up the hardware for VDD core 3.3V](https://docs.qualcomm.com/doc/80-58740-3/topic/power-measurement.html#power-measurement-point).
3. Set up the console connection as described in [Connect the console](https://docs.qualcomm.com/doc/80-58740-3/topic/power-measurement.html#console-connection).
4. Run these commands on the console to start BLE connection (1 second
                interval):

        AT+BLEINIT=2     			| BLE peripheral init                                                
        AT+BLETXPWR=0    			| Set BLE TX Power 0 dBm                                             
        AT+BLEADVSTART   			| Start BLE ADV                                                      
        AT+BLECONNPARAM=0,800,800,0,1500      | Set 1 sec connection interval 
        AT+PWR=2   			      | Enter low power mode  Copy to clipboard
5. Observe the analyzer and note down the average power readings over a period of 30
                seconds.

Last Published: Feb 19, 2025

[Previous Topic
Hostless mode power consumption using the command line](https://docs.qualcomm.com/bundle/publicresource/80-58740-3/topics/power-measurement-use-cases.md) [Next Topic
DTIM power measurement deep dive](https://docs.qualcomm.com/bundle/publicresource/80-58740-3/topics/dtimx-x-1-3-5-10-power-details.md)