beautypg.com

About the webserver – Altera Embedded Systems Development Kit, Cyclone III Edition User Manual

Page 56

background image

Altera Corporation

Development Board Version 1.0.

8–8

July 2010

Altera Embedded Systems Development Kit, Cyclone III Edition

Application Selector Details

About the Webserver

This section describes the embedded web server portion of the
application selector.

PERIPHERALS USED

This application exercises the following peripherals:

Triple speed Ethernet MAC (named tse_mac in SOPC Builder)

STDOUT device (UART or JTAG UART)

LCD Color Touch Panel display (optional, provides additional
information)

BOARD/HOST REQUIREMENTS

This example requires an Ethernet cable connected to the development
board's RJ-45 jack, and a JTAG connection with the development board. If
the host communication settings are changed from JTAG UART (default)
to use a conventional UART, a serial cable between board DB-9 connector
and the host is required.

Additional Information

If DHCP is available, the application will attempt to obtain an IP address
from a DHCP server. Otherwise, a static IP address (defined in
web_server.h) will be assigned after a time-out. This is an example HTTP
server using NicheStack on MicroC/OS-II. The server can process basic
requests to serve HTML, JPEG, and GIF files from the Altera FAT file
system on an SD card. It is in no way a complete implementation of a full-
featured HTTP server. This example uses the sockets interface.

1

A good introduction to sockets programming is the book Unix
Network Programming by Richard Stevens
. Additionally, the text
"Sockets in C", by Donahoo & Calvert, is a concise and inexpensive
text for getting started with sockets programming.

The HTTP server looks for content contained in the webserver_html
directory at the top level of the SD card. Though default content is
provided, the server will read any valid files that are placed into this
directory.