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 28-03-2024, 13:34   #46
Registered User
 
Franziska's Avatar

Join Date: Mar 2011
Location: Panschwitz, Germany
Boat: Woods Mira 35 Catamaran
Posts: 4,263
Re: Still trouble running NMEA data stream and Radar in parallel. Any help?

Quote:
Originally Posted by s/v Jedi View Post
For UDP traffic you also need to define the UDP port which is to be used. The port number must be the same on each device that sends or receives that UDP data.

I don’t understand why this port number isn’t mentioned by anyone?

Port is 10110.


I do receive the stream on my devices, just not when I switch the radar on. Than the stream dies.
Franziska is online now   Reply With Quote
Old 28-03-2024, 14:07   #47
Registered User

Join Date: Nov 2012
Location: Steinhatchee, FL
Posts: 395
Re: Still trouble running NMEA data stream and Radar in parallel. Any help?

Before we get off track... When you ran the ping command was the Ethernet cable active?
__________________
Bill
"If I were in a hurry, I would not have bought a sail boat." Me
Be Free is offline   Reply With Quote
Old 28-03-2024, 14:09   #48
Registered User

Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 2,936
Re: Still trouble running NMEA data stream and Radar in parallel. Any help?

Quote:
Originally Posted by s/v Jedi View Post
For UDP traffic you also need to define the UDP port which is to be used. The port number must be the same on each device that sends or receives that UDP data.

I don’t understand why this port number isn’t mentioned by anyone?
It was clear in Franziska's screen shots that the port was set correctly. Her issue is that UDP broadcast from OpenCPN works fine(despite using an obviously incorrect IP address of 192.168.43.152.x.x on the connections tab), until she plugs her radar into the Ethernet port. So trying to get UDP broadcast to work normally with an IP address not appended with .x.x
__________________
-Warren
wholybee is offline   Reply With Quote
Old 28-03-2024, 14:15   #49
Registered User

Join Date: Nov 2012
Location: Steinhatchee, FL
Posts: 395
Re: Still trouble running NMEA data stream and Radar in parallel. Any help?

Franziska, I think you misread my earlier post. Please try the connection with 192.168.1.255

That will (according to the manual) cause the UDP message to be sent to the network broadcast address. You should not need to change anything on the phones as long as they are hooked to the same WIFI as the PC.
__________________
Bill
"If I were in a hurry, I would not have bought a sail boat." Me
Be Free is offline   Reply With Quote
Old 28-03-2024, 14:22   #50
Registered User

Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 2,936
Re: Still trouble running NMEA data stream and Radar in parallel. Any help?

The following is working on my test system. OpenCPN 5.9.0 so it looks a bit different. The connection to 127.0.0.1 is a SignalK server outputing test data.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-03-28 141819.png
Views:	14
Size:	57.1 KB
ID:	288188   Click image for larger version

Name:	Screenshot_20240328-141806.png
Views:	12
Size:	120.8 KB
ID:	288189  

__________________
-Warren
wholybee is offline   Reply With Quote
Old 28-03-2024, 14:59   #51
always in motion is the future
 
s/v Jedi's Avatar

Cruisers Forum Supporter

Join Date: Feb 2009
Location: in paradise
Boat: Sundeer 64
Posts: 19,004
Re: Still trouble running NMEA data stream and Radar in parallel. Any help?

Okay, port is set correctly.

Next thing: who knows something about the radar scanner IP? I kind of think that it will try to find a DHCP server when starting up.

You can simply connect it to a LAN port of the router and give it an address in the same subnet, averting the whole mess about Windows trying to do TCP/IP.
__________________
“It’s a trap!” - Admiral Ackbar.

s/v Jedi is offline   Reply With Quote
Old 28-03-2024, 15:29   #52
Registered User

Join Date: Nov 2012
Location: Steinhatchee, FL
Posts: 395
Re: Still trouble running NMEA data stream and Radar in parallel. Any help?

