PLS62T-W FTP upload, SSIW doesn't work | Telit Cinterion IoT Developer Community
November 22, 2020 - 9:47pm, 1453 views
Hello,
I'm trying to upload files to FTP with the following script:
AT^SISS=0,srvType,"Ftp"
AT^SISS=0,"conId","1"
AT^SISS=0,alphabet,"1"
AT^SISS=0,"address","ftp://usr:psw@serveraddr"
AT^SISS=0,"cmd","fput"
AT^SISS=0,"path","file:///c:/docs/"
AT^SISS=0,"files","test.txt"
AT^SISO=0
AT^SISS?
AT^SISC=0
But the uploaded files are 0 bytes:
^SIS: 0,0,2100,"FPUT : test.txt 0 bytes"
^SISW: 0,2
If I use AT^SISW command, I receive ERROR.
What can be wrong? Please advise!
Hello,
path specifies the path on the local flash system. By default it is "file:///a:/". ftpath can be used for remote path. You also need to send AT^SICA=1,1 to open the connection that you passed to SISS command. Please check if the context is defined with AT+CGDCONT?. Also make sure that you configured the user and password properly. In case you still have problem please paste the log.
Regards,
Bartłomiej
Hi,
Yes, the context is defined and I send AT^SICA=1,1. The password and user are ok, I see new file created on the FTP server, but it is empty.
Please see the log:
AT^SICA=1,1
OK
AT^SISC=0
OK
AT^SISS=0,srvType,"none"
OK
AT^SISS=0,srvType,"Ftp"
OK
AT^SISS=0,"conId","1"
OK
AT^SISS=0,alphabet,"1"
OK
AT^SISS=0,"address","ftp://***:***@***"
OK
AT^SISS=0,"cmd","fput"
OK
AT^SISS=0,"path","c:/docs/"
OK
AT^SISS=0,"files","test.txt"
OK
AT^SISO=0
OK
^SIS: 0,0,2100,"Ftp open(***:21)"
^SIS: 0,0,2100,"220 Microsoft FTP Service"
^SIS: 0,0,2100,"FTP Login OK"
AT^SISS?
^SISS: 0,"srvType","Ftp"
^SISS: 0,"conId","1"
^SISS: 0,"alphabet","1"
^SISS: 0,"address","ftp://***:***@***"
^SISS: 0,"tcpMR","10"
^SISS: 0,"tcpOT","6000"
^SISS: 0,"path","c:/docs/"
^SISS: 0,"files","test.txt"
^SISS: 0,"cmd","fput"
^SISS: 1,"srvType",""
^SISS: 2,"srvType",""
^SISS: 3,"srvType",""
^SISS: 4,"srvType",""
^SISS: 5,"srvType",""
^SISS: 6,"srvType",""
^SISS: 7,"srvType",""
^SISS: 8,"srvType",""
^SISS: 9,"srvType",""
OK
^SIS: 0,0,2100,"fput test.txt"
^SIS: 0,0,2100,"FPUT : test.txt 0 bytes"
^SISW: 0,2
^SIS: 0,0,2100,"221 Goodbye."
AT^SISC=0
OK
Thanks!
You still have an incorrect path parameter value - it should point to the location on the module's file system. Module cannot access any location on your PC. Please just copy the file to the module's a: drive and don't use path at all (by default it points to the main directory) unless you have places the file in a dedicated directory.