W5100E01-AVR WIZnet, W5100E01-AVR Datasheet - Page 70

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
proc_http() calls parse_http_request() to analyse the HTTP request message received from web browser. If
the METHOD of analyzed HTTP request message is “GET”, “HEAD”, or “POST”, get_http_uri_name() is
called and URI Name is extracted from HTTP Request message. If extracted URI Name is “/”,replace URI
Name “/” to “index.html” which is web server default page of EVB B/D, because this means that web browser
is requesting default page of web server.
After getting the HTTP request type of HTTP request message by calling find_http_uri_type(), if HTTP
request type is “CGI”, it performs the related CGI command process.
After processing CGI commands or in case that HTTP request type is not the CGI, search file with URI Name
from ROM File Image which is built in EVB B/D.
If the file is found, create HTTP response message and send it.
HTTP Response message is composed of HTTP response header transmission and HTTP response body
transmission. For transmission of HTTP response header, it calls make_http_response_head() using HTTP
request type as the element to create HTTP response header. After transmitting the created HTTP response
header, the HTTP response body is transmitted. For example, if the HTTP response body is any file in ROM
File Image, the files are much bigger than the MTU of W5100. Hence it has to be divided into maximum size
of W5100 before transmission. At this point, if system environment variables that are defined in EVB B/D in
HTTP response body exist, it calls replace_sys_env_value() and replaces system environment variables to
system environment value stored in EVB B/D.
<Table 3-30> is a part of “evbctrl.html” in ROM File Image of EVB B/D.
The length of the system environment variables is defined to fit the length of system environment value to be
replaced. For example, if Source IP Address of EVB is expressed in string, the maximum is 16. Hence, the
length of $SRC_IP_ADDRESS$ is 16 as well. ‘ROM File System’ of EVB B/D can be created with
<tr>
</tr>
<tr>
<td height="27"><input name="gwip" type="text" size="20" value="$GW_IP_ADDRESS$"></td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<td width="110" height="22"><font color="#FEFEEF">...</font>Source IP</td>
<td width="240" height="27"><input name="sip" type="text" size="20" value="$SRC_IP_ADDRES$"></td>
<td width="110" height="22"><font color="#FEFEEF">...</font>Gateway IP</td>
<td width="110" height="22"><font color="#FEFEEF">...</font>Subnet Mask</td>
<td height="27"><input name="sn" type="text" size="20" value="$SUB_NET__MASK$"></td>
<td width="110" height="22"><font color="#FEFEEF">...</font>DNS Server IP</td>
<td height="27"><input name="dns" type="text" size="20" value="$DNS_SERVER_IP$"></td>
<td width="110" height="22"><font color="#FEFEEF">...</font>MAC Address</td>
<td height="27">$SRC_MAC_ADDRESS$</td>
<Table 3-29: System Environment Variables Usage at “evbctrl.html” >
© Copyright 2007 WIZnet Co., Inc. All rights reserved.
60

Related parts for W5100E01-AVR