EVB-PIC24 WIZnet, EVB-PIC24 Datasheet - Page 47

no-image

EVB-PIC24

Manufacturer Part Number
EVB-PIC24
Description
Development Boards & Kits - PIC / DSPIC W3150A+EVAL BOARD BASED ON PIC24
Manufacturer
WIZnet
Datasheet

Specifications of EVB-PIC24

Rohs
yes
Product
Development Kits
Interface Type
RS-232
Data Bus Width
16 bit
Dimensions
50 mm x 40 mm
PingArgsFlags |= 0x80
B
C
B
Display the Usage of Ping
B
PingArgsFlags |= 0x80
Call ping_usage()
PingArgsFlags |= 0x02
PingArgsFlags |= 0x01
pingcnt = -1
Processing
Ping
© Copyright 2006 WIZnet Co., Inc. All rights reserved.
Option
Bad
Get a First token from the command
Get a Next token from the command
Declare & Initialize Local variables
int pingcnt, pingsize, pingtimeout;
pingcnt=pingsize=pingtimeout=0
char qname[MAX_QNAME_LEN]
Y
Covert it to uppercase string
Y
N
Display the Usage of Ping
RS232 Console program
char PingArgsFlags = 0;
Y
Y
Y
Get a command from
char command[81];
command == NULL
PINGLOG PingLog;
PingArgsFlags = 0
Call ping_usage()
char PeerIp[50];
char* NextTok;
ping_request()
u_long peerip;
The Token ==
The Token ==
The Token ==
The Token ==
The Token ==
The Token ==
The Token ==
The Token !=
The Token !=
In the Token?
In the Token?
Be Found -
Be Found .
Display the
Character
Character
Unknown
Prompt
Option
NULL
PING
EXIT
<Fig 3.8: ping_request()>
-w
-a
-n
-h
-t
-l
C
N
N
N
N
N
N
N
N
N
N
Y
N
Y
Y
Y
Y
Y
Get the value of -n option
Y
Get the value of -l option
Get the value of -h option
Copy the Destination-list to qname
Command
Unknown
Usage : ping [-t] [-a] [-n count] [-l size] [-w timeout] destination-list
Options :
END
(PingArgsFlags & 0x20)
PingArgsFlags |= 0x20
C
-t
-a
-n count
-l size
-w timeout Timeout in milliseconds to wait for each reply.
!= 0
N
PingArgsFlags |= 0x04
PingArgsFlags |= 0x08
(PingArgsFlags &
Ping the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
Resolve addresses to hostnames
Number of echo requests to send.
Send buffer size.
PingArgsFlags |=
Is the Value
Is the Value
0x01) !=0
Is the Value
is Valid
is Valid
is Valid
0x10
Y
N
Y
Y
Y
PingArgsFlags |= 0x80
N
N
C
N
PingArgsFlags |= 0x80
PingArgsFlags |= 0x80
PingArgsFlags |= 0x80
Y
C
C
pingcnt = -1
B
B
B
C
B
37

Related parts for EVB-PIC24