PDA

View Full Version : Simcom 900d-ftp



pedja089
- 13th December 2010, 16:28
I have a Simcom 900D with firmware 1137B06SIM900M64_ST, that supports FTP.
Here is HTTP/FTP AT Command list
4992
But no matter how I tried to send a file, always get a net error. The same error also with http.
I don't understand how to use the AT + SAPBR :confused:
I managed to send file like this:

AT+CGEREP=1

OK
at+cipmux=1

OK
AT+CREG=1

OK
AT+CGREG=1

OK
AT+CGATT=1

OK
AT+COPS?

+COPS: 0,0,"YUG 03"

OK
AT+CSTT="gprsinternet","mts","064"

OK
AT+CIICR

OK
AT+CIFSR

172.30.7.93
AT+CIPSTART=0,"TCP","ftp.****.com",21

OK

0, CONNECT OK

+RECEIVE,0,322:
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 2 of 1000 allowed.
220-Local time is now 08:13. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
at+cipsend=0

> User ****@****.com


0, SEND OK

+RECEIVE,0,58:
331 User ****@****.com OK. Password required
at+cipsend=0

> Pass*****

0, SEND OK

+RECEIVE,0,105:
230-User ***@***.com has group access to: **
230 OK. Current restricted directory is /
at+cipsend=0

> pasv

0, SEND OK

+RECEIVE,0,50:
227 Entering Passive Mode (**,147,240,**,32,54)
AT+CIPSTART=1,"TCP","**.147.240.**",8246

OK

1, CONNECT OK
at+cipsend=0

> stor simcom900d muxip.txt

0, SEND OK

+RECEIVE,0,30:
150 Accepted data connection
at+cipsend=1

>test text

1, SEND OK
at+cipsend=0

> bye

0, SEND OK

+RECEIVE,0,21:
500 Unknown command
AT+CIPCLOSE=1

+RECEIVE,0,9:
226-File successfully transferred
226 131.780 seconds (measured here), 0.46 bytes per second

1, CLOSE OK
AT+CIPCLOSE=0

0, CLOSE OK
AT+CPOWD=1

+PDP: DEACT

NORMAL POWER DOWN

But not using FTP commands.
Does anyone know how to send the file to the ftp using ftp command, or has some advice, suggestion?
Thanks;)

pedja089
- 13th December 2010, 18:43
But not using FTP commands.

It' shpuld be: But not using modem FTP commands.;)