file size limit?

nobody wrote on Friday, March 23, 2007:

In httpd-fsdata.c , there have html file’s c array , but if the array entry number exceed 1423 , I cannot browse that web page.

Does anyone have the same problem ?

nobody wrote on Sunday, March 25, 2007:

This is about the size of the Ethernet frame so expect this has something to do with it.  The page needs to be transferred in more than one frame.  It could be a problem with the Ethernet driver for your mac peripheral, or something in the TCP/IP stack. 

nobody wrote on Sunday, March 25, 2007:

pc\port.c calles -

prvSetTickFrequency( configTICK_RATE_HZ );

so configTICK_RATE_HZ must be defined somewhere.

Looks like its defined in FreeRTOSConfig.h as per the other ports as -

#define configTICK_RATE_HZ            ( ( portTickType ) 1000 )

nobody wrote on Monday, March 26, 2007:

If the frame size exceed the MTU , the TCP/IP stack should separate it into more than one frame . It’s TCP/IP stack mechanical . Why it cannot handle this ?

nobody wrote on Tuesday, March 27, 2007:

I was working with the FreeRTOS lwip rowley demo, the webserver was running good.
Now I’m making a webserver with use of files. (with use of fsdata.c)
for example:
static const unsigned char data_index_html[] = {
    /* /index.html */
    0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x68, 0x74, 0x6d, 0x6c, 0,
    0x3c, 0x21, 0x44, 0x4f, 0x43, 0x54, 0x59, 0x50, 0x45, 0x20,
    0x48, 0x54, 0x4d, 0x4c, 0x20, 0x50, 0x55, 0x42, 0x4c, 0x49,
    0x43, 0x20, 0x22, 0x2d, 0x2f, 0x2f, 0x57, 0x33, 0x43, 0x2f,
    0x2f, 0x44, 0x54
The example is working well, but now I like to change my website. How can I convert html to C? is there software available, where can I download it?

nobody wrote on Tuesday, March 27, 2007:

If you are referring in fact to the uIP demo, of which fsdata.c is part, then there is perl script included in the download called makefsdata that converts your html into static C structs.


nobody wrote on Tuesday, March 27, 2007:

Alright, I can use the makefsdata.
How do I use this?
I just downloaded active perll.
How do I get it working?


rtel wrote on Tuesday, March 27, 2007:

Install Perl and make sure it is in your path.

In a command prompt navigate to the directory in which makefsdata is located.

Type "Perl makefsdata"

The script will process the files from the httpd-fs directory.


nobody wrote on Tuesday, March 27, 2007:

Thanks for helping me!

I still have got one question.

I like to show my characters received by the uart on the webpage. And when I press a button in my webpage, a character is send by the uart.

pressing a button in my webpage I solved with a
<FORM action="./a.shtml" method="GET"> (send an a) in my shtml file.
(not very nice, but it is working)

Now how can I display my results received by the uart on the webpage?