problems with FTP upload (EHS6T upgrade?) | Thales IoT Developer Community
November 8, 2016 - 5:57pm, 2212 views
I have systems that work with EHS5T and upload files to the server and they work great!
Now I purchased EHS6T and also using a new SIM card. HTTP connection works ok but when I try to upload FTP files weird things start to happen:
I get a response: ERROR ^SIS:2,0,1000,"PARA-ERR: Address wrong". This is a response to AT^SISO=2 (after setting up FTP parameters with OK responses). The setup is identical to the one I used with the EHS5T.
The good news is that with the EHS6T I get internet access in ~12 seconds instead of 90-120 seconds after power-up!
Help with FTP please???
Hello,
The time to get connection may also depend on the SIM card and network provider.
Please check the firmware versions for both modules with ATI1 command. The software for both modules is similar. But one of them may have the older revision than the other. There might be some differences between revisions. I think that the error may be caused by some special characters encoding problem. Please paste a log with AT commands for the connection configuration and establishment (of course you can hide the passwords).
Regards,
Bartłomiej
Thanks for the quick reply!
Re connection speed it's the same provider and the SIM was purchased together with the older ones.
The newer modem is EHS6, revision 03.001, A-Revision 00.000.42
I don't have access to the older modems any more, and the log I will provide tomorrow...
I already traced one problem:
I am not using flow control and no sleep ****, With the older versions I set up the ****m with:
AT^SPOW=1,1000,3
Now (EHS6T) it returns an error. I looked at the datasheet and it should be:
AT^SPOW=1,0,0
This improves communication but the problem remains. Attached is the comm. I removed our server name, user and password for obvious reasons.
^SYSLOADING
^SYSSTART
ATE0
ATE0
AT+CREG?
OK
AT+CREG?
+CREG: 0,0
OK
AT+CREG?
+CREG: 0,0
OK
AT+CREG?
+CREG: 0,0
OK
+PBREADY
AT+CREG?
+CREG: 0,0
OK
AT+CREG?
+CREG: 0,0
OK
AT+CREG?
+CREG: 0,0
OK
AT+CREG?
+CREG: 0,1
OK
AT^SICS=0,"conType","gprs0"
OK
AT^SICS=0,"apn","net.hotm"
OK
AT^SISS=1,"srvType","HTTP"
OK
AT^SISS=1,"conId",0
OK
AT^SISS=1,"address","http://st.IchangedThis.com/a.aspx?controller=03&filename=&connT=12&v=5&r..."
OK
AT^SISS=1,"cmd","get"
OK
AT^SISO=1
OK
^SIS: 1,0,2200,"Http st.IchangedThis.com:80"
^SISR: 1,1
AT^SISR=1,230
^SISR: 1,54
NOW 314 1166
SIZE -1
PARAM S=6,C=1440,P=100,O=30
OK
^SISR: 1,2
AT^SISR=1,230
^SISR: 1,-2
OK
AT^SISC=1
OK
AT^SISS=2,"srvType","Ftp"
OK
AT^SISS=2,conId,"0"
OK
AT^SISS=2,"address","ftp://USER:PWD\00IchangedThis.com"
OK
AT^SISS=2,"cmd","put"
OK
AT^SISS=2,"files","03-3141167.csv"
OK
AT^SISO=2
ERROR
^SIS: 2,0,1000,"PARA-ERR: Address wrong"
Hello,
If you would like to use power saving you can configure it with 2 instead of 1, for example: AT^SPOW=2,1000,3.
AT^SPOW=1,0,0 deactivates the power saving on UART.
I have tested the ftp connection with the same firmware and the conclusion is that you should insert '@' instead of the escape sequence '\00'. It should work then.
Best regards,
Bartłomiej
You are the best!!! Thank you - it works.
:-)