http://hackaday.com/2013/04/03/embedded-web-server-is-all-about-clever-formatting/
- 硬體:Olimex MOD-IO development board (ATmega16 CPU) + ENC28J60 Ethernet controller (SPI 界面)
- 使用 TuxGraphics TCP/IP stack,包含 Web Server
- http://tuxgraphics.org/common/src2/article09051/
- http://tuxgraphics.org/electronics/200905/embedded-tcp-ip-stack.shtml
- 壓縮網頁資料 (yui-compressor + gzip) 給 C 使用
%.css.h: %.css yui-compressor --type css $^ > $^.min gzip -c $^.min > $^.gz xxd -i $^.gz | sed -e 's/.\[\]\ =/\[\]\ PROGMEM\ =/g' | sed -e 's/unsigned/const/g' > $@ rm -f $^.gz $^.min - 由於只有 1kB RAM,限制 response 大小大約 700 bytes.
- 顯示 AVR logo:用 Inkscape 縮小 SVG 檔,並用 vim stripped the rest of the cruft
- 用 AJAX 動態取得 JSON 格式的 Uptime、Total HTTP Requrest 及 Relay Status
- HTTP authentication 以及控制 relay
沒有留言:
張貼留言