davetelling
I'm trying to use a GPS dongle to keep the system clock in sync when using FT-8 in the field. I was able to do this in the past, but did the latest system update, and although gpsd shows that the dongle is being read, and GPS data are available, and I've edited the config files to use the GPS (it is titled NMEA in chrony config file), I can never get chrony to use the GPS data, even if I turn off network access in an effort to force it to use the GPS time. I'm kind of stuck - has anyone done a successful implementation of this? My GPS is a ublox-7 based system.
JReed
 
I did a fresh FW install on my POTA box Quadra to get rid of all the Chrony stuff and and re-installed all the Apps from the installer. I can happily say that Conky works like a charm! 
 
Now I am thinking of picking up another dongle for the shack Quadra to act as a back up time source in the event that internet/ power goes out. I can switch to battery and not miss a beat.
Reply 0 0
kjsejkora
davetelling wrote:
I'm trying to use a GPS dongle to keep the system clock in sync when using FT-8 in the field. I was able to do this in the past, but did the latest system update, and although gpsd shows that the dongle is being read, and GPS data are available, and I've edited the config files to use the GPS (it is titled NMEA in chrony config file), I can never get chrony to use the GPS data, even if I turn off network access in an effort to force it to use the GPS time. I'm kind of stuck - has anyone done a successful implementation of this? My GPS is a ublox-7 based system.

Hi Dave,
I'm also using a ublox-7 GPS module, but still can't get it to work with Ham Apps.  I know the GPS has a satellite lock, as the red PPS LED is flashing.  Were you able to get resolution to your issue and get your ublox-7 module working to provide location information and time synchronization?  Thanks for any insights you can provide.
Ken -- WBØOCV
 
Reply 0 0
Michael Burmeister-Brown inovato
Have you tried just installing Conky using our Ham Apps Installer?  It does all the setup needed for the GPS for both location and time sync.  It is important to connect your GPS, reboot, and then run the installer for Conky.  I have tested with both VK-162 and VK-172 modules as well as internal IC-705 GPS.  
 
Note that it will only time sync via GPS if booted without network access.  Just turning off the network will not force GPS time sync. 
Reply 0 0
kjsejkora
Thank you for the quick reply, Michael, and for such a useful set of ham radio utilities.  Yes, I did perform the steps described in an earlier post... that is, I powered the Quadra down, connected the GPS dongle to one of the USB ports, powered up the Quadra and logged in, re-installed Conky from the Ham Apps update installer, and rebooted the Quadra.  Conky does run, and displays my call sign and other related info in the side panel, but states the no GPS fix is available. At this point, I'm not particularly interested in time sync data as I am in getting NMEA strigns passing from the GPS dongle to the Quadra.
 
When Conky runs and launches the GPS, is it expecting a certain baud rate for the device attached as ttyACM0?  My GPS receiver is not the VK-162, but instead is a receiver simlar to this one:
 
 
The device works fine in Windows, and the flashing PPS LED when connected to the Quadra indicates it is getting a valid GPS lock.  However, no NMEA strings appear to be coming through.  I welcome any suggestinons.  Thanks again.
Ken -- WBØOCV
Reply 0 0
Michael Burmeister-Brown inovato
Try these commands and let me know what you see.  Screenshots would be helpful if convenient.  
 
gpsmon
 
And:
 
gpspipe - w | grep lon
 
The first command will show lots of satellite data including lat/lon if available.
 
The latter command will print out any live strings that contain longitude data.
 
