How to download the file from FTP Server using SIM900

Status
Not open for further replies.

Shivashankarayya

Junior Member level 2
Joined
Apr 10, 2010
Messages
22
Helped
6
Reputation
12
Reaction score
6
Trophy points
1,283
Location
Bangalore, INDIA
Activity points
1,439
Hi folks,

I am using SIM900 for my project. I am able to establish the connection to FTP server but not able to download the text file from server.
I am sending Following AT commands which i used for establishing the connection to FTP server. Can anybody solve my problem. ? Plz ...
Following are the AT commands:

at+cipmux?

+CIPMUX: 1

OK
at+cstt="xyz.com","",""

OK
at+ciicr

OK
at+cifsr

10.76.58.102
AT+CIPSTART=0,"TCP","205.234.235.188",21

OK

0, CONNECT OK

+RECEIVE,0,7:
220

at+cipsend=0

> user xxxxxx

0, SEND OK

+RECEIVE,0,45:
331 Password required for xxxxxx.
at+cipsend=0

> pass xxxxxx

0, SEND OK

+RECEIVE,0,38:
230 User xxxxxx logged in.
at+cipsend=0

> pasv

SEND OK

+RECEIVE,0,51:
227 Entering Passive Mode (205,234,235,188,145,83)
AT+CIPSTART=1,"TCP","205.234.235.188",37203

OK

1, CONNECT OK
at+cipsend=1

> get xyz.txt

SEND OK


At this stage not getting data from FTP server. Can anybody tell me where i am going wrong...?.Any idea...?

Waiting for ur valuable suggestions

Thanks in Advance.
 

Hi Guys ,
I found the solution. Following is the correct method:


at+cipmux?

+CIPMUX: 1

OK
at+cstt="xyz.com","",""

OK
at+ciicr

OK
at+cifsr

10.76.58.102
AT+CIPSTART=0,"TCP","205.234.235.188",21

OK

0, CONNECT OK

+RECEIVE,0,7:
220

at+cipsend=0

> user xxxxxx

0, SEND OK

+RECEIVE,0,45:
331 Password required for xxxxxx.
at+cipsend=0

> pass xxxxxx

0, SEND OK

+RECEIVE,0,38:
230 User xxxxxx logged in.
at+cipsend=0

> pasv

SEND OK

+RECEIVE,0,51:
227 Entering Passive Mode (205,234,235,188,145,83)
AT+CIPSTART=1,"TCP","205.234.235.188",37203

OK

1, CONNECT OK
at+cipsend=0

> cwd xxxx

0, SEND OK

+RECEIVE,0,29:
250 CWD command successful.
at+cipsend=0

> retr mat.txt

+RECEIVE,1,53:
246.0,270.0,230.0,100,50.0,48.0,25.0,0,0,1,1,1,1,0,0,
0, SEND OK

+RECEIVE,0,54:
125 Data connection already open; Transfer starting.

+RECEIVE,0,24:
226 Transfer complete.
:lol::grin:
 
when i send this to sim908 i receive this:
at+cipmux?

+CIPMUX: 0

why?!

please guide me thanks

Because you have asked the modem a question with AT+CIPMUX? i.e. under what conditions are you operating multiple IP connections ? and the modem's answer is a single at present, as +CIPMUX: 0 = a single connection and +CIPMUX: 1 = multiple connections
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…