Hi PeterH,
And thanks for the reply - as you can tell i am not really sure what i am doing. The device i am using is a GSM/GPRS shield from Seeedstudio which is apparetnly able to do FTP as well as HTTP etc. I am trying to do passive mode FTP. I only tried to use a TCP connection because every thing else failed - ironically that bit worked.
I can do SMS using the AT comands no prblem and i can connect to the ftp sever using a TCP socket as well, havent tried HTTP as yet which is apparently easier as it only requires a TCP connection.
I can do FTP transfers over a network using a dedicated library like the FTP library that is used with the processing IDE which indicates that username, password, etc are all correct.
Anyway... these are the command sequences that i have tried in the past to do FTP along with the responses - this is for an FTP get;
AT
OK
AT+CSQ
+CSQ: 23,0
OK
AT+CGATT?
+CGATT: 1
OK
AT+CSTT
OK
AT+SAPBR=3,1,"CONTYPE","GPRS"
OK
AT+SAPBR=3,1,"APN","internet"
OK
AT+SAPBR=1,1
OK
AT+FTPCID=1
OK
AT+FTPMODE=1
OK
AT+FTPTYPE="A"
OK
AT+FTPSERV="ftp.xxxx.xx.xx"
OK
AT+FTPUN="user"
OK
AT+FTPPW="pass"
OK
AT+FTPGETNAME="test.log"
OK
AT+FTPGETPATH="/file/path"
OK
AT+FTPGET=1
OK
+FTPGET:1,64
AT+FTPGET=2,1024
+CME ERROR: operation not allowed
It always seems to fail at the same place and it doesnt matter wether its a PUT or a GET operation. Sometimes i get the 61 error (network error) but mostly its 64 (timeout error).
Any help you can give is very much appreciated as i have been banging my head aganist a wall with this.
Cheers.