On Thu, Mar 8, 2012 at 4:10 PM, hano <[email protected]> wrote: > I've read many posts on this topic and it appears there is no way to > do it in android. I need to get a sensor's value at regular > intervals. From my tests on the eventlistener, the values do not > arrive consistently. And even set to max update frequency (zero > milliseconds) the best I've seen is around 11 or 12 milliseconds > between updates (orientation sensor, for example). That is only about > 75 hz. I need upwards of 250 hz. Does anybody know of a way to get > at the sensors directly?
You don't, except perhaps via custom firmware. > If not, does anybody know if the iPhone iOS > can do it? Possibly, but this has nothing whatsoever to do with this list. > Ultimately, I am > wanting to integrate custom medical sensors, like EEG and ECG. Those are not sensors, in Android's use of the term. If you look at SensorManager and related classes, you will notice that neither EEG nor ECG appear there. EEG and ECG have nothing whatsoever to do with the accelerometer, gyroscope, or any of the other standard sensors. > Anybody have ideas how to do that? Use USB, Bluetooth, or WiFi, whichever your "custom medical sensors" support. Or, write your own custom firmware with direct hooks to your hardware (connected via soldering iron, I guess) and your own SDK add-on with an API for accessing said hardware, though this particular subject is out of scope for this list. You would want to visit http://source.android.com for more on this topic. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 4.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

