how to send ftp commands to FTP server through GPRS
Hi everybody
I wanna download files from FTP server via SIM300 GPRS
I can successfully connect to server, but then, I can't execute FTP commands
here is a log of my connection:
Code:
AT+CGATT=1
OK
AT+CGDCONT=1,"IP","mcinet"
OK
AT+CSTT="mcinet",,
OK
AT+CIICR
OK
AT+CIFSR
10.112.86.236
AT+CIPSTATUS
OK
STATE: IP STATUS
AT+CDNSCFG="208.67.222.222","208.67.220.220"
OK
AT+CDNSORIP=1
OK
AT+CIPHEAD=1
OK
AT+CIPSTART="TCP","ftp.ikcodiag.com","21"
OK
CONNECT OK
AT+CIPSEND
> cwd anon_ftp
AT+CIPSEND
> cwd pub
AT+CIPSEND
> cwd ftp1
AT+CIPSEND
> dele NewlogFTP.txt
AT+CIPSHUT
SHUT OK
after being connected to FTP server, there is no need to AT Commands such as "AT+CIPSEND"
Because now, you are connected to ftp server and just should type FTP commands (RFC 959), for example: