EthernetENC icon indicating copy to clipboard operation
EthernetENC copied to clipboard

Creating a PING request using EthernetENC

Open shawty opened this issue 1 month ago • 0 comments

Hi, I'm using an ENC20J60 ethernet adapter, this is connected via SPI to an Arduino UNO.

What I'm attempting to do is to send a "ping"/ICMP message to another device on the network, in order to take some action when that device goes off line.

I've looked at many of the posts on the Arduino forum, and all of them recommend using ICMP libraries that are specific to the Wiznet Chips that the usual shields use, I have yet to find anything that works with this library and/or the ENC20J60.

My 2 questions are thus as follows:

  1. Are there any ICMP libraries for the Arduino IDE V2 that you know of that work with the combination given above, and specifically your library.

  2. Failing that, I could write my own implementation, but I don't see anything in this library (Using the Arduino documentation as mentioned in the wiki) that would allow me to craft a raw packet at byte level and send it.

If anyone here has any pointers on how I can achieve my goal, I'd be very much thankful for the help.

Either that, or I'll have to dump the box of ENC based devices I have, and order Wiznet based devices :-)

Cheers Shawty

shawty avatar May 28 '24 12:05 shawty