Arduino ethernet pinging 8.8.8.8? - SOLVED

Hello, I have an arduino uno board with the wiznet 5500 ethernet shield. Ethernet works. I'm trying to ping 8.8.8.8. I searched online how I can do that and found this post from the forum https://forum.arduino.cc/t/help-with-ethernet-shield-ping-example-please/951466 I have tried it but found an error saying the ICMPPing.h is missing. I checked and that file is there.

Error below.

Ping:17:10: fatal error: ICMPPing.h: No such file or directory
 #include <ICMPPing.h>
          ^~~~~~~~~~~~
exit status 1
ICMPPing.h: No such file or directory

I do not know what to do to make it see that file and why it is missing. Can someone please help me to figure this out?

Joseph

Try
#include "ICMPPing.h"
to also search outside the system folders.

Thank you. I got a new error stating util.h is missing and that is there as well.

If you did not install system libraries as required, you can apply the same change to all not-found header files.

The util.h file is in the same file as the rest of the ICMPPing.h

edit: I also went to download the Util library from https://www.arduinolibraries.info/libraries/utils The same problem.

Then you should have installed that or these libraries into the compiler system folder. Consult the documentation of your libraries:

ICMP ping library for the Arduino

To use, copy the icmp_ping directory into the libraries directory of your Arduino folder.

e.g. cp ~/Arduino-Ping/icmp_ping /usr/share/arduino/libraries/icmp_ping

I will move the files into the library and see if that works.

The files are in C:\Users\jJc\Documents\Arduino\libraries\Arduino-Ping\src is this correct place?

Have you read the Arduino library installation guide?

Yes I have tried to upload the zip file to the library through the IDE. When I did that it states that ( Specified folder/zip file does not contain a valid library ) that is why I tried to add it manually.

Then everything can go wrong :frowning:

I dion't know what is wrong or What I'm doing wrong. This is is the first time getting this type of error.

I'm trying to ping 8.8.8.8 from the arduino shield that is all. Is there any other way? I searched online and mostly all results come back to the same library.

Try another download of the zip file. If the error persists then move the library folder into your Arduino folder.

Same thing.

The new error stating the Util.h is missing is coming from the ICMPPing.cpp file. So I changed #include <util.h> to #include "util.h" and that fix that error. On to the next error now when I try to compile it I get this new error. This library is build for the 5100 eithernet shield not the 5500 old library.

New error saying W5100.send_data_processing(_socket, serialized, sizeof(ICMPEcho)); error is 'class W5100Class' has no member named 'send_data_processing'.

Sorry, I'm not familiar with Ethernet shields. Even Google could not help me with your shield and Arduino :frowning:

I suspect your used ZIP isn't in the structure the import function expects it and now you have a faulty library installation.

Upload the ZIP you have used to import via the library manager to the forum so we can see exactly what you got.

This https://github.com/BlakeFoster/Arduino-Ping Is where I got the library from. It came from another person who was posting in here some time ago.
Arduino-Ping-master.zip (12.7 KB)

i'm sorry I thought I uploaded the zip file.

unzip the zip.
go into folder arduino-ping master
mark the folder icmp_ping
zip the folder icmp_ping
import icmp_ping.zip with the library manager.