0

Increase GPSD capture speed?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Increase GPSD capture speed?

by jamiedixon on Tue Jul 11, 2017 12:31 pm

I am following the article found here: https://learn.adafruit.com/adafruit-ult ... g-your-gps
I am capturing the data at 1 second - the default
How can I capture at the fastest speed (which, I understand to be 10 MZ or 1/10 of a second)?
the GPSD api docs do not say AFAIK

Thanks

jamiedixon
 
Posts: 5
Joined: Tue Jul 04, 2017 9:02 pm

Re: Increase GPSD capture speed?

by adafruit_support_rick on Wed Jul 12, 2017 8:24 am

Don't know much about gpsd, but you can cat this command to the GPS to set it for 10Hz:
$PMTK300,100,0,0,0,0*2C
It needs a <cr><lf> at the end to be processed

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Increase GPSD capture speed?

by jamiedixon on Wed Jul 12, 2017 9:00 am

Yeah - I am searching their list serve (http://lists.nongnu.org/archive/cgi-bin ... sort=score) and someone else had the same issue

Looks like I can't tell the board to speed up the output via their api, so I either have to set it via the command line or figure out how to pass $PMTK300,100,0,0,0,0*2C somewhere in their api

I might make a pull request of an interface of setOutputSpeed(int) and have the 1 implementation that $PMTK300,100,0,0,0,0*2C can pass to the board.

jamiedixon
 
Posts: 5
Joined: Tue Jul 04, 2017 9:02 pm

Re: Increase GPSD capture speed?

by adafruit_support_rick on Wed Jul 12, 2017 3:22 pm

Just use echo from the command line. As long as the backup battery is installed in the GPS, the setting will persist.
Code: Select all | TOGGLE FULL SIZE
echo '$PMTK300,100,0,0,0,0*2C\r\n' > /dev/tty_AMA0

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Increase GPSD capture speed?

by jamiedixon on Wed Jul 12, 2017 3:25 pm

Thanks!

jamiedixon
 
Posts: 5
Joined: Tue Jul 04, 2017 9:02 pm

Please be positive and constructive with your questions and comments.