It seems that the trouble I mentioned I was still having after solving the basic problem of getting serial data was probably related to the struggle leading up to finding the previously mentioned solution.
I think I somehow stumbled into a situation where there was some contention behind the scenes for access to the serial port. I was seeing weird things like, when using cat /dev/serial0 to check on serial data, the data would only go for a a few seconds, or maybe a minute or two, then it would just stop on its own.
I'm guessing problem started when I went into the Raspberry Pi Configuration Preferences panel (not raspi-config) and experimented with turning on both the Serial Port and Serial Console options at the same time. Running raspi-config once more after having (wrongly!) done that, and following the usual recommended steps (turn off login shell via serial, leave serial port enabled) restored my Pi 5 to a healthier condition where gpsd could function properly and reliably.
Oh, and by the way, it seems that using Raspberry Pi Configuration Preferences removed lines I added to config.txt myself, and that I was much better off adding only the single line:
...immediately following the line dtparam=uart0=on which was at the very end of config.txt.
I think I somehow stumbled into a situation where there was some contention behind the scenes for access to the serial port. I was seeing weird things like, when using cat /dev/serial0 to check on serial data, the data would only go for a a few seconds, or maybe a minute or two, then it would just stop on its own.
I'm guessing problem started when I went into the Raspberry Pi Configuration Preferences panel (not raspi-config) and experimented with turning on both the Serial Port and Serial Console options at the same time. Running raspi-config once more after having (wrongly!) done that, and following the usual recommended steps (turn off login shell via serial, leave serial port enabled) restored my Pi 5 to a healthier condition where gpsd could function properly and reliably.
Oh, and by the way, it seems that using Raspberry Pi Configuration Preferences removed lines I added to config.txt myself, and that I was much better off adding only the single line:
Code:
dtparam=uart0_consoleStatistics: Posted by kshetline — Thu Feb 13, 2025 6:17 am