HI Vivien, I could not reply you as I was out of station as it was 3 day holiday here.
On Thu, Mar 26, 2009 at 5:38 PM, vivien wu <[email protected]> wrote: > > Hi, Pramod, > > Did you already make your sensor work ? I got them working with some hack around only with android 1.0 sources and not with cupcake. Now I can run a application to show magnetic north(compass) , this is based on YAW angle and games based on accelerometer. I could not get calculations for pitch and roll. So could not get them working. Still trying. > Do you have more than one sensor device and how many sensor devices > you have ? I have two sensors(two different chips). Compass and accelerometer. Which are all you have on your device? > I also want to make my sensor device work and my sensor devices are > more than one. > Could you please share your experience with me ? The android people are coming with new sensors HAL implementation in cupcake. If you cant wait you can work on android 1.0 sensors HAL. I got the android sources and used the hardware/libhardware/sensors/sensors_truot.c for reference. Understand these sources. I will be more than happy to help you if you have any doubts. Let me know the deatils about sensors and what they provide you with. i.e. compass(x,y,z), accelerometer(x,y,z acceleration in g or m/s2), temp, yaw, pitch, roll etc. > Could you please let me know how to get old sensor HAL sources since > it have gone. Checkout release 1.0 android sources from android repo. Ask android list for details. Hope this will help you. Best luck. > Thanks. > > Regards, > Vivien > > On 2月19日, 下午9時33分, pramod gurav <[email protected]> wrote: >> Hi there >> I am trying my hands on sensors HAL in cupcake. As I can see HAL >> implementation >> has changed a lot in cupcake. ThesensorHAL sources have gone from >> hardware/libhardware/. >> I could know that there is space for having asensorHAL module in new >> hardware/libhardware/; >> I referred thesensor.h in cupcake. As far as I could understand there >> is need of asensormodule >> in hardware/libhardware/modules/sensors/ which will initialise the >> structures such as >> sensors_control_device_t, sensors_data_device_t and sensors_module_t, >> I initialised all these with the functions referring oldsensorHAL >> sources and currenr sensors.h files. >> I want to build my sensors HAL mpodule. >> >> when I try to build the sources now, it is not being compiled. I can >> see the overlay library in >> system/lib/hw/overlay.zoom2.so. But no library of my sources. >> The Android.mk in my modules/sensors/ has : >> >> # Copyright 2008 The Android Open Source Project >> >> LOCAL_PATH := $(call my-dir) >> >> # HAL module implemenation, not prelinked and stored in >> # # hw/<SENSORS_HARDWARE_MODULE_ID>.<ro.product.board>.so >> include $(CLEAR_VARS) >> LOCAL_PRELINK_MODULE := false >> LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw >> LOCAL_SHARED_LIBRARIES := liblog >> LOCAL_SRC_FILES := sensors/mysensors.c >> LOCAL_MODULE := sensors.myproject >> include $(BUILD_SHARED_LIBRARY) >> >> Can anyone please suggest me on this? Have anyone tried implementing >> sensors HAL? >> >> -- >> Best Regards >> Pramod > > > -- Best Regards Pramod --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
