Continue to Site

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.

FTP over TCP port sim300 modem Problem

Status
Not open for further replies.

SurekhaIris

Member level 2
Joined
Aug 15, 2012
Messages
50
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,616
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 (Tim.Kosse@gmx.de)
220 Please visit https://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.
 

if someone has solved, i can help please me
 

To Transfer the Files and Use Filezilla FTP server

AT+CSTT="AIRTELGPRS.COM","",""

AT+CIPSCONT?

AT+CIICR

AT+CIFSR

AT+CIPSERVER?

AT+CIPSERVER

AT+CLPORT?

AT+CLPORT="TCP","2021"

AT+CIPSTART="TCP","Your server ip","21"

AT+CIPSEND

User Username

AT+CIPSEND

Pass UseraPASSword

AT+CIPSEND

Mkd TEST

AT+CIPSEND

Cwd TEST

AT+CIPSEND

Port 88,214,93,220,7,228

AT+CIPSEND

Appe file.txt

AT+CIPCCON=2

AT+CIPSEND

Text for file 12345

AT+CIPCCON=1

AT+CIPSEND

ABOR

AT+CIPCLOSE

-----------------------------------------------

To get The Files
AT+CIPSTART="TCP","Server IP","21"

AT+CIPSEND

User Username

AT+CIPSEND

Pass Userpassword

AT+CIPSEND

Mkd TEST

AT+CIPSEND

Cwd TEST

AT+CIPSEND

Port 88,214,93,220,7,228

AT+CIPSEND

RETR file.txt

AT+CIPSEND

LIST


To connect to SIMCOM Server to give the below IP address from Mozilla

110.226.76.228:2020
 

after command sent AT + CIFSR gives me an IP, i used

AT+CIPSEND
Port ip,7,228

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.


Why should the ip port? what modem you use?
 
Last edited:

RDY

+CFUN: 1

+CPIN: READY

+CREG: 0

+CREG: 2

Call Ready

+CREG: 1

+CGREG: 0

+CGREG: 1
at+cstt="broadband"
OK
at+cipscont?
+CIPSCONT:1
+CIPCSGP:1
Gprs Config APN:broadband
Gprs Config UserId:
Gprs Config Password:
+CLPORT:0,0
+CIPHEAD:0
+CIPSHOWTP:0
+CIPSRIP:0
+CIPATS:0,0
+CIPSPRT:1,0
+CIPQSEND:0
+CIPMODE:0
+CIPCCFG:5,2,1024,1
+CIPMUX:0
+CIPDPDP:1,10,3
+CIPRXGET:0
+CIPQRCLOSE:0
+CIPUDPMODE:0

OK
at+ciicr
OK
at+cifsr
10.18.171.84
at+cipserver?
+CIPSERVER: 0

OK

at+clport?
TCP: 0
UDP: 0

OK
at+clport="TCP","2021"
OK
at+cipstart="tcp","95.64.115.21","21"
OK

CONNECT OK
220-FileZilla Server version 0.9.41 beta
220-written by Tim Kosse (Tim.Kosse@gmx.de)
220 Please visit https://sourceforge.net/projects/filezilla/
at+cipsend
> user xxxxxx

SEND OK
331 Password required for marius

at+cipsend
> pass xxxxxxx

SEND OK
230 Logged on

at+cipsend
> cwd test

SEND OK
250 CWD successful. "/test" is current directory.
at+cipsend
> port 10,18,171,84,7,228

SEND OK
200 Port command successful
at+cipsend
> appe test.txt

SEND OK
150 Opening data channel for file transfer, restarting at offset 0
425 Can't open data connection.

at+cipccon=2
ERROR


I do not know what is with AT + CIPSERVER????
I think the problem is an FTP server not found modem ip sim900d (external ip)
 
Last edited:

You have to make your modem as server AT+CIPSERVER=1 then again try with same commands
 

If you enable cipserver = 1, i need multiconnection and not allow me to set my at + clport = "tcp", "2021"
Enable cipserver = 1 and gives me the same error
150 Opening data channel for file transfer, restarting at offset 0
425 Can't open data connection
what modem using??
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top