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).
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
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,
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,
where it should contain a reference to android.hardware.sensor.gyroscope.xml, but it is not, you can find a sample code in
without this permission .xls file Android is not able to access the Gyroscope HW libraries
some links about sensor (helpful links)
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.