-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UDP Multicast MAC not correct? #411
Comments
To receive multicast on the Arduino you need to call Lines 118 to 121 in 39a1188
However, your problem seems to be sending from the Arduino, right? |
Correct |
I'd say give |
I have just done a test using socat on my Mac:
And can see the packets going to The code that sets the MAC address for broadcast/multicast addresses is here: So it indeed just sets it to I have a very old Ethernet hub that I sometimes use for testing Ethercard - because it blindly copies all packets to all ports, making it easier to diagnose what is going on. |
I am using a Netgear GS108, with nothing more than my PC and the arduino board connected to it. I have tried sending packets over my main network but no results so far. I did try hardcoding the correct multicast MAC ( |
When sending something to a multicast address (e.g 225.1.2.1), a UDP packet gets properly sent (verified with Wireshark). However, my receiver doesn't get the package.
I've tested my network and its multicasting capabilities with this program. Using the same receiver program, it doesn't get the UDP packets from my Arduino.
I have found that the only difference between the packet sent with the example program and the Arduino is the destination MAC.
The library/Arduino sets its destination MAC to FF:FF:FF:FF:FF:FF (Broadcast). While the socket in Windows sets the destination MAC to 01:00:5E:01:02:01 (IPv4mcast_01:02:01).
Is this why my receivers aren't receiving UDP packets from the Arduino or is it still my fault?
The text was updated successfully, but these errors were encountered: