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.

How to send file to ftp with Simcom 900d

Status
Not open for further replies.

pedja089

Junior Member level 1
Joined
Mar 2, 2010
Messages
18
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,390
I have a Simcom 900D with firmware 1137B06SIM900M64_ST, that supports FTP.
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
I managed to send file:

Code:
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","****",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 AT commands.
Does anyone know how to send the file to the ftp using modem ftp command, or has some advice, suggestion?
Thanks
Here is HTTP/FTP AT Command list
 

Attachments

  • an_sim900_ip_application note_v1.00_draft.pdf
    181.2 KB · Views: 115
Last edited:

AT
OK
AT+CGDCONT=1,"IP","orangeinternet","192.168.71.35" ,1,1
OK
AT+CDNSCFG="158.043.192.001","158.043.128.001"
OK
AT+CSTT="orangeinternet","",""
OK
AT+CIICR
OK
AT+CIFSR
10.52.83.134
AT+CIPSTATUS
OK

STATE: IP STATUS
AT+CIPHEAD=1
OK
AT+CDNSORIP=1
OK
AT+CIPSTART="TCP","212.157.119.102","21"
OK

CONNECT OK
+IPD65:220-************************************************** *********
+IPD38:220- PLASTIC OMNIUM SYSTEMES URBAINS
+IPD6:220-
+IPD65:220 ************************************************** *********
(ENTER)
>MESSAGE
CTRL z
SEND
OK



your your service provider gprs port no and access point
 

That isn't a problem. That way I can send the file.
I wrote a program for pic to send files to FTP using the above, but takes about 8K.
So I thought I use commands like AT + FTPPUT and similar.
But I can not make them work...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top