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 Rating: Thread Rating: 5 votes, 4.80 average. Display Modes
Old 15-12-2013, 21:44   #331
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,463
Re: OpenCPN Radar Overlay PlugIn

Matt...

1. Multicast is how the Garmin radar scanner sends out its scan data. It is presumably done that way in order to support multiple simultaneous display heads.

2. gradar PlugIn works fine on Win7.

3. I sure would like to see your system simplified a bit in the network configuration, until we can get the radar working at least.
-Drop IPV6
-Unplug/disable the wireless adapter.
-Nuke the tunnel interface.

Who knows what is going on with your system, but lets get back to basics.

Simplify, simplify, simplify. Get gradar working. Then add complexity back, bit by bit, until it breaks.

Dave
bdbcat is offline   Reply With Quote
Old 16-12-2013, 09:29   #332
Registered User

Join Date: Apr 2009
Location: Marina Del Rey
Boat: Hylas 44
Posts: 387
Re: OpenCPN Radar Overlay PlugIn

Matt

This is the network setup on my vista machine. Simple.

Click image for larger version

Name:	network.JPG
Views:	252
Size:	51.2 KB
ID:	72242Click image for larger version

Name:	network2.JPG
Views:	383
Size:	46.4 KB
ID:	72243

Also as previously suggested, power up the scanner before starting OpenCPN.

Chuck
ChuckSK is offline   Reply With Quote
Old 16-12-2013, 10:21   #333
JRM
Registered User

Join Date: Aug 2009
Location: California
Boat: Valiant 40
Posts: 431
Images: 2
Quote:
Originally Posted by Helmsmatt View Post
Pavel, Below is ipconfig /all We haven't made any more progress today. Tried disabling Windows Firewall, Trend Micro Internet Security, and wireless adaptor. No change to the pi_log. Still shows: 0: Found network interface: 10.50.10.123/24 1: Found network interface: 172.16.1.1/16 2: Found network interface: 127.0.0.1/8 3: Scanner at 172.16.2.0 is accessible. 4: UpdateState: PluginState [M] Searching (1) Scanner state: Unknown (0) 5: UpdateState: PluginState [M] Searching (1) Scanner state: Unknown (0) Chuck, Please explain why multicasting is required for gradar and how we can enable it in Windows 7. Thanks for all of your help. Matt & Cindy C:\Users\Cindy>ipconfig /all Windows IP Configuration Host Name . . . . . . . . . . . . : Cindy-ASUS Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Broadcast IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Atheros AR8151 PCI-E Gigabit Ethernet Con troller (NDIS 6.20) Physical Address. . . . . . . . . : C8-60-00-52-01-F4 DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::5d54:88f5:25b3:eb91%13(Preferred) IPv4 Address. . . . . . . . . . . : 172.16.1.1(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.240.0 Default Gateway . . . . . . . . . : DHCPv6 IAID . . . . . . . . . . . : 298344448 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-17-72-9D-6F-C8-60-00-52-01-F4 DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 NetBIOS over Tcpip. . . . . . . . : Enabled Wireless LAN adapter Wireless Network Connection: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Intel(R) Centrino(R) Wireless-N 2230 Physical Address. . . . . . . . . : 68-5D-43-83-6D-64 DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::dd08:3c2c:a0b1:c688%14(Preferred) IPv4 Address. . . . . . . . . . . : 10.50.10.123(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Lease Obtained. . . . . . . . . . : Sunday, December 15, 2013 10:56:19 PM Lease Expires . . . . . . . . . . : Monday, December 16, 2013 10:56:19 PM Default Gateway . . . . . . . . . : 10.50.10.254 DHCP Server . . . . . . . . . . . : 10.50.10.254 DHCPv6 IAID . . . . . . . . . . . : 359161155 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-17-72-9D-6F-C8-60-00-52-01-F4 DNS Servers . . . . . . . . . . . : 10.50.10.254 NetBIOS over Tcpip. . . . . . . . : Enabled Tunnel adapter isatap.{6BF76616-3448-4C32-8DB0-B3F097AF951F}: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft ISATAP Adapter Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Tunnel adapter Teredo Tunneling Pseudo-Interface: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Tunnel adapter isatap.{FB016932-128C-4ECE-B0CB-A57EC6D22C95}: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3 Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes
pi_log and ipconfig show different subnet masks for the 172.16.1.1 space. pi_log says /16 and ipconfig says /28. The given 172.16.2.0 address is outside the bound subnet. There doesn't seem to be a default route in that subnet, but maybe I'm missing it and I didn't see a routing table. Either way, that /28 subnet seems a bit odd.

