I'd like to ask for some help regarding the sampling rate and jitter on the magnetometer. I'm working on a project with some people that involves a high rate magnetic field sampling application. Even though we have developed an algorithm to workaround the jitter and other issues we encountered, we'd like to improve the sampling rating somehow and, at the same time, if possible, attempt to reduce the sampling jitter which is worse than sampling at a lower rate. We are using a Samsung Nexus S and according to the tests we performed we observed that the sampling rates between 15ms and 20ms and, sometimes, peaks around 50 ms (this is between consecutive events).
People that are more experienced with Android than us, might have a possible hint on how to address these issues. Even though we came up with different ideas for different approaches, we are not quite sure where the bottleneck could lie, besides the intrinsic sensor hardware constraints (AK8973 magnetometer). Our approaches are: 1. Modify the sensor device driver 2. Use Android NDK to develop native code in order to obtain the samples from the sensor (already tested - the results were the same as the ones obtained at the Java level) 3. Modify the Android API, that is, improve somehow how the events are handled 4. Root the phone and deactive unnecessary tasks running in the background 5. Attempt to modify at the kernel level the interrupts priorities I just wanted to ask for some hints/directions on how to address these issues, that is, what could be the best approach based on your experience and knowledge of Android and according to the location of the bottleneck. Thank you in advance for your attention. (I'm sorry for my english as I'm not a native speaker) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en