Cruisers Forum
 


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 24-04-2011, 05:04   #1
Registered User

Join Date: Apr 2006
Location: Muscat, Oman
Boat: Roberts, C45 Spray - EDM
Posts: 84
OpenCpn and GPSD and fakegps

I wonder if someone can point me to where I am going wrong.

I have some GPS data that I would like to replay through GPSd - and "watch" the yacht move.

I found a thread with someone's GPS track crossing a Bay in the Pacific North West (on this forum) and typed the following commands into Ubunutu 10.10

1)
Kill Gpsd

2)
gpsfake -D 2 -v victoriagps.txt

I then seen what looks to be sensible data.... from fakegps....

i.e

Processing victoriagps.txt
gpsd: launching (Version 2.94)
gpsd: listening on port 2947
gpsd: running with effective group ID 1000
gpsd: running with effective user ID 1000
gpsd: control socket connect on fd 7
gpsd: <= control(7): adding /dev/pts/1
gpsd: stashing device /dev/pts/1 at slot 0

3) Fire up openCpn - set GPS Data to being Network GPSD
And Press OK.

Nothing !!!! FakeGps loops around.

4) Lets use another GPS utility to see if the fakecps is giving me any data

telnet 127.0.0.1 2947

Here you will be greeted by something like......

{"class":"VERSION","release":"2.93","rev":"2010-03-30T12:18:17",
"proto_major":3,"proto_minor":2}

just type (or paste back)
?WATCH={"enable":true,"json":true}

And Sensible GPS Data does appear to be coming from Port 2947 (Default gpsd port).


So at the moment I am

gpsmon will not work - command I am trying to use is

gpsmon 127.0.0.1:2947


So where am I going wrong ?

Much appreciated

Tim
deepstar is offline   Reply With Quote
Old 24-04-2011, 05:18   #2
Registered User

Join Date: Apr 2006
Location: Muscat, Oman
Boat: Roberts, C45 Spray - EDM
Posts: 84
Re: OpenCpn and GPSD and fakegps

Duh.....

Ok STOP THE FIRE-Engine......

From my initial posting....

gpsd: stashing device /dev/pts/1 at slot 0

if you enter the gps-source as /dev/pts/1 - I am indeed on a ferry going across Straight on Juan De Fuca - in BC/Vancouver.



Ok.... now I will carry on writing my AIS-Simulator :-)
deepstar is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 - Fedora 14 - GPSD michaeld OpenCPN 9 30-08-2011 09:44
OpenCPN and gpsd 2.95 (Revision 2010-11-02T15:45:01) cray OpenCPN 12 12-02-2011 11:28
Setup Ubuntu GPSd/GPSLib, AIS and Other NMEA Data bluearcus OpenCPN 8 31-08-2010 03:50
AIS Under gpsd Seaspray OpenCPN 0 20-07-2010 09:59
GPSD to Remove D-BUS Support in Favor of GeoClue antonm OpenCPN 4 24-03-2010 05:50

Advertise Here


All times are GMT -7. The time now is 13:31.


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.