Discussion in "8051 Discussion Forum" started by    SurekhaIris    Sep 11, 2012.
Sun Sep 23 2012, 08:59 pm
#31
i hv tried so many times ftp in sim900 but still it is nt working sir, i dnt understand what is wrong in my command .

i really feel bad this time,why it is nt working?

when i followed the commands given in your ftp doc but modem is not communicating with ftp server it shows error

CFUN: 1

+CPIN: READY

+CREG: 0

+CREG: 2

+CREG: 1,"0C25","0849"

Call Ready
at
OK
at+creg?
+CREG: 2,1,"0C25","0849"

OK
at+cgatt=1
OK
at+cstt="airtelgprs.com","",""
OK
at+ciicr
OK
at+cifsr
110.226.168.94
at+sapbr=1,1
OK
at+sapbr=3,1,"contype","gprs"
OK
at+sapbr=1,1
ERROR
at+sapbr=1
ERROR
at+sapbr?
ERROR
at+sapbr=2,1
+SAPBR: 1,1,"106.210.149.47"

OK
at+sapbr=1,1
ERROR
at+sapbr=?
+SAPBR: (0-4),(1-3),"ConParamTag","ConParamValue"

OK
at+sapbr=1,0
ERROR
at+sapbr=1,1
ERROR
at+sapbr?
ERROR
at+sapbr=3,1,"contype","gprs'
ERROR
at+sapbr=3,1,"CONTYPE","GPRS"
OK
at+sapbr?2,1
ERROR
at+sapbr=1,1
ERROR
at+sapbr=1,1
ERROR
at+sapbr=1,1
ERROR
at+sapbr=1,1
ERROR
at+sapbr?
ERROR
at+sapbr=1,1
ERROR
at+ciphaed=1
ERROR
at+ciphead=1
OK
at+sapbr=1,1
ERROR
at+sapbr=1
ERROR
at+sapbr=2,1
+SAPBR: 1,1,"106.210.149.47"

OK
at+ftpport=21
OK
at+ftpmode?
+FTPMODE: 1

OK
at+ftpmode=0
OK
at+ftptype="A"
OK
at+ftpputopt="APPE"
OK

+CREG: 1,"0C25","084A"
at+ftpcid=1
OK
at+ftprest?
+FTPREST: 0

OK
at+ftpserv="192.168.100.20"
OK
at+ftpserv?
+FTPSERV: "192.168.100.20"

OK
at+ftpun="brain"
OK
at+ftppw="brain"
OK

+CREG: 1,"0C25","0849"

+CREG: 1,"0C25","084A"
at+ftpgetname="file.txt"
OK
at+ftpget?
ERROR
at+ftpget=1
OK

+FTPGET:1,66



could you please help me out?
Mon Sep 24 2012, 09:40 am
#32
Hello sir,small gudnews my modem is getting connected with ftp server but the problem is that when i m writing ftp get or put command s it shows timeout error
could you please advice,

to set the time which commands i hv to refer

at+ftpserv="124.124.124.100"
OK
at+ftpun="brain"
OK
at+ftppw="brain"
OK
at+ftpgetname="file.txt'
ERROR
at+ftpgetname="file.txt"
OK
at+ftpgetpath="/"
OK
at+ftpget=1
OK

+FTPGET:1,64
at+ftpserv="124.124.124.100"
OK
at+ftpun="brain"
OK
at+ftppw="brain"
OK
at+ftpgetname="file.txt'
ERROR
at+ftprest=1
OK
at+ftpgetname="file.txt"
OK
at+ftpgetpath="/"
OK
at+ftpget=1
OK

+FTPGET:1,64
at+ftpput=1
OK

+FTPPUT:1,66
at+ftpserv="124.124.124.100"
OK
at+ftpun="brain"
OK
at+ftppw="brain"
OK
at+ftpput=1
OK

+FTPPUT:1,66
at+ftpget=1
OK

+FTPGET:1,64
at+ftp
CLOSED
Mon Sep 24 2012, 11:29 am
#33
after you this
at+ftpget=1
OK

+FTPGET:1,64 << this means data is available


why are you sending FTPPUT?? so when data is available you are suppose to send command AT+FTPGET=2,1024 try again.
Mon Sep 24 2012, 12:25 pm
#34
Thanks for the reply,

when i got +FTPGET:1,64 response like this in hyper terminal,but in FTP server it shows disconnected,I already sets the timeout in ftp server is 0 (for no limit )still it is disconnected in ftp server.

As the application notes,when we get the response like +FTP=1,1 only after this we can write at+ftpget=2,1024 ,

For FTPPUT i m just checking whether it is working bt it is nt showing correct response.

Could you please suggest


Tue Sep 25 2012, 09:26 am
#35
Gud morning sir,

Now my error is getting changed,Please help me.

I need your advice.

+CFUN: 1

+CPIN: READY

+CREG: 0

+CREG: 2

+CREG: 1,"0C25","0849"

Call Ready
at
OK
at+creg?
+CREG: 2,1,"0C25","0849"

OK
at+cgatt=1
OK
at+cstt="airtelgprs.com","",""
OK
at+ciicr
OK
at+cipfsrd
ERROR
at+cifsr
223.183.171.182
at+cipstart="tcp","124.124.124.100","21'
ERROR
at+clport?
TCP: 0
UDP: 0

OK
at+clport="tcp","2021"
OK
at+cipstart="tcp","124.124.124.100","21"
OK

