AVRCo basic Webserver

  • 1
  • 2
  • Page 1 of 2
nwrightson
Benutzer
Avatar
Gender:
Location: Newcastle
Age: 63
Homepage: nweha.homeserver.c…
Posts: 362
Registered: 08 / 2003
Subject:

AVRCo basic Webserver

 · 
Posted: 06.04.2011 - 04:57  ·  #1
Hi All,

I'm having trouble getting people excited with the Web Server and FTP Servers.

So to peak peoples interest. Attached is the FULL source code for the server project.
The application was developed on a Arduino PCB that uses a blank Mega328 (No Arduino code, it is full AVRCo code)

So hardware wise it has:
- Arduino TwentyTen PCB Mega328 (Mega32) @ 16MHz
- Arduino Ethernet
- E-Lab MMC card interface

Software wise AVRCo professional:
-Import SysTick, WatchDog, SerPort, SPIdriver, TWImaster, FAT16;
-Soft SPI port for MMC interface
-uW5100 unit for interface to the Wiznet W5100 IC.
-uIPGlobal unit for Global IP variables etc
-uWEBServer unit for the actual Web Server side.


So basically, it serves up web pages from the MMC/SD card and displays them on IE/Firefox or whatever.
Processor usage is as follows:
- Flash 20KB (63%) Remember it is only a Mega32
- IDATA 1850B (90%)

Feel free to use AND update :-)
Please let me know of any enhancements or bug fixes you do, so I can add them to the next version for people to share.

Let me know how you get on. Whats your thoughts.

Neil.
You must be logged in or your permissions are to low to see this Attachment(s).
nwrightson
Benutzer
Avatar
Gender:
Location: Newcastle
Age: 63
Homepage: nweha.homeserver.c…
Posts: 362
Registered: 08 / 2003
Subject:

Re: AVRCo basic Webserver

 · 
Posted: 12.05.2011 - 23:35  ·  #2
Well,

Over a month since I placed the above for free download. Only 7 downloads and no comments or feedback. :(

Do people not use AVRCo for ethernet? If they do, are not interested in using a web server for setup/config of their AVR project?

I thought a AVRCo project with TCP, soft MMC and Webserver in a Mega32 was bloody good :happy:


Neil.
mc-electronic
Benutzer
Avatar
Gender: n/a
Location: Sauerland NRW
Posts: 372
Registered: 03 / 2008
Subject:

Re: AVRCo basic Webserver

 · 
Posted: 13.05.2011 - 09:04  ·  #3
Hello Neil,

I do use TCP with AVRco, however, I use the Lantronix xPort, just a little bigger then the RJ45 jack. For that reason, I did not look. But if costs get more in the focus, I will have a look..

cheers, Michael
pvs-deck
PowerUser
Avatar
Gender:
Age: 53
Homepage: pvs-deck.de
Posts: 1341
Registered: 02 / 2009
Subject:

Re: AVRCo basic Webserver

 · 
Posted: 13.05.2011 - 14:28  ·  #4
Hello Neil,

that is very interesting, I wants it on case of each to try out and test.
Unfortunately I have for the moment no time.

I use my Boards with the WizNet3150A+ in Reverse MII with an DM8203I, so my Board work as
an 2Port Switch. The 3. Port is connected with Reverse MII an the WizNet3150A+.

I think it is an good way to config the AVR-System with an Standard Internet-Explorer.

Greeting
Thorsten
nwrightson
Benutzer
Avatar
Gender:
Location: Newcastle
Age: 63
Homepage: nweha.homeserver.c…
Posts: 362
Registered: 08 / 2003
Subject:

Re: AVRCo basic Webserver

 · 
Posted: 15.07.2011 - 07:48  ·  #5
Hi All,

I discovered a problem with the uW5100 unit.
The new file is attached.

Basically the problem was in the UDP_Recv side of things. If a single packet came in and was processed before the next packet arrived, all was good.
If say 4 packets came in all at the same time, then the W5100 would have all of the packets in it's buffer waiting for the AVR to download each one. I was calculating the message size based on the characters in the buffer not on the UDP message header information. So it looked like one large UDP message not four smaller messages.

Neil.
You must be logged in or your permissions are to low to see this Attachment(s).
jomixl
Benutzer
Avatar
Gender:
Posts: 227
Registered: 02 / 2008
Subject:

Re: AVRCo basic Webserver

 · 
Posted: 22.02.2012 - 20:42  ·  #6
hi neil,
i felt lucky to find a example for a webserver, thanks!
i tried to compile it with then new w5100 unit, but got some errors.
to change the name of some procedures was not the problem, but for one procedure i could not found the equivalent in the new unit.
Can you give me some hint how to substitute the " Process_TCP_State_Machine(pWEBServer)" procedure?

regards joachim
nwrightson
Benutzer
Avatar
Gender:
Location: Newcastle
Age: 63
Homepage: nweha.homeserver.c…
Posts: 362
Registered: 08 / 2003
Subject:

Re: AVRCo basic Webserver

 · 
Posted: 26.02.2012 - 07:45  ·  #7
Hi joachim ?

Try the new file Ver 7.1.

Neil.
Lschreyer
Schreiberling
Avatar
Gender: n/a
Posts: 527
Registered: 02 / 2007
Subject:

Re: AVRCo basic Webserver

 · 
Posted: 29.04.2015 - 12:06  ·  #8
Old Thread, but maybe I have luck:

Will this run on an
ARDUINO ENET POE?
It has the 5100 Chip and a MMC-Socket on board, and runs with POE.
Would give a complete unit.

I want to build a temperature-Web-Server with 4 PT100-Inputs.

Louis
  • 1
  • 2
  • Page 1 of 2
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   141   155 · Page-Gen-Time: 0.028106s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI