Hi,
I’ve used standart code from IPRAW ping example, changed only the way of debug output.
I use ping_auto(0,pingto); function, short init code is:
u8 pingto={10,10,10,4}; //PC IP
int8_t memsize[2][8] = {{2,2,2,2,2,2,2,2},{2,2,2,2,2,2,2,2}};
if(ctlwizchip(CW_INIT_WIZCHIP,(void*)memsize) == -1)
{ printf(“init fail”); while(1); }
for(i=0;i<_WIZCHIP_SOCK_NUM_;i++)
{
close(i);
disconnect(i);
}
network_init();
W5500 IP is 10.10.10.132. TCP/IP works propertly (I have web server on w5500).
Debug output is:
ping datum: 8,0,114,106,18,52,67,33,0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7,
Send Ping Request to Destination 10.10.10.4
ID:4660
SeqNum:17185
CheckSum:29290
Ping req timed out sn=0
ping datum: 8,0,114,104,18,53,67,34,0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7,
Send Ping Request to Destination 10.10.10.4
ID:4661
SeqNum:17186
CheckSum:29288
Ping req timed out sn=0
ping datum: 8,0,114,102,18,54,67,35,0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7,
Send Ping Request to Destination 10.10.10.4
ID:4662
SeqNum:17187
CheckSum:29286
Ping req timed out sn=0
ping datum is a byte representation of ping packet. W5500 “thought” that packet was sent, but WireShark shows nothing.