Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to send ftp commands to FTP server

Status
Not open for further replies.

javani_saeid

Junior Member level 1
Joined
Nov 6, 2012
Messages
17
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,371
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

any help would be appreciated,
thanks alot
 
Last edited:

I found it!

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:
Code:
user xxx
instead of:
Code:
at+cipsend
user xxx
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top