UDP Server not working #29
-
Hi Jasper, thanks a lot for the distribution of this package! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Hi, thanks for your question. You could first try to see if it works on your local machine. For example, start AIS-catcher with
Which should produce AIVDM lines. Try in another terminal on that local machine:
This listens to the UDP messages coming in. If this does not work, might be something with the internal UDP server of the program. If you encounter any issues, you can also pipe the UDP lines from screen into netcat and send:
Typically what goes wrong is that someone puts the IP address of the Raspi as UDP address, but it should be that of the remote machine. But since you test with tshark might be something different here. You can also use a linux command to send a UDP message:
This (fake) message is received by my AISdispatcher running @ port 4002 with IP 192.168.1.239. In this way you can get insight where the issue sits. What command are you using for AIS-catcher and tshark? Thanks! |
Beta Was this translation helpful? Give feedback.
-
My command line example was incorrect, for me this works with OpenCPN (I see it popping up in the debug window):
And something basic, like ping the windows PC from your Raspi?
You might try to listen in OpenCPN to 192.168.178.25 instead of 0.0.0.0. Should not make a difference but you never know. Could also try a different (higher) port number to send to/receive on to see if there is some blocking? |
Beta Was this translation helpful? Give feedback.
-
I've been struggling with UDP traffic too In my case the feed to AIScatcher.org works fine using the key supplied https://aiscatcher.org/stations/details/1851 However the UDP feed to AIShub.net does not https://www.aishub.net/stations/3546 I've checked with the systems people in my office and they say they don't filter outbound UDP traffic which tallies with the fact traffic to AIScatcher.org arrives without issue I can't for the life of me figure out what the problem is One issue I came across with the Nooelec SDR I'm using is that aiscatcher doesn't always start up so I do a usbreset to resolve the issue as part of my startup script as follows SDRreset=$(lsusb | grep DVB-T | awk '{print "sudo ./usbreset /dev/bus/usb/"$2"/"$4}' | sed 's/://') |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm sharing experience with shipxplorer and UDP connexion. hope this help. |
Beta Was this translation helpful? Give feedback.
Hi, thanks for your question. You could first try to see if it works on your local machine. For example, start AIS-catcher with
Which should produce AIVDM lines. Try in another terminal on that local machine:
This listens to the UDP messages coming in. If this does not work, might be something with the internal UDP server of the program.
If you encounter any issues, you can also pipe the UDP lines from screen into netcat and send:
Typically what goes wrong is that someone puts the IP address of the Raspi as UDP address, but it should be that of the remote machine. But since you test wit…