Data Sheet
© Copyright 2013 WIZnet Co.,Ltd. All rights reserved. 
66
iEthernet 
W5200
/* sets IP raw mode */ 
Sn_MR = 0x03; 
/* sets OPEN command */ 
Sn_CR = OPEN; 
/* wait until Sn_SR is changed to SOCK_IPRAW */ 
if (Sn_SR != SOCK_IPRAW) Sn_CR = CLOSE; goto START; 
} 
Check received data 
Refer to the “5.2.2.1 Unicast & Broadcast.” 
Receiving process 
Process  the  IPRAW  data  which  is  received  in  internal  RX  memory.  The  structure  of 
received IPRAW data is as below. 
Figure 15 The receive IPRAW data Format 
The  IPRAW  data  consists  6  bytes  PACKET-INFO  and  DATA  packet.  The  PACKET-INFO 
contains  information  about  the  transmitter  (IP  address)  and  the  length  of  the  DATA-
packet.  The  data  reception of IPRAW is the  same as UDP data reception except 
processing  the  port  number  of  the  transmitter  in  UDP  PACKET-INFO.  Refer  to  the 
“5.2.2.1 Unicast & Broadcast.” If the transmitted DATA size is larger than RX memory 
free  size  of  Socket  n  ,  user  cannot  receive that  DATA  and  also  cannot  receive 
fragmented DATA. 
Checks send data / Sending process 
The  size  of  DATA  which  user  wants  to  transmit  cannot  be  larger  than  Internal  TX 
memory and default MTU. The transmission of IPRAW data is the same as transmission 
of UDP data except setting ‘Destination port number’. Refer to the “5.2.2.1 Unicast & 
Broadcast.” 
Complete sending / Timeout 
Same as UDP, please refer to the “5.2.2 UDP.” 
Check finished / SOCKET closed 
Same as UDP, please refer to the “5.2.2 UDP.” 










