Dear all,
I need FTP client application for my MCB1700. Does anyone have FTP client sample code for LPC1768? Thanks.
best regards, sigit
FTP isn't specific to any particular hardware - that is handled by the lowest levels of the TCP/IP stack.
So the question you should really be asking is an FTP client for whatever TCP/IP stack you are using - which should be fairly easy to find from the stack's documentation, support page, or whatever...
Or maybe you are actually looking for a TCP/IP stack?
In that case, start at the Product Info Page on NXP's website - they list loads of 3rd-party resources for their chips.
Keil have one: http://www.keil.com/arm/rl-arm/rl-tcpnet.asp
See also: http://www.keil.com/tcpip/
Yes, Neil,
thank you.. Right now, I'm trying to connect my MCB1700 to FTP server using tcp command in RL-ARM TcpNet. I'm using regular tcp_connect, tcp_callback, and tcp_send routine as in RL_ARM User Guide.
But, I'm still struggling with errors when sending tcp command, such as :
MEM ERR: Out of memory, used 6976 bytes in 12 blocks.
and in my FTP server log, there are lots of strange characters received from my board when it trying to connect to FTP server, for example :
(000021)26/10/2010 14:46:25 - (not logged in) (192.168.3.12)> USER anonymous (000021)26/10/2010 14:46:25 - (not logged in) (192.168.3.12)> 331 Password required for anonymous (000021)26/10/2010 14:46:25 - (not logged in) (192.168.3.12)> àŠ (000021)26/10/2010 14:46:25 - (not logged in) (192.168.3.12)> 500 Syntax error, command unrecognized. (000021)26/10/2010 14:46:25 - (not logged in) (192.168.3.12)> (000021)26/10/2010 14:46:25 - (not logged in) (192.168.3.12)> 500 Syntax error, command unrecognized. (000021)26/10/2010 14:46:25 - (not logged in) (192.168.3.12)> $
Does anybody know what might be the problem is?
Or, is there any ready-to-use FTP client implementation using RL-TcpNet? Because I stuck with this problems in this view days.
Thanks a lot.
Surely, that is self-explanatory - you are running out of memory!
If you let your application run on after such an error, then it's not surprising that you get weird results!!
Yeah, I've thought about that also... but I still cannot figure out what causing the memory to run out.
I'm using command sequence to connect my board to FTP server. I've allocated buffer pointer to every command, such as :
case 1 : sendbuf1 = tcp_get_buf (maxlen1); memcpy (sendbuf1, data_buf_1, maxlen1); tcp_send (tcp_soc_21, sendbuf1, maxlen1); printf ("Command sent = %s\n", sendbuf1); break;
case 2 : sendbuf2 = tcp_get_buf (maxlen2); memcpy (sendbuf2, data_buf_2, maxlen2); tcp_send (tcp_soc_21, sendbuf2, maxlen2); printf ("Command sent = %s\n", sendbuf2); break;
but the problem is still occur.
Am I doing it wrong? Thank you.
Have you remembered to free your buffers after use...?
You appear to have missed the clear instructions on how to post source code: www.danlhenry.com/.../keil_code.png (and also failed to notice in the preview?)
so perhaps you also need to go back to the RL-ARM TcpNet documentation to make sure you haven't missed any similar details there...