[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] GPSd with Broadcom bcm4752
From: |
amacias |
Subject: |
[gpsd-dev] GPSd with Broadcom bcm4752 |
Date: |
Tue, 17 May 2016 12:54:18 +0200 |
User-agent: |
Roundcube Webmail |
Hi GPSd people,
I've been working on an Android/Ubuntu 14 (Desktop) dual boot tablet.
The GPS was a big problem because Broadcom's code is not free and for
Android we only had the binary "gpsd" service.
That "gpsd" service is NOT your GPSd, is a software like Gllin for
OpenMoko http://wiki.openmoko.org/wiki/Gllin#Using_gpsd_with_gllin
Is a software that reads binay data from /dev/ttyMFD1 and gives to you
NMEA data in a socket (similar to /tmp/nmeaNP in Gllin).
So my solution was to start the Android's "gpsd" in a "chrooted" Android
and then start GPSd using that socket as the device.
BUT I had to change some code in GPSd because when you read NMEA data
from the device you assume that the "read" call may return one (and only
one) NMEA string. And in my case, the "read" call reads more than one
NMEA string, so I had to change the code to split the strings each time
a "\n" is detected.
Patch file attached. This patch applies on GPSd 3.9-3 (Ubuntu 14).
I've added a "-t" parameter to read the data as "text" instead of
"binary".
Thank you and best regards!
01_bcm4752.patch
Description: Text Data
- [gpsd-dev] GPSd with Broadcom bcm4752,
amacias <=