Anil,

Thanks a lot for the info. There also appear to be several ioctls that are
specific to Android, which need to be implemented in the driver. Also, I
did not find any references to a way to configure register settings in  the
sensor during or after bring-up, or to enable specific modes of operation
of a sensor, if it has such a capability.

I was hoping there would be one or more documents published that would
cover all the aspects of this issue.

Thanks again,
nature lover

.
On Sun, Jul 18, 2010 at 9:52 PM, Anil Sasidharan <[email protected]> wrote:

> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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: 
>>> [email protected]<android-kernel%[email protected]>
>>> website: http://groups.google.com/group/android-kernel
>>
>>
>> --
>> unsubscribe: 
>> [email protected]<android-kernel%[email protected]>
>> website: http://groups.google.com/group/android-kernel
>>
>
> --
>  unsubscribe: 
> [email protected]<android-kernel%[email protected]>
> website: http://groups.google.com/group/android-kernel
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to