Web 51 Examples

Web 51 - Web51 SMTP  Obsah  LEDs, CGI,...
The /projekt directory contains the examples in its subdirectories. They demonstrate basic usage of Web51 and the development system.

To compile a project, run make from its directory by typing ..\..\bin\make.
To delete files that make has created, run ..\..\bin\make clean.
If the binutils directory is in your PATH, you can just type make. Similarly, a Makefile is used to compile the libraries.

All of these examples are available for DOWNLOAD.

ether

Ethernet controller "diagnostics". Sends ARP packets to the network. Transmission or receiving of a packet is indicated by blinking LED.
Allows for verification of CPU and Ethernet controller functionality with a scope.
This version does not respond to PING requests.

welcome

Basic http server, no server-side CGI.

wjava

JavaScript  Basic http server, no server-side CGI. Some JavaScript added to change background color.

led1

Basic http server, with server-side CGI. A cgi script lights up LEDs on the Web 51 board. Depending on their state, images of a shining or idle LEDs are embedded into the page. The LED examples are described in more detail in a separate chapter - Controling LEDs on the Web51 board.

led2

More complicated http server with server side CGI. First CGI polls LED status and inserts appropriate symbols into the page (* **). Second CGI processes data returned from the html form and sets LED states according to the results. The LED examples are described in more detail in a separate chapter - Controling LEDs on the Web51 board.

led3

JavaScript  Yet more complicated http server with server-side CGI and a background process. First CGI polls LED status and inserts an appropriate symbol into the page (* **). Second CGI tests the status of background process control variables (off, flashing, on). Third CGI script processes data returned from the html form and sets control variables of the background process according to the results.
Background process is synchronized by a timer and according to its control variables turns the LEDs on and off. It also scans for button presses and changes LED modes accordingly. JavaScript is used to simplify client-side operation.
The LED examples are described in more detail in a separate chapter - Controling LEDs on the Web51 board.

serial

Example application that transfers data from the serial line over TCP/IP. Uses a higher version of the library with compiled serial line, "telnet" client and HTTP server support.
The result is an ETHERNET to RS232 converter, configurable over a WWW interface, with complete TCP/IP implemented - see "Telnet" Setup example.

ds1620

Example application that measures temperature using a DS1620 chip. Temperature is displayed both as a number and as a graphic scale - see description of the DS1620 Thermometer.

Archives of the current version may contain more examples. All examples are included with the Web51 free development system package - DOWNLOAD.





Sponzored by LPhard Ltd. Graphics by GIMP Created by EasyPad

(c)Copyright 2000 - 2002, HW server & Radek Benedikt
Web51@HW.cz, Web51.HW.cz
Web 51 - Web51 SMTP  Obsah  LEDs, CGI,...