Dear Team,
Our Setup:- Module: DA14531MOD- Application: Battery-powered Ultrasonic Flow Meter- IDE & Tools: Keil uVision, SEGGER J-Link (JTAG connector)- SDK Version: DA145xx_CodeLess_6.380.18.63
We are interfacing the DA14531MOD with an external MSP430-series host controller using the AT command interface. Typically, we configure the advertisement packet, set the device to advertisement mode, and enable sleep mode using the `AT+SLEEP=1` command. This is reflected in our configuration:// In user_config.hstatic const sleep_state_t app_default_sleep_mode = ARCH_EXT_SLEEP_ON;
For specific scenarios, we need to put the device into hibernation mode for several hours to conserve power. Could you please advise if it’s possible to modify the code so that the `AT+SLEEP=2` command triggers hibernation mode? Any guidance or code modifications to achieve this would be greatly appreciated.
Thank you!
Hi Anu,
Thank you posting your questions online.
1, The hibernation mode wake-up will trigger a POR reset, so it's not a wake-up-ready status for communication.
2, the Hibernation wake-up pins are:
but default cts pin is P0_8
3, you can modify the AT CMD here:
create your own CMDs if needed: 6. Adding Custom Commands — DA145XX Tutorial SDK Getting started
BR,
JH_Renesas
Thank you, JH_Renesas.
I observed that the possible sleep mode values are defined as follows:```c/******************************************* Default sleep mode. Possible values are:** - ARCH_SLEEP_OFF* - ARCH_EXT_SLEEP_ON* - ARCH_EXT_SLEEP_OTP_COPY_ON (585) / ARCH_DEEP_SLEEP_ON (580)*******************************************```Could you please provide instructions on how to configure the DA14531MOD to enter hibernation mode?
Additionally, what modifications are needed in the following function to implement this functionality:```cvoid user_at_sleep(struct at_cmd_params_t* arg, char* reply_string)```
Anu said:Could you please provide instructions on how to configure the DA14531MOD to enter hibernation mode?
Please refer to this tutorial: 7. Hibernation Mode configuration — DA1453x & DA1458x Tutorial Sleep Modes
Anu said:Additionally, what modifications are needed in the following function to implement this functionality:
6. Adding Custom Commands — DA145XX Tutorial SDK Getting started this tutorial will guide you the creation same as the modification.
Hi JH_renesas,
As mentioned earlier, the DA14531MOD serves as our communication module, not the host controller. We are utilizing the DA145xx_CodeLess_6.380.18.63 SDK with the Datapump_531 target in the Keil uVision IDE. I checked the hibernation configuration link you shared, but the relevant settings are not present in this SDK. Could you please provide further assistance with this matter?
We require the implementation of this feature within the CodeLess SDK.
Can someone please address this request?OV_Renesas JH_Renesas
Hi Anu,Thank you for the reply.The Hibernation sleep mode is not supported on the CodeLess SDK.You will need to add a lot of files and extra source code in order to achieve Hibernation sleep mode.Due to Memory constraints I do not believe it will be feasible on the DA14531.It might be feasible on the DA14535 which has more SRAM available.You will need to follow the Tutorial JH_Renesas shared and check the prox_reporter example on the generic SDK v6.0.24.
You can also take as reference: ble-sdk6-examples/connectivity/hibernation_and_stateaware_hibernation at main · renesas/ble-sdk6-examplesFrom our side, we will not be able to support Hibernation on CodeLess SDK, especially for DA14531.Best Regards,OV_Renesas