5.3.2.8 Set Deep Sleep Advertisement (SDSA,<0,1>,<hex16>)
Format:
SDSA
The Deep Sleep Advertising (DSADV) in the RNBD451
module is configurable using the SDSA command. The
SDSA command accepts two input parameters. The first parameter is a
single digit value that determines the enabling/disabling of the deep sleep advertising
feature, and it expects two bytes length as the second input parameter. The value
‘1’ enables the deep sleep advertisement. When the deep sleep
advertisement is enabled, then the UART is not operational to save the power
consumption. If the first parameter value is ‘0’, the RNBD451 module runs without DSADV, and UART is
operational all time.
It is necessary to wake up UART by pulling UART_RX_IND (UART RX Indication, PB4) pin low from the host MCU before the host MCU transmits data to the RNBD451 module.
The second input parameter indicates the deep sleep advertisement interval with a 0.625 ms time unit.
With deep sleep advertisement enabled, the RNBD451 module wakes up and advertises once for every set interval time. After the single advertisement, the RNBD451 module enters into deep sleep again until it gets connected with a central.
If the DSADV interval setting is more than 400 ms, the RNBD451 module rejects DSADV. In this scenario, there is no power consumption
advantage than normal Sleep mode, and the RNBD451 module rejects the DSADV. MCU can choose the normal Sleep mode command
instead of the Low Power Control (SO) command. For more details, refer
to Set Power Down (SPD,<0,1>).
| Default: | 0, 0000 | // DSADV mode is disable |
| Example: | 0640
| // Set DSADV enable for interval 1s |
| Response: | AOK
|
// Success |
Err | // Syntax error or invalid parameter |
