Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 29-06-2010, 19: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, 20:01   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
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, 20: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, 03: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, 14: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, 16: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, 19: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:	173
Size:	54.7 KB
ID:	17449
Click image for larger version

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

Join Date: Mar 2008
Posts: 4,884
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 01-07-2010, 00: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, 07:20   #10
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
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, 15: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:	149
Size:	87.2 KB
ID:	17468   Click image for larger version

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

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

Join Date: Mar 2008
Posts: 4,884
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, 11: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:	133
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, 11:47   #14
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,249
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, 12: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

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 52 19-02-2016 18:54
Ubuntu 10.4 and OpenCPN cagney OpenCPN 24 07-01-2011 13:16
Garmin 60CSx and Ubuntu with Kernel 2.6.31-20-Generic - Solution ? amadeus OpenCPN 37 30-07-2010 15:44
Raymarine Bi-Data Transducer Problems off-the-grid Marine Electronics 1 12-05-2010 17:06
LIGHTNING - Some new data. Swinger5000 General Sailing Forum 17 17-12-2004 17:44



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 18:59.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.