Integrating another Sensor with MPU9150 Android HAL

By vgeouywvs , 13 February 2013

Hi,

I have integrated MPU9150 Android libsensors HAL into Android ICS for a custom board based on OMAP4. Accel/Gyro/Compass is working.
On my board I have one more sensor, temperature sensor. Which I want to integrate with the existing HAL.

I have added a .cpp & .h file part of libsensors & I am able to read the events from the corresponding input dev entry using this HAL implementation. But I am not able to receive the data in the application.

I debugged & understood that, there is a struct hal_output & inv_build_* & some Handler s(gyroHandler,acclHandler & so) for all three sensors. Thro' which data is being passed to the upper layer. Am I wrong?

I have the source control for those files, but not build access.
Because when I downloaded the source I got the prebuilt binaries of libmllite & libmplmpu.so which is actually built from the files that is responsible sending data to the upper layer. Hence other 3 sensors are working, not my temperature sensor.

Now how do I go about it. I can have access to build it / is there some other way to integrate it.

Any ideas/inputs?

Thanks in advance.

Regards,
Ramya.

phpbb Topic ID
15063