Hi,
I have Bullseye on a pi zero w, stock Rasp bullseys updated and gpsd installed. I set the following in /etc/default/gpsd
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES=""
DEVICES="/dev/ttyACM0"
# Other options you want to pass to gpsd
GPSD_OPTIONS=""
GPSD_OPTIONS="-n --listenany -D 255"
# Start the gpsd daemon automatically at boot time
START_DAEMON="true"
# Automatically hot add/remove USB GPS devices via gpsdctl
USBAUTO="true"
Despite the --listenany (also tried -G) the gpsd process only listens on the localhost:
root@navigator:/usr/local/src/gpsd-3.9# ps -ef | grep gpsd
gpsd 9744 1 3 20:38 ? 00:00:26 /usr/sbin/gpsd -n --listenany -D 255 /dev/ttyACM0
root 9819 2195 0 20:52 pts/0 00:00:00 grep gpsd
root@navigator:/usr/local/src/gpsd-3.9# lsof -p 9744
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
gpsd 9744 gpsd cwd DIR 179,2 4096 2 /
gpsd 9744 gpsd rtd DIR 179,2 4096 2 /
gpsd 9744 gpsd txt REG 179,2 553192 34802 /usr/sbin/gpsd
gpsd 9744 gpsd mem REG 179,2 42628 3593 /usr/lib/arm-linux-gnueabihf/libnss_files-2.31.so
gpsd 9744 gpsd mem REG 179,2 116164 7480 /usr/lib/arm-linux-gnueabihf/libgpg-error.so.0.29.0
gpsd 9744 gpsd mem REG 179,2 840264 7447 /usr/lib/arm-linux-gnueabihf/libgcrypt.so.20.2.8
gpsd 9744 gpsd mem REG 179,2 116236 7610 /usr/lib/arm-linux-gnueabihf/liblz4.so.1.9.3
gpsd 9744 gpsd mem REG 179,2 771444 7990 /usr/lib/arm-linux-gnueabihf/libzstd.so.1.4.8
gpsd 9744 gpsd mem REG 179,2 132888 7611 /usr/lib/arm-linux-gnueabihf/liblzma.so.5.2.5
gpsd 9744 gpsd mem REG 179,2 30672 3598 /usr/lib/arm-linux-gnueabihf/librt-2.31.so
gpsd 9744 gpsd mem REG 179,2 679180 3192 /usr/lib/arm-linux-gnueabihf/libsystemd.so.0.30.0
gpsd 9744 gpsd mem REG 179,2 145008 2997 /usr/lib/arm-linux-gnueabihf/libudev.so.1.7.0
gpsd 9744 gpsd mem REG 179,2 1315688 3586 /usr/lib/arm-linux-gnueabihf/libc-2.31.so
gpsd 9744 gpsd mem REG 179,2 137364 3596 /usr/lib/arm-linux-gnueabihf/libpthread-2.31.so
gpsd 9744 gpsd mem REG 179,2 275920 7346 /usr/lib/arm-linux-gnueabihf/libdbus-1.so.3.19.17
gpsd 9744 gpsd mem REG 179,2 386572 3588 /usr/lib/arm-linux-gnueabihf/libm-2.31.so
gpsd 9744 gpsd mem REG 179,2 189380 7283 /usr/lib/arm-linux-gnueabihf/libbluetooth.so.3.19.3
gpsd 9744 gpsd mem REG 179,2 96192 7897 /usr/lib/arm-linux-gnueabihf/libusb-1.0.so.0.3.0
gpsd 9744 gpsd DEL REG 0,1 8 /SYSV47505344
gpsd 9744 gpsd mem REG 179,2 17708 7237 /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so
gpsd 9744 gpsd mem REG 179,2 146888 3582 /usr/lib/arm-linux-gnueabihf/ld-2.31.so
gpsd 9744 gpsd DEL REG 0,1 7 /SYSV4e545037
gpsd 9744 gpsd DEL REG 0,1 6 /SYSV4e545036
gpsd 9744 gpsd DEL REG 0,1 5 /SYSV4e545035
gpsd 9744 gpsd DEL REG 0,1 4 /SYSV4e545034
gpsd 9744 gpsd DEL REG 0,1 3 /SYSV4e545033
gpsd 9744 gpsd DEL REG 0,1 2 /SYSV4e545032
gpsd 9744 gpsd DEL REG 0,1 1 /SYSV4e545031
gpsd 9744 gpsd DEL REG 0,1 0 /SYSV4e545030
gpsd 9744 gpsd 0u CHR 1,3 0t0 4 /dev/null
gpsd 9744 gpsd 1u CHR 1,3 0t0 4 /dev/null
gpsd 9744 gpsd 2u CHR 1,3 0t0 4 /dev/null
gpsd 9744 gpsd 3u unix 0xc0e90808 0t0 12526 /run/gpsd.sock type=STREAM
gpsd 9744 gpsd 4u IPv6 11900 0t0 TCP localhost:gpsd (LISTEN)
gpsd 9744 gpsd 5u IPv4 11902 0t0 TCP localhost:gpsd (LISTEN)
gpsd 9744 gpsd 6u unix 0x6069a39f 0t0 44016 type=DGRAM
gpsd 9744 gpsd 7u unix 0x18c5b44a 0t0 45515 type=STREAM
gpsd 9744 gpsd 8u CHR 166,0 0t0 276 /dev/ttyACM0
gpsd 9744 gpsd 9u CHR 250,0 0t0 683 /dev/pps0
There is no sign of a *:gpsd bind.
So it looks as though the -G option to gpsd is broken, I have tried gettting the source and to compile with scons but the source includes python 2 which breaks the build. Also the binary should be fixed. Can anyone assist?
RGDS
I have Bullseye on a pi zero w, stock Rasp bullseys updated and gpsd installed. I set the following in /etc/default/gpsd
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES=""
DEVICES="/dev/ttyACM0"
# Other options you want to pass to gpsd
GPSD_OPTIONS=""
GPSD_OPTIONS="-n --listenany -D 255"
# Start the gpsd daemon automatically at boot time
START_DAEMON="true"
# Automatically hot add/remove USB GPS devices via gpsdctl
USBAUTO="true"
Despite the --listenany (also tried -G) the gpsd process only listens on the localhost:
root@navigator:/usr/local/src/gpsd-3.9# ps -ef | grep gpsd
gpsd 9744 1 3 20:38 ? 00:00:26 /usr/sbin/gpsd -n --listenany -D 255 /dev/ttyACM0
root 9819 2195 0 20:52 pts/0 00:00:00 grep gpsd
root@navigator:/usr/local/src/gpsd-3.9# lsof -p 9744
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
gpsd 9744 gpsd cwd DIR 179,2 4096 2 /
gpsd 9744 gpsd rtd DIR 179,2 4096 2 /
gpsd 9744 gpsd txt REG 179,2 553192 34802 /usr/sbin/gpsd
gpsd 9744 gpsd mem REG 179,2 42628 3593 /usr/lib/arm-linux-gnueabihf/libnss_files-2.31.so
gpsd 9744 gpsd mem REG 179,2 116164 7480 /usr/lib/arm-linux-gnueabihf/libgpg-error.so.0.29.0
gpsd 9744 gpsd mem REG 179,2 840264 7447 /usr/lib/arm-linux-gnueabihf/libgcrypt.so.20.2.8
gpsd 9744 gpsd mem REG 179,2 116236 7610 /usr/lib/arm-linux-gnueabihf/liblz4.so.1.9.3
gpsd 9744 gpsd mem REG 179,2 771444 7990 /usr/lib/arm-linux-gnueabihf/libzstd.so.1.4.8
gpsd 9744 gpsd mem REG 179,2 132888 7611 /usr/lib/arm-linux-gnueabihf/liblzma.so.5.2.5
gpsd 9744 gpsd mem REG 179,2 30672 3598 /usr/lib/arm-linux-gnueabihf/librt-2.31.so
gpsd 9744 gpsd mem REG 179,2 679180 3192 /usr/lib/arm-linux-gnueabihf/libsystemd.so.0.30.0
gpsd 9744 gpsd mem REG 179,2 145008 2997 /usr/lib/arm-linux-gnueabihf/libudev.so.1.7.0
gpsd 9744 gpsd mem REG 179,2 1315688 3586 /usr/lib/arm-linux-gnueabihf/libc-2.31.so
gpsd 9744 gpsd mem REG 179,2 137364 3596 /usr/lib/arm-linux-gnueabihf/libpthread-2.31.so
gpsd 9744 gpsd mem REG 179,2 275920 7346 /usr/lib/arm-linux-gnueabihf/libdbus-1.so.3.19.17
gpsd 9744 gpsd mem REG 179,2 386572 3588 /usr/lib/arm-linux-gnueabihf/libm-2.31.so
gpsd 9744 gpsd mem REG 179,2 189380 7283 /usr/lib/arm-linux-gnueabihf/libbluetooth.so.3.19.3
gpsd 9744 gpsd mem REG 179,2 96192 7897 /usr/lib/arm-linux-gnueabihf/libusb-1.0.so.0.3.0
gpsd 9744 gpsd DEL REG 0,1 8 /SYSV47505344
gpsd 9744 gpsd mem REG 179,2 17708 7237 /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so
gpsd 9744 gpsd mem REG 179,2 146888 3582 /usr/lib/arm-linux-gnueabihf/ld-2.31.so
gpsd 9744 gpsd DEL REG 0,1 7 /SYSV4e545037
gpsd 9744 gpsd DEL REG 0,1 6 /SYSV4e545036
gpsd 9744 gpsd DEL REG 0,1 5 /SYSV4e545035
gpsd 9744 gpsd DEL REG 0,1 4 /SYSV4e545034
gpsd 9744 gpsd DEL REG 0,1 3 /SYSV4e545033
gpsd 9744 gpsd DEL REG 0,1 2 /SYSV4e545032
gpsd 9744 gpsd DEL REG 0,1 1 /SYSV4e545031
gpsd 9744 gpsd DEL REG 0,1 0 /SYSV4e545030
gpsd 9744 gpsd 0u CHR 1,3 0t0 4 /dev/null
gpsd 9744 gpsd 1u CHR 1,3 0t0 4 /dev/null
gpsd 9744 gpsd 2u CHR 1,3 0t0 4 /dev/null
gpsd 9744 gpsd 3u unix 0xc0e90808 0t0 12526 /run/gpsd.sock type=STREAM
gpsd 9744 gpsd 4u IPv6 11900 0t0 TCP localhost:gpsd (LISTEN)
gpsd 9744 gpsd 5u IPv4 11902 0t0 TCP localhost:gpsd (LISTEN)
gpsd 9744 gpsd 6u unix 0x6069a39f 0t0 44016 type=DGRAM
gpsd 9744 gpsd 7u unix 0x18c5b44a 0t0 45515 type=STREAM
gpsd 9744 gpsd 8u CHR 166,0 0t0 276 /dev/ttyACM0
gpsd 9744 gpsd 9u CHR 250,0 0t0 683 /dev/pps0
There is no sign of a *:gpsd bind.
So it looks as though the -G option to gpsd is broken, I have tried gettting the source and to compile with scons but the source includes python 2 which breaks the build. Also the binary should be fixed. Can anyone assist?
RGDS
Statistics: Posted by rbannocks — Wed Sep 17, 2025 6:54 pm — Replies 1 — Views 80