Thanks for the advice, but if I do what you say, it stops working.
All the instructions say as they confirm, but what should I do.
If I set the ttyAMA0 console to OFF, the entry in the cmdline.txt is no longer present and the GPS procedure no longer runs on the next restart.
Only when I use exactly the following settings, everything works:
Serial/UART
Toggle console
ttyS0 condole = OFF
ttyAMA0 console = ON
Toggle device
ttyS0 (mini UART) = ON
Iβm a little confused about ttyS0 (mini UART), isnβt that the 3-pin connector that is only on the RPi 5?
I then have to stop and deactivate serial-getty@ttyAMA0.service, restart the gpsd.service and then cgps or gpsmon work perfectly.
As you can see, I can only explain everything in very laymanβs terms, but it is what it is.
The GPS module used is a Waveshare LC29H(AA) Hat.
Here is some information about the system:
chronyc sources
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
#* PPS0 0 4 377 24 -531ns[-1840ns] +/- 86ns
#? GPS 0 4 377 24 +14ms[ +14ms] +/- 200ms
^- 130.162.222.153 2 10 377 725 +377us[ +271us] +/- 9521us
^- cloudrouter.1in1.net 2 10 377 798 +1466us[+1328us] +/- 52ms
^- where-you.at 2 10 377 837 +1306us[+1151us] +/- 51ms
^- time1.uni-paderborn.de 2 10 377 592 -2254us[-2299us] +/- 25ms
chronyc sourcestats
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
==============================================================================
PPS0 6 3 79 -0.007 0.065 -4ns 501ns
GPS 6 3 77 +7.313 154.208 +13ms 1158us
130.162.222.153 35 21 175m -0.053 0.070 +35us 380us
cloudrouter.1in1.net 37 16 174m -0.224 0.162 +56us 894us
where-you.at 37 22 173m -0.210 0.177 +581us 971us
time1.uni-paderborn.de 23 14 125m -0.134 0.109 -2967us 272us
chronyc tracking
Reference ID : 50505330 (PPS0)
Stratum : 1
Ref time (UTC) : Thu May 08 18:37:43 2025
System time : 0.000000000 seconds fast of NTP time
Last offset : -0.000000710 seconds
RMS offset : 0.000002546 seconds
Frequency : 19.773 ppm fast
Residual freq : -0.002 ppm
Skew : 0.053 ppm
Root delay : 0.000000001 seconds
Root dispersion : 0.000025561 seconds
Update interval : 16.0 seconds
Leap status : Normal
| Time: 2025-05-08T18:53:18.000Z (0) ββGNSS PRN Elev Azim SNR Useβ
β Latitude: XX.XXXXXXXX N ββGP 3 3 27.0 111.0 39.0 Y β
β Longitude: XX.XXXXXXXX E ββGP 4 4 67.0 69.0 33.0 Y β
β Alt (HAE, MSL): 81.790, 36.818 m ββGP 6 6 57.0 270.0 19.0 Y β
β Speed: 0.31 km/h ββGP 9 9 74.0 237.0 16.0 Y β
β Track (true, var): 315.9, 4.0 deg ββGP 26 26 14.0 62.0 30.0 Y β
β Climb: -0.36 m/min ββSB126 39 19.0 38.0 21.0 Y β
β Status: 3D DGPS FIX (17 secs) ββSB147 60 5.0 109.0 30.0 Y β
β Long Err (XDOP, EPX): 1.06, +/- 4.0 m ββGL 9 73 6.0 141.0 16.0 Y β
β Lat Err (YDOP, EPY): 0.81, +/- 3.0 m ββGL 16 80 30.0 91.0 17.0 Y β
β Alt Err (VDOP, EPV): 0.70, +/- 4.0 m ββGL 7 71 60.0 286.0 20.0 N β
β 2D Err (HDOP, CEP): 0.72, +/- 3.4 m ββGL 8 72 12.0 263.0 14.0 N β
β 3D Err (PDOP, SEP): 1.00, +/- 4.8 m ββGL 21 85 17.0 194.0 0.0 N β
β Time Err (TDOP): 1.29 ββGA 2 302 7.0 12.0 0.0 N β
β Geo Err (GDOP): 2.49 ββGA 7 307 25.0 61.0 39.0 N β
β ECEF X, VX: n/a n/a ββGA 7 307 25.0 61.0 36.0 N β
β ECEF Y, VY: n/a n/a ββGA 10 310 29.0 314.0 0.0 N β
β ECEF Z, VZ: n/a n/a ββGA 11 311 5.0 325.0 0.0 N β
β Speed Err (EPS): +/- 28.5 km/h ββGA 12 312 50.0 296.0 12.0 N β
β Track Err (EPD): n/a ββGA 19 319 48.0 232.0 17.0 N β
β Time offset: 0.222295040 s ββGA 19 319 48.0 232.0 18.0 N β
β Grid Square: JO62nn14 ββGA 26 326 12.0 161.0 0.0 N |
|Time: 2025-05-08T18:54:37.000Z Lat: XX XX.XXXXXX' N Lon: XX XX.XXXXXX' E β
ββββββββββββββββββββββββββββββββββ Cooked TPV ββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β GNRMC GNVTG GNGGA GNGSA GPGSV GLGSV GAGSV GBGSV GNGLL β
ββββββββββββββββββββββββββββββββββ Sentences βββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SVID PRN Az El SN HUβTime: 185437.000 βTime: 185437.000 β
βGP 3 3 111 27 39 YβLatitude: XXXX.XXXXXX N βLatitude: XXXX.XXXXXX β
βGP 4 4 69 67 35 YβLongitude: XXXX.XXXXXX E βLongitude: XXXX.XXXXXX β
βGP 6 6 270 57 18 YβSpeed: 0.27 βAltitude: 36.705 β
βGP 9 9 237 74 18 YβCourse: 35.69 βQuality: 2 Sats: 42 β
βGP 26 26 62 14 34 YβStatus: A FAA:D βHDOP: 0.71 β
βSB126 39 38 19 18 YβMagVar: βGeoid: 44.97 β
βSB147 60 109 5 30 Yββββββββββ RMC βββββββββββββββββββββββ GGA βββββββββββββ
βGL 9 73 140 7 17 Yββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βGL 16 80 90 31 17 YβMode: A3 Sats: 3 4 6 9 + βUTC: RMS: β
βGL 6 70 52 59 0 NβDOP H=0.71 V=0.69 P=0.99 βMAJ: MIN: β
βGL 7 71 288 61 16 NβTOFF: 0.093029292 βORI: LAT: β
βGL 8 72 264 13 0 NβPPS: -0.000000574 βLON: ALT: |
You know your system inside out, could it possibly be a problem with the module, which has peculiarities?
As long as I donβt have to reboot, the world is fine for me. I could live with βmy" workarount, but it would be nicer if there was a permanent solution.
Can I provide any further information?
If so, please with exact instructions on what I should do.
Thanks again for your time!
Edit: Since I was a little unsure about my statements, I set the ttyAMA0 console back to OFF, rebooted and lo and behold, no more output from cgps or gpsmon.
Then I set the ttyAMA0 console back to ON and rebooted. I had to run the workaround with serial-getty@ttyAMA0.service again, restart gpsd and everything works as it should.