2024-11-12 01:44 PM - last edited on 2024-11-14 04:51 AM by Andrew Neil
Hello,
I'm working with SensorTile (STEVAL-STLKT01V1) and using the AI-SENSING1 firmware. I would like to replicate the energy saving behavior I observed in the ALLMEMS1 firmware: it goes into shutdown mode after a period of no connection and can be reactivated by a double tap event. In ALLMEMS1, this behavior happens automatically, but in AI-SENSING1, I am facing difficulties implementing this logic.
My question is: what specific steps should I follow to replicate the behavior of ALLMEMS1 in AI-SENSING1, or is there any example of implementing this shutdown with wake-up via double tap for AI-SENSING1? I would also need guidance on how to configure the timer so that the shutdown occurs automatically after a pre-determined time without connection.
Thanks in advance for any help or guidance.
2024-11-14 04:48 AM
Hello @Emanuel_S ,
The ALLMEMS1 expert is in vacation. I pinged him so that he responds when he returns.
Have a good day.
Julian
2024-11-14 06:22 AM
Hello Emanuel,
In the last version of the ALLMEMS1 STEVAL-STLKT01V1 is not most supported.
The latest version of the ALLMEMS1 that including this harware is 4.2.0.
If you have that, in the file main.c there is this API: MCU_PowerSave
This API send the SensorTile in power mode save and, in this API, with EnableHWDoubleTap() enable double tap to wake up the module.
DO NOT DISABLE THE ACCELEROMETER as done in the MCU_PowerSave API.
That All.
regards,
Salvatore.