I am trying to figure out, what is preventing gpsd
from automatically connecting to an external GPS BU 353 dongle via USB and receiving data. I have the same issue on both of my laptops (with different hardware), so this is purely a software configuration issue.
I have managed to get gpsd
working manually, using the following steps, but every time my machine is powered off, I must go through these steps again.
sudo killall gpsd
Remove any sockets
gpsd
might have left behind with :sudo rm /var/run/gpsd.sock
Check the device path:
dmesg - which shows PLU353
Ensure no other programs are using the device. There are none listed
lsof -n | grep /dev/ttyUSB0
Manually launch
gpsd
:sudo gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock
xgps
sees the GPS output - so this works
My best guesses are that gpsd
needs to join a group or be given additional permissions, or alternatively, that it is an issue with udev
configuration. But I am blundering about in the dark, just making wild guesses.
lsof -n | grep /dev/ttyUSB0
, I'd usesudo lsof /dev/ttyUSB0
- no need togrep