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 01-05-2014, 10:08   #1
Registered User

Join Date: Jan 2011
Posts: 670
Need help broadcasting NMEA data over a local network using UDP

Do any of you have any tips for sharing NMEA data over a network using UDP protocol in Windows (beyond what's in the OpenCPN online user manual)?

I tried it yesterday, but met with very frustrating results. I was using a brand new travel router (Zyxel MWR102) fresh out of the box. I connected my tablet and netbook to it by WiFi, and within OpenCPN 3.3.1606 I quickly set up UDP (with output box checked) at 192.168.100.1:9247 on the tablet and did the same thing (but without output box checked) on the netbook. Since I was not on the boat, I used the VDR plug in to send out the NMEA sentences from the tablet and it worked! The NMEA debug window showed data going out and coming in as expected, and the "ownship" icon and AIS target icons all showed up perfectly.

Then I realized that a couple things were not "optimal" with my setup. Port 9247 is normally used for GPSD, so I changed the port to 10110 on both computers. Also, I had the priority for the UDP ports higher than incoming COM and TCP instruments (even though those were unchecked), so I lowered the priority for the UDP connections. Also, there were some auto-updates of Windows 8 on the tablet and of AVG on the Netbook that occurred during the test. I am not sure which of these changes caused the things to break, but it stopped working. And nothing I did could get it to work again. I went about "undoing" all the changes that I had made, with dozens of reboots of both OpenCPN and the OS on both machines. But nothing could get it to work like it had originally. OpenCPN's NMEA debug window still shows the sentences going out on the talking machine (tablet), but OpenCPN on the receiving machine (netbook) shows nothing coming in. I tried running TeraTerm on the netbook to see what is coming in, but it supports COM and TCP only - not UDP.

Can any of you offer clues to what is wrong here? Do most routers restrict what ports can be used for specific protocols? Would Windows firewall (or the router) have detected unusual activity and shut down the port without warning? Since multiple reboots of the computers did not work, should I reset my router to factory default settings to eliminate any port mapping that might me interfering?

The most frustrating part of this is the "quick and dirty" setup worked right away. It only broke after I tried to "clean things up" with proper port number and priority.
RhythmDoctor is offline   Reply With Quote
Old 01-05-2014, 10:36   #2
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,739
Re: Need help broadcasting NMEA data over a local network using UDP

For me the attached setup works (this from the receiving one but the UDP server has the same setting just with output checked.
The sender is an ARM micro PC with Sean's optimized version, and there a several clients on wired Ethernet and as well on wireless.
Attached Thumbnails
Click image for larger version

Name:	Captura de pantalla 2014-05-01 a la(s) 19.31.40.png
Views:	400
Size:	80.3 KB
ID:	80329  
bcn is online now   Reply With Quote
Old 01-05-2014, 13:50   #3
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,146
Re: Need help broadcasting NMEA data over a local network using UDP

And I use for the "sender":
UDP address: 192.168.x.x (Really do type "x".)
Port: 10110
Filter "Commands to receive": "ZZZ" (or anything else not interpreted as an NMEA sentence to avoid mirrored messages on the net.)
Check:"Output on this port"

For every "receiver":
UDP address: Empty
Port: 10110

This use to pass every router I've tried.
Håkan
Hakan is offline   Reply With Quote
Old 02-05-2014, 04:53   #4
Registered User

Join Date: Jan 2011
Posts: 670
Re: Need help broadcasting NMEA data over a local network using UDP

Quote:
Originally Posted by Hakan View Post
And I use for the "sender":
UDP address: 192.168.x.x (Really do type "x".)
Port: 10110
Filter "Commands to receive": "ZZZ" (or anything else not interpreted as an NMEA sentence to avoid mirrored messages on the net.)
Check:"Output on this port"

For every "receiver":
UDP address: Empty
Port: 10110

This use to pass every router I've tried.
Håkan
I tried this at the boat yesterday and it worked perfectly. Thanks!
RhythmDoctor is offline   Reply With Quote
Reply

Tags
cal, nmea


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
NMEA Network with OCPN Toubab OpenCPN 13 21-02-2017 23:00
Help connecting our NMEA data sources offgridcanuck Marine Electronics 1 29-01-2014 11:17
Garmin GMS 10 network port expander vs network hub gettinthere Marine Electronics 0 04-06-2013 16:42
NMEA 2K Network Problems (Garmin GMI 10/Airmar DST800/GPS 19X (NMEA0183)) atsakir Marine Electronics 2 05-02-2013 00:58
NMEA Network Askopelos Marine Electronics 83 03-02-2012 10:19

Advertise Here


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


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.