Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




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 ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists