 |
|
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
|
|
|
29-06-2010, 20:01
|
#2
|
Marine Service Provider
Join Date: Mar 2008
Posts: 7,708
|
tebsin...
Can you post a screenshot of the NMEA data stream as shown in Toolbox->GPS "Show data stream window"
Thanks
Dave
|
|
|
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
|
|
|
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
|
|
|
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 !
|
|
|
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
|
|
|
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.
|
|
|
30-06-2010, 21:01
|
#8
|
Marine Service Provider
Join Date: Mar 2008
Posts: 7,708
|
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,
This will try to show that the gpsd and libgps systems are working.
Thanks
Dave
|
|
|
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
|
|
|
01-07-2010, 07:20
|
#10
|
Marine Service Provider
Join Date: Mar 2008
Posts: 7,708
|
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
|
|
|
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]
|
|
|
02-07-2010, 07:27
|
#12
|
Marine Service Provider
Join Date: Mar 2008
Posts: 7,708
|
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
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
|
|
|
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*

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
|
|
|
02-07-2010, 11: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
|
|
|
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
|
|
|
 |
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|