Re: [android-porting] Re: Android2.3 Sensor APP can't call the sensor HAL lib file!

2013-01-04 Thread ramya mohan
Hi, Please check whether any file in the libsensors directory has a struct defined HAL_MODULE_INFO_SYM... On Friday, November 4, 2011 7:58:01 PM UTC+5:30, sarika baby wrote: > > Hello, > I am trying to a orientation sensor, so for that i created a new file > OrientSensor.cpp and OrientSenso

Re: [android-porting] Re: Android2.3 Sensor APP can't call the sensor HAL lib file!

2011-11-04 Thread sarika baby
Hello, I am trying to a orientation sensor, so for that i created a new file OrientSensor.cpp and OrientSensor.h in mydroid/device/ti/pandaboard/libsensors/ folder ,but while booting i am getting following errors : D/SensorService( 1412): nuSensorService starting... E/SensorService( 1412):coul

[android-porting] Re: Android2.3 Sensor APP can't call the sensor HAL lib file!

2011-11-04 Thread Tommy Lu
Hi all, I changed the Sensor HAL file and compiled it , and it works!! Thanks VCS and other guys! On 11月4日, 下午1时57分, Chinmay V S wrote: > Definitely! > The sensor-lib interfaces have changed starting from Gingerbread(2.3). > > You might want to hav a look at these files for a reference im

Re: [android-porting] Re: Android2.3 Sensor APP can't call the sensor HAL lib file!

2011-11-03 Thread sarika baby
Hello @all, I am trying to implement a magnetic compass using magnetometer and accelerometer device drivers. But here i need to use a sin, cos, atan in order to get the orientation values. Can anyone tell me how can i get them implemented. Because i guess there is no math.h available at kerne

[android-porting] Re: Android2.3 Sensor APP can't call the sensor HAL lib file!

2011-11-03 Thread suman ranjan
Try renaming the name of your sensor HAL to "sensors.default.so" and do a quick test. However, the best thing to check first is inside hw_get_module() function in ./android/hardware/libhardware/hardware.c and see what is being expected here. ~Suman -- unsubscribe: android-porting+unsubscr...@go

[android-porting] Re: Android2.3 Sensor APP can't call the sensor HAL lib file!

2011-11-03 Thread Tommy Lu
Hi CVS; Thanks for you help.I had knew what the problem,the problem is i use the Sensor HAL file if for the Android2.2,so after compiled the HAL lib file ,the system can't call the HAL lib.So i have to rewrite my Sensor HAL file if i want use the sensor in the Android2.3. Thanks again.

Re: [android-porting] Re: Android2.3 Sensor APP can't call the sensor HAL lib file!

2011-11-02 Thread Chinmay V S
The log "couldn't open device for module sensors" means that the sensor "HAL" (sensors.*.so) is NOT being picked-up by the sensorservice. As you correctly noted earlier it is the hw_get_module() function in android/hardware/libhardware/hardware.c that is responsible for the linking with the th

[android-porting] Re: Android2.3 Sensor APP can't call the sensor HAL lib file!

2011-11-02 Thread Tommy Lu
Hi CVS, Thanks again for you reply, in the logcat info ,i find the following error: D/SensorService( 1412): nuSensorService starting... E/SensorService( 1412): couldn't open device for module sensors (Invalid argument) And I followed the error info ,and find the in the SensorDevice.cpp fil

Re: [android-porting] Re: Android2.3 Sensor APP can't call the sensor HAL lib file!

2011-11-01 Thread Chinmay V S
The logs with log-tags "SensorTestOutput" show that the sensor-HAL does NOT report any sensors to be implemented. Looking at the contents of the /system/lib/hw directory, we can see multiple copies of sensor-HAL sensors.goldfish.so sensors.omap4.so sensors.omap4430.so sensors.pandaboard.so The se

[android-porting] Re: Android2.3 Sensor APP can't call the sensor HAL lib file!

2011-11-01 Thread Tommy Lu
Hi Below is my lib files: # ls system/lib/hw/ alsa.omap4.so lights.omap4.sosensors.omap4.so gps.goldfish.sooverlay.omap4.so sensors.omap4430.so gralloc.default.so sensors.goldfish.sosensors.pandaboard.so # Regards Tommy On 10月31日, 下午10时54分, CVS wrote:

[android-porting] Re: Android2.3 Sensor APP can't call the sensor HAL lib file!

2011-11-01 Thread Tommy Lu
Hi CVS; Thanks for your reply,yes ,i am use PandaBoard for develop。 <1>Below is my logcat when boot the sensor test App nameed TI Sensor Test Application: I/ActivityManager( 1412): Starting: Intent { act=android.intent.action.MAIN cat= [android.intent.category.LAUNCHER] flg=0x1020 cmp=sens

[android-porting] Re: Android2.3 Sensor APP can't call the sensor HAL lib file!

2011-10-31 Thread CVS
Hi Tommy, Based on the filename you mention, I am assuming you are developing for the pandaboard. Can you provide the logcat logs from device-boot to sensor-app launch. Logs with log-tag "SENSORS" will be of interest. regards CVS -- unsubscribe: android-porting+unsubscr...@googlegroups.com we