CONNECT OK
220-FileZilla Server version 0.9.41 beta
220-written by Tim Kosse ([email protected])
220 Please visit http://sourceforge.net/projects/filezilla/
at+ftpserv="124.124.124.100"
OK
at+ftpun="brain"
OK
at+ftppw="brain"
OK
at+getname="file.txt"
ERROR
at+ftprest=1
OK
at+ftpgetname="file.txt"
OK
at+ftpgetpath="/"
ERROR
at+ftpgetpath="/"
OK
at+ftpget=1
OK

+FTPGET:1,61-------------Net Error

+CREG: 1,"0C25","084A"
at+ftpget=1
OK

+FTPGET:1,61
at+ftpget=2,1024
ERROR
Tue Sep 25 2012, 02:45 pm
#36
you dont need to do this when using FTP Commands


OK
at+clport="tcp","2021"
OK
at+cipstart="tcp","124.124.124.100","21"
OK

CONNECT OK



and follow the ftp example as it is... given in the document.
 SurekhaIris like this.
Tue Sep 25 2012, 07:07 pm
#37
Thank you very much for your prompt reply.

yaa that steps m already performed but the still it shows timeout error.

I dnt understand why it shows timeout error..

MyFTP server log file:


(000005) 9/25/2012 10:05:28 AM - (not logged in) (106.210.233.174)> Connected, sending welcome message...
(000005) 9/25/2012 10:05:28 AM - (not logged in) (106.210.233.174)> 220-FileZilla Server version 0.9.41 beta
(000005) 9/25/2012 10:05:28 AM - (not logged in) (106.210.233.174)> 220-written by Tim Kosse ([email protected])
(000005) 9/25/2012 10:05:28 AM - (not logged in) (106.210.233.174)> 220 Please visit http://sourceforge.net/projects/filezilla/
(000005) 9/25/2012 10:05:29 AM - (not logged in) (106.210.233.174)> USER brain
(000005) 9/25/2012 10:05:29 AM - (not logged in) (106.210.233.174)> 331 Password required for brain
(000005) 9/25/2012 10:05:30 AM - (not logged in) (106.210.233.174)> PASS *****
(000005) 9/25/2012 10:05:30 AM - brain (106.210.233.174)> 230 Logged on
(000005) 9/25/2012 10:05:30 AM - brain (106.210.233.174)> TYPE I
(000005) 9/25/2012 10:05:30 AM - brain (106.210.233.174)> 200 Type set to I
(000005) 9/25/2012 10:05:31 AM - brain (106.210.233.174)> PASV
(000005) 9/25/2012 10:05:31 AM - brain (106.210.233.174)> 227 Entering Passive Mode (124,124,124,99,195,82)
(000005) 9/25/2012 10:05:34 AM - brain (106.210.233.174)> disconnected.


Please help me out








Wed Sep 26 2012, 10:06 am
#38
Just make sure your GPRS is up and server is running at default ftp port 21. No need to connect to ftp server using CIPSTART
here are the steps:
AT+SAPBR=2
>+SAPBR: ,,get the CID from here

AT+FTPCID=CID
AT+FTPSERV="serverip"
AT+FTPUN="user"
AT+FTPPW="password"
AT+FTPGETNAME="filename"
AT+FTPGETPATH="pathtofile"
AT+FTPGET=1 << start ftp
>> +FTPGET:1,1 //wait for this response from modem
after this.. your data is ready to be read
AT+FTPGET=2,1024 // 1024 is length you want to read. you can set lower value too
//after this modem will reply you with bytes available
>> +FTPGET:2,100 //this mean 100 bytes are available to read
>> +FTPGET:2,0 //this mean 0 bytes available right now.. but connection is still available
// connection will be considered disconnected only if you get
+FTPGET: 1,0

//if you can also receive following response when you do FTPGET=1, or during reading data from server
>> +FTPGET:1,64 // then you have to start again


Hope this helps
 SurekhaIris like this.
Tags SIM900 FTP examplesim900 ftp commandssimcom ftp at commandat command sim900 ftpftp at commands
Thu Sep 27 2012, 11:40 am
#39
sir,

I follow this steps lots of time,

Again i hv followed the steps bt the still it shows timeout response ,i dnt understand wat to do nw?


+CFUN: 1

+CPIN: READY

+CREG: 0

+CREG: 2

+CREG: 1,"0C25","084A"

Call Ready
at
OK
at+creg?
+CREG: 2,1,"0C25","084A"

OK
at+cgatt=1
OK
at+cstt="airtelgprs.com","",""
OK
at+ciicr'
OK
at+cifsr
223.230.211.20
at+sapbr=2,1
+SAPBR: 1,3,"0.0.0.0"

OK
at+sapbr=3,1,"contype","GPRS"
OK
at+sapbr=3,1,"user",""
OK
at+sapbr=3,1,"pw
OK
at+sapbr=2,1
+SAPBR: 1,3,"0.0.0.0"

OK
at+sapbr=1,1
OK
at+sapbr=2,1
+SAPBR: 1,1,"223.183.163.71"

OK
at+ftpcid=1
OK
at+ftpserv="124.124.124.100"
OK
at+ftpun="brain"
OK
at+ftppw="brain"
OK
at+ftpgetname="file.txt"
OK
at+ftpgetpath="C:\"
OK
at+ftpget=1
OK

+FTPGET:1,64
Thu Sep 27 2012, 11:48 am
#40
Dear sir,

Also please let me know how to check gprs firmware version for both sim300 and sim900 modem.

Please advice.

Thank you very much for your reply

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am