Purpose
This project implements a webserver example of the uIP TCP/IP stack. It enables the device to act as a web server, displaying network information through an HTML browser.
Requirements
This package can be used with SAMV71 Xplained Ultra board or SAME70 Xplained board.
Description
Please refer to the uIP documentation for more information about the TCP/IP stack, the webserver example.
By default, the example does not use DHCP. If you want to use DHCP, please:
- Open file uip-conf.h and don't comment the line "#define UIP_DHCP_on".
- Include uip/apps/dhcps to compile.
Usage
- Build the program and download it inside the board. Please refer to the Getting Started with SAM V71/E70 Microcontrollers.pdf
- On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
- 115200 baud rate
- 8 bits of data
- No parity
- 1 stop bit
- No flow control
- Connect an Ethernet cable between the evaluation board and the network. The board may be connected directly to a computer; in this case, make sure to use a cross/twisted wired cable such as the one provided with the evaluation kit.
- Start the application. It will display the following message on the terminal:
-- GMAC uIP Web Server Example xxx --
-- xxxxxx-xx
-- Compiled: xxx xx xxxx xx:xx:xx --
- MAC 3a:1f:34:08:54:05
- Host IP 10.217.12.223
- Router IP 10.217.12.1
- Net Mask 255.255.255.0
Type the IP address (Host IP in the debug log) of the device in a web browser:
The page generated by uIP will appear in the browser.
- Note:
- Make sure the IP address of the device(EK board) and the computer are in the same network.
References