Hi all,
I am integrating Gyroscope(ewtsa driver) to Android.While android is able to recognize the device but data is not coming.
Driver for gyroscope is working fine in my Kernel level.(Able to get the data).
Please tell me what modifications i have to do in my Android HAL for fetching the data in Android.(Though most of the things i have modified in my Android HAL taking reference of Accelerometer sensor which is available in blaze MDP).
My Board is the reference of blaze MDP(Gyroscope sensor is not available in blaze MDP).
Thanks
Abhijit
Abhijit;
This is not a direct answer, but some points to check are:
1. What Android version are you using? in Android 4.0 release notes they mention that gyroscope support was improved,
http://developer.android.com/sdk/android-4.0.html. check that gyroscope code is defined here
/mydroid/hardware/libhardware/tests/nusensors/nusensors.cpp
2. check file ./mydroid/docs/source.android.com/src/compatibility/android-2.3.3-cdd.pdf section "7.3. Sensors" and "7.3.4. Gyroscope"
point #2 check next location, it contains some references to sSensorList[] and enable functions, etc.., check you add\replace files with your sensor code and references,
/mydroid/device/ti/blaze/libsensors
3. Where are you trying to access this sensor? is it owned .apk? maybe related to how sensor is being loaded, access permissions.
it can be from .apk permissions, or system level to use correct .xls
pointing to and L27.IS2,
./mydroid/device/ti/blaze/full_blaze.mk
./mydroid/device/ti/blaze/device.mk
where it should contain a reference to android.hardware.sensor.gyroscope.xml, but it is not, you can find a sample code in
./mydroid/device/ti/blaze_tablet/device.mk
without this permission .xls file Android is not able to access the Gyroscope HW libraries
some links about sensor (helpful links)
http://developer.android.com/guide/topics/sensors/sensors_motion.html
http://developer.android.com/guide/topics/sensors/sensors_motion.html#sensors-motion-gyro
http://developer.android.com/reference/android/hardware/Sensor.html
http://developer.android.com/resources/samples/AccelerometerPlay/AndroidManifest.html
http://omapworld.com/blaze.html
http://omapedia.org/wiki/Sensors_for_OMAP
http://omappedia.org/wiki/Inputs_And_Sensors_Domain_Wiki