[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-users] Using "gpsctl -x" while gpsd is running
From: |
Joshua Quesenberry |
Subject: |
Re: [gpsd-users] Using "gpsctl -x" while gpsd is running |
Date: |
Tue, 18 Jul 2017 22:27:08 -0400 |
Based on testing I'm thinking gpsd is NOT sending out an initial configuration.
If I change the receiver settings and then start gpsd the settings seem to
remain. I am having an issue of config retention after I power reset, but that
appears to be related to the fact the particular receiver being used does not
have FLASH storage for the configuration.
At this point, being able to send commands using gpsctl through gpsd would be
really nice OR gpsd sending a list of user-defined commands on start, but I may
have to go the route of killing gpsd, sending commands using gpsctl, and then
restarting gpsd.
Gary, do you have anything else at this time?
Thanks,
Josh Q
-----Original Message-----
From: Joshua Quesenberry [mailto:address@hidden
Sent: Wednesday, July 12, 2017 8:34 PM
To: 'Gary E. Miller' <address@hidden>; address@hidden
Cc: address@hidden
Subject: RE: [gpsd-users] Using "gpsctl -x" while gpsd is running
Hey Gary!
Interesting... what exactly does gpsd setup when it starts? If I change a bunch
of setting on the uBlox GPS will they all be reset by gpsd?
'\x06\x08\xC8\x00\x01\x00\x01\x00' is just a UBX-CFG-RATE command to set the
rate from 1 Hz to 5 Hz, more of a trial attempt to see if I could actually
setup the GPS using gpsd provided utilities. The end goal will be to send many
commands and save them to the GPS, such that when it is powered back on the
settings remain and gpsd doesn't try to override them. Some settings that need
tweaked are require 3D fix at all time, use the highest performance setting,
don't send out NMEA strings when certain fields are missing, and perhaps
disabling GLONASS to start off with.
I guess I was thinking gpsd only acted as a passive gateway, not changing any
settings, and that it would allow for me to use it to change settings as needed.
Three features that would probably be good to have added to gpsd:
Perhaps gpsd could be modified so that its default commands aren't sent?
And maybe another option to send a list of configuration commands from
/etc/default/gpsd to be sent out on startup?
And some method for gpsctl to send commands using the gpsd connection?
Thanks,
Josh Q
-----Original Message-----
From: gpsd-users [mailto:address@hidden On Behalf Of Gary E. Miller
Sent: Wednesday, July 12, 2017 6:01 PM
To: address@hidden
Subject: Re: [gpsd-users] Using "gpsctl -x" while gpsd is running
Yo Joshua!
On Wed, 12 Jul 2017 17:44:58 -0400
"Joshua Quesenberry" <address@hidden> wrote:
> What if I need to change the type?
gpsd has already autodetermined the type, you can not change it.
> The configuration commands need to
> be UBX, however, the GPS is streaming NMEA.
The first do 'gpsctl -b' to first put the GPS in UBX binary mode.
> I tried your version and your version plus the u-blox type and both
> cause an error:
>
> gpsctl:ERROR: device must be specified for low-level access.
Yeah, I just saw that, looking at a similar question about Adafruit HAT.
I have always just changed the C code, so I totally missed that problem.
You could send your changes before you start gpsd, but as in the Adafruit case,
when you start up gpsd it will just revert what you did.
I'll have to ponder a better general solution. If you are up to some small
code changes I can help you do that.
To give me a broader view, what does '\x06\x08\xC8\x00\x01\x00\x01\x00'
do for you?
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