pascal-vehigy wrote on Thursday, November 19, 2015:
I have the +TCP Labs going on an STM32F407 controller, now I am trying to make the FTP example work. I have copied and modified the TCPServer, HTTPServer and FTPServer code from the win32 simulator demo. The HTTP server seems to work pretty ok, the FTP server doesn’t do much. I am able to connect to it, but I cannot get the directory listing, I have tried with several different clients, most of them just get stuck, telling me they are downloading. With FileZilla I got a few messages which might be helpful:
Status: Resolving address of EnergyMaster
Status: Connecting to 192.168.12.107:21...
Status: Connection established, waiting for welcome message...
Response: 220 Welcome to the FreeRTOS+TCP FTP server
Command: USER anonymous
Response: 331 Anonymous login okay
Command: PASS **************
Response: 230 OK. Current directory is /
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: REST STREAM
Response: SIZE
Response: 211 End
Status: Server does not support non-ASCII characters.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/"
Command: TYPE I
Response: 200 NOOP command successful.
Command: PORT 192,168,12,104,71,197
Response: 200 NOOP command successful.
Command: LIST
Response: 150 Opening ASCII mode data connection to for /bin/ls
Error: Connection timed out
Error: Failed to retrieve directory listing
and here is what happens in passive mode:
Status: Resolving address of EnergyMaster
Status: Connecting to 192.168.12.107:21...
Status: Connection established, waiting for welcome message...
Response: 220 Welcome to the FreeRTOS+TCP FTP server
Command: USER anonymous
Response: 331 Anonymous login okay
Command: PASS **************
Response: 230 OK. Current directory is /
Status: Server does not support non-ASCII characters.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/"
Command: TYPE I
Response: 200 NOOP command successful.
Command: PASV
Error: Disconnected from server: 10053
Error: Failed to retrieve directory listing
any help is greatly appreciated.