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.
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?
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
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
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
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