Why doesn't Method B work
Why are you reconnecting back to Opencpn? What is it needed for?
If you are doing that, isn't there a way to put a filter on the incoming stream?
Windows - Send Waypoints over IP? wifi? to NSS8.
NSS8 with wifi ...listening for NMEA183 & 2000 .. over IP.
.. I want to ..create routes to port over to chartplotter
wont accept waypoint or route
data via wifi. Uss USB or SD to copy.
Hakan -suggested which works.
|--Com1 <---WP --- Com1 O-PORT
|--Com2 ----WP --> Com2 O-MAIN Net-IP-UDP ---> IP-UDP NSS8 (or use IP-TCP)
Method A allows to send a WPT or a route
to another device via IP (ethernet cable or a wifi link). In my case the other device is wired into a router.
Barnakiel - Suggested and tried (Don't get this at all?)
|OUT ---->Com2 (virt)--> NavMonPC ---> Net IP-UDP
| IN <---Com1 (real)
Not sure NavMon & OpenCPN can tap into the same port at once?
I need OpenCPN to be on the net port because my nmea data comes in this way.
Result: ONE WP via COM1 (to "GPS")-->COM2-->UDP & COM1-->COM2-->UDP & COM1 ... feedback loop.
Fully faulty method B (one OpenCPN instance - this loops back).
Method C Two Wireless devices
Example: sending wpts from one wireless device to another wireless device over a wifi router.
wifi --ip-udp--> wifi router -- ip-udp --> wifi
Same trick between two wireless devices. How the IP router should treat an incoming WPT. Is there anything like an 'echo' command that would send the WPT back over the network so that other connected devices could pick it up?
Two wireless devices on the same network segment (like 192.168.1.xx) no problem using protocol UDP. UDP is like a radio
broadcast without a specific receiver, everyone is listening as long they're tuned to the same port, like 10110.
The router doesn't care what's broadcast.
2 x laptops running OpenCPN, both on same 192.168.x.x network
1 x wireless router, AP; creator of the above mentioned network.
The intention: to send WPTs wirelessly between these two laptops.
Wpt sent is not recieved... due to how my wifi nmea router works: it muxes serial and net ports
. So whatever appears on a serial, gets forwarded to a net and vice-versa. However things that appear on the net do not get forwarded back to the same net.
serial ---> wifi - OK
wifi ---> serial - OK
IP UDP serial ---> IP UDP serial - NO (and the reverse)
..due to firewall settings on the router?
The router is set to AP mode.
So my wifi devices are clients, the router acts as a server.
Changed to UDP Broadcast
Now my router too forwards the WPT back to the network. So all instances of OpenCPN that are on this network receive it.