Try this:
sudo apt(space)-y gpsd gpsd-clients
sudo nano /etc/default/gpsd Modify the file or add the following or missing data.
START_DAEMON=(space)”true”
USBAUTO=(space)”true”
DEVICES=(space)”/dev/ttyAMC0” (ZERO) not capital O(oh)
GPSD_OPTIONS=(space)”-n” Of course, don’t use the (space), hit the Space Bar.
Then ctrlO enter ctrlX
Unplug/disconnect the GPS device, then sudo reboot. After reboot, Reconnect GPS device
It will take a while for the GPS module to start feeding info to the RPI. Sometimes up to 12-15 minutes for the very first start. Outside is ideal, but up on a window sill, or near a door with a clear view of the open sky will work. Trees will affect the GPS signals.
The differences between GPS cold start, warm start, and hot start are as follows:
-
Cold Start: The GPS receiver has no prior information, which can lead to a Time to First Fix (TTFF) of up to 12.5 minutes. It requires a complete satellite search.
2
-
Warm Start: The receiver retains some information from the last session, allowing for a TTFF of about 45 seconds. It uses additional data, often from the cell network, to improve positioning speed.
3
-
Hot Start: This is the quickest method, with a TTFF of just a few seconds. The receiver retains nearly all relevant information, including previous position and accurate time, making it the most efficient option.
2
In summary, hot starts are the fastest, followed by warm starts, with cold starts being the slowest due to the lack of prior information.
To see the output of the GPS, from the command prompt: gpsmon , this is raw data. A better display is cgps(space)-s
This configuration works for lots of GPS devices, but I have seen DEVICES=(space) “/dev/ttyUSB0” also. Just be patient, I watched a lot of Utube videos before I found the correct configuration for the GPS to work for me.
I have this setup in my truck, power is a USB port on the rear of the center console. RPI stuck between the rear headrest and back glass. Mag mount antenna on the roof of the truck. Onboard Wifi or cellphone hotspot as an internet connection works great. 2-1/2 years. When I start the truck, the system starts up and just works flawlessly. I feed to Flightaware only, and it shows up just a stationary receiver does, only it’s moving. One problem is, when the GPS uploads a new location while traveling, the RPI automatically reboots, and has to restart. I hope a resolution is found for that.
At one time, I think that was a possible work around by the Flightaware staff, but I don’t know if it is possible.
DO NOT TRY TO VIEW THE PIAWARE MAP ON ANY DEVICE WHILE DRIVING!!!
Hope this helps, KB4ERT…