Hello!

I am trying to get android gps system working. I have a gps module
which output NMEA format data. It is connected to my devboard through
USB and I use standard ftdi driver. It creates /dev/ttyUSB0 interface.
Output speed of gps data is 4800, I change to it with busybox stty -F /
dev/ttyUSB0 4800 from 115200. I downloaded freerunner nmea gps parser
that implements gps.h. Then i put the source file (fr_gps.c) of parser
to

$android/src/hardware/mx5x/libgps/

directory with Android.mk file

LOCAL_PATH := $(call my-dir)
ifneq ($(TARGET_PRODUCT),sim)
# HAL module implemenation, not prelinked and stored in
# hw/<GPS_HARDWARE_MODULE_ID>.<ro.hardware>.so
        include $(CLEAR_VARS)
        LOCAL_PRELINK_MODULE := false
        LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
        LOCAL_SHARED_LIBRARIES := liblog libcutils libhardware
        LOCAL_SRC_FILES := gps_freerunner.c
        #LOCAL_SRC_FILES += gps.c
        LOCAL_MODULE := gps.default
        LOCAL_MODULE_TAGS := eng
        include $(BUILD_SHARED_LIBRARY)
   # endif
endif

after compilation i put gps.default.so to

/system/lib/hw

directory and reboot my android. But any map application shows "GPS
disabled couldnt get location".
I didnt set BOARD_GPS_LIBRARIES in BoardConfig.mk. greping all files
in source tree I didnt find any file that using it. In source file of
parser I see LOGD messages but logcat didnt show anything. Could
anybody put me on right way, give some advices? googling through web
gives me fractional information about this.

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to