Cruisers & Sailing Forums (
-   Marine Electronics (
-   -   gpsd issues with UBUNTU 16-04 (

AlainT 14-11-2016 08:51

gpsd issues with UBUNTU 16-04
I recently made an upgrade from navigatrix 05 that's using 15.04 to Ubuntu 16-04.
I discovered an issue working with OpenCPN and gpsd getting data from USB ports.
In 15.04 it was possible to define in the file /etc/default/gpsd a statement DEVICE="" , it doesn't work with 16.04 because you are obliged to put inside the quotes /dev/ttyUSB0.
gpsd works well after the first connection, but after an hibernate wake up gpsd fails to retreive any data for /dev/ttyUSB0, because the port switched to /dev/ttyUSB1.
I finally found why gpsd was not working. In the file /lib/udev/rules.d/60-gpsd.rules the line adressing PL2303 prolific adapter was starting with a "#".

ATTRS{idVendor}=="067b",ATTRS{idProduct}=="2303",S YMLINK+="gps%n", TAG+="systemd", ENV{SYSTEMD_WANTS}="gpsdctl@%k.service"

Remove this character, then gpsd works fine.
you can hibernate the computer many times, gpsd finds the NMEA sentences sent on the ttyUSBn ports.
What can be done in the next releases to make the gpsd setup easier ?
Hope it helps.

All times are GMT -7. The time now is 20:11.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.