Slow FTP on M52259DEMO board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Slow FTP on M52259DEMO board

3,011 Views
JDR
Contributor I

I am running the coldfire sample project called hvac_m52259demo.mcp on the M52259DEMO board.  When I use FTP for downloading files from the USB stick connected to the board to my PC the transfer speed is around 2.5 kB/s.  Are such low speeds normal?

 

I have been able to increase the speed by increasing FTPd_buffer_size in RTCS.c from 536 to 24*536 but the transfer speed is still not higher than 45kB/s even for large files.  What kind of speeds can I expect from the M5229DEMO board ethernet port?

 

I have also implemented a loop that continously feeds characters to the telnet socket.  The transmission is slow compared to letting the same loop feed out characters to the serial UART.

Labels (1)
0 Kudos
8 Replies

893 Views
JDR
Contributor I
I have tried increasing the window size by setting  FTPd_window_size=4*1024  but it has no effect.  The only thing that I have found to increase transmission speed is increasing FTPd_buffer_size but the DEMO board has no external RAM so the buffer size is limited to fit in the 64kB of on chip SRAM.
0 Kudos

893 Views
TomFreescale
Contributor I

Hi,

 

If you only have 64k of memory, what is considered a large file?

 

What other resources are you using? For example are you running a web server and

any other tcp connections?

 

How much free ram is left with your current configuration?

 

0 Kudos

893 Views
JDR
Contributor I

I have stored a file of 4MByte size on the USB pin that i download to my PC using FTP. In the hvac.h file of the HVAC demo project I have disabled everything except USB filesystem, RTCS and FTP server.

 

#define DEMOCFG_ENABLE_SERIAL_SHELL       0  

#define DEMOCFG_ENABLE_SWITCH_TASK      0  

#define DEMOCFG_ENABLE_AUTO_LOGGING     0  
#define DEMOCFG_ENABLE_USB_FILESYSTEM  1  

#define DEMOCFG_ENABLE_RTCS                   1  

#define DEMOCFG_ENABLE_FTP_SERVER         1  

#define DEMOCFG_ENABLE_TELNET_SERVER    0  

#define DEMOCFG_ENABLE_KLOG                   0  

#define DEMOCFG_USE_POOLS                     0  

0 Kudos

893 Views
mo_tron
Contributor II
Did you increase your speed?  If so, how?
0 Kudos

893 Views
JDR
Contributor I
How can I find out if TCP windowing is enabled? If it is not, how do I enable it?
0 Kudos

893 Views
mjbcswitzerland
Specialist V

Hi

 

This depends on the package that you are using. Some will support it and others won't.

Unfortunately I don't know the one you are trying with so I would study first the package documentation and contact SW support if you still don't make any progress.

 

Regards

 

Mark

 

0 Kudos

893 Views
Nouchi
Senior Contributor II

Hi,

 

 I don't know if could be useful with MQX RTOS, but I found something called FTPDCFG_WINDOW_SIZE in rtcscfg.h. It may be a clue..........

 

 

Emmanuel

0 Kudos

893 Views
mjbcswitzerland
Specialist V

Hi

 

Check whether TCP windowing is enabled in the TCP stack since otherwise transfers from a board to a PC will generally be quite slow. This is due to the PC's delayed ack operation which effectively limits throughput to about 6k bytes a second.

 

See the following for more details and practical speeds to be achieved:

http://www.utasker.com/forum/index.php?topic=396.0

 

Regards

 

Mark

 

 

 

0 Kudos