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.

sim900: AT commands for FTP

Status
Not open for further replies.

syeda amna

Full Member level 4
Joined
Jun 1, 2010
Messages
224
Helped
24
Reputation
48
Reaction score
23
Trophy points
1,308
Location
Pakistan
Activity points
2,549
hi
I am trying to download and upload a file to an FTP server. i m using FileZilla server. I have done these steps. All queries are working well. what are the errors?
Code:
AT  
OK  
   
AT+CGATT=1          
OK         
AT+CGDCONT=1,"IP","UFONEGPRS"                             
OK  
OK     
AT+SAPBR=3,1,"Contype","GPRS"                             
OK       
AT+SAPBR=3,1,"APN","UFONEGPRS"                              
OK  
AT+SAPBR=1,1            
OK  
AT+FTPCID=1           
OK  
AT+FTPSERV="127.0.0.1"                      
OK  
AT+FTPPORT=21             
OK  
AT+FTPUN="amna"               
OK  
AT+FTPPW="amna"               
OK       
AT+FTPPUTNAME="AMNA"                    
OK    
AT+FTPPUTPATH="d:\fILEZILLA"                            
OK
AT+FTPPUT=1
OK
AT+FTPPUT=2,100
ERROR
AT+FTPPUT=2,100
ERROR
AT+FTPPUT=2,100
ERROR

+FTPPUT:1,63

//for downloading 
AT+FTPGETNAME="amna.txt"
OK
AT+FTPGETPATH="D:\"
OK
AT+FTPGET=1
OK
AT+FTPGET=2,512
ERROR

+FTPGET:1,63
 
Last edited:

Echo wang

Member level 2
Joined
May 18, 2012
Messages
45
Helped
12
Reputation
24
Reaction score
12
Trophy points
1,288
Location
China
Activity points
1,472
hi
I am trying to download and upload a file to an FTP server. i m using FileZilla server. I have done these steps. All queries are working well. what are the errors?
Code:
AT  
OK  
   
AT+CGATT=1          
OK         
AT+CGDCONT=1,"IP","UFONEGPRS"                             
OK  
OK     
AT+SAPBR=3,1,"Contype","GPRS"                             
OK       
AT+SAPBR=3,1,"APN","UFONEGPRS"                              
OK  
AT+SAPBR=1,1            
OK  
AT+FTPCID=1           
OK  
AT+FTPSERV="127.0.0.1"                      
OK  
AT+FTPPORT=21             
OK  
AT+FTPUN="amna"               
OK  
AT+FTPPW="amna"               
OK       
AT+FTPPUTNAME="AMNA"                    
OK    
AT+FTPPUTPATH="d:\fILEZILLA"                            
OK
AT+FTPPUT=1
OK
AT+FTPPUT=2,100
ERROR
AT+FTPPUT=2,100
ERROR
AT+FTPPUT=2,100
ERROR

+FTPPUT:1,63

//for downloading 
AT+FTPGETNAME="amna.txt"
OK
AT+FTPGETPATH="D:\"
OK
AT+FTPGET=1
OK
AT+FTPGET=2,512
ERROR

+FTPGET:1,63



AT+CSQ
+CSQ: 21,0

OK
AT+CREG?
+CREG: 0,1

OK
AT+CGATT?
+CGATT: 1

OK
AT+CSTT

OK
AT+CIICR

OK
AT+CIFSR
172.20.199.189

GET:
AT+SAPBR=3,1,"CONTYPE","GPRS"

OK
AT+SAPBR=3,1,"APN","CMNET"

OK
AT+SAPBR=1,1

OK
AT+FTPCID=1

OK
AT+FTPTYPE="A"

OK
AT+FTPSERV="simcom.exavault.com"

OK
AT+FTPUN="zyf"

OK
AT+FTPPW="zyf"

OK
AT+FTPGETNAME="123.txt"

OK
AT+FTPGETPATH="/"

OK
AT+FTPGET=1

OK

+FTPGET:1,64
AT+FTPGETNAME="123.txt"

OK
AT+FTPGETPATH="/"

OK
AT+FTPGET=1
OK

+FTPGET:1,1
AT+FTPGET=2,1024

+FTPGET:2,1024
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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

OK
AT+SAPBR=1,1

OK
AT+FTPCID=1

OK
AT+FTPTYPE="A"

OK
AT+FTPSERV="simcom.exavault.com"

OK
AT+FTPUN="zyf"

OK
AT+FTPPW="zyf"

OK
AT+FTPPUTNAME="111.txt"

OK
AT+FTPPUTPATH="/"

OK
AT+FTPPUT=1

OK

+FTPPUT:1,1,1360
AT+FTPPUT=2,10

+FTPPUT:2,10

OK

+FTPPUT:1,1,1360
AT+FTPPUT=2,0

OK

+FTPPUT:1,0

Just for your reference!
 

syeda amna

Full Member level 4
Joined
Jun 1, 2010
Messages
224
Helped
24
Reputation
48
Reaction score
23
Trophy points
1,308
Location
Pakistan
Activity points
2,549
Many many thanks for your help.

what will be the value its value "AT+FTPSERV= " ?? i m using Filezilla server. it is on localhost, so i put "127.0.0.1". Is it ok?

what will be the host in "simcom.exavault.com"?
 
Last edited:

Echo wang

Member level 2
Joined
May 18, 2012
Messages
45
Helped
12
Reputation
24
Reaction score
12
Trophy points
1,288
Location
China
Activity points
1,472
Many many thanks for your help.

what will be the value its value "AT+FTPSERV= " ?? i m using Filezilla server. it is on localhost, so i put "127.0.0.1". Is it ok?

what will be the host in "simcom.exavault.com"?

