cancel
Showing results for 
Search instead for 
Did you mean: 

How to replicate shutdown behavior with wake-up via double tap as ALLMEMS1 firmware

Emanuel_S
Associate

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.

2 REPLIES 2
Julian E.
ST Employee

Hello @Emanuel_S ,

The ALLMEMS1 expert is in vacation. I pinged him so that he responds when he returns.

 

Have a good day.

Julian


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Salvatore Curti
ST Employee

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.