Another command that sometimes sheds light is "netstat" which I believe is also available in windows. Feed it the option to bypass name lookups to save time (sorry, not really a windows guy so I don't know the flags off tr top of my head). Netstat will show you the ports that are actively bound and listening, as well as active connections. Might be helpful.

My scanner is sitting on my settee waiting installation, so you're a ways ahead of me. I am fascinated that Garmin spec'ed a crossover cable. I had to cut mine to feed it, and I just assumed the ends were the same. Thanks for the heads up, I'll have to look into that.

I don't know much about the grader plugin yet, but I spent years as a systems and network administrator in ISP land, so I'll help how I can.

JRM
JRM is offline   Reply With Quote
Old 16-12-2013, 11:01   #334
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,463
Re: OpenCPN Radar Overlay PlugIn

Matt....

Multicast: Check this.
routing - How do I add a multicast route in Windows 7? - Server Fault

Dave
bdbcat is offline   Reply With Quote
Old 16-12-2013, 11:04   #335
Registered User

Join Date: Jul 2010
Location: East Coast US, Caribbean
Boat: Moody 425 sloop
Posts: 128
Re: OpenCPN Radar Overlay PlugIn

Dave,
We got the multicaster message. Found that site this morning....like minds.
Cindy is sending detail sooon.
Still no image.
Thanks,
Matt
Helmsmatt is offline   Reply With Quote
Old 16-12-2013, 11:13   #336
Registered User

Join Date: Jul 2010
Location: East Coast US, Caribbean
Boat: Moody 425 sloop
Posts: 128
Re: OpenCPN Radar Overlay PlugIn

Thanks to all for your dedication and input.

We have made a tiny bit of progress and have documented all the test steps and results of your setting suggestions. In summary, we found that we had the v12 version of gradar plug-in installed and when we installed the v13, the message "Successfully added to multicast group 239.254.2.0" started appearing. We disabled the "tunnels" and simplified the ipconfig. Disabled Windows Firewall, Wireless adapter, and virus protection. Verified that Radar was powered on before starting OpenCPN and IP settings were exactly like Chuck's. Still the Radar button in OpenCPN will not go green.

Here are the details of the steps taken and results:
1. Disabled Windows Firewall
2. Disabled Wireless adaptor
3. Checked OpenCPN plug-ins and realized that we still had the v12 installed.
4. Copied the v13 dll into plug-ins and deleted the v12 dll
5. Verified Radar and GPS are powered up
5. Started OpenCPN and saw that log now contains "Successfully added to multicast group 239.254.2.0"
6. Tried clicking on Radar button but indicator stays red.
7. Here is log:
0: Found network interface: 172.16.1.1/16
1: Found network interface: 127.0.0.1/8
2: Scanner at 172.16.2.0 is accessible.
3: Successfully added to multicast group 239.254.2.0
4: UpdateState: PluginState [M] Searching (1) Scanner state: Unknown (0)
5: Heading: 265
6: Heading: 0
7: Heading: 264
8: Heading: 0

8. Disabled tunnel adaptors using CMD as administrator:
netsh int teredo set state disabled
netsh int isatap set state disabled

9. Rebooted
10.Below is results of ipconfig /all showing that only the Ethernet adaptor is running
11. Verified that Local Area Connections only has "IP version 4" checked
12. Verified that IP version 4 properties are statically set to:
IP address: 172.16.1.1
Subnet mask: 255.255.240.0
Default gateway: 172.16.1.100
13. Verified that Windows Firewall is OFF
14. Verified that Micro Trend Internet Security & Virus Protection is OFF
15. Radar powered on. Started OpenCPN.
16. Log results are the same as above. Radar button does not turn green.




C:\Users\Cindy>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : Cindy-ASUS
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Atheros AR8151 PCI-E Gigabit Ethernet Con
troller (NDIS 6.20)
Physical Address. . . . . . . . . : C8-60-00-52-01-F4
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 172.16.1.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . . :
NetBIOS over Tcpip. . . . . . . . : Enabled
Helmsmatt is offline   Reply With Quote
Old 16-12-2013, 12:00   #337
Registered User

Join Date: Apr 2009
Location: Marina Del Rey
Boat: Hylas 44
Posts: 387
Re: OpenCPN Radar Overlay PlugIn

Try cycling the power to reboot the scanner.
ChuckSK is offline   Reply With Quote
Old 16-12-2013, 13:06   #338
JRM
Registered User

Join Date: Aug 2009
Location: California
Boat: Valiant 40
Posts: 431
Images: 2
Ok, I see one of my mistakes, I was misreading your 172.16.1.1/20 as a /28. Old habits of SWIPing little networks die hard.

Still, that's a /20 in settings and a /16 from the log. At least it makes more sense as the addresses are in the same subnet.

I'll try and download the plugin tonight or tomorrow at work and play with it. But can anyone tell me why the plugin is expecting a different subnet mask? Is it hard coded?

JRM
JRM is offline   Reply With Quote
Old 16-12-2013, 16:17   #339
Registered User

Join Date: Sep 2010
Location: Alaska
Posts: 79
Re: OpenCPN Radar Overlay PlugIn

Matt

Make sure its in Master mode before you Hit the Radar Button
rontom is offline   Reply With Quote
Old 16-12-2013, 16:45   #340
JRM
Registered User

Join Date: Aug 2009
Location: California
Boat: Valiant 40
Posts: 431
Images: 2
Re: OpenCPN Radar Overlay PlugIn

OK, so instead of going out and digging the trenches in my yard like I should have, I downloaded the plugin source and compiled it, and I've been goofing off with it for a while. So far I've just been working in Linux, but I might get a wild hair and go dig up my kid's Windows laptop and try it there as well.

I've been able to replicate the issue with the CIDR notation, and started poking about in the code using Eclipse. It's beyond my current ability, but it's been a great learning experience. I'm working on pulling that conversion function out and getting it to compile on it's own so I can try and figure out how it works. But I have absolutely no clue what I'm doing. Installing Eclipse for me is like giving a six year old a shotgun... a recipe for disaster.

But I'm having a good time, and living the motto "If you can't tie a knot tie a lot."

JRM
JRM is offline   Reply With Quote
Old 16-12-2013, 18:35   #341
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,463
Re: OpenCPN Radar Overlay PlugIn

Matt...

OK, now this has become a puzzle requiring a solution.
You seem to not be receiving any data from the scanner at all.

Cindy: Get wireshark

Wireshark · Download

Install and run wireshark with the scanner switched on, and OCPN inactive (not running). The scanner sends multicast status reporting continuously while powered up, with or without the OCPN PlugIn. gradar monitors these multicasts to determine the scanner status as reported in the log.

You should see something like the attached screen.

Dave
Attached Thumbnails
Click image for larger version

Name:	net3.jpeg
Views:	241
Size:	180.5 KB
ID:	72274  
bdbcat is offline   Reply With Quote
Old 16-12-2013, 18:59   #342
Registered User

Join Date: Jul 2010
Location: East Coast US, Caribbean
Boat: Moody 425 sloop
Posts: 128
Re: OpenCPN Radar Overlay PlugIn

Tried recycling the scanner, and also have previously put it in master mode before clicking the radar button. Doesn't even turn green for a second.
We previously were getting constant status lines on the pi log, but no longer are, so if the scanner is sending status continuously, we're no seeing it. Seems to be running differently since uploading the 1.3 plugin. We only see the boot up, IP address report, and one status line, then just an occasional heading....
Cindy is going through Dave's wires shark message. She's downloading it now. Funny, an IT friend suggested using wire shark at a holiday dinner last night....
Thanks.
Helmsmatt is offline   Reply With Quote
Old 16-12-2013, 19:37   #343
Registered User

Join Date: Jul 2010
Location: East Coast US, Caribbean
Boat: Moody 425 sloop
Posts: 128
Re: OpenCPN Radar Overlay PlugIn

Here are our Wireshark results:
Attached Thumbnails
Click image for larger version

Name:	Wireshark results.jpg
Views:	660
Size:	319.9 KB
ID:	72276  
Helmsmatt is offline   Reply With Quote
Old 16-12-2013, 20:58   #344
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,463
Re: OpenCPN Radar Overlay PlugIn

Matt....

Well, rats

The scanner is multicasting, and your hardware is receiving it. But the PlugIn is not....

Wireshark is very capable, but it still seems odd that he can see packets, and OCPN cannot....

I'm going to build you a custom gradar with some more verbose logging.

btw, we changed the logging in 1.3 to only log status lines on changes, just to reduce the clutter and traffic in the log window. If (when) all is working correctly, you will see an immediate log of scanner status as "standby", and the toolbar icon will switch to amber in color.

Please stand by til Tuesday AM...

Dave
bdbcat is offline   Reply With Quote
Old 17-12-2013, 07:00   #345
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,463
Re: OpenCPN Radar Overlay PlugIn

Matt...

For reference, I brought up a virgin Win7 machine with OCPN and gradar 1.3.

No fiddling required, it just worked. Screenshot attached.

Studying code....

Dave
Attached Thumbnails
Click image for larger version

Name:	net4.jpeg
Views:	364
Size:	62.3 KB
ID:	72293  
bdbcat is offline   Reply With Quote
Reply

Tags
opencpn, paracelle, radar


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 for Navigation gpshephe Marine Electronics 10 30-12-2013 09:33
What Do You Think of Selling OpenCPN? esan6 OpenCPN 25 23-10-2013 08:35
Help with OpenCPN Sailorman375 Navigation 3 11-08-2013 20:58
For Sale: Radar Mount sailorman14 Classifieds Archive 5 23-04-2012 20:50
OpenCPN Version 2.6 Beta Build 1524 bdbcat OpenCPN 115 09-04-2012 11:10

Advertise Here


All times are GMT -7. The time now is 11:00.


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.