[En-Nut-Discussion] Help with Web Pages
Steve Kelly
steve at planetcontrols.com.au
Fri Jan 20 11:06:08 CET 2006
Hi Henrik
Thanks for that cool tip.
I made the changes and it all fits in now with 10% free flash.
I would have never of thought a little Mega128 was capable of storing my
web pages as well as serving them, sending email, utilizing both uart's
and doing a stack of other background tasks if I had not of tried it
mtself.
Ethernut has definitely won my vote, Especially compared to Atmel's
attempt with their Ethernet development board which I first started
with.
However if anyone can still help out with my original request it would
be greatly appreciated as im sure in the future some time I am going to
run out of flash and need to store my pages in the data flash.
Thanks
Steve
Steve,
for another non-Nut/OS related embedded HTTP project I did use a
htmltidy utility to remove all whitespace from the pages. This reduced
the size of the page binary by 10% to 15%.
In addition we gzipped the pages before embeddeding them into the ROM
and served them as compressed HTML. To do this you have to add a new
content type to httpd.c for "html.gz" and present the web client with an
additional header line "Content-Encoding: gzip".
I am sure this won't be hard to include in the Nut/OS http module.
Henrik
http://www.proconx.com
Steve Kelly wrote:
>
> I was hoping someone could help me out with some example code or just
> good pointers for my problem.
> I have my ethernut up and running. It is connected an existing product
> we built and now want to web enable.
> I have my rs485 interface up and running, as well as SMTP email all
> working perfect.
> I now have my web pages that I tried to load today but i used the
> urom.exe to create the urom.c etc but unfortunately it is just to big
to
> fit in.
More information about the En-Nut-Discussion
mailing list