FTP download ELS31 module | Telit Cinterion IoT Developer Community
May 28, 2021 - 3:07am, 1116 views
It looks like I am able to download my file with the FTP service. My problem is that I don't know how to read the downloaded file over the USB interface (if it is downloaded). Are there any additional commands to read the file? I don't see anything after the "226 Transfer complete" message.
Sent commnd: AT^SISS=0,"srvType","Ftp"
Mdm Rspnse: OK
Sent commnd: AT^SISS=0,"conId",3
Mdm Rspnse: OK
Sent commnd: AT^SISS=0,"address","ftp://ftp.cnktechlabs.com:21/ftp"
Mdm Rspnse: OK
Sent commnd: AT^SISS=0,"user","username"
Mdm Rspnse: OK
Sent commnd: AT^SISS=0,"passwd","password"
Mdm Rspnse: OK
Sent commnd: AT^SISS=0,"cmd","get"
Mdm Rspnse: OK
Sent commnd: AT^SISS=0,"files","upload.CSV"
Mdm Rspnse: OK
Sent commnd: AT^SICA=1,3
Mdm Rspnse: OK
Sent commnd: AT^SISO=0
Mdm Rspnse: OK
Mdm Rspnse: ^SIS: 0,0,2100,"Ftp connect 66.96.130.147:21"
Mdm Rspnse: ^SIS: 0,0,2100,"220 ipower FTP Server Ready"
Mdm Rspnse: ^SIS: 0,0,2100,"230 User username logged in"
Mdm Rspnse: ^SIS: 0,0,2100,"150 Opening BINARY mode data connection for upload.CSV (191170 bytes)"
Mdm Rspnse: ^SISR: 0,1\r\n'
Mdm Rspnse: ^SIS: 0,0,2100,"226 Transfer complete"
Hello,
For this module you don't have the access to the file system on the module. So you can download the file from FTP service to the AT interface only. ^SISR: 0,1 indicates that the data can be read. So I expect that you should be able to read the file contents with AT^SISR commands.
Regards,
Bartłomiej
Hi,
I need to be able to download zipped files up to 3 M-bytes. Is this module capable of downloading large files? If it does, should I use the FTP service or a different method?
Thank you.
Hello,
There are no any maximum values for a file size defined. But the file is not stored on the module. You read it with AT^SISR commands until the end of data and store on your device. So it could be FTP or HTTP or socket.
Anyway I think that you need to test it to make sure if it fits your *****.
Regards,
Bartłomiej