EIW'99 10/1/99-1- PicoWeb TM : A $25 Web Server Embedded Internet Workshop October 1, 1999 San Jose,...
-
Upload
julius-hill -
Category
Documents
-
view
227 -
download
0
Transcript of EIW'99 10/1/99-1- PicoWeb TM : A $25 Web Server Embedded Internet Workshop October 1, 1999 San Jose,...
EIW'99 10/1/99 -1-
PicoWebTM: A $25 Web Server
Embedded Internet Workshop
October 1, 1999
San Jose, California
Bruce D. Lightner
Lightner Engineering
La Jolla, California
E-mail: [email protected]
URL: www.picoweb.net
Telephone: (858) 551-4011
EIW'99 10/1/99 -2-
PicoWebTM Server
EIW'99 10/1/99 -3-
PicoWebTM Server Features
Complete full-function stand-alone Web server Based on Atmel 90S8515 8-bit microcontroller Ethernet controller on-board (10baseT) 100% Flash-based (code/data/HTML/images) 100% RFC-793 compliant TCP/IP stack CGI support (PicoWeb p-code/AVR assembly) Update p-code/Web pages via network Complete development environment (Windows)
EIW'99 10/1/99 -4-
PicoWebTM Block Diagram
Realtek Ethernet
Controller
Realtek Ethernet
Controller
Atmel 90S8515
8-bit Controller
Atmel 90S8515
8-bit Controller RS-232RS-232RS-232RS-232
MaximRS-232 XCVR
MaximRS-232 XCVR
16KB Serial I2C EEPROM
16KB Serial I2C EEPROM
+5V DC Regulator
+5V DC Regulator
10baseT Interface
10baseT Interface
9-249-249-249-24 Digital I/ODigital I/ODigital I/ODigital I/O
SPI PortSPI PortSPI PortSPI PortVDCVDCVDCVDC
DB25DB25DB25DB25
EthernetEthernetEthernetEthernet
LEDsLEDsLEDsLEDs
ColColColCol LinkLinkLinkLink UserUserUserUser
EIW'99 10/1/99 -5-
PicoWebTM Server PCB
EIW'99 10/1/99 -6-
PicoWebTM Server Hardware Atmel 90S8515 8-bit microcontroller (8 MHz) Realtek NE-2000 Ethernet chip (10baseT) 8 KB flash program memory (~2 KB free) 512 bytes on-chip SRAM (~256 free) 512 bytes on-chip data EEPROM (~500 free) 16 KB I2C serial EEPROM chip (~16 KB free) 16+ free I/O lines RS-232 serial port (with RTS/CTS) Onboard +5V DC regulator (~30 mA used) In-circuit programming port (PC parallel port)
EIW'99 10/1/99 -7-
PicoWebTM $25 Breadboard
PC NE-2000 PC NE-2000 Ethernet CardEthernet CardPC NE-2000 PC NE-2000
Ethernet CardEthernet Card
ISA-Bus ConnectorISA-Bus Connector
Atmel Atmel P*P*
*Atmel AT90S8515*Atmel AT90S851516KB Serial 16KB Serial EEPROMEEPROM
+5V DC+5V DC
ResetReset
Program Program PortPort
Serial Serial PortPort
LEDLED
EIW'99 10/1/99 -8-
PicoWebTM Sample Web Page
EIW'99 10/1/99 -9-
PicoWebTM HTML/CGI Example
`t<html><body text=#000000 bgcolor=#c0c0c0><center><h2>Frey 'n Hell Light WebLED v1.29</h2>
<form name=LED method=GET action="/"><input type=radio NAME=4 VALUE=0 `004 CHECKED{}>on<br><input type=radio NAME=4 VALUE=1 `004{CHECKED}>off<br><input type=submit VALUE="Set LED"></form>
©1998-1999 Freyder, Helland & Lightner<br><br><img src="steve.jpg">   <img src="davenew.jpg">  <img src="bruce.jpg"><br><br>
The current temperature reading is `701ºF</center></body></html>
Emit HTTPheader
Turn LED on(I/O bit 4)
Conditional:Is I/O bit 4 on?
Read/emit temp.(as ASCII text)
EIW'99 10/1/99 -10-
PicoWebTM Server Development
Atmel AVR assembly/PicoWeb p-code Windows command-line based environment Mostly “open source” tools (Perl, gcc cpp, etc.) User supplies HTML code, JPEG/GIF images CGI support (user-supplied routines) On-chip debug monitor (serial port/Web) Fast turn-around (edit/build/load/run)
– Program changes: <60 sec.– Web page/external p-code changes: <5 sec.
Restrictions? Yes! (relating to host processor)
EIW'99 10/1/99 -11-
PicoWebTM Enabled Instrument
PicoWeb Server
PicoWeb Server
Ultra-Sonic Thickness
Gauge
Ultra-Sonic Thickness
Gauge
ProbeProbe
RS-232RS-232RS-232RS-232
10baseT10baseT10baseT10baseT
InternetInternetInternetInternet
EIW'99 10/1/99 -12-
PicoWebTM Enabled Instrument
EIW'99 10/1/99 -13-
PicoWebTM Enabled Thermostat
RCS TR-15 HVAC ThermostatRCS TR-15 HVAC Thermostat
EthernetEthernet Wall UnitWall Unit
PicoWebPicoWebPCBPCB
HVAC HVAC ControllerController
EIW'99 10/1/99 -14-
PicoWebTM Enabled Thermostat
EIW'99 10/1/99 -15-
PicoWebTM
www.picoweb.net