AT Command

Description

AT+FTPGET gets the remote FTP file.
Response
If mode is 1, it is a successful FTP get session:
OK
+FTPGET:1,1
If data transfer finished:
+FTPGET:1,0
If mode is 1, it is a failed FTP get session:
OK
+FTPGET:1,
If mode is 2:
+FTPGET:2,
012345678…
OK
If error is related toME functionality:
61 Net error
62 DNS error
63 connect error
64 timeout
65 server error
66 operation not allow
70 replay error
71 user error
72 password error
73 type error
74 rest error
75 passive error
76 active error
77 operate error
78 upload error
79 download error


Support

Simcom Module Tutorial

Examples

Open the FTP get session
AT+FTPGET=1
OK
+FTPGET:1,1

Read 2014 bytes,
AT+FTPGET=12,1024
+FTPGET:2,50
0123456789012345678901234
5678901234567890123456789
0
OK

KeywordsAT+FTPGET syntax, examples, parameters, error, input, response.

With AT Command Tester tool, you can test Simcom FTP feature.

With AT Command Tester tool,send batch of AT commands in the script mode to test Simcom FTP feature,

Checking registration status...

AT+CREG?

+CREG: 0,5

OK
Device is registered and is roaming.

Querying bearer 1 .

AT+SAPBR=2,1

+SAPBR: 1,1,"10.101.13.111"

OK
Bearer 1 is Connected.IP address is "10.101.13.111"

Bearer 1 is Connected.

Setting up FTP parameters..

AT+FTPCID=1

OK
AT+FTPSERV="ftp.m2msupport.net"

OK
AT+FTPUN="xxxxx"

OK
AT+FTPPW="xxxxxxx"

OK
AT+FTPGETNAME="ftptest.txt"

OK
AT+FTPGETPATH="/www/m2msupport/"

OK
AT+FTPGET=1

OK

+FTPGET:1,1
FTP session sucessfully started

AT+FTPGET=2,1024

+FTPGET:2,0

OK
FTP data transfer is complete

+FTPGET:1,1
FTP session sucessfully started

AT+FTPGET=2,1024

+FTPGET:2,43
Sucessful FTP file get from m2msupport.net.
OK
AT+FTPGET=2,1024

+FTPGET:2,0

OK
FTP data transfer is complete

+FTPGET:1,0
FTP session end