Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementation of TYPE_SIGNIFICANT_MOTION sensor in android

In 4.4, Google introduced the Significant Motion Sensor.

Assuming that it is software implemented, using hardware sensors like the accelerometer and gyroscope, I'd like to know how exactly it was done (I couldn't find it in the sources as well).

like image 482
nobatlinux Avatar asked Jan 25 '26 04:01

nobatlinux


1 Answers

It really depends on the hardware implementation. For example, the HTC "flounder" (Nexus 8/9) has a HAL which exposes this. Similarly, the Asus "tilapia" and "grouper" (Nexus 7), Samsung "manta" (Nexus 10), and LG "hammerhead" (Nexus 5) utilize the invensense HAL to expose the same. In these cases the data is coming from a kernel driver exposed interface, which could be a real hardware signal. For example, there are 3 axis G-sensors (commonly used for accelerometers) which can detect "shake" or sudden motion and provide a separate interrupt to the application processor. So the bottom line is that the significant motion sensor is not necessarily a software derived sensor.

like image 110
Larry Schiefer Avatar answered Jan 27 '26 20:01

Larry Schiefer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!