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-11-2014, 10:21   #136
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Robbie...
What's even more puzzling is that AFAIK there never was a 0.95 version. Are you sure it does not complain about the "AIS radar" plugin, which had a 0.95 version (now blacklisted because it contains errors)?

Pavel
nohal is offline   Reply With Quote
Old 29-11-2014, 10:45   #137
Registered User

Join Date: Aug 2011
Location: On board
Boat: Rival 41C
Posts: 74
Send a message via Skype™ to RobbieW
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Quote:
Originally Posted by nohal View Post
Robbie...
What's even more puzzling is that AFAIK there never was a 0.95 version. Are you sure it does not complain about the "AIS radar" plugin, which had a 0.95 version (now blacklisted because it contains errors)?

Pavel
Figured out how to do a screen capture...
Click image for larger version

Name:	Screenshot from 2014-11-29 18:33:25.png
Views:	164
Size:	19.7 KB
ID:	92531
... so I dont think its the AIS plugin.

EDIT: I ran the uninstall option for the br24radar_pi_1.0-1_i386 package and restarted OCPN. The error message no longer appears. The only non-standard plugin is the Weather Fax one which I'd not seen before
RobbieW is offline   Reply With Quote
Old 29-11-2014, 11:02   #138
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Robbie...
It definitely is a conflict with blacklisting the AIS radar plugin...
Actually more a bug in the OpenCPN core.

Pavel
nohal is offline   Reply With Quote
Old 29-11-2014, 11:08   #139
Registered User

Join Date: Aug 2011
Location: On board
Boat: Rival 41C
Posts: 74
Send a message via Skype™ to RobbieW
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Quote:
Originally Posted by nohal View Post
Robbie...
It definitely is a conflict with blacklisting the AIS radar plugin...
Actually more a bug in the OpenCPN core.

Pavel
Ok, thanks Pavel - can I leave that one with you then please
RobbieW is offline   Reply With Quote
Old 29-11-2014, 11:26   #140
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Yes. What's puzzling though is that 1.0 evaluates as less than 0.95... That should never happen and actually does not for me. Weird.

