OpenMarine

Full Version: Garmin GPS18x USB SOLVED
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all,

I've got a Garmin GPS18x USB. On a previous install of OpenCPN it was working flawlessly. Since starting up a new card/install of OpenPlotter I cannot get OpenCPN to get GPS.

I've done quite a bit of googling and searching CF and so far have not found a solution. 

Thanks in advance for any help.

Here's what the pi knows about the Garmin:


[pi@openplotter:~]
$ dmesg | grep garmin
[    8.294337] usbcore: registered new interface driver garmin_gps
[    8.294556] garmin_gps 1-1.3:1.0: Garmin GPS usb/tty converter detected


--

[pi@openplotter:~]
$ lsusb
Bus 001 Device 006: ID 062a:4101 Creative Labs 
Bus 001 Device 005: ID 091e:0003 Garmin International GPS (various models)
Bus 001 Device 004: ID 125f:a65a A-DATA Technology Co., Ltd. 
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

--

Auto setup detects hardware. Please make sure that all devices are turned on.

search for tty devices
found: /dev/ttyUSB0 091e 0003  1-1.3:1.0 GPS (various models) Garmin International

sort tty devices

check if we have to switch from dev to port
test  ['', '091e', '0003', '', '1-1.3:1.0', 'dev', 'ttyUSB', '/dev/ttyUSB0', 'GPS (various models)', 'Garmin International', 0]

search for NMEA0183 in tty devices

search NMEA0183 on /dev/ttyUSB0 with baudrate 4800
search NMEA0183 on /dev/ttyUSB0 with baudrate 38400
search NMEA0183 on /dev/ttyUSB0 with baudrate 115200
search NMEA0183 on /dev/ttyUSB0 with baudrate 9600
search NMEA0183 on /dev/ttyUSB0 with baudrate 19200
search NMEA0183 on /dev/ttyUSB0 with baudrate 57600

create an autoname for found NMEA0183 devices

search for NMEA2000 in tty devices
['', '091e', '0003', '', '1-1.3:1.0', 'dev', 'ttyUSB', '/dev/ttyUSB0', 'GPS (various models)', 'Garmin International', 0]
n2k ['', '091e', '0003', '', '1-1.3:1.0', 'dev', 'ttyUSB', '/dev/ttyUSB0', 'GPS (various models)', 'Garmin International', 0] 115200
start
search NMEA2000 on /dev/ttyUSB0 with baudrate 115200
not found NMEA2000 on /dev/ttyUSB0 with baudrate 115200

########################## result ################################

add new devices to openplotter.conf
- none -

add new devices to kplex (not activated and no filter)
- none -
I've gotten this to work by issuing:
sudo apt-get install gpsd gpsd-clients libgps-dev

I added the Garmin GPS18x USB as connected directly through network:
Options→ Connections→ Add Connection and select “Network” plus the GPSD radio button. Address should be “localhost” and DataPorts should be set to 2947.

More info here:
https://opencpn.org/wiki/dokuwiki/doku.p...:gps_setup