Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-08-2013, 07:22   #1
Registered User

Join Date: May 2013
Posts: 38
Installing Debugger and VDR Plugins

Hello,

I try to install Debugger and VDR plugins.


I allready installed this packages:
Code:
 
sudo apt-get install libgtk2.0-dev gettext git-core cmake gpsd gpsd-clients libgps-dev build-essential wx-common libwxgtk2.8-dev libglu1-mesa-dev libgtk2.0-dev wx2.8-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev
For NMEA Debugger:
I did this in ocpndebugger_pi-master directory:
Code:
 
mkdir
build 
cd build 
cmake ../ 
make
but when I do cmake ../ I've got some error messages:
Code:
CMake Error at CMakeLists.txt:53 (include):
include called with wrong number of arguments. Include only takes one file.

CMake Error at CMakeLists.txt:86 (INSTALL)
install TARGETS given no LIVRARY DESTINATION for shared library target "ocpndebugger_pi".
For VDR, I think it's ok; I put the "libvdr_amd64_pi16_v03_pi.so" file in /usr/lib/opencpn..

I guess that I miss again something obvious..

Kind regards,
__________________

__________________
zodd is offline   Reply With Quote
Old 06-08-2013, 08:58   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Installing Debugger and VDR plugins

zodd...
I'm a bit confused, are you trying to build the plugin separately from opencpn? That will never work.
The plugin code has to be in the plugins subdirectory of the opencpn source tree, it's directory name has to end with _pi and you build it as part of opencpn.

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Old 06-08-2013, 09:11   #3
Registered User

Join Date: May 2013
Posts: 38
Re: Installing Debugger and VDR plugins

Hello Pavel,

Thanks, you're right, I was trying to compile it separately.

You mean that I have to add the plugin source in the source of openCPN and compile openCPN, that's it?

openCPN is allready installed on my computer, that's why I tryed to add the plugin this way. Is there a way to add it without recompile everything?

But if I try to install it, it's because I don't manage to receive any NMEA datas ($GPGGA... etc..).

I configured my serial port in openCPN like I do in GtkTerm.. and if I use GtkTerm, I can see well the NMEA Datas.. My "user" belong well to dialout group.
And I think that the datas are corrects because it works well on Windows.
but on Ubuntu I don't have any data in the NMEA Debug Window of openCPN.
(I tryed "sudo killall gpsd" but the problem still there).
That's why I wanted to try the debugger pluggin.

Regards,
__________________
zodd is offline   Reply With Quote
Old 06-08-2013, 10:22   #4
Registered User

Join Date: May 2013
Posts: 38
Re: Installing Debugger and VDR plugins

Hi again^^,
I also tried to use gpsd with localhost in parameter connexion.. and it still doesn't work..
the datas I try to display are:
$GPGGA,064036.289,4836.5375,N,00740.9373,E,1,04,3. 2,200.2,M,,,,0000*0E (and of course CR LF at the end)

and with ls -l in /dev, I've crw-rw-rw- root dialout ..... ttyUSB0

Really I don't understand why it doesn't work.

Regards,
__________________
zodd is offline   Reply With Quote
Old 06-08-2013, 10:30   #5
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,878
Re: Installing Debugger and VDR Plugins

Zodd....

OK, lets get you working. Leave the PlugIns aside for a moment.

You cannot access ttyUSB0 if gpsd has opened the port already.
You must use either gpsd, or direct port access by OpenCPN.

So,
1. $sudo killall gpsd, then verify that it is gone by $ps aux | grep gpsd

2. Test your GPS input. At user privilege,

linux$ stty -F /dev/ ttyUSB0 ispeed 4800
linux$ cat </dev/ ttyUSB0

Anything?

Dave
__________________
bdbcat is offline   Reply With Quote
Old 06-08-2013, 10:49   #6
Registered User

Join Date: May 2013
Posts: 38
Re: Installing Debugger and VDR Plugins

Hello,
Thank you for your message.

I'v allready done:
$sudo killall gpsd
$ps aux | grep gpsd give me this:
user 2409 0.0 0.0 13624 928 pts/0 S+ 18:41 0:00 grep --color=auto gpsd

2. I did
$ stty -F /dev/ttyUSB0 ispeed 57600 (my GPS is 57600 bauds)
$ cat </dev/ttyUSB0

Well I see good $GPGGA... frames displayed^^..

Franck
__________________
zodd is offline   Reply With Quote
Old 06-08-2013, 11:05   #7
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,878
Re: Installing Debugger and VDR Plugins

zodd....

If you see data from $cat </dev/ttyUSB0, then you should see it in OpenCPN. Can you check your connections configuration, and maybe post a screenshot?

What kind of GPS sends at 57KBaud?

Dave
__________________
bdbcat is offline   Reply With Quote
Old 06-08-2013, 11:18   #8
Registered User

Join Date: May 2013
Posts: 38
Re: Installing Debugger and VDR Plugins

