On Wed 10 Feb 2010 10:19, Robin Getz pondered:
> On Tue 9 Feb 2010 20:48, Lance Nanek pondered:
> > This mentions the accelerometer:
> > http://pdk.android.com/online-pdk/guide/sensors.html
> 
> Thanks - that helps, but - I'm to understand that there is no 
> kernel/userspace 
> API standard for sensors, and that every device manufacture is on their own 
> to make up something themselves, and create their 
> own /system/lib/libsensors.so?
> 
> Poking around I found some qemu sensor files that people seem to base things 
> from? but no "this is the example that runs on hardware" to say what the 
> defacto kernel/userspace API is...

OK - for anyone else looking - I found:

http://gitorious.org/android-on-freerunner/platform_hardware_libhardware/commit/2b5690253dbc4c0be9d05ba15222be3dcb44696a

http://android.git.kernel.org/?p=platform/hardware/libhardware.git;a=blob;f=sensors/sensors_trout.c;h=f3c0b3a51c948291ea8060c650d6be078cedf004;hb=d6054a36475b5ff502b4af78f7d272a713c1a8e7

Any other examples are appreciated.

-Robin



> > On Feb 9, 2:48 pm, Robin Getz <[email protected]> wrote:
> > > On Fri 5 Feb 2010 11:45, Robin Getz pondered:
> > >
> > > > Where is an example of an accelerometer driver that properly connects
> > > > to the android sensor event API?
> > >
> > > >http://developer.android.com/reference/android/hardware/SensorEvent.html
> > >
> > > > We have an accelerometer 
> driver -http://patchwork.kernel.org/patch/53645/
> > > > but I expect that it doesn't expose things in /dev the way that the
> > > > rest of Android wants it to - so it isn't going to work. I would like
> > > > to understand what the "standard" is...
> > >
> > > > Any pointers appreciated.
> > >
> > > Trying android-developers, since android-kernel seems a little dead...
> > >
> > > Thanks
> > > -Robin
> > 
> 

-- 
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

Reply via email to