UM-WI-056
DA16xxx FreeRTOS Getting Started Guide
User Manual
Revision 1.0
27-Oct-2021
CFR0012
57 of 80
© 2021 Dialog Semiconductor
For instance,
[/DA16200/SYS.HAL] # sleep 2 10
○
It will sleep for a set amount of time (10 seconds), and then reboot and wake up.
6.5.3.2
AT Command
‘sys.hal’ mode is not supported in AT-CMD image and sleep 2 current measurement is possible over
AT command. Do the following steps and refer to
“UM-WI-003_DA16200_AT-
Command_User_Manual
” for more details on how to use the AT command on DA16200.
1. Connect UART1 of DA16200 for AT-CMD. Refer to the
relevant section “AT Command
Development Environment Configuration
” in the document in UM-WI-003.
2. Run the following AT commands.
○
ATE
//ECHO on/off
○
AT+SETSLEEP2EXT=<period>,<retain_dpm_memory>
○
For instance,
AT+SETSLEEP2EXT=10,0
○
It will sleep for a set amount of time (10 seconds), and then reboot and wake
up. During the sleep mode, DPM memory is not retained and this is basic sleep 2
operation.
○
When the DPM memory is retained, the sleep current is same with sleep 3 mode.
The fast reconnection functionality is possible in this mode.
3. Read the explanation of
“AT+SETSLEEP2EXT” in the following table. Also see to the relevant
section
“Basic Function Commands” in the document UM-WI-003 for details.
Command
Parameters
Description
AT+SETSLEEP2EXT
<period>,<retain_
dpm_memory>
Enter DPM Sleep 2 mode for the period specified.
<period>: wakeup timeout, in second(s)
<retain_dpm_memory>: 1 (retain), 0 (not retain)
Response: OK or ERROR
Pre-requisites
None.
Example
AT+SETSLEEP2EXT=10,1
OK
+INIT:DONE,0
Note
DA16200 can be woken up by RTC_W
AKE_UP while it’s in sleep.
DA16200 send the “+INIT:DONE:0” response once it wakes up.
NOTE
‘AT+SETSLEEP2EXT’ is not possible in the old version of SDK. Please try with ‘AT+SETDPMSLP2EXT’
in the old version of SDK.
○
For instance,
AT+SETSLEEP2EXT=10,0
Sleep 3
1. Enable DPM mode as described in Section
○
When you run the DA16200 with DPM settings, DA16200 will run
DPM Sleep
,
wake up for
Beacon check
and
Keep Alive
according to the configured DTIM