Hello All,
I am trying to use the latest TFTP library with USE_QN_ETHERNET = true and testing via winscp.
What I have found is, if I configure winscp to be "Active Mode", then it works.
But for default (Passive mode) it doesn't work.
Teensy Log
And Winscp log is below
Can you please help me with this issue.
I am trying to use the latest TFTP library with USE_QN_ETHERNET = true and testing via winscp.
What I have found is, if I configure winscp to be "Active Mode", then it works.
But for default (Passive mode) it doesn't work.
Teensy Log
[FTP] Client connected!
USER teensy4x
[FTP] processCommand
[FTP] Got USER
[FTP] Stage: cmdStage < FTP_Cmd => unrecognized command
PASS ftp_test
[FTP] processCommand
[FTP] Got PASS
[FTP] Authentication Ok. Waiting for commands.
[FTP] Stage: Connection OK, FTP_TIME_OUT = 5 minutes
SYST
[FTP] processCommand
[FTP] Got Unknown Command
[FTP] Stage: Connection OK, FTP_TIME_OUT = 5 minutes
FEAT
[FTP] processCommand
[FTP] Got FEAT
[FTP] Stage: Connection OK, FTP_TIME_OUT = 5 minutes
PWD
[FTP] processCommand
[FTP] Got PWD or CWD .
[FTP] Stage: Connection OK, FTP_TIME_OUT = 5 minutes
CWD /
[FTP] processCommand
[FTP] Got CWD
[FTP] Stage: Connection OK, FTP_TIME_OUT = 5 minutes
PWD
[FTP] processCommand
[FTP] Got PWD or CWD .
[FTP] Stage: Connection OK, FTP_TIME_OUT = 5 minutes
TYPE A
[FTP] processCommand
[FTP] Got TYPE
[FTP] Stage: Connection OK, FTP_TIME_OUT = 5 minutes
PASV
[FTP] processCommand
[FTP] Got PASV
[FTP] Connection management set to passive
[FTP] Listening at 195.0.0.16 : 2000
227 Entering Passive Mode (195,0,0,16,7,208)
[FTP] Stage: Connection OK, FTP_TIME_OUT = 5 minutes
[FTP] Stage: FTP_Init
[FTP] Ftp server waiting for connection on port 21
And Winscp log is below
. 2024-06-05 16:50:55.794 --------------------------------------------------------------------------
. 2024-06-05 16:50:55.795 WinSCP Version 6.3.3 (Build 14916 2024-04-16) (OS 10.0.22631 – Windows 10 Enterprise)
. 2024-06-05 16:50:55.795 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2024-06-05 16:50:55.797 Log level: Normal
. 2024-06-05 16:50:55.797 Local account: RL\Hemant Kapoor
. 2024-06-05 16:50:55.797 Working directory: C:\Program Files (x86)\WinSCP
. 2024-06-05 16:50:55.797 Process ID: 35000
. 2024-06-05 16:50:55.811 Ancestor processes: explorer, ...
. 2024-06-05 16:50:55.811 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe"
. 2024-06-05 16:50:55.811 Time zone: Current: GMT+1, Standard: GMT+0 (GMT Standard Time), DST: GMT+1 (GMT Summer Time), DST Start: 31/03/2024, DST End: 27/10/2024
. 2024-06-05 16:50:55.811 Login time: 05 June 2024 16:50:55
. 2024-06-05 16:50:55.811 --------------------------------------------------------------------------
. 2024-06-05 16:50:55.811 Session name: teensy4x@195.0.0.16 (Site)
. 2024-06-05 16:50:55.811 Host name: 195.0.0.16 (Port: 21)
. 2024-06-05 16:50:55.811 User name: teensy4x (Password: Yes, Key file: No, Passphrase: No)
. 2024-06-05 16:50:55.811 Transfer Protocol: FTP
. 2024-06-05 16:50:55.811 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2024-06-05 16:50:55.811 Disable Nagle: No
. 2024-06-05 16:50:55.811 Proxy: None
. 2024-06-05 16:50:55.812 Send buffer: 262144
. 2024-06-05 16:50:55.812 UTF: Auto
. 2024-06-05 16:50:55.812 FTPS: None [Client certificate: No]
. 2024-06-05 16:50:55.812 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2024-06-05 16:50:55.812 Local directory: C:\Users\Hemant Kapoor\Documents, Remote directory: /, Update: Yes, Cache: Yes
. 2024-06-05 16:50:55.812 Cache directory changes: Yes, Permanent: Yes
. 2024-06-05 16:50:55.812 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2024-06-05 16:50:55.812 Timezone offset: 0h 0m
. 2024-06-05 16:50:55.812 --------------------------------------------------------------------------
. 2024-06-05 16:50:55.868 Connecting to 195.0.0.16 ...
. 2024-06-05 16:50:55.868 Connected with 195.0.0.16. Waiting for welcome message...
< 2024-06-05 16:50:56.419 220--- Welcome to FTP_Server_Teensy41 ---
< 2024-06-05 16:50:56.419 220 -- FTP_Server_Teensy41 v1.2.0 --
> 2024-06-05 16:50:56.419 USER teensy4x
< 2024-06-05 16:50:56.636 331 Ok. Password required
> 2024-06-05 16:50:56.636 PASS ********
< 2024-06-05 16:50:56.669 230 Ok
> 2024-06-05 16:50:56.669 SYST
< 2024-06-05 16:50:56.886 500 Unknown command
> 2024-06-05 16:50:56.886 FEAT
< 2024-06-05 16:50:56.919 211-Extensions supported:
< 2024-06-05 16:50:56.919 MLST type*;modify*;size*;
< 2024-06-05 16:50:56.919 MLSD
< 2024-06-05 16:50:56.919 MDTM
< 2024-06-05 16:50:56.919 MFMT
< 2024-06-05 16:50:56.919 SIZE
< 2024-06-05 16:50:56.919 SITE FREE
< 2024-06-05 16:50:56.919 211 End.
. 2024-06-05 16:50:56.934 Connected
. 2024-06-05 16:50:56.934 --------------------------------------------------------------------------
. 2024-06-05 16:50:56.934 Using FTP protocol.
. 2024-06-05 16:50:56.934 Doing startup conversation with host.
> 2024-06-05 16:50:56.950 PWD
< 2024-06-05 16:50:57.166 257 "/" is your current directory
. 2024-06-05 16:50:57.166 Changing directory to "/".
> 2024-06-05 16:50:57.166 CWD /
< 2024-06-05 16:50:57.169 250 Directory changed to /
. 2024-06-05 16:50:57.169 Getting current directory name.
> 2024-06-05 16:50:57.169 PWD
< 2024-06-05 16:50:57.385 257 "/" is your current directory
. 2024-06-05 16:50:57.493 Retrieving directory listing...
> 2024-06-05 16:50:57.493 TYPE A
< 2024-06-05 16:50:57.669 200 TYPE is now ASCII
> 2024-06-05 16:50:57.669 PASV
. 2024-06-05 16:50:57.917 Disconnected from server
. 2024-06-05 16:50:57.917 Could not retrieve directory listing
* 2024-06-05 16:50:57.985 (EFatal) **Lost connection.**
* 2024-06-05 16:50:57.985 Disconnected from server
* 2024-06-05 16:50:57.985 Could not retrieve directory listing
* 2024-06-05 16:50:57.985 Error listing directory '/'.
Can you please help me with this issue.