Wiznet / RP2040-HAT-C

Ethernet Example for RP2040
64 stars 35 forks source link

Unable to download or upload files in FTP Server #1

Closed suyog44 closed 2 years ago

suyog44 commented 2 years ago

Hello Wiznet Team,

I have tried FTP Server example (RP2040-HAT-C/examples/ftp/server/w5x00_ftp_server.c ) on my RPI Pico with W5500 Network Module. It has been successfully compiled and loaded on my pico. I am able to ping FTP Server from Ubuntu 20.01 via Ping (192.168.11.2). I have tried to interact with Filezilla client with IP 192.168.11.2 , resulting the successful communication but when i tried to upload any file from filezilla to FTP Server it wont working. Getting Following Message on Filezilla

Filezilla Output Command: TYPE I Response: 200 Type set to I Command: PASV Response: 227 Entering Passive Mode (192,168,11,2,136,196) Command: MLSD Error: The data connection could not be established: ECONNREFUSED - Connection refused by server Error: Connection timed out after 20 seconds of inactivity Error: Failed to retrieve directory listing

Minicom Output from RPI PICO size: 6 Rcvd Command: PASV PASV port: 35007 3:FTPDataStart, port : 35007 size: 10 Rcvd Command: STOR 1.c STOR_CMD 3:Connect error 2:CloseWait 2:Closed

Could you please help me out whats going wrong.

GiungKim commented 2 years ago

Hello, @suyog44.

We will check the problem that does not work normally, when using FileZila.

In WinSCP, it works normally.

And ethernet examples are being developed in Windows 10 environment.

Please refer to the above.

Thanks.

suyog44 commented 2 years ago

Now I am able to retrieve test.txt from pico to local machine via WINSCP When I tried to drag and drop file from local machine to FTP server output comes as Connection Refused, Connection Failed.

Do we need fatfs on pico ?

GiungKim commented 2 years ago

It's not a fatfs problem, it's probably a different problem.

Sometimes firewalls can be a problem.

If the firewall is on, would you try turning it off?