Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

file size limit?

Posted by Nobody/Anonymous on 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 ?

RE: file size limit?

Posted by Nobody/Anonymous on 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.

RE: file size limit?

Posted by Nobody/Anonymous on 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 )

RE: file size limit?

Posted by Nobody/Anonymous on 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 ?

RE: file size limit?

Posted by Nobody/Anonymous on 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?

RE: file size limit?

Posted by Nobody/Anonymous on 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.

Dave.

RE: file size limit?

Posted by Nobody/Anonymous on 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?

Regards

RE: file size limit?

Posted by Richard on 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.

Regards.

RE: file size limit?

Posted by Nobody/Anonymous on 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?

Regards


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner