Discussion in "8051 Discussion Forum" started by    SurekhaIris    Sep 11, 2012.
Tue Sep 18 2012, 05:01 pm
#21
AT+CIPSTATUS will give you status of TCP/IP stack.

Here is the updated link for user guide.
 SurekhaIris like this.
Wed Sep 19 2012, 09:33 pm
#22
Helo Ajay sir,

"Happy ganesh Chaturthi"

Sir, i m going through all the ftp steps,
i hav done the successful communication with ftp server using tcp port 2021,i hv made the directory in server successfully but for data connection i have write below last command but it shows error?
Could you please check and revert.

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

RDY

+CFUN: 1

+CPIN: READY
at
OK
at
OK
at+creg?
+CREG: 0,1

OK
at+cgatt=1
OK
at+cstt="airtelgprs.com","",""
OK
at+cipscont?
SHOW APPTCPIP CONTEXT
+CDNSORIP:0
+CIPSPRT:1
+CIPHEAD:0
+CIPFLP:1
+CIPSRIP:0
+CIPCSGP:1
Gprs Config APN:airtelgprs.com
Gprs Config UserId:
Gprs Config Password:
Gprs Config inactivityTimeout:0
+CIPDPDP:1
Detect PDP Inerval:10
Detect PDP Timer:3
App Tcpip Mode:0

OK
at+ciicr
OK
at+cifsr
117.98.156.60
at+clport?
TCP: 2020
UDP: 3030

OK
at+clport="tcp","2021"
ERROR
at+clport="tcp","2021"
ERROR
at+clport="tcp","2021"
ERROR
at+clport="tcp","2021"
OK
at+clport?
TCP: 2021
UDP: 3030

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+cipsend
> user iris

SEND OK
500 Syntax error, command unrecognized.
at+cipsend
> user iris

SEND OK
331 Password required for iris
at+cipsend
 Pass iris
SEND OK
230 Logged on
at+cipsend
> Mkd testt

SEND OK
257 "/testt" created
at+cipsend
> Cwd testt

SEND OK
250 CWD successful. "/testt" is current directory.
at+cifsr
117.98.156.60
at+cipsend
> Port 117,98,156,60,7,229

SEND OK
200 Port command successful
at+cipsend
> Appe file.txt

SEND OK
150 Opening data channel for file transfer, restarting at offset 0
425 Can't open data connection.
Thu Sep 20 2012, 01:41 am
#23
You are doing wrong way. You're doing FTP over TCP socket. and for data transfer you would need another socket. I think you have not gone through document which I have posted in earlier post. Please take a look at section 2.3 FTP Commands, that will give you exact info you need. FTP cannot work like this, Please understand.

PS: Ganesh Chaturthichya Hardik Shubhechha
Thu Sep 20 2012, 07:45 am
#24
hi sir,
Thanks for the reply.
sry,i forgot to write i m doing this procedure for simcom300 modem.i hv another documents ,which is i followed.
Please take look in doc.
Here i hv attached, please see and revert.

Thu Sep 20 2012, 11:54 pm
#25
I dont know what is the source for that document and its for SIM300 and both modules are different. It's your wish to follow that document but I would recommend to follow what is meant for your device.
Fri Sep 21 2012, 02:24 am
#26


i have to implement an Email and FTP through SIM900 module,please give any reference .

SurekhaIris



In your first post you said you needed to implement Email and FTP through a SIM900 module.
Later you consider using HTTP.
Have you been told to implement Email and FTP or will any method of transferring data do ?

FYI.. HTTP has the "PUT" method for uploading to a server, although I am not sure of exactly
how it is used, and "POST" for small amounts of data.


[ Edited Fri Sep 21 2012, 03:21 am ]
Fri Sep 21 2012, 03:54 pm
#27
@Ajay Bhargav

sir, Actually i have both GPRS modem,right now i am working on Sim 300 and it is connecting to ftp server i can access the data also but the problem is that i cant write data in the directory which we created from gprs modem on ftp server .

right now please guide me to move forward.
Fri Sep 21 2012, 04:05 pm
#28
@ExperimenterUK

Thanks for the reply

i hv both sim 300 and sim900 modem.

i m trying to transfer text file by both way that by sending an email to server and by ftp also so i m testing both the procedure for email and ftp.
for email i m testing on sim900 modem and for FTP m testing on sim300 modem.

To transfer an email my sim 900 modem does not responding anything so unfortunately m stuck there.

Please advice.


[ Edited Fri Sep 21 2012, 04:06 pm ]
Fri Sep 21 2012, 06:38 pm
#29
its better you do FTP on SIM900 and email on SIM300. As I said its kind of not possible or simple to do FTP over TCP sockets manually. coz after you send data commands you need to open a parallel TCP socket for data transfer. If you do not know how FTP works you wont be able to understand this problem.

SIM900 module has support for FTP connections without worrying about anything you can issue simple commands for data upload and download to server. check the document I posted in my link.
Fri Sep 21 2012, 08:27 pm
#30
Thanks for your advice.

okkk,again i will follow your steps and try and let you know.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Michailqfh
Fri Mar 29 2024, 01:53 am
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