W5100E01-AVR WIZnet, W5100E01-AVR Datasheet - Page 59

no-image

W5100E01-AVR

Manufacturer Part Number
W5100E01-AVR
Description
Development Boards & Kits - AVR W5100 EVAL BOARD BASED ON AVR
Manufacturer
WIZnet
Datasheet

Specifications of W5100E01-AVR

Rohs
yes
Product
Development Boards
Tool Is For Evaluation Of
ATMEGA128
Core
AVR8
Interface Type
LAN, RS-232
Operating Supply Voltage
5 V
Data Bus Width
8 bit
3.2.6.
It’s a network application using W5100. It includes Loopback program, Web Server, and DHCP Client.
Application is selected by Manager Program.
3.2.6.1.
The Loopback TCP Server program of EVB B/D works as server mode, and AX1 program of the testing PC
works as client mode. AX1 tries to connect to EVB B/D and if the connection is successful, AX1 transmits the
data stream through the TCP channel. EVB B/D returns back the data stream from AX1 without processing
through the TCP channel.
Loopback TCP Server Program uses loopback_tcps() and <Fig 3.14> shows the process procedure of
loopback_tcps().
Declare & Initialize Local Variables
u_char * data_buf = TX_BUF
SOCK_ESTABLISHED?
SOCK_CLOSE_WAIT?
Select Socket Status
SOCK_CLOSED?
loopback_tcps()
getSn_SR()
Applications
Loopback TCP Server
N
N
© Copyright 2007 WIZnet Co., Inc. All rights reserved.
Y
Y
Y
socket(ch,SOCK_STREAM,port,flag)
len = getSn_RX_RSR()
< Fig 3.14 : loopback_tcps() >
Select Recieved Size
Wait a connetion with a client
Create a TCP Socket
Close Socket
NBlisten(ch)
close(ch)
RETURN
len > 0
N
Y
Send the Received Data
send(ch,data_buf,len)
recv(ch,data_buf,len)
Receive the Data
49

Related parts for W5100E01-AVR