[android-porting] How to define GPS module in Android?

827 views
Skip to first unread message

osama gamal

unread,
May 17, 2010, 8:27:41 AM5/17/10
to android...@googlegroups.com

I'm porting android to Devkit8000 which is a BeagleBoard clone. I have a GPS module connected on /dev/ttyS0. I could successfully get NMEA output when writing "cat /dev/ttyS0" in the terminal emulator.

I want to know how to let android know that there is a GPS module on /dev/ttyS0 and it is outputting NMEA standard? To be able to use the android.location class with it!

Is there something to edit in the android's source? adding driver for example, writing a code with android-ndk or what?

--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting

卸芮紋

unread,
May 18, 2010, 2:48:16 AM5/18/10
to osam...@gmail.com, android...@googlegroups.com
Dear osama gamal,

Pls refer to this android porting guide for GPS.
http://www.netmite.com/android/mydroid/cupcake/development/pdk/docs/gps.html


Best Regard

nekia

unread,
May 18, 2010, 1:30:03 PM5/18/10
to android-porting
Hi,

You can configure GPS in /etc/gps.conf.

Best regard

On 5月18日, 午後3:48, 卸芮紋 <lvseis...@gmail.com> wrote:
> Dear osama gamal,
>
> Pls refer to this android porting guide for GPS.http://www.netmite.com/android/mydroid/cupcake/development/pdk/docs/g...

osama gamal

unread,
Jun 3, 2010, 11:13:02 PM6/3/10
to 卸芮紋, android...@googlegroups.com
Well, thanks for the link, it is very useful ..
But I have some questions which isn't covered in the documentations:

- Can I use the freerunner gps.h implementation found here: http://gitorious.org/android-on-freerunner/freerunner_platform_hardware_hw/trees/eclair/gps
By copying Android.mk and gps_freerunner.c to vendor/acme/board/gps? or do I have to tweak them to fit my GPS device!

The development kit I'm using is: Devkit8000
The GPS module I'm using is: GPS8000-S

- IF yes, Do I need to edit the vendor/acme/board/Android.mk or BoardConfig.mk??
Is there something needed to tell the make to build the libgps.so library??

I checked the the BoardConfig.mk of HTC Dream source code and found the following line:
BOARD_GPS_LIBRARIES := libgps librpc
Shall I add them to mine too?

Best Regards,
Osama Gamal

osama gamal

unread,
Jun 3, 2010, 11:17:42 PM6/3/10
to android...@googlegroups.com
Well, thanks for the link, it is very useful ..
But I have some questions which isn't covered in the documentations:

- Can I use the freerunner gps.h implementation found here: http://gitorious.org/android-on-freerunner/freerunner_platform_hardware_hw/trees/eclair/gps
By copying Android.mk and gps_freerunner.c to vendor/acme/board/gps? or do I have to tweak them to fit my GPS device!

The development kit I'm using is: Devkit8000
The GPS module I'm using is: GPS8000-S

- IF yes, Do I need to edit the vendor/acme/board/Android.mk or BoardConfig.mk??
Is there something needed to tell the make to build the libgps.so library??

I checked the the BoardConfig.mk of HTC Dream source code and found the following line:
BOARD_GPS_LIBRARIES := libgps librpc
Shall I add them to mine too?

Best Regards,
Osama Gamal

Reply all
Reply to author
Forward
0 new messages