Best FTP settings



  • I've got the FTP "working" over USB with the latest Windows DuetDriver Version 1.9. I can see the directories and files on the SD card OK, but trying to do things like delete the /www files and directory is pretty erratic and keeps dropping the FTP connection. I am using the latest version of WINSCP for the FTP (no encryption), so far with mainly default communications settings. Please can someone help me with the recommended FTP settings to get a smooth connection to the Duet SD card.


  • administrators

    Over USB? How did you manage that?



  • You're right - I thought the FTP was working over the USB but it was actually working over Wifi.
    What are the recommended FTP settings to get a smooth connection to the Duet SD card?


  • administrators

    The main setting you need is to use only one connection to Port 21 at a time. Some FTP clients default to using a second connection for file uploads, but that won't work with the Duet.



  • What FTP clients are known to work with the Duet Wifi? I can't get WINSCP to work with the Duet Wifi. I'm running Duet Wifi firmware 1.20 and the latest Widows Device Driver files.



  • @Marc:

    What FTP clients are known to work with the Duet Wifi? I can't get WINSCP to work with the Duet Wifi. I'm running Duet Wifi firmware 1.20 and the latest Widows Device Driver files.

    FileZilla


  • administrators

    FileZilla is the client that I test with. You need to create an entry in Site Manager for the Duet, and set it to "Max concurrent connections: 1".



  • Thanks, I loaded FileZilla. As advised above, I created an entry in Site Manager for the Duet, and set it to "Max concurrent connections: 1" and left the transfer mode set to "default". I'm still getting the kinds of errors as below.

    What are the settings under the FileZilla general tab that I should be using? Port, protocol, encryption, logon type? And how do I define the FTP "user" name for the logon….do I need to add it into the Duet config.g file or do I just re-use the host name as the FTP user name or do I just leave it blank?

    Is there a Duet wiki that I am missing that covers all this?

    Status: Resolving address of marcorexy
    Status: Connecting to 10.1.1.20:21...
    Status: Connection established, waiting for welcome message...
    Status: Insecure server, it does not support FTP over TLS.
    Status: Server does not support non-ASCII characters.
    Status: Logged in
    Status: Retrieving directory listing...
    Command: PWD
    Response: 257 "/"
    Command: TYPE I
    Response: 200 Switching to Binary mode.
    Command: PASV
    Response: 227 Entering Passive Mode (10,1,1,20,117,27)
    Command: LIST
    Error: The data connection could not be established: ECONNREFUSED - Connection refused by server
    Response: 425 Failed to establish connection.
    Error: Failed to retrieve directory listing



  • Sorry - the last log had a password error which I fixed. This one lists the main SD directory but bangs out when I try to see inside /www/css. So previous questions in my last post still hold if anyone can please help….

    Status: Resolving address of marcorexy
    Status: Connecting to 10.1.1.20:21...
    Status: Connection established, waiting for welcome message...
    Status: Server does not support non-ASCII characters.
    Status: Logged in
    Status: Retrieving directory listing...
    Status: Directory listing of "/" successful
    Status: Retrieving directory listing of "/www/css"...
    Command: CWD /www/css
    Response: 250 Directory successfully changed.
    Command: PWD
    Response: 257 "/www/css"
    Command: TYPE I
    Response: 200 Switching to Binary mode.
    Command: PASV
    Response: 227 Entering Passive Mode (10,1,1,20,100,58)
    Command: LIST
    Error: The data connection could not be established: ECONNREFUSED - Connection refused by server
    Response: 425 Failed to establish connection.
    Error: Failed to retrieve directory listing



  • I am having similar issues. Duet WiFi firmware v1.20, FileZilla v3.31.0

    Status: Connecting to 192.168.0.243:21…
    Status: Connection established, waiting for welcome message...
    Response: 220 RepRapFirmware FTP server
    Command: USER Me
    Response: 331 Please specify the password.
    Command: PASS ******
    Response: 230 Login successful.
    Command: SYST
    Response: 215 UNIX Type: L8
    Command: FEAT
    Response: 211-Features:
    Response: PASV
    Response: 211 End
    Status: Server does not support non-ASCII characters.
    Status: Logged in
    Status: Retrieving directory listing...
    Status: Directory listing of "/" successful
    Status: Retrieving directory listing of "/sys"...
    Status: Directory listing of "/sys" successful
    Status: Starting download of /sys/config.g
    Command: PASV
    Response: 227 Entering Passive Mode (192,168,0,243,248,67)
    Command: RETR config.g
    Error: The data connection could not be established: ECONNREFUSED - Connection refused by server
    Response: 425 Failed to establish connection.
    Error: File transfer failed
    Status: Starting download of /sys/config.g
    Command: PASV
    Response: 425 Use PASV first.
    Command: PORT 192,168,0,5,253,23
    Response: 227 Entering Passive Mode (192,168,0,243,62,47)
    Command: RETR config.g
    Response: 425 Failed to establish connection.
    Error: File transfer failed
    Status: Starting download of /sys/config.g
    Command: PASV
    Response: 500 Unknown command.
    Command: PORT 192,168,0,5,253,34
    Response: 425 Use PASV first.
    Error: File transfer failed

    I have FileZilla set for passive, 1 connection, no encryption (plain), server type is Default (autodetect), character set is autodetect.

    I've not yet been able to successfully transfer a file to or from either of my Duets.

    Richard


  • administrators

    Try firmware 1.21RC3 which includes a fix for some similar FTP issues.



  • Thanks for the FileZilla config info Richard…and for confirming that it is probably a bug (and not just me going crazy!) I think I might just have to wait for the 1.21 release launch - when is that likely to be David?


Locked
 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.