Data Sheet

© Copyright 2013 WIZnet Co.,Ltd. All rights reserved.
27
iEthernet
W5200
When a RST packet is received instead of a SYN/ACK packet
Above three cases, Sn_SR is changed to SOCK_CLOSED.
0x08
DISCON
Only valid in TCP mode
Regardless of “TCP SERVER” or “TCP CLIENT”, this disconnect command
processes the
Active close: it transmits disconnect-request(FIN packet) to the
connected peer
Passive close: When FIN packet is received from peer, a FIN packet is
replied back to the peer
when FIN/ACK packet is received, Sn_SR is changed to SOCK_CLOSED.
When a disconnect request is not received, TCPTO occurs (Sn_IR(3)=’1’)
and Sn_SR is changed to SOCK_CLOSED.
cf> If CLOSE is used instead of DISCON, only Sn_SR is changed to
SOCK_CLOSED without disconnect-process(disconnect-request). If a RST
packet is received from a peer during communication, Sn_SR is
unconditionally changed to SOCK_CLOSED.
0x10
CLOSE
Closes Socket n .
Sn_SR is changed to SOCK_CLOSED.
0x20
SEND
SEND transmits all the data buffered in the TX memory. For more details,
please refer to Socket n TX Free Size Register (Sn_TX_FSR0), Socket n
TX Write Pointer Register(Sn_TX_WR0), and Socket n TX Read Pointer
Register(Sn_TX_RD0).
0x21
SEND_MAC
Used in UDP mode only
The basic operation is same as SEND. Normally SEND operation needs
Destination Hardware Address which can be retrieved by the ARP
(Address Resolution Protocol) process. SEND_MAC uses Socket n
Destination Hardware Address(Sn_DHAR0) that is chosen by the user
without going through the ARP process.
0x22
SEND_KEEP
Used in TCP mode
It checks the connection status by sending 1byte data. If the connection
has no response from peers or is terminated, the Timeout interrupt will
occur.
0x40
RECV
RECV processes the data received by using a RX read pointer
register(Sn_RX_RD).
For more detail, please refer to 5.2.1.1 SERVER mode Receiving Process
with Socket n RX Received Size Register (Sn_RX_RSR0), Socket n RX
Write Pointer Register(Sn_RX_WR), and Socket n RX Read Pointer
Register(Sn_RX_RD).