I am doing experiments on sensor sampling in Android. I'm sampling the accelerometer sensor at 10HZ via the native API in Android. I'm using two different galaxyS3 (4.0.4 and 4.1.2) and two xperias (2.3.4) for testing.
On the galaxyS3 4.1.2 I notice, within a session of some minutes of sampling at a very stable 10HZ rate, sudden spikes in which the sampling rate is a lot higher. This happens at random times and for a short interval, say roughly one second. Samples' timestamps do reflect the spikes.
On the other phones (included the galaxyS3 4.0.4) I request 10Hz and the sampling frequency keeps right "forever". Also it only occurs with the accelerometer, not with any of the other sensors in the platform (not even with the gyro, whose chip is integrated with the accelerometer ST Micro lsm330dlc in the galaxyS3)
It looks like a background program (be it an app or an android service) requests the accelerometer sampling at a very high rate for a short interval at random times. I tried to switch off most of the platform services, apps, movement recognition etc.. but with no benefit, I can't identify what causes this unexpected sampling rate spike.
Any hits appreciated.