Kismet Wireless

Kismet Forums


Posted by:thirteen37 quirks
Date:02:48:24 03/10/2007

> Kismet gpsd sends a newline.
> const char gpsd_command[] = "PAVMH\n";

And also a null, if I'm not mistaken, since

if (write(sock, gpsd_command, sizeof(gpsd_command)) < 0) {

would send 7 bytes. strlen might work better. In any case, the gpsd docs don't mention what to do with the null, or other unknown commands, for that matter.

And there's still the issue of expecting a null-terminated string (or 1024 bytes) in the results instead of a CR/LF.

> I've yet to see good documentation on gpsd, nor multiple versions of gpsd which agree on what they support. Newcore is moving away from gpsd - support will be there if someone really wants it, but so will direct serial support and a gpsd emulation server.

I'm sorry to hear that. Such a decision seems rather excessive though. Won't it be easier to work with the gpsd team on standardizing the interface than to reinvent the wheel and take on various compatibility issues interfacing with the GPS hardware directly?

Just my 2c.

Reply to this message