Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8015

General discussion • Re: Pi 5, Bookworm, USB GPS

$
0
0
I've had a USB GPS (model unknown) running on Bookworm; definitely on Pi4, probably Pi5.
According to my notes (which may not have been fully updated from Bullseye) this is what I used:

Configuration file

Code:

# GPSD configuration file# Note: can't have a comment at the end of an "executable" line - move to the next, else the device cannot be opened.START_DAEMON="true"USBAUTO="false"#don't need hotplugging# Devices gpsd should connect to at boot time.# They need to be read/writeable, either by user gpsd or the group dialout.#Enable one only of the following four:#USB serial for direct connection#DEVICES="/dev/ttyACM0"#USB serial adaptorDEVICES="/dev/ttyUSB0"#real serial for normal use#DEVICES="/dev/ttyAMA0"#alternative serial for normal use#DEVICES="/dev/serial0"# Try and set serial port speed:GPSD_OPTIONS="-n -G -s 38400"
Other comments:

Code:

to verify operation, open a console and run ‘gpsmon’ or ‘cgps’. Or ‘xgps’ for a GUI.Should only be needed for USB connection of GPS, but edit the gpsd service file to add a 15-second startup delay [There is a better way somewhere!]:sudo nano /etc/systemd/system/multi-user.target.wants/gpsd.serviceInsert immediately before line beginning “ExecStart=...”:ExecStartPre=/bin/sleep 15Save and exitStart gpsd on boot [may need to be done before editing config file]:sudo systemctl enable gpsdStart it for current use:sudo systemctl start gpsdNote: If using a serial GPS via a USB serial port, by default gpsd goes through an autobaud sequence; this can take several minutes. If practicable, set the initial baud rate to that required.
(My 'final' installation used one of the Pi's serial port to receive NMEA data, including GPS; for testing I used a local GPS some of the time. Most of it is, I think, a simple matter of selecting the right port)

Statistics: Posted by stevend — Sat Mar 22, 2025 9:15 am



Viewing all articles
Browse latest Browse all 8015

Trending Articles