The Navigatrix has been updated. The new website can be found at navigatrix.net.




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Garmin USB on OPENCPN

Joined: 01 Feb 2014, 12:29
Posts: 9
Hi!

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:

/dev/ttyUSB4

but..nothing...

Anybody can help me?

Thanks!


Top
   
 
 Post subject: Re: Garmin USB on OPENCPN

Joined: 04 Nov 2010, 20:51
Posts: 1062
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
Code:
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.
Attachment:
LXTerminal_001.png
LXTerminal_001.png [ 16.73 KiB | Viewed 16305 times ]
Attachment:
LXTerminal_002.png
LXTerminal_002.png [ 23.5 KiB | Viewed 16305 times ]
Attachment:
LXTerminal_003.png
LXTerminal_003.png [ 27.7 KiB | Viewed 16305 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.
Attachment:
LXTerminal_004.png
LXTerminal_004.png [ 20.8 KiB | Viewed 16305 times ]
Attachment:
LXTerminal_005.png
LXTerminal_005.png [ 19.86 KiB | Viewed 16305 times ]
<Ok> and <Enter> to finish the reconfiguration.

Don't despair, the fun is not over just yet. Enter
Code:
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.
Code:
# 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.

...you 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.


Top
   
 
 Post subject: Re: Garmin USB on OPENCPN

Joined: 01 Feb 2014, 12:29
Posts: 9
Thank you so much!

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

:-)


Top
   
 
 Post subject: Re: Garmin USB on OPENCPN

Joined: 01 Feb 2014, 12:29
Posts: 9
News:

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...


Top
   
 
 Post subject: Re: Garmin USB on OPENCPN

Joined: 04 Nov 2010, 20:51
Posts: 1062
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.


Top
   
 
 Post subject: Re: Garmin USB on OPENCPN

Joined: 01 Feb 2014, 12:29
Posts: 9
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.

Stefano


Top
   
 
 Post subject: Re: Garmin USB on OPENCPN

Joined: 04 Nov 2010, 20:51
Posts: 1062
Screenshots

viewtopic.php?f=4&t=731

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.


Top
   
 
 Post subject: Re: Garmin USB on OPENCPN

Joined: 01 Feb 2014, 12:29
Posts: 9
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


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Search for:
cron

Credits © 2010 - 2024