FTP Upload hangs on FTP Service Open - EHS6T | Thales IoT Developer Community
February 21, 2018 - 1:39am, 3187 views
Hi,
I'm in the process of testing an FTP upload on my EHS6T modem.
I have entered the following Service config profile:
AT^SISS?
^SISS: 0,"srvType","Ftp"
^SISS: 0,"conId","0"
^SISS: 0,"address","ftpput://myftpaddress;type=d"
^SISS: 0,"tcpMR","10"
^SISS: 0,"tcpOT","6000"
^^SISS: 0,"user","username"
^SISS: 0,"passwd","*****"
^SISS: 0,"path","file:///a:/data/"
^SISS: 0,"files","simple.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",""
On sending AT service start command I find it hangs on the first connection status like so:
AT^SISO=0
OK
^SIS: 0,0,2100,"Ftp open(ftpaddress:21)" (Hangs right on this line)
I have entered what I believe to be all the correct inputs but cannot comprehend why the service upload hangs like this.
Any advice on what could be causing this? It hangs each time I do this no matter what FTP profile I try.
Thanks in advance,
Nick.
Hello,
Have you tried some other connection types (http for example) or some other ftp server for reference?
Please check the module version with ATI1 command.
The address "ftpput://myftpaddress;type=d" doesn't look like having the valid scheme for ftp protocol.
Regards,
Bartłomiej
Hi Bartlomiej,
Thanks so much for your reply and advice.
Yes I will provide you some more details on what we have attempted here.
1. Yes, we also tried SMTP connection with an attachment file.
All config parameters yielded URCs of OK,
and we tried to use a Yahoo email server. This also hung on us as soon as we sent command to open the service for an SMTP on separate service ID (we do not know how to get port 587 instead of 465).
Also, we have not tried a HTTP connection yet so may have to get back to you on that.
2. ATI1
URC:
ATI1
Cinterion
EHS6
REVISION 03.001
A-REVISION 00.000.51
OK
3. Apologies you are correct.
The address should have simply read "ftp://files.000webhost.com" or "ftp://{local laptop ftp server}" with no appended string for type ****. We tried this and separately entering parameters for user and password but to no avail.
Reading the documentation I understood that cmd must be entered as "fput" when sending file direct from FFS. Is this correct?
Do we require a root certificate to enable an email with TLS?
Please pardon my ignorance on many of these points, as I am still somewhat a beginner using a ****m and GPRS to use SMTP and FTP.
Thanks so much again.
Regards,
Nick.
Hello,
Please try with other connections like http to prove that it is possble to establish any connection with your device and SIM subscription.
I have tried your scenario with one public FTP and it did not hang. It did not allow data upload so the result was like below:
^SIS: 1,0,2100,"Ftp open(test.rebex.net:21)"
^SIS: 1,0,2100,"220 Microsoft FTP Service"
^SIS: 1,0,2100,"FTP Login OK"
^SIS: 1,0,2100,"fput simple.txt"
^SIS: 1,0,100,"FTP-ERR: 550 Access is denied. "
Is it possible to close the connection or execute any command after this connection "hangs". If it is maybe there is a problem with your subscription.
You don't need to load any certificates on the module to connect establish a secure connection. It is only needed if you want to verify the server certificate.
Regards,
Bartłomiej
It works.
Just changed to a local Vodafone SIM and registered for Data Service only for tablets and modem.
It works fine :).
Thanks !
Great!