AT+KFTPSND Issue

HI,

I’m trying to upload some data as a text file but I seem to be having trouble.

I’m connected with the session but when I send the AT+KFTPSND command I get just ‘ERROR’ so I assume that I don’t have the string correctly formatted…

I’ve tried various different combinations some with " " and some without, with and without Dir folder, different session IDs etc… So please don’t comment unless you have a working string that you have proven as I have read the AT command DataSheet.

Here is my string

AT+KFTPSND=1,Test.txt,1,0

it is my understanding that as +KFTPSND: (1-32),<local_uri>,<server_path>,<file_name>,(0-1),(0-1) does not have the file name in " " they are not required.

I have also tried putting the file name in < > which also returns simply ERROR

I have checked my FTP session control and the sessions are being created and I am getting good connections.

$CSQ: 14,99,-10
+KCNX_IND: 1,1,0
+KFTP_IND: 1,1

If you know where I am going wrong I would be very much appreciated.

Thanks

Hi,

Can you share the AT command logs…? and the notifications what you are getting while starting the ftp and sending the data

+SIM: 1

+KSUP: 0
EOD

OK
EOD

AT+IPR?

+IPR: 500000

OK
EOD

AT+CREG?

+CREG: 0,1

OK
EOD

OK
AT$CSQ

$CSQ: 15,99,-5

OK
EOD

AT+CIND=?

+CIND: (“battchg”,(0-5)),(“signal”,(0-5)),(“service”,(0-1)),(“message”,(0-1)),(“call”,(0-1)),(“roam”,(0-1)),(“smsfull”,(0-1))

OK
EOD

+PBREADY
AT+CIND?
EOD

+CIND: 3,3,1,1,0,0,0

OK
EOD

AT&K3

OK
EOD

AT+KPATTERN="–EOF–PATTERN–"

OK
EOD

AT+KCNXCFG=1,“GPRS”,“pp.vodafone.co.uk”,“wap”,“wap”,

OK
EOD

AT+KFTPCFG=1,“FTP”,“USER”,“PASSWORD”,21,0

+KFTPCFG: 1
OK

+KCNX_IND: 1,4,1
EOD

+KCNX_IND: 1,1,0
EOD

+KFTP_IND: 1,1
EOD

AT+KFTPSND=?

+KFTPSND: (1-32),<local_uri>,<server_path>,<file_name>,(0-1),(0-1)
OK
EOD

AT+KFTPSND=9,Test.txt,1,0

ERROR
EOD

First parameter must be wrong. It should be the session id, which you see in

I suggest that you take a look at the FTP client example in section 20.7.1 of the at command guide.

I’ve read the examples which is what I have below… I’ve also set the session ID as 1 and I get exactly the same result.

See below

+SIM: 1

+KSUP: 0
EOD

OK
EOD

AT+IPR?

+IPR: 500000

OK
EOD

AT+CREG?

+CREG: 0,1

OK
EOD

OK
AT$CSQ

$CSQ: 17,99,-4

OK
EOD

AT+CIND=?

+CIND: (“battchg”,(0-5)),(“signal”,(0-5)),(“service”,(0-1)),(“message”,(0-1)),(“call”,(0-1)),(“roam”,(0-1)),(“smsfull”,(0-1))

OK
EOD

+PBREADY
AT+CIND?
EOD

+CIND: 3,3,1,1,0,0,0

OK
EOD

AT&K3

OK
EOD

AT+KPATTERN="–EOF–PATTERN–"

OK
EOD

AT+KCNXCFG=1,“GPRS”,“pp.vodafone.co.uk”,“wap”,“wap”,

OK
EOD

AT+KFTPCFG=1,“FTP”,“USER”,“PASSWORD”,21,0

+KFTPCFG: 1
OK

+KCNX_IND: 1,4,1
EOD

+KCNX_IND: 1,1,0
EOD

+KFTP_IND: 1,1
EOD

AT+KFTPSND=?

+KFTPSND: (1-32),<local_uri>,<server_path>,<file_name>,(0-1),(0-1)
OK
EOD

AT+KFTPSND=1,Test.txt,1,0

ERROR
EOD

This is it exactly as per the example but I still get the error, the FTP session is active and I can see this on my hosting FTP session control page.

+SIM: 1

+KSUP: 0
EOD

OK
EOD

AT+IPR?

+IPR: 500000

OK
EOD

AT+CREG?

+CREG: 0,1

OK
EOD

OK

+PBREADY
AT$CSQ

$CSQ: 17,99,-5

OK
EOD

AT+CIND=?

+CIND: (“battchg”,(0-5)),(“signal”,(0-5)),(“service”,(0-1)),(“message”,(0-1)),(“call”,(0-1)),(“roam”,(0-1)),(“smsfull”,(0-1))

OK
EOD

AT+CIND?
EOD

+CIND: 3,3,1,1,0,0,0

OK
EOD

AT&K3

OK
EOD

AT+KPATTERN="–EOF–PATTERN–"

OK
EOD

AT+KCNXCFG=1,“GPRS”,“pp.vodafone.co.uk”,“wap”,“wap”,

OK
EOD

AT+KFTPCFG=1,“FTP”,“USER”,PASS",21,0

+KFTPCFG: 1
OK

+KCNX_IND: 1,4,1
EOD

+KCNX_IND: 1,1,0
EOD

+KFTP_IND: 1,1
EOD

AT+KFTPSND=?

+KFTPSND: (1-32),<local_uri>,<server_path>,<file_name>,(0-1),(0-1)
OK
EOD

AT+KFTPSND=0,“Dir”,“Test.txt”,0

ERROR
EOD

THIS IS TEST DATA–EOF–PATTERN–

ERROR
EOD

I have managed to get the module to create the file in the FTP location but Passive or Active FTP connection, I can’t seem to get it to write the data…

I just don’t get CONNECT??

Any help would be much appreciated.

Thanks