Hello everyone
I am currently developing a BLE enabled sensor based on the DK-MINI "Keyfob" development board. The sensor is to be placed in the hull of a small boat, and will therefore not be easily accessible. My plan is therefore to create a Standby mode where if the boat have not been moving for approximately 10 minutes (because the boat is put on land) the sensor should go to Standby mode and only wake up every x minutes to check if the boat has moved since last measurement (within some threshold of cause). Movements will be measured by the on-board accelerometer, and will wake up the processor in advertising mode.
I have looked into the power saving feature in the KeyFobDemo and found that each “task” can voluntarily accept the processor going into low power mode. Furthermore when GAP is in states ‘waiting’ or ‘waiting_after_timeout’ the only task running the battery service; not even the link layer is running.
What all this means is that when the Keyfob is not connected, not advertising and no other peripherals or services is turned on, the processor can stay in low power mode for a long time without being woken up.
My question is then; is it sensible to enforce tasks to accept low power mode, and what would be a good way to do it?
Best Regards
Rasmus