- A Voyager's Companion

Page 1 of 1

Author:  stevenit [ 10 Jun 2015, 10:55 ]
Post subject:  Garmin USB on OPENCPN


I'm new on Navigatrix/Linux and I do not know any kind of command; usually I using OpenCpn on win environment.

Now I try to install my GPS Garmin18X USB, the only thing I know is that it is on USB 4.

Bus 004 Device 006: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth
Bus 004 Device 004: ID 091e:0003 Garmin International GPS (various models)
Bus 004 Device 003: ID 1c7a:0801 LighTuning Technology Inc. Fingerprint Reader
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 005: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 003 Device 004: ID 0781:5572 SanDisk Corp.
Bus 003 Device 003: ID 0408:1fb2 Quanta Computer, Inc.
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I add a serial pot in the connection option window like:



Anybody can help me?


Author:  Moe [ 10 Jun 2015, 21:27 ]
Post subject:  Re: Garmin USB on OPENCPN

Navigatrix is mostly plug and play, with as little configuration as possible. Most things will work out of the box...most, except for the Garmin 18X.

GPS data is handled by a brilliant application called gpsd (gps daemon). A daemon runs in the background taking care of details we shouldn't have to bother with, speed, drivers, protocol, etc..

This data is made available at a given location. Any application that wants/needs gps/AIS data then can go and pick it up. It's simple, transparent, and pretty efficient; just plug and go...except for the Garmin 18X.

This little jewel of proprietary hardware won't play with the gps daemon as a daemon. GPSD needs to be reconfigured to run as an application rather than a daemon, (a fine, if not blurry, distinction indeed).

You already know how to open and use a terminal. For the 18X to work you will need to reconfigure the gpsd. Enter
sudo dpkg-reconfigure gpsd
This command give you superpowers and the terminal will look similar to the following images...possibly purple, rather than blue, but colour (and the spelling of color) in this case doesn't matter. Make what you see in your terminal look like what you see (except for the colour) in the following images. The <tab> key moves you around and cycles through your options if you get too excited and overshoot. <Enter> commits the screen and moves you to the next screen.
LXTerminal_001.png [ 16.73 KiB | Viewed 17008 times ]
LXTerminal_002.png [ 23.5 KiB | Viewed 17008 times ]
LXTerminal_003.png [ 27.7 KiB | Viewed 17008 times ]
This is the only tricky part. You need to add -N to the line with -n -b -G. Order is not important.Spa cing is. Tab to <Ok> when your done and <Enter> to go to the last exciting screen.
LXTerminal_004.png [ 20.8 KiB | Viewed 17008 times ]
LXTerminal_005.png [ 19.86 KiB | Viewed 17008 times ]
<Ok> and <Enter> to finish the reconfiguration.

Don't despair, the fun is not over just yet. Enter
gksu medit /etc/modprobe.d/blacklist.conf
Scroll down to line #37-38. You will see

# most apps now use garmin usb driver directly (Ubuntu: #114565)
blacklist garmin_gps

Place an octothorpe (#), a hash symbol (#), a pound (weight) sign (#), or a number identifier (#) at the beginning of blacklist garmin_gps.
# blacklist garmin_gps
This "comments out" the blacklisting of the garmin driver so it can be used. The double negatives will hurt your brain if you think about it too hard, so think about it at your own risk.

Save, exit, and reboot. also might want to un-do any other changes you've made, because the gpsd will now make data available to OpenCPN and other applications in the system.

Good luck.

Author:  stevenit [ 11 Jun 2015, 13:40 ]
Post subject:  Re: Garmin USB on OPENCPN

Thank you so much!

I'will try and I'll let you know for sure!


Author:  stevenit [ 13 Jun 2015, 04:15 ]
Post subject:  Re: Garmin USB on OPENCPN


Unfortunately I'm trying Navigatrix on USB and all the modification aren't saved when I reboot the machine.

Second: I have another external gps: U-BLOX

But, I can not see it either.

Ii should be managed by GPSD or I have to uncheck the NET connection and create a serial connection?

..sorry..I'm really not pratice...

Author:  Moe [ 13 Jun 2015, 06:53 ]
Post subject:  Re: Garmin USB on OPENCPN

When Navigatrix boots from the stick there is a blue screen with 4 function keys listed <F1><F2><F3><F4> linked to menu options in various languages.

Select one.

Select "Other Options" in the menu that pops up.

Select Create 1/2/or 4GB Persistence File.

The rule of thumb is

1- 4GB stick
2- 8GB
4- 16GB or larger

When that is grinding away, grab a quick beer; it takes a few minutes.

The system will boot when it is finished.

Now, make the modifications and they will carry over from one boot to the next.

Author:  stevenit [ 13 Jun 2015, 13:12 ]
Post subject:  Re: Garmin USB on OPENCPN

Thanks Moe,

Everything is stored now, but.... gps...not work.

I also t create a serial conncection (/dev/ttyUSB1), i tried with and without checking the "use garmin mode for input".

Two info: The priority of serial conn is 1, the others are 0
I got an error on open OPENCPN: "rtsrd failed to open" (but i do not think it is related to).

(Is there a way to make a screenshot here on Navigatrix, so I can attach some image?)

Thanks again.


Author:  Moe [ 13 Jun 2015, 22:15 ]
Post subject:  Re: Garmin USB on OPENCPN



While receiving gps data in OpenCPN is a goal, it is not a good test to see if the system is working with a gps.

Test with xgps or cgps in the terminal. Less can go wrong.

OpenCPN would come after successful test with either of those tools, as a misconfiguration would mask any success.

Author:  stevenit [ 14 Jun 2015, 01:44 ]
Post subject:  Re: Garmin USB on OPENCPN

Maibye I have a problem...

nx@nx:~$ cgps
cgps: no gpsd running or network error: -6, can't connect to host/port pair
nx@nx:~$ gpsd
gpsd:ERROR: can't run with neither control socket nor devices

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group