simcom.exavault.com is our server address, you can use your server.
127.0.0.1 is not the one.
 

syeda amna

Full Member level 4
Joined
Jun 1, 2010
Messages
224
Helped
24
Reputation
48
Reaction score
23
Trophy points
1,308
Location
Pakistan
Activity points
2,549
ok. then what will be the value of "AT+FTPSERV= " in case of filezilla server.
 

syeda amna

Full Member level 4
Joined
Jun 1, 2010
Messages
224
Helped
24
Reputation
48
Reaction score
23
Trophy points
1,308
Location
Pakistan
Activity points
2,549
How to get rid of this error?? +FTPGET:1,77
:???:
 
Last edited:

syeda amna

Full Member level 4
Joined
Jun 1, 2010
Messages
224
Helped
24
Reputation
48
Reaction score
23
Trophy points
1,308
Location
Pakistan
Activity points
2,549
+FTPGET:1,77 => Operate Error occurs because of incorrect FTP directory format.
 

nta_xyz

Newbie level 5
Joined
Aug 21, 2011
Messages
8
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,317
AT+CSQ
+CSQ: 21,0

OK
AT+CREG?
+CREG: 0,1

OK
AT+CGATT?
+CGATT: 1

OK
AT+CSTT

OK
AT+CIICR

OK
AT+CIFSR
172.20.199.189

GET:
AT+SAPBR=3,1,"CONTYPE","GPRS"

OK
AT+SAPBR=3,1,"APN","CMNET"

OK
AT+SAPBR=1,1

OK
AT+FTPCID=1

OK
AT+FTPTYPE="A"

OK
AT+FTPSERV="simcom.exavault.com"

OK
AT+FTPUN="zyf"

OK
AT+FTPPW="zyf"

OK
AT+FTPGETNAME="123.txt"

OK
AT+FTPGETPATH="/"

OK
AT+FTPGET=1

OK

+FTPGET:1,64
AT+FTPGETNAME="123.txt"

OK
AT+FTPGETPATH="/"

OK
AT+FTPGET=1
OK

+FTPGET:1,1
AT+FTPGET=2,1024

+FTPGET:2,1024
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
OK
AT+FTPGET=2,1024

+FTPGET:2,240
a
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

OK
AT+FTPGET=2,1024

+FTPGET:2,0

OK

+FTPGET:1,0

PUT:
AT+SAPBR=3,1,"CONTYPE","GPRS"

OK
AT+SAPBR=3,1,"APN","CMNET"

OK
AT+SAPBR=1,1

OK
AT+FTPCID=1

OK
AT+FTPTYPE="A"

OK
AT+FTPSERV="simcom.exavault.com"

OK
AT+FTPUN="zyf"

OK
AT+FTPPW="zyf"

OK
AT+FTPPUTNAME="111.txt"

OK
AT+FTPPUTPATH="/"

OK
AT+FTPPUT=1

OK

+FTPPUT:1,1,1360
AT+FTPPUT=2,10

+FTPPUT:2,10

OK

+FTPPUT:1,1,1360
AT+FTPPUT=2,0

OK

+FTPPUT:1,0

Just for your reference!


hi.
thanks for your code.
now i can read from ftp and make a file with your code.
but i don`t know how can i write a string like "Hello!!!" in that file!
please guide me.
 

Twisted_transistor

Member level 1
Joined
Sep 13, 2012
Messages
32
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,288
Activity points
1,478
Hey can anyone pls explain this command to me.. Need it urgently:
AT+CNMI=1,0,0,0
 

scrod21

Newbie level 1
Joined
Oct 9, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
4
hi, friend i have a question, i tried your code (sim900: AT commands for FTP) and is a great code but a don't know how upload a file from sd... can you hep me please?

AT+CSQ
+CSQ: 21,0

OK
AT+CREG?
+CREG: 0,1

OK
AT+CGATT?
+CGATT: 1

OK
AT+CSTT

OK
AT+CIICR

OK
AT+CIFSR
172.20.199.189

GET:
AT+SAPBR=3,1,"CONTYPE","GPRS"

OK
AT+SAPBR=3,1,"APN","CMNET"

OK
AT+SAPBR=1,1

OK
AT+FTPCID=1

OK
AT+FTPTYPE="A"

OK
AT+FTPSERV="simcom.exavault.com"

OK
AT+FTPUN="zyf"

OK
AT+FTPPW="zyf"

OK
AT+FTPGETNAME="123.txt"

OK
AT+FTPGETPATH="/"

OK
AT+FTPGET=1

OK

+FTPGET:1,64
AT+FTPGETNAME="123.txt"

OK
AT+FTPGETPATH="/"

OK
AT+FTPGET=1
OK

+FTPGET:1,1
AT+FTPGET=2,1024

+FTPGET:2,1024
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
OK
AT+FTPGET=2,1024

+FTPGET:2,240
a
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0123456789aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

OK
AT+FTPGET=2,1024

+FTPGET:2,0

OK

+FTPGET:1,0

PUT:
AT+SAPBR=3,1,"CONTYPE","GPRS"

OK
AT+SAPBR=3,1,"APN","CMNET"

OK
AT+SAPBR=1,1

OK
AT+FTPCID=1

OK
AT+FTPTYPE="A"

OK
AT+FTPSERV="simcom.exavault.com"

OK
AT+FTPUN="zyf"

OK
AT+FTPPW="zyf"

OK
AT+FTPPUTNAME="111.txt"

OK
AT+FTPPUTPATH="/"

OK
AT+FTPPUT=1

OK

+FTPPUT:1,1,1360
AT+FTPPUT=2,10

+FTPPUT:2,10

OK

+FTPPUT:1,1,1360
AT+FTPPUT=2,0

OK

+FTPPUT:1,0

Just for your reference!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top