Al Johnson <[email protected]> writes: > On Monday 31 January 2011, Neil Jerram wrote: >> >> 1. Someone with a SHR-T toolchain could change (in gpspipe.c) >> >> case 'r': >> raw = true; >> /* >> * Yes, -r invokes NMEA mode rather than proper raw mode. >> * This emulates the behavior under the old protocol. >> */ >> flags |= WATCH_NMEA; >> >> to >> >> case 'r': >> raw = true; >> /* >> * Yes, -r invokes NMEA mode rather than proper raw mode. >> * This emulates the behavior under the old protocol. >> */ >> flags |= WATCH_NMEA | WATCH_OLDSTYLE; >> >> and provide an updated gps-utils package. I will try to revive my >> toolchain, but it'll probably take a while so it would be great if >> someone else beats me to it! > > Good catch. This should go upstream too since support for the old protocol is > nominally present if deprecated. I'm assuming this fix doesn't break it for > servers using the new protocol.
Well, I'll try, after I've been able to confirm the fix first.
>> 2. Someone good with Python or shell script could modify BtGPS.py to use
>> "nc localhost 2947" instead of "gpspipe -r". The slightly tricky thing
>> about this is needing to feed "r+" as input. A simple echo doesn't work
>> for this, because nc exits when its stdin closes. I think it needs an
>> input pipe that stays open after providing "r+".
>
> Fixing gpspipe is better.
OK, if upstream is interested.
> There's another option too. Update fso-gpsd to speak the new gpsd protocol as
> support for the old one is due to disappear with the 3.0 release.
That strikes me as a lot of work. If someone wanted to invest that
amount of work, I think it would be better to work on gpsd, and to solve
the issues that currently prevent it from being a drop-in replacement
for ogpsd + fso-gpsd. (i.e. (1) automatic resource management and (2)
providing the Gypsy dbus interface).
But before any of that, some good news. The attached shell script
(gpspipex) is a drop-in replacement for gpspipe, and if I just replace
"gpspipe" with "gpspipex" everywhere in /usr/bin/BtGPS.py, I find that
the GPS relay to my N800 works. Joachim, you may like to try this too.
Many thanks, Joachim and Al, for your input and help on this thread.
Regards,
Neil
gpspipex
Description: Binary data
_______________________________________________ Shr-User mailing list [email protected] http://lists.shr-project.org/mailman/listinfo/shr-user
