Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 29-06-2010, 18:26   #1
Registered User

Join Date: May 2010
Location: Cairns Nth Qld, Australia
Posts: 34
Problems with GPS and AIS Data in Ubuntu

I have tried everything I have read, trying to get GPS/AIS data to work in
Ubuntu, its just about to the point where I may have to go back to XP or W7, where it was working fine.
When I open the serial port terminal, all the GPS and Ais sentences are correct, but when I open Opencpn I get nothing, I have tried it in all sorts of configs like baud, swap usb ports etc. I went through the Wiki documentation on setting GPS up and followed all instructions like loading the sentences in to the terminal, I am very new to Ubuntu, so please don't assume that I completely know what I am doing, maybe I am not doing something correctly, someone please help
tebsin is offline   Reply With Quote
Old 29-06-2010, 19:01   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
tebsin...

Can you post a screenshot of the NMEA data stream as shown in Toolbox->GPS "Show data stream window"


Thanks
Dave
bdbcat is offline   Reply With Quote
Old 29-06-2010, 19:52   #3
Registered User

Join Date: May 2010
Location: Cairns Nth Qld, Australia
Posts: 34
no data shown at all in Data stream window

Thanks Dave for your help, thats the problem, there is 0 data shown in the data stream window, just a blank screen, but if I go in to the Serial port terminal, I get all the correct sentences for GPS and Ais, cant work it out.
Kind Regards
Steve
tebsin is offline   Reply With Quote
Old 30-06-2010, 02:09   #4
Registered User

Join Date: May 2010
Location: Cairns Nth Qld, Australia
Posts: 34
Problem with script

I tried different script configs and finally found one that worked, problem know is that when I rebooted, I lost that config and I have tried to get it back without success, at least now I know what the problem is, I copied and pasted the script on Wiki and edited it, inserting "serial on the 3rd line, any help with my script would be great, I am running a Haicom HI 204iii usb mouse, if some kind person could give me some different scripts to try it would be much appreciated.
Thanks
tebsin is offline   Reply With Quote
Old 30-06-2010, 13:36   #5
Registered User

Join Date: Jan 2010
Location: Gothenburg Sweden
Boat: HR382
Posts: 5
I have similar problems.
Trying to set up a Linux box in the boat.
Ubuntu 10.04 OpenCPN Version 2.1.0 Build 624a
I have followed all the advices for Ubuntu Linux in the "Setting up GPS" section of the OpenCPN Manual.

I get the message:
" libgps can not be loaded.
gpsd host is: localhost"

Any hints?

/Janne

PS Everything including AIS is working with my WinXP laptop, but I want to leave that one at home !
ata382 is offline   Reply With Quote
Old 30-06-2010, 15:05   #6
Registered User

Join Date: May 2010
Location: Cairns Nth Qld, Australia
Posts: 34
libgps

I am very much a newbie at this but you could try going to Applications then Ubuntu software centre and search for it, you may have to down load it from there, I initially had the same problem.
Kind Regards
Steve
tebsin is offline   Reply With Quote
Old 30-06-2010, 18:32   #7
Registered User

Join Date: May 2010
Location: Cairns Nth Qld, Australia
Posts: 34
My Screen shot

As requested here is my AIS config, any suggestions on fixing it would be much appriciated.
Click image for larger version

Name:	Screenshot-patamba@patamba-laptop1: ~.png
Views:	253
Size:	54.7 KB
ID:	17449
Click image for larger version

Name:	Screenshot-patamba@patamba-laptop2: ~.png
Views:	226
Size:	71.8 KB
ID:	17450
tebsin is offline   Reply With Quote
Old 30-06-2010, 20:01   #8
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
tebsin...

Maybe you have already tried this, but....

It looks like gpsd is getting valid data.
So, for opencpn, in Toolbox->GPS, select libgps option, and tick the data stream option.
You should see output in the data stream window....

You could also try, from a terminal,

Code:
xgps
This will try to show that the gpsd and libgps systems are working.


Thanks
Dave
bdbcat is offline   Reply With Quote
Old 30-06-2010, 23:57   #9
Registered User

