AK-Homberger/NMEA2000WifiGateway-with-ESP32

UDP not working

Opened this issue · 4 comments

I've built the gateway, and the TCP connection is working fine. However, UDP does not seem to be working, even though UDP_Forwarding is set to 1. Does anyone have any clues as to why that might be?

Don't really get what you mean, but I have a working app that receives UDP-broadcasted NMEA0183 messages and translates them to NMEA2000 https://github.com/AndrasSzep/NMEA0183-to-NMEA2000.
I use it to to test NMEA2000 gadgets with an NMEA0183 simulator https://github.com/panaaj/nmeasimulator/releases v1.5 broadcasting on UDP.

Pleas check that the IP address (see below) is in the right network range. Then it should work. I used this program for a long time.

const char * udpAddress = "192.168.15.255"; // UDP broadcast address. Should be the network of the ESP32 AP (please check!)

Pleas check that the IP address (see below) is in the right network range. Then it should work. I used this program for a long time.

const char * udpAddress = "192.168.15.255"; // UDP broadcast address. Should be the network of the ESP32 AP (please check!)

I figured this would be the issue, but my knowledge about networks is somewhat limited. I've left every IP address in the code as default, so my ESP32 AP address is 192.168.15.1. What should my UDP broadcast address be, or what should I look for in order to select it? Sorry if these are basic questions. This is a new world for me, and I'm trying to learn as much as I can.

In that case (AP mode) the address "192.168.15.255" is correct and it should work.