webserver example

Go To Last Post
19 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am interested in experimenting with a webserver. I have seen ENC28j60 devices and some Wiznet devices. I want to layout my own very SMALL board with some sensors & possible a mega 128 & a memory chip, if needed, NOT buy a webserver module. Do any of the web chips come with app notes and sample codes? I just want to add my sensor processing to the web drivers. Having the lowest possible price is important.

Everything I find seems to lead to a module that is being sold.

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can you be more specific? As mentioned, I do not want to buy a board or module, but to use web chips & an AVR, such as the mega128 to create my own board. From what I read the tux does some strange processing where the webpage must be contained in 1 packet/header

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have a couple of WIZ200WEB from Wiznet. It's a complete ATmega128 based computer with additional SRAM and Dataflash and makes the great basis for creating an HTTP serving based solution.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You wanted cheap n cheerful, it doesn't get much better than the tuxgraphics examples. If you want a more complete solution, search for 'avr uip'. But you might then complain that uip is performance limited, so you might want lwip, but you would want to have more than 4 k of ram.

Using something like a ti lm3s6965 or similar might yield a cheaper and simpler solution. Their example code gets you up and going quickly.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Micrel KSZ8851-16MLL could be connected to 2 AVR ports.
http://www.micrel.com/page.do?page=product-info/embedded_control.jsp
The SW design ZIP file contains some C for a driver.
http://www.micrel.com/page.do?page=product-info/app_notes.shtml#ethernet are the application notes; look for KSZ884x.

Ethernut 2 is another way and it's in Contiki.

If you're willing to move to 3.3v from 5v then an XMEGA A1 would likely be better (faster, DMA, no need for level translators).
An XMEGA128A3U, XMEGA256A3U, or XMEGA256A3BU would be easier if don't need the external bus (adds USB bootloader for use with FLIP).

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Contiki webserver-nano should run on any ATmega. It uses uip protosockets for tcp. Content is in stored in program flash. There is an ajax push for firefox that can give a live display of sensors.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

WizNet, sold by Saelig, has one or more AVR based boards with a web server and ethernet. Inexpensive.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Wiznet board is too expensive & big,
I need something in $10-$15 dollar range max. It must be my own board layout to add in the webserver parts...it cannot be a secondary board.

I see you can buy Wiznet chips themselves (<$5), but I don't see any appnotes or support code for making a webserver...is such information available? Which of their chips is suited for a webserver?..they are not very clear in this matter. The spare processor pins hook to sensors and a motor driver.

The micrel part(s) might be another way to go.

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

..is such information available?

Yes. I think the WIZ200WEB uses the 5300 chip so the example code provided for mega128 to drive that via SPI would presumably work if the chip alone were used. Don't forget that web pages (especially with graphics!) can eat storage so your design may want some additional flash storage to hold the data of any web pages besides the code flash of the AVR itself.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Silicon Labs CP2200 or CP2201 Ethernet MAC+PHY for 10Base-T to 8-bit bus (2 AVR ports):
http://www.silabs.com/products/interface/ethernetcontrollers/Pages/default.aspx
AN292: Embedded Ethernet System Design Guide

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
so the example code provided for mega128 to drive that via SPI would presumably work

Is that code easily modifiable to add my application (control some leds and motors, etc) using the spare cpu pins? My current app is written in AVR assembler, but could probably be changed over to C...it is about 5 pages now.

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Cirrus Logic CS8900A, 10Base MAC+PHY, 5v or 3v:
http://www.cirrus.com/en/products/cs8900a.html

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Is that code easily modifiable to add my application (control some leds and motors, etc) using the spare cpu pins? My current app is written in AVR assembler, but could probably be changed over to C...it is about 5 pages now.

Their code examples are written in avr-gcc C.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
Cirrus Logic CS8900A, 10Base MAC+PHY, 5v or 3v:

]
do they have any apps showing it as a webserver? where is the supporting software?

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If the Raspberry Pi is to be believed (I keep hoping) then it could be worth investigating though it's true it's a Linux SBC not just a chip.

Another avenue worth looking at is how much of a Beaglebone you could throw away to reduce cost. The TI AM3358 at its heart is apparently $5 for 100,000 (though more like $10-$15 for small quantities). It presumably wouldn't need much more than the magnetics to make an Ethernet solution and it could run Linux so you don't have to write any software - just install a copy of Apache - just like you do on big computers.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

wrt CS8900A

avrcandies wrote:
do they have any apps showing it as a webserver? where is the supporting software?
Don't know because I did not search for it.
A CS8900A driver exists in Contiki in 6502 assembly language. Contiki has web server applications.

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
... just install a copy of Apache ...
An alternative is nginx. Its in the openWrt embedded Linux distribution.

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I just want to stick with atmel & AVR Studio, not linux, apache, etc. Maybe do some C programming as well.

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!