Re: [android-porting] Serial NMEA GPS support in libhardware_leagcy

535 views
Skip to first unread message

keodouang...@neuf.fr

unread,
Oct 27, 2014, 9:45:42 AM10/27/14
to ApriOri, android...@googlegroups.com

Well, being able tout read/write from/to the legacy device through the Serial port doesn't mean that the système recognizes  the device, instead you need to add the support handling to the GPS service, un order, for the system to recognizes the device and notifies through the framework messages as part of the GPS service.

Send on my android mobile.



____________________

De : ApriOri
Date : 26 octobre 2014 21h19
À : android...@googlegroups.com
Cc :
Objet : [android-porting] Serial NMEA GPS support in libhardware_leagcy

Hello.
I have a standard GPS device that I connect to my hardware using a serial port.
I'm able to read NMEA data from /dev/ttyXX but it seems that Android does not pick up the data from the serial port,
I configure it with setprop ro.kernel.android.gps=/dev/ttyXX and gps.baud=38400
Still it seems that android ignore the gps data ( no gps icon in the notification drawer, it is enabled in the location settings)

My build has no libgps.so and I was wondering if any special build steps are required in AOSP to enable GPS support.
Regards.

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

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porti...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ApriOri

unread,
Oct 27, 2014, 11:24:21 AM10/27/14
to android...@googlegroups.com, orir...@gmail.com, ck...@neuf.fr
Thank you.
It seems that some level of support for serial GPS device is already included in the AOSP code since android already provides  ro.kernel.android.gps and ro.kernel.android.gps.baud.
What is the meaning of these parameters?
Does it means that I still have to write the HAL part of the GPS ? even that it's a standard Serial port communication?

ckkeo

unread,
Oct 27, 2014, 12:05:11 PM10/27/14
to ApriOri, android...@googlegroups.com
Indeed, The properties (ro.kernel.android.gps and ro.kernel.android.gps.baud) allow you to set easily the I/O of the device.
Even though, you still need the HAL native part, in order, to notify the GPS service via its JNI implementation on the GPS activities.

Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection Antivirus avast! est active.


Reply all
Reply to author
Forward
0 new messages