Data Sheet
© Copyright 2013 WIZnet Co.,Ltd. All rights reserved. 
65
iEthernet 
W5200
5.2.3 IPRAW 
IPRAW  is  data  communication  using  TCP,  UDP,  and  IP  layers,  which  are  the  lower 
protocol layers. IPRAW supports IP layer protocol such as ICMP (0x01) and IGMP (0x02) 
according to the protocol number. The ‘ping’ of ICMP or IGMP v1/v2 is already included 
in W5200 by hardware logic. But if the user needs, the  host can directly process the 
IPRAW by opening the Socket n    to IPRAW. In the case of using IPRAW mode, user must 
set  the  protocol  number  field  of  the  IP  header  to  what  the  user  wants  to  use.  The 
protocol  number  is  defined  by  IANA.  Refer  to  the  web  (
U
http://www.iana.org 
/assignments/protocol-numbers
U
).  The  protocol  number  must  be  configured  to 
Sn_PROTO before ‘SOCKET open.’ In IPRAW mode, W5200 does not support TCP (0x06) 
or  UDP  (0x11)  protocol  number.  The  SOCKET  communication  of  IPRAW  mode  only 
allows the communication of an assigned protocol number.  The  ICMP SOCKET cannot 
receive unassigned protocol data except assigned protocol data such as IGMP. 
Figure 14 IPRAW Operation Flow 
SOCKET Initialization 
Select the SOCKET and set the protocol number. Then set the Sn_MR(P3:P0) to IPRAW 
mode and execute ‘OPEN’ command. If the Sn_SR is changed to SOCK_IPRAW after the 
‘OPEN’ command, the SOCKET initialization is completed. 
{ 
START: 
/* sets Protocol number */ 
/* The protocol number is used in Protocol Field of IP Header. */ 
Sn_PROTO = protocol_num; 










