[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] writing commands to the gps
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-dev] writing commands to the gps |
Date: |
Thu, 30 Aug 2018 12:02:29 -0700 |
Yo Felipe!
On Thu, 30 Aug 2018 11:34:50 +0200
Felipe Gutierrez <address@hidden> wrote:
> I have a Module u-blox NEO 6M on my raspberry Pi B3. I think the
> driver it is using is the ubx [1] (I don't know how to reference the
> source code from [2]). My first guess was to look at the "write"
> functions, like ubx_write, gpsd_write.
Those are the low-level functions, look to the functions that call those
functions. Like ubx_event_hook().
But gpsd does not send a lot to a GPS, it expect the GPS is in a good
factory default configuration.
> I also don't know how to see the commands on the debug mode. I
> changed the gpsd initiation for Debug level 3 "gpsd -n /dev/serial0
> -D3 -F /var/run/gpsd.sock", but where can I see the debug messages?
You missed the -N flag. Try something like thisL
# gpsd -nND3 /dev/serial0
There will be a lot to see, the messages you want start like this:
=> GPS: UBX
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
address@hidden Tel:+1 541 382 8588
Veritas liberabit vos. -- Quid est veritas?
"If you can’t measure it, you can’t improve it." - Lord Kelvin
pgpJID3B1cEIj.pgp
Description: OpenPGP digital signature