Hi John,

          The sensor driver is supposed to pass the data to userland through
input susbsystem. For this you will have to register your device with input
susbsystem. As and when the data is ready, use "input_report_abs" function
to push sensor-data to userspace.  Android's Sensor HAL module provides a
"poll" callback for the "sensor_jni" layer to poll for data. The "poll"
function in HAL usually reads data out of the input event device. The upper
layer SensorService and SensorManager java classes make use of the jni calls
to pull data from the device using the HAL functions.

Hope this gives some clarity now and if you need more details, pls let me
know.

Warm Regards,
Anil

On Sun, Jul 18, 2010 at 4:17 AM, John Koshi <ejko...@gmail.com> wrote:

> Hi Danke,
>
> Thanks for the feedback. The sensor will be on the i2c bus.The examples
> do not provide the driver source code, which would clarify the hooks needed
> in the driver in order for the sensor Java API to query/configure the
> sensor.
>
> regards,
> nature lover
>
>
>
> On Wed, Jul 14, 2010 at 9:43 AM, Danke Xie <danke....@gmail.com> wrote:
>
>> Hello,
>>
>> How is the sensor connected to the platform?
>>
>> You can check out kernel/arch/arm/<platform> drivers, and see how
>> other sensors (e.g., camera) are registered to the SoC board.
>>
>> Thanks,
>> Danke
>>
>> On Jul 13, 5:02 pm, nature lover <ejko...@gmail.com> wrote:
>> > Hello,
>> >
>> > Are there kernel developer advocates at Google who can at least point
>> > a new developer to where
>> > to look for information on issues like adding a new sensor device to
>> > an Android platform, etc?
>> > There seems to be no documentation at all about this in any of the
>> > Android web sites/pages.
>>
>> --
>> unsubscribe: 
>> android-kernel+unsubscr...@googlegroups.com<android-kernel%2bunsubscr...@googlegroups.com>
>> website: http://groups.google.com/group/android-kernel
>
>
>  --
> unsubscribe: 
> android-kernel+unsubscr...@googlegroups.com<android-kernel%2bunsubscr...@googlegroups.com>
> website: http://groups.google.com/group/android-kernel
>

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to