Pico Web A FullFunction Ethernet Web Server for
Pico. Web : A Full-Function Ethernet Web Server for Under $10 TM Embedded Internet Conference September 5, 2000 San Jose, California Bruce D. Lightner Engineering La Jolla, California E-mail: lightner@lightner. net URL: www. picoweb. net Telephone: (858) 551 -4011 9/5/00 3/8/2021 1
Pico. Web Server TM 9/5/00 3/8/2021 2
Pico. Web “Design Space” TM n n n n Under $10 Web servers Minimal RAM (required for cheap Cs) “Stateless” TCP/IP stack Marriage of low-cost Cs and low-cost NIC chips Inexpensive NIC chip cost drivers: Set-top boxes, cable/DSL modems Not a “terminal server” Not a “university toy” WSWS* * World’s Smallest Web Server 9/5/00 3/8/2021 3
Realtek 10 base. T ISA-Bus Card EEPROM 9/5/00 3/8/2021 Crystal Magnetics Realtek NIC Chip 4 10 base. T Price: $9 (Fry’s)
Pico. Web $25 Breadboard TM PC NE-2000 Ethernet Card ISA-Bus Connector LED Atmel P* +5 V DC Reset *Atmel AT 90 S 8515 9/5/00 3/8/2021 16 KB Serial EEPROM 5 Program Serial Port
Pico. Web Server Minimum BOM TM 10 base. T NIC (<$3) Microcontroller (<$5) 9/5/00 3/8/2021 6
Pico. Web Server Features TM n n n n 9/5/00 3/8/2021 Complete full-function stand-alone Web server Based on Atmel 90 S 8515 8 -bit microcontroller Ethernet controller on-board (10 base. T) 100% Flash-based (code/data/HTML/images) RFC-793 compliant TCP/IP stack CGI support (Pico. Web p-code/AVR assembly) Update p-code/Web pages via network Complete development environment (Windows) 7
Pico. Web Block Diagram TM 9 -24 VDC +5 V DC Regulator Digital I/O Atmel 90 S 8515 8 -bit Controller 16 KB Serial I 2 C EEPROM SPI Port RS-232 Maxim RS-232 XCVR Ethernet 10 base. T Interface Realtek Ethernet Controller DB 25 LEDs Col Link User 9/5/00 3/8/2021 8
Pico. Web Server PCB TM 9/5/00 3/8/2021 9
Pico. Web Server Hardware TM n n n n n 9/5/00 3/8/2021 Atmel 90 S 8515 8 -bit microcontroller (8 MHz) Realtek NE-2000 Ethernet chip (10 base. T) 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 I 2 C serial EEPROM chip (~16 KB free) 16+ free I/O lines RS-232 serial port (with RTS/CTS) Onboard +5 V DC regulator (~30 m. A used) In-circuit programming port (PC parallel port) 10
Pico. Web Sample Web Page TM 9/5/00 3/8/2021 11
Pico. Web HTML/CGI Example TM Process FORM’s URL parameters <html> `pchk_port_url_parms. cgi` <head><title>Web. LED</title></head> Turn LED on <body text=#000000 bgcolor=#c 0 c 0 c 0> (I/O bit 4) <center> <h 2>Frey 'n Hell Light <font color="red">Web. LED</font> v$$VERSION$$</h 2> <form name=mfrm method=GET action="/"> <input type=radio NAME=4 VALUE=0 `? testport. cgi? 0 x 04`CHECKED{}>on <input type=radio NAME=4 VALUE=1 `? testport. cgi? 0 x 04`{CHECKED}>off <input type=submit VALUE="Set LED"> Conditional: </form> © 1998 -1999 Freyder, Helland & Lightner Is I/O bit 4 on? <img src="steve. jpg" width=64 height=100 alt="Frey">  Read/emit temp. <img src="dave. jpg" width=64 height=100 alt="Hell">  <img src="bruce. jpg" width=64 height=100 alt="Light"> (as ASCII text) The current temperature reading is `temperature. cgi`° F </center></body></html> 9/5/00 3/8/2021 12
Pico. Web. Temp Page TM 9/5/00 3/8/2021 13
Pico. Web Server Development TM n n n n Atmel AVR assembly/Pico. Web p-code Windows command-line based environment GNU-based “open source” tools (avr-asm, gcc, ld, Perl, 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. n 9/5/00 3/8/2021 Restrictions? Yes! (relating to host -controller) 14
Pico. Web. Cam TM Mattel “Fun” Camera RS-232 Pico. Web Server (with Java Applet) 10 base. T Internet 9/5/00 3/8/2021 15
Pico. Web Sample Web. Cam Page TM 9/5/00 3/8/2021 16
Pico. Web. Cam Java Applet TM Raw Image from “Barbie. Cam” 9/5/00 3/8/2021 Supply “Missing” Pixels 17 Sharpen Image and Display
Pico. Web Enabled Instrument TM Probe Ultra-Sonic Thickness Gauge RS-232 Pico. Web Server 10 base. T Internet 9/5/00 3/8/2021 18
Pico. Web Enabled Instrument TM 9/5/00 3/8/2021 19
Pico. Web Enabled Thermostat TM RCS TR-15 HVAC Thermostat Pico. Web PCB Ethernet 9/5/00 3/8/2021 HVAC Controller Wall Unit 20
Pico. Web Enabled Thermostat TM 9/5/00 3/8/2021 21
Pico. Web Applications n n n n n 9/5/00 3/8/2021 Low-cost Web-enabled devices (TCP/IP) Low-cost networked devices (non-TCP) Web-enabled appliances/instruments Home/business security/environmental monitoring/remote control Web cameras (home/business) Meter reading/control (utilities) Routers, bridges, packet filters, “smart” switches Streaming audio/video, teleconferencing Low-cost, high-performance VPN’s Wiring alternative to RS-232/485, USB, etc. 22
Pico. Web Security Issues n Existing: – Clear-text passwords – “Trusted host” list(s) n Future: – Secure passwords (public-key/tokens/challenge-response) – Encrypted “payload” data (as with SSL) n n n Levels of security (appropriate use) Cost (no one ever wants to pay for security!) How much is good enough? * *Let’s not forget that we’re talking about a C! 9/5/00 3/8/2021 23
Pico. Web TM www. picoweb. net 9/5/00 3/8/2021 24
NE-2000 Ethernet NIC Data 16 Address 5 Misc. 15 n ISA Bus Ethernet MAC Logic 16 Kbyte SRAM (programmer defined) Boot ROM (optional) Transmit Buffer(s) Receive Queue (external) 9/5/00 3/8/2021 10 base. T 6 Thin. Net Col Link ~100 pins Config. EEPROM PH Y 4 25 20 MHz Crystal LEDs Quantity -------100 1, 000 >10, 000 Price ----$5. 50 3. 20 ~3. 00
- Slides: 25