It's a "home made GPS" . but it works well with openCPN on Windows.

imageshack has a bug so I don't manage to post a screenshot but my connection configuration is (I have only one connection):

Enable=ON, Serial , /dev/ttyUSB0 , 0 , 57600 , No, In: None, Out : None

I tryed Control Checksum checked and unchecked..
__________________
zodd is offline   Reply With Quote
Old 06-08-2013, 12:19   #9
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,878
Re: Installing Debugger and VDR Plugins

zodd...

OK, please check the logfile, looking for

14:15:23 EDT: Opening NMEA Datastream Serial:/dev/ttyUSB0

Dave
__________________
bdbcat is offline   Reply With Quote
Old 07-08-2013, 01:12   #10
Registered User

Join Date: May 2013
Posts: 38
Re: Installing Debugger and VDR Plugins

Hello,

Yes I've got in opencpn.log:
09:10:00 CEST: Opening NMEA Datastream Serial:/dev/ttyUSB0

but nothing is displayed in openCPN.

and here are the Settings NMEADatasSource in /.opencpn/opencpn.conf :
[Settings/NMEADataSource]
DataConnections=0;0;;0;0;/dev/ttyUSB0;57600;1;0;0;;0;;0;0;0;0;1
__________________
zodd is offline   Reply With Quote
Old 07-08-2013, 02:01   #11
Registered User

Join Date: May 2013
Posts: 38
Re: Installing Debugger and VDR Plugins

Maybe I have a clue but I don't know how I could verify it..

Because when I do :
$ stty -F /dev/ttyUSB0 ispeed 57600
I have an error message:
stty /dev/ttyusb0 unable to perform all requested operations
But if I do after:
$ stty -F /dev/ttyUSB0
the configuration is OK, baud rate is well at 57600.. And if after I do
$ cat </dev/ttyUSB0
It works well and I can see all the GPGGA frames.

I saw on google that it could maybe exist a conflict between usbserial driver and ftdi_sio on Ubuntu 12.04 LTS.. (I use a ftdi Quad RS232 component to do the conversion from serial to USB ). For the moment, I didn't install anything from FTDI; I just plugged the USB..

and if I do :
$ lsmod | gerep ftdi_sio
I've got 2 lines:
ftdi_sio 40016 0
usbserial 42630 1 ftdi_sio


I've you got an idea?
__________________
zodd is offline   Reply With Quote
Old 07-08-2013, 04:57   #12
cruiser

Join Date: Sep 2007
Location: Tampa to New York
Boat: Morgan 33 OutIsland, Magic and 33' offshore scott design "Cutting Edge"
Posts: 1,594
Re: Installing Debugger and VDR Plugins

Hmm I just went through a maddening experience getting a delorme gps to kinda work on ubuntu 12,04lts. It made a difference on which usb port I was plugged into, finally got gps transmitting data and sending data to opencpn and viking but it shows no data stream in the debug window and gpsmon hangs up when It accesses /dev/ttyUSB0. I hook up the same gps to my laptop and everything works flawlessly with the same operating system. I think there was a recent update that seemed to address the problems in ubuntu. I installed the updates and the gps got a fix while updates were being installed(light started flashing green.)

If you havent already looked here,

Troubleshooting GPSD

may want to take a look
__________________
forsailbyowner is offline   Reply With Quote
Old 07-08-2013, 06:16   #13
Registered User

Join Date: May 2013
Posts: 38
Re: Installing Debugger and VDR Plugins

Thanks for your answer.

I would prefer not use gpsd.. but I tryed it and I still don't have any data displayes in openCPN.

I installed a xubuntu 12.04 on an old computer with just openCPN to see if I have the same issue.

I added myself to dialout group, and do a chmod a+rw /dev/ttyUSB0.

if I try a sudo killall gpsd, I have "no process found" . so I guess that gpsd is disabled.

and I can see well see the "$GPGGA.. " frame with a cat </dev/ttyUSB0 in the terminal.

but I still doesn't have any data displayed in openCPN.

For information, my GPS is only able to send the same frame $GPGGA each second.The frames are well displayed if I use openCPN on Windows Seven.
__________________
zodd is offline   Reply With Quote
Old 07-08-2013, 08:08   #14
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,878
Re: Installing Debugger and VDR Plugins

zodd...

Well, I don't understand this either.

Lets try gpsd. Please step through the troubleshooting tips shown in the link provided by "forsailbyowner".

You may try the app "gpsdrive" to confirm the gpsd setup before starting OpenPCN.

In OpenCPN, you should set the connection as Network, GPSD, localhost.


Dave
__________________
bdbcat is offline   Reply With Quote
Old 07-08-2013, 09:59   #15
Registered User

Join Date: May 2013
Posts: 38
Re: Installing Debugger and VDR Plugins

Hello Dave,

Thanks for your help.

