EVB-PIC24 WIZnet, EVB-PIC24 Datasheet - Page 50

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
Data field size of PINGMSG is „PINGBUF_LEN‟ Byte. PINGBUF_LEN is defined „32‟. But Data field Max size
maybe „1472‟. This is because the sending MTU of iinChip™ is 1480 bytes and the sum of Code, CheckSum,
ID, and SeqNum Field Size is 8 Bytes. If we subtract 8 from 1480 we get 1472. Hence, the size is 1472 bytes.
The results from ping() are saved in Data Type defined in <Table 3-22>.
The saved Ping log can be output with RS232 terminal through DisplayPingStatistics() function. <Fig 3.12>
shows the process procedures of DisplayPingStatistics().
CheckSumErr field is incremented by 1 whenever the check sum of Ping Reply from peer is received wrongly.
UnreachableMSG field and TimeExceedMSG field are incremented by 1 in case of receiving Unreachable
Message or Time Exceeded Message from peer or gateway.
UnknownMSG field is incremented by 1 when the unknown message is received.
ARPErr field is incremented by 1 whenever ARP Reply is not received upon ARP Request to get the
Hardware Address(MAC Address) of the peer.
typedef struct _PINGMSG
{
}PINGMSG;
char
char
u_short CheckSum;
u_short
u_short SeqNum;
char
© Copyright 2006 WIZnet Co., Inc. All rights reserved.
<Table 3-20: PINGMSG Data Type Definition>
<Table 3-21: PINGLOG Data Type Definition>
typedef struct __PINGLOG
{
}PINGLOG;
Type;
Code;
ID;
Data[PINGBUF_LEN];
u_short CheckSumErr;
u_short UnreachableMSG;
u_short TimeExceedMSG;
u_short UnknownMSG;
u_short ARPErr;
u_short PingRequest;
u_short PingReply
u_short Loss;
// 0 - Ping Reply, 8 - Ping Request
// Always 0
// Check sum
// Identification
// Sequence Number
// Ping Data
;
40

Related parts for EVB-PIC24