I have a CR1000 (OS 31.03) programmed with the sample FTP program under "The following CRBasic program provides an example of streaming data to an FTP server, using a static file name and appending new data to the existing file." I have FileZilla set up on my PC and have confirmed the correct operation using https://ftptest.net so I know all my logins an router port forwarding settings are correct.
Connection is thru RV50 Modem,set up with RV50_115200 template. Logger is configured for PPP over RS232.
This is the FTPclient command in the program:
FTPResult=FTPClient (IPAddress,UserName,Password,"FTPTest","/data/FTPTest.dat",12,0,0,Min,-1008)
This is the result on the server side:
(000131)3/15/2018 6:52:00 AM - (not logged in) (166.139.138.40)> Connected on port 21, sending welcome message...
(000131)3/15/2018 6:52:00 AM - (not logged in) (166.139.138.40)> AUTH TLS
(000131)3/15/2018 6:52:00 AM - (not logged in) (166.139.138.40)> 234 Using authentication type TLS
(000131)3/15/2018 6:52:14 AM - (not logged in) (166.139.138.40)> TLS connection established
(000131)3/15/2018 6:52:14 AM - (not logged in) (166.139.138.40)> PBSZ 0
(000131)3/15/2018 6:52:14 AM - (not logged in) (166.139.138.40)> 200 PBSZ=0
(000131)3/15/2018 6:52:14 AM - (not logged in) (166.139.138.40)> PROT P
(000131)3/15/2018 6:52:14 AM - (not logged in) (166.139.138.40)> 200 Protection level set to P
(000131)3/15/2018 6:52:15 AM - (not logged in) (166.139.138.40)> USER dadams
(000131)3/15/2018 6:52:15 AM - (not logged in) (166.139.138.40)> 331 Password required for dadams
(000131)3/15/2018 6:52:15 AM - (not logged in) (166.139.138.40)> PASS **********
(000131)3/15/2018 6:52:15 AM - dadams (166.139.138.40)> 230 Logged on
(000131)3/15/2018 6:52:16 AM - dadams (166.139.138.40)> TYPE I
(000131)3/15/2018 6:52:16 AM - dadams (166.139.138.40)> 200 Type set to I
(000131)3/15/2018 6:52:16 AM - dadams (166.139.138.40)> PASV
(000131)3/15/2018 6:52:16 AM - dadams (166.139.138.40)> 227 Entering Passive Mode (108,6,57,194,195,156)
(000131)3/15/2018 6:52:17 AM - dadams (166.139.138.40)> NLST /data/FTPTest.dat
(000131)3/15/2018 6:52:17 AM - dadams (166.139.138.40)> 150 Opening data channel for directory listing of "/data/FTPTest.dat"
(000131)3/15/2018 6:52:30 AM - dadams (166.139.138.40)> 450 TLS session of data connection has not resumed or the session does not match the control connection
(000131)3/15/2018 6:52:31 AM - dadams (166.139.138.40)> QUIT
(000131)3/15/2018 6:52:31 AM - dadams (166.139.138.40)> 221 Goodbye
(000131)3/15/2018 6:52:31 AM - dadams (166.139.138.40)> disconnected.
This is the result on the logger side:
Trace code (hex) (0x0): 2000
0x2000 (8192)
opening 19
hit ESC to exit, any other key to renew timeout
06:52:00.72 ftp rx: 220 aes
06:52:00.72 AUTH TLS
06:52:01.01 ftp rx: 234 Using authentication type TLS
06:52:01.95 PBSZ 0
06:52:15.05 ftp rx: 200 PBSZ=0
06:52:15.05 PROT P
06:52:15.38 ftp rx: 200 Protection level set to P
06:52:15.39 USER dadams
06:52:15.39
06:52:15.72 ftp rx: 331 Password required for dadams
06:52:15.72 PASS ********* (I blanked this, it was the correct PW)
06:52:15.72
06:52:16.17 ftp rx: 230 Logged on
06:52:16.17 TYPE I
06:52:16.53 ftp rx: 200 Type set to I
06:52:16.53 PASV
06:52:16.88 ftp rx: 227 Entering Passive Mode (108,6,57,194,195,156)
06:52:17.90 NLST /data/FTPTest.dat
06:52:17.91
06:52:18.39 ftp rx: 150 Opening data channel for directory listing of "/data/FT
06:52:31.10 Closing handle 103. Connection aborted.
06:52:31.25 ftp rx: 450 TLS session of data connection has not resumed or the s
06:52:31.25 QUIT
06:52:31.60 Closing handle 102. Connection aborted.
06:52:31.71 ftp rx: 221 Goodbye
06:52:31.76 Write error on handle 102, error 0, connention closing
06:52:31.81 Write error on handle 103, error 0, connention closing
06:52:31.85 ftp client FAILED
Any suggestions as to how to solve this issue are welcome.
Thanks,
Dave