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

Sun Oct 13 2019, 02:02 AM
Aline Hutchinson
Hey there,
ExperimenterUK
Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
Nathaniel
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
ExperimenterUK
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 04:33 PM
Ismail balghmi
Hello. Please I won't download
ExperimenterUK
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
BUSTER123
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.
ExperimenterUK
Thu Jul 11 2019, 07:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html

Downloads

Comments

ilylily07
Tue Oct 15 2019, 04:32 PM
hientran123
Tue Oct 15 2019, 02:27 AM
Sat Oct 05 2019, 02:38 PM
zexalo
Thu Oct 03 2019, 09:53 AM
thanhle12345
Thu Oct 03 2019, 07:37 AM
ramon_vsc
Fri Sep 20 2019, 04:53 PM
youssoufba
Thu Sep 19 2019, 11:57 AM
Taiphan000
Tue Sep 17 2019, 04:21 AM

Online

Guests: 41, Members: 0 ...

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

Members: 38097
Newest member: ilylily07
Forum Activity
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:09 PM
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:02 PM
sir, when i on display ,sometime 3rd display is no...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 02:53 PM
sir, when i on display ,sometime 3rd display is no...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:13 PM
please find video attachment. 3rd & 4th displa...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:05 PM
sir, 3rd and 4th dot matrix display flickering, ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Oct 18 2019, 09:18 PM
Hopefully you understand some of the program.Which...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Thu Oct 17 2019, 09:38 PM
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Oct 17 2019, 08:35 PM
Do you understand how this code works?If so, addin...