Giter Club home page Giter Club logo

Comments (5)

nuno-silva avatar nuno-silva commented on July 21, 2024

To receive multicast on the Arduino you need to call enableMulticast():

EtherCard/src/enc28j60.h

Lines 118 to 121 in 39a1188

/** @brief Enables reception of multicast messages
* @note This will increase load on received data handling
*/
static void enableMulticast ();

However, your problem seems to be sending from the Arduino, right?

from ethercard.

showengineer avatar showengineer commented on July 21, 2024

Correct

from ethercard.

nuno-silva avatar nuno-silva commented on July 21, 2024

I'd say give enableMulticast() a try anyway. I'm not sure sending multicast packets is implemented though.

from ethercard.

njh avatar njh commented on July 21, 2024

I have just done a test using socat on my Mac:

echo "Hello World" | socat -u - udp-datagram:225.1.2.1:1234

And can see the packets going to 01:00:5e:01:02:01 using Wireshark.

The code that sets the MAC address for broadcast/multicast addresses is here:
https://github.com/njh/EtherCard/blob/master/src/tcpip.cpp#L384

So it indeed just sets it to FF:FF:FF:FF:FF:FF.
I am a big fan of multicast, so would like to see this working.
I am surprised that your network switch cares - what sort of switch do you have?

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.

from ethercard.

showengineer avatar showengineer commented on July 21, 2024

I am surprised that your network switch cares - what sort of switch do you have?

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 (01:00:5e:01:02:01) as the destination mac, but the packets didn't show up in Wireshark.

from ethercard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.