Download W5100E01-AVR User Manual

Transcript
W5100E01-AVR User ’s Manual
<Fig 3.12: DisplayPingStatistics()>
Ping request program is, as explained previously, a program that uses ICMP protocol which is running on IP
Protocol. In case of using ICMP channel at W5100, as shown in <Fig 3.11> and <Fig 3.13>, IP protocol to be
used must be decided. The socket must be created after calling setIPProtocol(s, IPPROT_ICMP). IP_RAW
channel must be created by calling socket(s,SOCK_IPL_RAW,port,flag) when creating the socket. In case of
closing ICMP Socket, setIPProtocol(s, 0x00) should be called after close(s) and clear the ICMP Flag which was
previously set.
46
© Copyright 2007 WIZnet Co., Ltd. All rights reserved.