Sensors stop advertising
we have a problem with some of our sensors (MetaMotionR), in that we
sometimes are unable to reconnect to them after a connection loss.
To explain in more detail:
We connect to the sensor using the Android API and activate various
modules on the board (LED, Haptic, Sensor Fusion) to stream them
Sometimes we unexpectedly lose connection (e.g. when moving too far
away), but are then no longer able to reconnect.
The sensor keeps its internal configuration (LED still on, presumably it
is also still sampling data), but it does not start advertising again,
so we cannot connect. We then have to wait until the battery runs out,
and after charging we can use the sensor again.
This is not a problem that happens every time we lose connection, only
We tried using a disconnect handler on board to deactivate sampling on
connection loss, but this does not solve the problem that the board no
We were hoping to solve the problem using a soft reset, so our questions
1. Is it possible to reset the board on connection loss using a
registered disconnect handler? We were unable to use the
mbl_mw_debug_reset command when recording a disconnect event.
- Is it possible to reset the board when pressing the button for a
longer time (10s)?
Of course we are also open to other suggestions on how we could solve
Thank you very much!