Well I stepd through the troubleshooting tips shown in the link provided by "forsailbyowner".

lsusb and dmesg are working .

dmesg gives me:

usb 1 - 2 : FTDI USB Serial Device Converter now attached to ttyUSB0

if I do xgps, it tell me that gpsd is not running...

so I try to make sure that there is not another instance of gpsd running:
sudo killall gpsdsudo rm /var/run/gpsd.sock

Then I do gpsmon /dev/ttyUSB0
and I've got the GPGGA data displayed well with the \x0d\x0a at the end of each frame ^^

now I do:
# gpsd -N -D3 -F /var/run/gpsd.sock gpsd:INFO: launching (Version 3.4) gpsd:INFO: listening on port gpsd gpsd:INFO: running with effective group ID 20 gpsd:INFO: running with effective user ID 65534
gpsd:INFO: startup at 2013-08-07T15:33:55.000Z (1375889635)
^Cgpsd: received terminating signal 2. gpsd:WARN: exiting.
#


after I do:
# gpsd -N -D3 -F /var/run/gpsd.sock /dev/ttyUSB0
gpsd:INFO: launching (Version 3.4) gpsd:INFO: listening on port gpsd
gpsd:INFO: NTPD ntpd_link_activate: 1
gpsd:INFO: stashing device /dev/ttyUSB0 at slot 0
gpsd:INFO: running with effective group ID 20 gpsd:INFO: running with effective user ID 65534
gpsd:INFO: startup at 2013-08-07T15:37:18.000Z (1375889838)
^Cgpsd: received terminating signal 2. gpsd:WARN: exiting.
#


but I dont' have the lines :
gpsd: control socket connect on fd 6
gpsd: <= control(6): /dev/ttyUSB0 already active


so I checked to the section "udev Hotplug Troubleshooting"
Troubleshooting GPSD

lsusb is working well like expected.

I can see hotplugs of ttyUSB0 events with tail -f /var/log/syslog.

but I dont' have this lines:
gpsd.hotplug: gpsd_control(action=add, arg=/dev/ttyUSB0)
gpsd.hotplug: launching gpsd -F /var/run/gpsd.sock

so I tryed this:

cd /lib/udev && ./gpsd.hotplug add /dev/ttyUSB0

and after again:
# gpsd -N -D3 -F /var/run/gpsd.sock /dev/ttyUSB0

I still doesn't have this two lines:
gpsd: control socket connect on fd 6
gpsd: <= control(6): /dev/ttyUSB0 already active


But I tryed "cgps"
I've got cgps: GPS timeout..

but I have also in the gpsd shell:

gpsd:INFO: opening GPS data source type 3 at '/dev/ttyUSB0'
gpsd:INFO: speed 4800, 8N1
gpsd:INFO: attempting USB device enumeration.
gpsd:INFO: 80ee:0021 (bus 1, device 2)
gpsd:INFO: 0403:6011 (bus 1, device 24)
gpsd:INFO: 1d6b:0001 (bus 1, device 1)
gpsd:SHOUT: vendor/product match with 091e:0003 not found
gpsd:INFO: speed 9600, 8O1
gpsd:INFO: speed 4800, 8N1
gpsd:INFO: gpsd_activate(): activated GPS (fd 8)
gpsd:INFO: /dev/ttyUSB0 identified as type Generic NMEA (0.372260 sec @ 4800bps)
gpsd: DATA: GPGGA: registers fractional time 64036.29
gpsd:WARN: can't use GGA time until after ZDA or RMC has supplied a year.
gpsd: DATA: GGA: hhmmss=064036.289 lat=48.61 lon=7.68 alt=200.20 mode=3 status=1
gpsd: DATA: packet from /dev/ttyUSB0 with {ONLINE|LATLON|ALTITUDE|STATUS|MODE|PACKET|DRIVER| CLEAR}
gpsd: DATA: GGA: hhmmss=064036.289 lat=nan lon=nan alt=nan mode=1 status=0
gpsd: DATA: packet from /dev/ttyUSB0 with {ONLINE|STATUS|PACKET}
gpsd: DATA: GGA: hhmmss=064036.289 lat=nan lon=nan alt=nan mode=1 status=0
gpsd: DATA: packet from /dev/ttyUSB0 with {ONLINE|STATUS|PACKET}
gpsd: DATA: GGA: hhmmss=064036.289 lat=nan lon=nan alt=nan mode=1 status=0


So I tryed with xgps.. and xgps displayed well the datas ^^ !!

So I launched openCPN
in network, GPSD mode, and localhost
, and it display datas in NMEA Debug Window and the point on the chart !!

Well I don't understand what happened.. this don't fix the problem using ttyUSB0 in openCPN, but I think I did some progress here ^^

So what do you think about it?

ps: gpsdrive is not working.
__________________

__________________
zodd is offline   Reply With Quote
Reply

Tags
plug

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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 05:53.


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.