If these both show position data, then the problem is in the Python script I wrote to get the data (/usr/local/bin/get_gps if you want to take a look).  If not, then the problem is in gpsd setup somewhere. 
 
 
Reply 0 0
kjsejkora
Thanks Michael.  However, no joy in Mudville.  My GPS dongle has two data ports, a dedicated micro-USB for configuring and controlling the device, but that port can also output NMEA data.  The second data port is just that, a TTL-level com port that just dumps out NMEA strings.  Originally I had been trying to use the micro-USB programming port, but I reconfigured things with a TTL-to-Serial converter set for 9600 baud.  When I checked that configuration on Windows with a terminal emulator, the GPS receiver fired right up and started dumping out valid NMEA data strings.  When I connected the TTL converter to the Quadra, I'm still not getting any NMEA strings coming across.  Attached is a crude screenshot taken with my cellphone of the outputs of the gpsmon command I ran.  When I ran the gpspipe command and piped the output to grep, it produced no records on the screen, just a blank cursor.  If I ran the gpspipe -w command stand-alone without piping to grep, I received the same set of messages produced by the gpsmon command.  And, yes, before I reconected the GPS receiver/TTL-Serial configuration, I powered off the Quadra, connected the GPS, restored power, re-installed Conky with the new GPS/TTL-Serial running, rebooted the Quadra, but still no luck.
Thanks for any insights you might have.  Ken -- WBØOCV
 
 
Reply 0 0
Michael Burmeister-Brown inovato
I am not sure what to tell you with that device as I don't have it.  Maybe pick up a compatible GPS for use with the Quadra?  I like the VK-162 as it has a fairly long cable so easier to run outside.  It also seems to do a good job of picking up signals even indoors.
Reply 0 0
kjsejkora
Thanks Michael.  I originally bought this GPS dongle to provide a precision PPS for timing synchronization for Windows if I lose internet access, so I'll redeploy it for its intended purpose.  I'll look into the VK-162, as it is reasonably priced and supported by Conky. It doesn't appear that the VK-162 easily provides for a precision PPS signal, but I think the ublox-7 engine in the VK-162 is capable of providing PPS.  One website I found suggested that it is possible to configure devices such as the VK-162 to route the PPS pulse to the DCD line, and use that to 'trigger' the PPS requirements of time-keeping programs.
 
Thanks again for all of your efforts.  Ken -- WBØOCV
Reply 0 0
kjsejkora
I was able to finally get the GPS module to pass coordinates to Conky.  I used the command ls /dev/tty* to determine which device address was being used by the GPS module.  In my case, it ended up being /dev/ttyUSB0 instead of the /dev/ttyACM0 specified by the 'default' gpsd configuation file.  I also had to tweak a few settings in the /etc/default/gpsd configuration file as described in this liked article:
 
 
Specifcally, here is the modified gpsd configuration file that worked for me:
 
# Default settings for the gpsd init script and the hotplug wrapper.# Start the gpsd daemon automatically at boot timeSTART_DAEMON="false"# Use USB hotplugging to add new USB devices automatically to the daemonUSBAUTO="true"# Devices gpsd should collect to at boot time.# They need to be read/writeable, either by user gpsd or the group dialout.DEVICES="/dev/ttyUSB0"# Other options you want to pass to gpsdGPSD_OPTIONS="-n -G -b"GPSD_SOCKET="/var/run/gpsd.sock"#end of file gpsd
Perhaps this will work for others trying to get other GPS modules to work with Conky.
 
Ken Sejkora -- WBØOCV
 
Reply 1 0
Michael Burmeister-Brown inovato
Great!  Thanks for sharing your results!
Reply 0 0
Mordan42
I was able to finally get the GPS module to pass coordinates to Conky.  I used the command ls /dev/tty* to determine which device address was being used by the GPS module.  In my case, it ended up being /dev/ttyUSB0 instead of the /dev/ttyACM0 specified by the 'default' gpsd configuation file.  I also had to tweak a few settings in the /etc/default/gpsd configuration file as described in this liked article:
 
 
Specifcally, here is the modified gpsd configuration file that worked for me:
 
# Default settings for the gpsd init script and the hotplug wrapper.# Start the gpsd daemon automatically at boot timeSTART_DAEMON="false"# Use USB hotplugging to add new USB devices automatically to the daemonUSBAUTO="true"# Devices gpsd should collect to at boot time.# They need to be read/writeable, either by user gpsd or the group dialout.DEVICES="/dev/ttyUSB0"# Other options you want to pass to gpsdGPSD_OPTIONS="-n -G -b"GPSD_SOCKET="/var/run/gpsd.sock"#end of file gpsd
Perhaps this will work for others trying to get other GPS modules to work with Conky.
 
Ken Sejkora -- WBØOCV
 
Oh thank God. I was having all the same issues...with the BU-353. Somehow I never came across that article. Much obliged!!!!! 73 de AD5MO
Reply 0 0
Reply