Jedi, the radar is working properly. The problem we are trying to fix is on the wireless connection to other devices.
__________________
Bill
"If I were in a hurry, I would not have bought a sail boat." Me
Be Free is offline   Reply With Quote
Old 28-03-2024, 15:44   #53
Registered User
 
Franziska's Avatar

Join Date: Mar 2011
Location: Panschwitz, Germany
Boat: Woods Mira 35 Catamaran
Posts: 4,263
Re: Still trouble running NMEA data stream and Radar in parallel. Any help?

Quote:
Originally Posted by Be Free View Post
Before we get off track... When you ran the ping command was the Ethernet cable active?

Yes radar was on.
Franziska is online now   Reply With Quote
Old 28-03-2024, 16:30   #54
Registered User
 
Franziska's Avatar

Join Date: Mar 2011
Location: Panschwitz, Germany
Boat: Woods Mira 35 Catamaran
Posts: 4,263
Re: Still trouble running NMEA data stream and Radar in parallel. Any help?

Quote:
Originally Posted by Be Free View Post
Franziska, I think you misread my earlier post. Please try the connection with 192.168.1.255

That will (according to the manual) cause the UDP message to be sent to the network broadcast address. You should not need to change anything on the phones as long as they are hooked to the same WIFI as the PC.

Here you go, radar was on:


Microsoft Windows [Version 10.0.19045.4170]
(c) Microsoft Corporation. Alle Rechte vorbehalten.
C:\Users\Catamaran Lady Rover>ping 192.168.1.255
Ping wird ausgeführt für 192.168.1.255 mit 32 Bytes Daten:
PING: Fehler bei der Übertragung. Allgemeiner Fehler.
PING: Fehler bei der Übertragung. Allgemeiner Fehler.
PING: Fehler bei der Übertragung. Allgemeiner Fehler.
PING: Fehler bei der Übertragung. Allgemeiner Fehler.
Ping-Statistik für 192.168.1.255:
Pakete: Gesendet = 4, Empfangen = 0, Verloren = 4
(100% Verlust),
C:\Users\Catamaran Lady Rover>
Franziska is online now   Reply With Quote
Old 28-03-2024, 16:56   #55
Registered User

Join Date: Nov 2012
Location: Steinhatchee, FL
Posts: 395
Re: Still trouble running NMEA data stream and Radar in parallel. Any help?

Were still missing each other (just barely). I need you to put the 192.168.1.255 in the UDP connection on OpenCPN in place of the 192.168.43.152.x.x


On a much lighter note: the ping command in the format you just entered it used to be used for creating a denial-of-service attack a long time ago.

Fortunately (these days) most machines refuse to respond to it by default.
__________________
Bill
"If I were in a hurry, I would not have bought a sail boat." Me
Be Free is offline   Reply With Quote
Old 29-03-2024, 02:22   #56
Registered User
 
Franziska's Avatar

Join Date: Mar 2011
Location: Panschwitz, Germany
Boat: Woods Mira 35 Catamaran
Posts: 4,263
Re: Still trouble running NMEA data stream and Radar in parallel. Any help?

Quote:
Originally Posted by Be Free View Post
Were still missing each other (just barely). I need you to put the 192.168.1.255 in the UDP connection on OpenCPN in place of the 192.168.43.152.x.x


On a much lighter note: the ping command in the format you just entered it used to be used for creating a denial-of-service attack a long time ago.

Fortunately (these days) most machines refuse to respond to it by default.

YOU ARE MY HERO!
RADAR & DATA STREAM WORK IN PARALLEL.



THANK YOU SO MUCH ❤️


If you are ever close happy to take you sailing, drinks included ��


Attached the screenshot of the UDP in OpenCPN and a screenshot in the settings of the free Android app NavMonitor.


Click on the images to see them better.
Attached Thumbnails
Click image for larger version

Name:	20240329_101717.jpg
Views:	22
Size:	390.4 KB
ID:	288221   Click image for larger version

