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 19-06-2022, 13:49   #1
Registered User

Join Date: Jun 2022
Posts: 1
OPenCPN does no longer receive UDP-messages from ESP8266

Hi everybody,


I'm supporting two people with a sensor how much fuel is still in the tank.
This is done with a microcontroller ESP8266. This microcontroller connects to the boats Wifi and then sends NMEA-Data over WiFi-UDP to a laptop running OpenCPN.


The receiving of the data was working. Now after some minot changes but no changes to how the WiFi-connection works OpenCPN does no longer receive the UDP-messages. Port is correct.


If I connect the ESP8266 microcontroller with USB-cable openCPN is able to receive the NMEA-data.


I have some questions in the Options window the IP-adress is 0.0.0.0
The ipV4-IP-Adress of the laptop is 192.168.1.225


If I look up the Arduino-IDE serial monitor I can see UDP sended to 192.168.1.125. Difference .225 to .125



Doe this mean the ESP8266 is just sending to the wrong IPadress?
Does UDP need a receiver-IP-adress?


Is there a broadcasting IP-adress that could be used so all devices in the same network can receive the UDP-messages?


What can I do to narrow down the problem?
Can you recommend an android-App that can send pre-configured UDP-messages. For testing the receiving?


Where can I read in the manual about what UDP-setting does what in the OpenCPN-options Window?


best regards Stefan
StefanL38 is offline   Reply With Quote
Old 19-06-2022, 14:01   #2
Registered User

Join Date: Oct 2021
Posts: 356
Re: OPenCPN does no longer receive UDP-messages from ESP8266

Yes, UDP needs a destination, so it looks like you are sending to the wrong IP. If supported by both sender and receiver you can use a broadcast address. The broadcast address is the highest address in the subnet, likely 192.168.1.255 in your example (that assumes a netmask of 255.255.255.0 or /24). Many UDP senders will accept 255.255.255.255 as a generic broadcast address so you don’t need to know or program network particulars, I don’t know the particulars of the ESP8266 capabilities.
PippaB is offline   Reply With Quote
Old 20-06-2022, 01:45   #3
Registered User

Join Date: Jan 2010
Location: Harlingen, NL
Boat: KMY Stadtship 56
Posts: 517
Re: OPenCPN does no longer receive UDP-messages from ESP8266

Note that if you send (any) data to a broadcast address over WiFi, these packets will consume an extraordinary amount of bandwidth as they are generally sent on the lowest common data rate.
merrimac is offline   Reply With Quote
Reply

Tags
enc, opencpn


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
AIS and MARPA messages to another computer UDP isarafis OpenCPN 3 20-12-2020 23:22
UDP connection not working on OpenCPN Emtsupport OpenCPN 2 08-10-2020 07:48
ESP8266 Fuel Sender Help vijaysub Marine Electronics 10 28-04-2020 19:40
Arduino ESP8266 stream wifi Capt.Don OpenCPN 20 27-12-2019 14:19
Android OpenCPN and TCP/UDP Hurricane OpenCPN 3 14-04-2019 05:37

Advertise Here


All times are GMT -7. The time now is 13:19.


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.