EVB-PIC24 WIZnet, EVB-PIC24 Datasheet - Page 56

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
3.2.6.
It‟s a Network Application using iinChip™ and it includes Loopback Program, Web Server, and DHCP Client.
Application is selected by Manager Program.
3.2.6.1.
The Loopback TCP Server program, EVB B/D works as server mode and AX1, the PC testing program 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?
Check Socket Status
SOCK_CLOSED?
loopback_tcps()
getSn_SR(ch)?
Applications
Loopback TCP Server
N
N
© Copyright 2006 WIZnet Co., Inc. All rights reserved.
Y
Y
Y
len = getSn_RX_RSR(ch)
socket(ch,Sn_MR_TCP,port,0x00)
< Fig 3.14 : loopback_tcps() >
Wait a connetion with a client
Get Recieved Size
Create a TCP Socket
disconnect(ch)
Close Socket
RETURN
listen(ch)
len > 0
N
Y
Send the Received Data
send(ch,data_buf,len)
recv(ch,data_buf,len)
Receive the Data
46

Related parts for EVB-PIC24