Name:	Screenshot_20240329_101739_NavMonitor.jpg
Views:	16
Size:	141.7 KB
ID:	288222  

Franziska is online now   Reply With Quote
Old 29-03-2024, 04:56   #57
always in motion is the future
 
s/v Jedi's Avatar

Cruisers Forum Supporter

Join Date: Feb 2009
Location: in paradise
Boat: Sundeer 64
Posts: 19,004
Re: Still trouble running NMEA data stream and Radar in parallel. Any help?

Quote:
Originally Posted by Be Free View Post
Jedi, the radar is working properly. The problem we are trying to fix is on the wireless connection to other devices.
I know. There are multiple ways of doing that. Creating two TCP/IP interfaces on a Windows computer, one wired and one wireless, is one option. You can also connect both NMEA and the radar over just one interface, even just the wireless interface if it is fast enough and this is what I would recommend (being a network engineer)
__________________
“It’s a trap!” - Admiral Ackbar.

s/v Jedi is offline   Reply With Quote
Old 29-03-2024, 07:10   #58
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Still trouble running NMEA data stream and Radar in parallel. Any help?

Well OP and Heros, the manual needs some assistance.
I've reported/written this up Windows Wifi Router and Ethernet with Radar but it is very rough. We need this information to be condensed and polished up and with confirmation as well. Thanks.

Be Free in Post 42 says the manual is "Less than clear" about this.
where in the manual is it unclear about this topic? Please give me the location.

Also it would be helpful if you suggested the clarification wording. Thank you.
rgleason is offline   Reply With Quote
Old 29-03-2024, 08:32   #59
Registered User

Join Date: Mar 2011
Posts: 651
Re: Still trouble running NMEA data stream and Radar in parallel. Any help?

Dare I say it, but we may need a "dummies guide to networking".

This is probably, more of a summary of the thread, however in this case, the user needed to know:
1. In general Radars will use a DHCP Server to obtain an IP address. However as the radar was directly connected to the PC, and not via a router with a DHCP Server, or with no DHCP Service running on the PC, both the PC and Radar will use an autoconf address in the range 169.254.0.0 to 169.254.255.255.

2. For receiving or transmitting NMEA 0183 data via WiFi, once the PC has connected to the WiFi Access Point with the correct SSID and Password, the user MUST know the IP Subnet.

On Windows this is easily performed from a command prompt with the ipconfig command, and on Mac OSX and Linux, from a terminal using the ifconfig command.

Most "consumer grade" WiFi Access Points (including those included in marine gateways from Actisense, Yacht Devices, Ship Modul) create a Private Network using IP addresses from the range 192.168.0.0 to 192.168.255.255.

Let's say for example the output from ipconfig indicates that the PC's IP address is 192.168.1.104 and the Subnet Mask is 255.255.255.0. This infers that addresses will be allocated from the range 192.168.1.0 to 192.168.1.255, although 192.168.1.0 is usually not assigned and 192.168.1.255 is reserved as the broadcast address.

In this specific example, the user wanted to transmit NMEA 183 data from OpenCPN to another device using UDP. It was just a matter of configuring an OpenCPN outbound connection, using the broadcast address (in this case 192.168.1.255) and a port number, ensuring the same port number is used by the other devices. Port 10110 is the default port number for NMEA 183.

The last thing to note is that for most devices, if receiving data via UDP, an IP address 0.0.0.0 means that the device will listen on all of its network adapters.

What exacerbated the problem was two things.

Firstly that Windows 10, automagically disconnected the Wifi when an Ethernet connection existed. While the user did change the VLAN & Priority setting via Group Policy, Group Policy changes are not automatically applied. They are only applied if the user logs on, the machine restarts or a specific time period has elapsed. To force an immediate update of Group Policy, from a command prompt run the command gpupdate /force.

Secondly the information the French guide "Pratiques et Techniques" is patently wrong in depicting an incorrect IP address format.