Join Date: May 2010
Location: Cairns Nth Qld, Australia
Posts: 34
No data shown in XGPS or Data stream window

Thanks Dave
I managed to get GPS data from dev//ttyUSB0 but can not get anything from Network LIBGPSD or Network GPSD, I also can not get any AIS data at all. Have you any more ideas for me to try ? My AIS is a separate USB input from a stand alone Receiver, I cant help thinking that its a problem with my script, any examples of scripts would be appreciated.

Much Thanks
Steve
tebsin is offline   Reply With Quote
Old 01-07-2010, 06:20   #10
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
tebsin...

When you use opencpn with libgps option, does opencpn produce any error messages at all?

Perhaps you also could look at/post the results of the opencpn logfile:

~/opencpn.log

Does xgps work?

Dave
bdbcat is offline   Reply With Quote
Old 01-07-2010, 14:03   #11
Registered User

Join Date: May 2010
Location: Cairns Nth Qld, Australia
Posts: 34
Thanks again Dave
The xgps opens but shows no data at all, the following screen shots may give you some sort of clue to whats happening [IMG]file:///home/patamba/Desktop/Screenshot3.png[/IMG]
Attached Thumbnails
Click image for larger version

Name:	Screenshot-opencpn.log (~) - gedit-2.png
Views:	269
Size:	87.2 KB
ID:	17468   Click image for larger version

Name:	Screenshot3.png
Views:	293
Size:	296.3 KB
ID:	17469  

tebsin is offline   Reply With Quote
Old 02-07-2010, 06:27   #12
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
tebsin....

opencpn cannot locate the libgps.so

Please show me the output of

Code:
ls -l /usr/lib/libgps*
There should be a file or link /usr/lib/libgps.so in the output.

If not, try

Code:
sudo ldconfig
then look again.

If /usr/lib/libgps is available, opencpn should load it.

Don't forget to start gpsd:

Code:
gpsd /dev/usb{whatever}
Also, if xgps shows no data, then opencpn will not show data either.
Thanks
Dave
bdbcat is offline   Reply With Quote
Old 02-07-2010, 10:29   #13
Registered User

Join Date: May 2010
Location: Cairns Nth Qld, Australia
Posts: 34
as requested

Dave here is the screenshot of ls -l /usr/lib/libgps*
Click image for larger version

Name:	Screenshot-2.png
Views:	214
Size:	33.2 KB
ID:	17485
I also tried sudo ldconfig and nothing happened at all, the i went back to
ls -l /usr/lib/libgps* with still no joy, I then started xgps with still no data at all.
I really appreciate your help with this.
Thanks Steve
tebsin is offline   Reply With Quote
Old 02-07-2010, 10:47   #14
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
tebsin

I'm trying to get a handle on what's going on.
What is the actual version of Ubuntu that you are using. Can't see that you have told this.
You are talking about a script that you use. Can you post a copy please?

Thomas
cagney is offline   Reply With Quote
Old 02-07-2010, 11:07   #15
Registered User

Join Date: May 2010
Location: Cairns Nth Qld, Australia
Posts: 34
Thanks Thomas
I am using Ubuntu desktop 10.04, I believe is the latest version, I also loaded all the latest updates, being an absolute newbie to this , I don't know how to get to the script, I am still learning
Thanks again
Steve
tebsin is offline   Reply With Quote
Reply

Tags
ais


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN Linux / Ubuntu Issues and Questions yachtmanforfun OpenCPN 65 24-01-2018 08:06
Ubuntu 10.4 and OpenCPN cagney OpenCPN 24 07-01-2011 12:16
Garmin 60CSx and Ubuntu with Kernel 2.6.31-20-Generic - Solution ? amadeus OpenCPN 37 30-07-2010 14:44
Raymarine Bi-Data Transducer Problems off-the-grid Marine Electronics 1 12-05-2010 16:06
LIGHTNING - Some new data. Swinger5000 General Sailing Forum 17 17-12-2004 16:44

Advertise Here


All times are GMT -7. The time now is 03:15.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.