Pavel
nohal is offline   Reply With Quote
Old 29-11-2014, 12:05   #141
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,245
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Pavel..
What's also weird is that BR24radar_pi is black listed at all. Kees couldn't use any minor number than 96 without getting thrown out.
Pluginmamanger:602 is checking name, major and minor version but the name itself should be enough to not evaluate true?
But, I'm not sure of the "EndsWith" below. Could it be that BR242Radar_pi and AISRadar_pi are enough to make them equalised? In that case we may consider another logic?
Code:
if( ( PluginBlacklist[i].all_lower &&  name.EndsWith(PluginBlacklist[i].name) &&  PluginBlacklist[i].version_major >= major &&  PluginBlacklist[i].version_minor >= minor )
Håkan
Hakan is offline   Reply With Quote
Old 29-11-2014, 12:11   #142
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Hakan...
Exactly. This, in combination with https://github.com/OpenCPN/OpenCPN/b...nmanager.h#L84
Still it does not explain the message though, if you look at the conditions, 1.0 simply is more than 0.95 and the message should not be displayed...

Pavel
nohal is offline   Reply With Quote
Old 29-11-2014, 13:10   #143
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,245
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Pavel.. No I can't either see why. I know it's working in Windows although DOS are not known for a logic sorting of numbers, but it can't ever be that Linux have some equal mismatch --or??
Håkan
Hakan is offline   Reply With Quote
Old 29-11-2014, 13:23   #144
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Hakan...
This thing is pretty platform dependent. As you can see in the fix at https://github.com/nohal/OpenCPN/com...f4d53434417256
Anyway, it should be solved, I hope...

Pavel
nohal is offline   Reply With Quote
Old 29-11-2014, 13:50   #145
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,245
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Pavel..
Yes, I've debug tested your change in W and the way you got rid of "Class " is working so this would be a nice fix.
Thanks
Håkan
Hakan is offline   Reply With Quote
Old 01-12-2014, 04:15   #146
Registered User

Join Date: Aug 2011
Location: On board
Boat: Rival 41C
Posts: 74
Send a message via Skype™ to RobbieW
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Quote:
Originally Posted by nohal View Post
Hakan...
This thing is pretty platform dependent. As you can see in the fix at https://github.com/nohal/OpenCPN/com...f4d53434417256
Anyway, it should be solved, I hope...

Pavel
Hi Pavel,
Just tried the latest beta, 2330, but I guess your fix isnt in that. If there is a binary I can use to test with I'm happy to do that but I'm not set up to extract & build OCPN.

Cheers ... Robbie
RobbieW is offline   Reply With Quote
Old 01-12-2014, 04:38   #147
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,245
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

All for info...
Thanks to Douwe's tips I've tried tcpreply, a Linux program to broadcast a Wireshark capture on my local network to simulate a radar scanner.
Using: sudo tcpreplay --loop=5 --intf1=eth0 Test3W.pcapng
Results in a nice scanner picture on my Win PC connected to the same local network.
See the picture where I use a VDR play to get a heading and as you may see the VDR and radar capture are not from the same location.

Håkan

Attached Thumbnails
Click image for larger version

Name:	Toolbox.jpg
Views:	231
Size:	312.6 KB
ID:	92639  
Hakan is offline   Reply With Quote
Old 04-12-2014, 12:14   #148
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,245
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Quote:
Originally Posted by nohal View Post
Hakan...
This thing is pretty platform dependent. As you can see in the fix at https://github.com/nohal/OpenCPN/com...f4d53434417256
Anyway, it should be solved, I hope...

Pavel
Pavel
I've been with a Ubuntu on a spare PC! Rather fun actually and I thought some struggling should end, at least based on you Linux "natives" sometime indulgence comments to other OS's
I've installed the official 3.3.2330 and Canboat's BR24Radar_pi.deb and received the blacklist version <= 0.95 message! Are your changes not included in 2330 or is my memory not up to date?
The log says: "Cannot open shared object file: Permission denied"
I haven't yet started handling source in Linux so I can't see what's going on.
Thanks for info/
Håkan
Hakan is offline   Reply With Quote
Old 04-12-2014, 13:23   #149
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Hakan...
Whatever I do, I can't reproduce this problem. Can you post the whole startup part of the logfile? Something like:
Code:
15:19:17 CST: Using s57data in /usr/share/opencpn/s57data
15:19:17 CST: Setting Viewpoint Lat/Lon 41.0531, -73.1918
15:19:17 CST: Setting Ownship Lat/Lon 58.8918, 11.0061
15:19:17 CST: Opening NMEA Datastream TCP:80.78.213.46:6492
15:19:17 CST: Creating glChartCanvas
15:19:17 CST: PlugInManager searching for PlugIns in location /usr/lib/opencpn
15:19:17 CST: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libgrib_pi.so
15:19:17 CST:   /usr/lib/opencpn/libgrib_pi.so
              API Version detected: 107
              PlugIn Version detected: 203
15:19:17 CST: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libbr24radar_pi.so
15:19:17 CST:   /usr/lib/opencpn/libbr24radar_pi.so
              API Version detected: 108
              PlugIn Version detected: 100
15:19:17 CST: BR24radar_pi: GuardZone 1: Off
15:19:17 CST: BR24radar_pi: GuardZone 2: Off
15:19:17 CST: PlugInManager: Loading PlugIn: /usr/lib/opencpn/liblogbookkonni_pi.so
15:19:17 CST:   /usr/lib/opencpn/liblogbookkonni_pi.so
              API Version detected: 107
              PlugIn Version detected: 102
15:19:17 CST: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libweather_routing_pi.so
15:19:17 CST:   /usr/lib/opencpn/libweather_routing_pi.so
              API Version detected: 110
              PlugIn Version detected: 102
15:19:17 CST: OpenGL-> Renderer String: Mesa DRI Intel(R) Ironlake Mobile 
15:19:17 CST: OpenGL-> Detected Intel renderer, disabling stencil buffer
15:19:17 CST: OpenGL-> Texture rectangle format: de1
15:19:17 CST: OpenGL-> Using Vertexbuffer Objects
15:19:17 CST: OpenGL-> Using Framebuffer Objects
15:19:17 CST: OpenGL-> Using FBO Stencil buffer
15:19:17 CST: OpenGL-> Using Depth buffer clipping
15:19:17 CST: OpenGL-> Using s3tc dxt1 compression
15:19:17 CST: OpenGL-> Compressed tile size: 128kb (6:1)
15:19:17 CST: OpenGL-> Minimum cartographic line width:  1.0
15:19:17 CST: OpenGL-> Minimum symbol line width:  1.5
15:19:17 CST: ChartDB Cache policy:  Application target is 1024 MBytes
15:19:17 CST: Loading chart db version: V018
15:19:17 CST: Chartdb: Chart directory list follows
15:19:17 CST:   Chart directory #0: /home/nohal/MyCharts/CM93_Jan2011
15:19:17 CST:   Chart directory #1: /home/nohal/MyCharts/RNC_NY/BSB_ROOT
15:19:17 CST: GPS Watchdog Timeout is: 6 sec.
15:19:17 CST: Background world map loaded from GSHHS datafiles found in: /usr/share/opencpn/gshhs/
15:19:17 CST: Loading World Chart Q=3 in 1 ms.
15:19:18 CST: TCP Datastream connection established: TCP:80.78.213.46:6492
15:19:18 CST: Datastream connection lost: TCP:80.78.213.46:6492
15:19:18 CST: Initializing Chart /home/nohal/MyCharts/RNC_NY/BSB_ROOT/13003/13003_1.KAP
15:19:18 CST: Getting .gpx layer files from: /home/nohal/.opencpn/layers
15:19:20 CST: PlugInManager searching for PlugIns in location /usr/lib/opencpn
15:19:20 CST: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libobjsearch_pi.so
15:19:20 CST: OBJSEARCH_PI: Database file to be used: /home/nohal/.opencpn/objsearch_pi.db
15:19:21 CST:     PlugIn objsearch_pi (ObjSearch), version 0.3 was detected. Hard blacklisted. Not loaded.
15:19:23 CST: TCP Datastream connection established: TCP:80.78.213.46:6492
15:19:23 CST: PlugInManager: Loading PlugIn: /usr/lib/opencpn/libdashboard_pi.so
15:19:23 CST:   /usr/lib/opencpn/libdashboard_pi.so
              API Version detected: 106
              PlugIn Version detected: 102
15:19:23 CST: Datastream connection lost: TCP:80.78.213.46:6492
15:19:29 CST: TCP Datastream connection established: TCP:80.78.213.46:6492
15:19:29 CST: Datastream connection lost: TCP:80.78.213.46:6492
15:19:32 CST: PlugInManager: Deactivating PlugIn: /usr/lib/opencpn/libgrib_pi.so
15:19:32 CST: PlugInManager: Deactivating PlugIn: /usr/lib/opencpn/libbr24radar_pi.so
15:19:33 CST: PlugInManager: Deactivating PlugIn: /usr/lib/opencpn/liblogbookkonni_pi.so
15:19:33 CST: PlugInManager: Deactivating PlugIn: /usr/lib/opencpn/libweather_routing_pi.so
15:19:33 CST: opencpn::MyFrame exiting cleanly.
15:19:33 CST: Closing NMEA Datastream TCP:80.78.213.46:6492
15:19:33 CST: Chart cache purge
15:19:33 CST: PlugInManager: UnLoading PlugIn: /usr/lib/opencpn/libgrib_pi.so
15:19:33 CST: PlugInManager: UnLoading PlugIn: /usr/lib/opencpn/libbr24radar_pi.so
15:19:33 CST: PlugInManager: UnLoading PlugIn: /usr/lib/opencpn/liblogbookkonni_pi.so
15:19:33 CST: PlugInManager: UnLoading PlugIn: /usr/lib/opencpn/libweather_routing_pi.so
15:19:33 CST: PlugInManager: UnLoading PlugIn: /usr/lib/opencpn/libdashboard_pi.so
15:19:33 CST: Chart cache purge
15:19:33 CST: LOGBOOK:  2014-12-04 21:19:33 UTC OFF: Lat   58.89180 Lon   11.00610
15:19:33 CST: opencpn::MyApp exiting cleanly...
nohal is offline   Reply With Quote
Old 04-12-2014, 13:41   #150
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,245
Re: OpenCPN SIMRAD/LOWRANCE Radar Overlay PlugIn

Pavel..
Yes I will copy that but meanwhile:
On github.... pluginmanager.cpp:611
The sorting out of Windows "Class " is there but he "all_lower" are there again? And the message in Ubuntu was complaining about: Radar_pi
Code:
for (int i = 0; i < len; i++) {                                        if( ( PluginBlacklist[i].all_lower && name == PluginBlacklist[i].name && PluginBlacklist[i].version_major >= major && PluginBlacklist[i].version_minor >= minor ) ||                                            ( !PluginBlacklist[i].all_lower && name == PluginBlacklist[i].name && PluginBlacklist[i].version_major == major && PluginBlacklist[i].version_minor == minor ) )

Didn't you changed to something name = name ??
Håkan
Hakan is offline   Reply With Quote
Reply

Tags
enc, opencpn, plug, radar, simrad


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 Radar Overlay PlugIn bdbcat OpenCPN 900 21-09-2022 00:26
Simrad NSS7 and Simrad 3G radar gunkylump Marine Electronics 6 26-04-2015 12:15
KML Overlay Plugin SethDart OpenCPN 151 08-02-2015 06:55
Simrad 3G radar compatible wilth Lowrance HDS? andreas.mehlin Marine Electronics 6 28-05-2014 09:54
Newbie Impressions of Radar Overlay (Raymarine c80) Northeaster Marine Electronics 0 06-07-2009 06:06

Advertise Here


All times are GMT -7. The time now is 06:35.


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.