In reality, OpenCPN should have checked that a valid IP address was entered and not blindly accept an address of the form 192.168.43.152.x.x.
stevead is offline   Reply With Quote
Old 29-03-2024, 08:39   #60
always in motion is the future
 
s/v Jedi's Avatar

Cruisers Forum Supporter

Join Date: Feb 2009
Location: in paradise
Boat: Sundeer 64
Posts: 19,004
Re: Still trouble running NMEA data stream and Radar in parallel. Any help?

Quote:
Originally Posted by stevead View Post
Dare I say it, but we may need a "dummies guide to networking".

This is probably, more of a summary of the thread, however in this case, the user needed to know:
1. In general Radars will use a DHCP Server to obtain an IP address. However as the radar was directly connected to the PC, and not via a router with a DHCP Server, or with no DHCP Service running on the PC, both the PC and Radar will use an autoconf address in the range 169.254.0.0 to 169.254.255.255.

2. For receiving or transmitting NMEA 0183 data via WiFi, once the PC has connected to the WiFi Access Point with the correct SSID and Password, the user MUST know the IP Subnet.

On Windows this is easily performed from a command prompt with the ipconfig command, and on Mac OSX and Linux, from a terminal using the ifconfig command.

Most "consumer grade" WiFi Access Points (including those included in marine gateways from Actisense, Yacht Devices, Ship Modul) create a Private Network using IP addresses from the range 192.168.0.0 to 192.168.255.255.

Let's say for example the output from ipconfig indicates that the PC's IP address is 192.168.1.104 and the Subnet Mask is 255.255.255.0. This infers that addresses will be allocated from the range 192.168.1.0 to 192.168.1.255, although 192.168.1.0 is usually not assigned and 192.168.1.255 is reserved as the broadcast address.

In this specific example, the user wanted to transmit NMEA 183 data from OpenCPN to another device using UDP. It was just a matter of configuring an OpenCPN outbound connection, using the broadcast address (in this case 192.168.1.255) and a port number, ensuring the same port number is used by the other devices. Port 10110 is the default port number for NMEA 183.

The last thing to note is that for most devices, if receiving data via UDP, an IP address 0.0.0.0 means that the device will listen on all of its network adapters.

What exacerbated the problem was two things.

Firstly that Windows 10, automagically disconnected the Wifi when an Ethernet connection existed. While the user did change the VLAN & Priority setting via Group Policy, Group Policy changes are not automatically applied. They are only applied if the user logs on, the machine restarts or a specific time period has elapsed. To force an immediate update of Group Policy, from a command prompt run the command gpupdate /force.

Secondly the information the French guide "Pratiques et Techniques" is patently wrong in depicting an incorrect IP address format.

In reality, OpenCPN should have checked that a valid IP address was entered and not blindly accept an address of the form 192.168.43.152.x.x.
Exactly, thanks for writing all that, I couldn’t bring myself to it (again). If the router can set fixed DHCP address allocations so that the PC and the radar always get the same address, then the whole Ethernet interface on Windows with all it’s problems could be avoided as everything would run over wifi.
__________________
“It’s a trap!” - Admiral Ackbar.

s/v Jedi is offline   Reply With Quote
Reply

Tags
nmea, 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
Viewing NMEA Data Stream RaymondR Marine Electronics 15 13-02-2020 13:04
WiGig for Radar, AIS & Nmea stream rgleason OpenCPN 21 26-01-2015 02:17
Trouble with NMEA data from Bluetooth gps receiver Lovinit OpenCPN 5 03-06-2013 15:49
Four Solar Panels - Parallel , Series or Series-Parallel west coaster Electrical: Batteries, Generators & Solar 76 07-07-2011 14:35
No GPS data even though data stream window ... Netsurfer OpenCPN 10 09-06-2011 04:41

Advertise Here


All times are GMT -7. The time now is 14:09.


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.