sparkfun / SparkFun_ADIN1110_Arduino_Library

Repo for adin1110 single pair ethernet function board arduino library
Other
4 stars 3 forks source link

Is there a way to broadcast? #2

Open kikolobo opened 2 years ago

kikolobo commented 2 years ago

I see that all examples are from one MAC to another MAC ADDRESS.. Is there a way to send a message in a broadcast or multicast fashion like UDP? Where the message is sent to multiple unknown address recipients?

Also.. What underlying protocol is the library using to send messages? Are there any limits to the message size?

vChavezB commented 1 year ago

I am not affiliated to this repo but I have been using the addin1110 on another research project

https://opus.bibliothek.fh-aachen.de/opus4/frontdoor/index/index/docId/10052

Just to answer the question, the underlying driver comes from Analog Devices itself. It uses SPI and can either be open-alliance or generic SPI.

Max. message size is up to the ethernet PHY spec (i.e. maximum PDU 1500 bytes) and to use broadcast you would need a MAC address with FF:FF:FF. This is a low level driver so you should be familiar with the ethernet spec or a well seasoned programmer and integrate it with an ethernet stack such as lwIP.

Best regards Victor