invensense proprietary sensor driver, HAL api, Nexus grouper

369 views
Skip to first unread message

gatis paeglis

unread,
Sep 1, 2013, 5:08:02 PM9/1/13
to android-...@googlegroups.com
Hello,

I have been utilizing HAL API in my project, everything seems to work fine, except the sensors calibration seems to be a bit off..

This is the output from logcat:

E/Sensors (  325): HAL:enable_sysfs_sensor - write 1 returned -1 (Device or resource busy / 16)
E/MPL-storeload(  325): Cannot open file "/data/inv_cal_data.bin" for read
E/MPL-storeload(  325): Could not load cal file - aborting
E/MPL-storeload(  325): Could not load the calibration data - error 107 - aborting
E/Sensors (  325): Warning: Accelerometer load calibration config fail 32
E/Sensors (  325): HAL:read fails with error code=-1
E/Sensors (  325): HAL:error reading gyro temperature
E/Sensors (  325): HAL:read fails with error code=-1
E/Sensors (  325): HAL:error reading gyro temperature
E/Sensors (  325): HAL:read fails with error code=-1
E/Sensors (  325): HAL:error reading gyro temperature


I see that these message are coming from android/hardware/invensense/mlsdk library. Could anyone share some info with me, what is this library and
what could be going wrong? Thanks.

Gatis.

yuanwei-204

unread,
Sep 2, 2013, 11:36:38 PM9/2/13
to android-platform
Hi .
log : Cannot open file "/data/inv_cal_data.bin" for read
it means that you need a calibration file in  "/data/"
 
 

yuanwei-204
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To post to this group, send email to android-...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/groups/opt_out.

gatis paeglis

unread,
Sep 3, 2013, 3:53:08 AM9/3/13
to android-...@googlegroups.com
Do you know that or its just a guess? I don't remember removing any files by that name.. From my understanding the calibration data are generated during run-time by "mlsdk" library, including "inv_cal_data.bin", but since something seems to fail [1], this file never gets generated and etc.


[1] HAL:enable_sysfs_sensor - write 1 returned -1 (Device or resource busy / 16)

On Tuesday, September 3, 2013 5:36:38 AM UTC+2, yuanw...@163.com wrote:


gatis paeglis

unread,
Sep 18, 2013, 4:15:36 AM9/18/13
to android-...@googlegroups.com
The issue was the proprietary binary "system/bin/sensors-config" was missing.
Reply all
Reply to author
Forward
0 new messages