Arduino Forum

Using Arduino => Networking, Protocols, and Devices => Topic started by: stevefromNewcastle on Oct 16, 2018, 03:39 pm

Title: Ping Libary for Ethernet v2.0 Libary
Post by: stevefromNewcastle on Oct 16, 2018, 03:39 pm
I have a MKR Zero and Ethernet shield and I am looking for a working Ping libary. The ICMP Ping Libary https://playground.arduino.cc/Code/ICMPPing (https://playground.arduino.cc/Code/ICMPPing) uses memebers in the w5100 class that are no longer present. I was wondering if someone can point me in the right direction to have a look at porting the ICMP code for the new Ethernet Libary.
Cheers
Steve
Title: Re: Ping Libary for Ethernet v2.0 Libary
Post by: Juraj on Oct 16, 2018, 07:16 pm
use last 1.x version of Ethernet library
Title: Re: Ping Libary for Ethernet v2.0 Libary
Post by: stevefromNewcastle on Oct 16, 2018, 08:17 pm
Does the last version of Ethernet 1.x support the w5500 chipset on the MKR Ethernet Shield?
Thanks
Steve
Title: Re: Ping Libary for Ethernet v2.0 Libary
Post by: Juraj on Oct 16, 2018, 08:18 pm
Does the last version of Ethernet 1.x support the w5500 chipset on the MKR Ethernet Shield?
Thanks
Steve
sorry, no
Title: Re: Ping Libary for Ethernet v2.0 Libary
Post by: Juraj on Oct 16, 2018, 08:49 pm
try to use the Ethernet2 library. replace all W5100 occurrences in ping library with w5500 (lower case w!). it compiles
Title: Re: Ping Libary for Ethernet v2.0 Libary
Post by: orichienal on Mar 06, 2019, 03:07 pm
hiho

unfortunately that does not work either
have everything replaced, with big and small "w"
I search the fingers in the net bloody because I really need icmpping with the ethernet 2.0 library
I hope someone can help me
if i find another solution i will publish it here for everyone else with this problem

problem description at github (https://github.com/BlakeFoster/Arduino-Ping/issues/16)
Title: Re: Ping Libary for Ethernet v2.0 Libary
Post by: khhoa on Apr 24, 2019, 03:40 pm
Arduino: 1.8.9 (Windows 7), Board: "Arduino/Genuino Uno"

C:\Users\Administrator\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp: In member function 'Status ICMPPing::sendEchoRequest(const IPAddress&, const ICMPEcho&)':

C:\Users\Administrator\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:184:11: error: 'class W5100Class' has no member named 'send_data_processing'

     W5100.send_data_processing(_socket, serialized, sizeof(ICMPEcho));

           ^

C:\Users\Administrator\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp: In member function 'void ICMPPing::receiveEchoReply(const ICMPEcho&, const IPAddress&, ICMPEchoReply&)':

C:\Users\Administrator\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:207:19: error: 'class W5100Class' has no member named 'getRXReceivedSize'

         if (W5100.getRXReceivedSize(_socket) < 1)

                   ^

C:\Users\Administrator\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:219:9: error: 'class W5100Class' has no member named 'read_data'

   W5100.read_data(_socket, (uint16_t) buffer, ipHeader, sizeof(ipHeader));

         ^

C:\Users\Administrator\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:229:9: error: 'class W5100Class' has no member named 'read_data'

   W5100.read_data(_socket, (uint16_t) buffer, serialized, dataLen);

         ^

exit status 1
Error compiling for board Arduino/Genuino Uno.

Please help me fix this error
Title: Re: Ping Libary for Ethernet v2.0 Libary
Post by: mclareniak2 on May 11, 2019, 07:38 pm
Hello.
Any change? I have the same problem as khhoa writes.
Title: Re: Ping Libary for Ethernet v2.0 Libary
Post by: orichienal on Jul 11, 2019, 11:58 am
nobody can help us?