Discussion in "8051 Discussion Forum" started by    SurekhaIris    Sep 11, 2012.
Sun Sep 23 2012, 03:29 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, 04:10 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, 05:59 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, 06:55 AM
#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, 03:56 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, 09:15 AM
#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, 01:37 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, 04:36 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, 06:10 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, 06:18 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

Conversation

Thu Jun 11 2020, 06:27 AM
anudee
sir could please send the code for I2C and wifi interfacing with 8051
scena
Tue May 19 2020, 10:29 PM
Does anyone have microcontroller programming software for STC15F104W (core 8051, 4 k, 128 byte, 6 I/O pin, UART ... DIL8), that works?
Sat May 02 2020, 07:38 PM
Tamu Gurung
Hi I am looking for a assembly language program for a digital decimal counter. Time counts max limit of 2 mins starting from 2.00 mins and ending at 0.00. time is to be displayed on 4 7-segment LED displays. Edsim51 simulator to be used. Thanks
Wed Mar 25 2020, 01:39 PM
Tajammul
Sir kindly send the code file i2c for 8051
ExperimenterUK
Fri Mar 13 2020, 10:36 PM
@ Rohitnani,ABEBE..which project ?
Fri Mar 13 2020, 12:55 PM
ABEBE
how can get hadwere of this project
Rohitnani
Sat Mar 07 2020, 05:11 PM
Sir, Could you please send me the zip file input password....
Wed Feb 26 2020, 04:58 PM
Peter Parker
Is it possible to send multiple messages using only 1 GSM module?
Sat Feb 01 2020, 10:12 AM
Pearl Olin
Hello,
Wed Jan 22 2020, 06:16 PM
MINU CHAUDHARY
I m getting errors while simulation process during interfacing socket output and lcd... Can i get the report of ur project which is same as us.

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 137, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123