Page 2
Manual_V1.00 General Notes SIMCom offers this information as a service to its customers, to support application and engineering efforts that use the products designed by SIMCom. The information provided is based upon requirements specifically provided to SIMCom by the customers. SIMCom has not undertaken any independent search for additional relevant information, including any information that may be in the customer’s possession.
Smart Machine Smart Decision Version History Version Date Chapter What is new V1.00 2018-09-28 New version SIM7500_SIM7600_SIM7800 Series_FTPS_AT Command Manual 2 / 29...
Smart Machine Smart Decision Contents Version History ..........................2 Contents ............................3 1 Introduction ............................ 4 1.1 The process of Using FTP(S) AT Commands ..................4 2 Description of AT Command ......................4 2.1 AT+CFTPSSTART Start FTP(S) service ..................4 2.2 AT+CFTPSSTOP Stop FTP(S) Service ..................
Smart Machine Smart Decision 1 Introduction The process of Using FTP(S) AT Commands Step 1: Ensure GPRS network is available before performing FTP(S) related operations. Step 2: Configure the parameter of PDP context by AT+CGDCONT. Step 3: Activate the PDP context to start FTP(S) service by AT+CFTPSSTART. Step 4: Login FTP(S) server by AT+CFTPSLOGIN.
Smart Machine Smart Decision +CFTPSSTART: <errcode> Defined Values <errcode> The result of start FTP(S) service, 0 is success, others are failure. Please refer to chapter 4. 2.2 AT+CFTPSSTOP Stop FTP(S) Service AT+CFTPSSTOP Stop FTP(S) Service AT+CFTPSSTOP STOP FTP(S) service Execute Command Response AT+CFTPSSTOP a)If stop FTP(S) service successfully:...
Smart Machine Smart Decision b) If parameter format is not right or other error not related with network occurs: ERROR c)if any other network related error occurs: +CFTPSLOGIN: <errcode> Defined Values <host> Host address, string type, maximum length is 256 <port>...
Smart Machine Smart Decision 2.5 AT+CFTPSMKD Create a new directory on FTP(S) server AT+CFTPSMKD is used to create a new directory on a FTP(S) server. Please make sure login to the FTP(S) server successfully before delete a directory. AT+CFTPSMKD Create a new directory on FTP(S) server Test Command Response AT+CFTPSMKD=?
Smart Machine Smart Decision +CFTPSRMD:<errcode> c) if parameter format or any errors: ERROR Defined Values The directory to be removed. If the directory contains <dir> non-ASCII characters, the <dir> parameter should contain a prefix of {non-ascii}.String type, maximum length is 256 The result of remove directory, 0 is success, others are failure, <errcode>...
Smart Machine Smart Decision Defined Values <filename> The name of the file to be deleted. If the file name contains non-ASCII characters, the <filename> parameter should contain a prefix of {non-ascii}.String type, the maximum length is 256 <errcode> The result of delete a file, 0 is success, others are failure, please refer to chapter 4.
Smart Machine Smart Decision AT+CFTPSPWD Get the current directory on FTP(S) server Response a)if get the current directory successfully: +CFTPSPWD: ”<dir>” Execute Command b)if failed: AT+CFTPSPWD + CFTPSPWD: <errcode> ERROR c)if parameter format or any other error occurs: ERROR Defined Values The name of the file to be deleted.
Smart Machine Smart Decision A – ASCII. I– Binary The result of set type, 0 is success, others are failure, please <errcode> refer to chapter 4. 2.11 AT+CFTPSLIST List the items in the directory on FTP(S) server This command is used to list the items in the specified directory on FTP(S) server. Module will output the items to serial port when list items successfully.
Smart Machine Smart Decision Response a) if download file successfully : Execute Command +CFTPSGETFILE: 0 AT+CFTPSGETFILE= b) if failed: “<filepath>” [,<dir>] +CFTPSGETFILE: <errcode> c) if parameter format or any other errors: ERROR Defined Values The remote file path. When the file path doesn’t contain ”/”, this command transfers file from the current remote FTPS directory.
Smart Machine Smart Decision AT+CFTPSPUTFILE= a)if upload file successfully : “<filepath>” [,<dir>,<rest_size>] +CFTPSPUTFILE: 0 b)if failed: +CFTPSPUTFILE: <errcode> c)if parameter format i or any other errors: ERROR Defined Values The remote file path. When the file path doesn’t contain “/”, this command transfers file to the current remote FTPS directory.
Page 15
Smart Machine Smart Decision +CFTPSGET: DATA,<len> … +CFTPSGET: DATA, <len> … … +CFTPSGET: 0 b) if <using_cache> is 1 and get file successfully: +CFTPS: RECV EVENT AT+CFTPSCACHERD?//you can use this command to //check the size of the received //data +CFTPSCACHERD: 102400 //output cached data now: AT+CFTPSCACHERD +CFTPSGET: DATA,<len>...
Smart Machine Smart Decision 1 – Use cache, module will report “+CFTPS: RECV EVENT” when list successfully (Data will output using AT+CFTPSCACHERD command) The result code of download file from FTP(s) server. 0 is <errcode> success, others are failure, please refer to chapter 4. 2.15 AT+CFTPSPUT Put a file to FTP(S) server through serial port You can put a file to FTP(S) server through serial port.
Smart Machine Smart Decision downloading FTP data will be coded as <ETX><Ctrl+Z>. Each <ETX> character will be coded as <ETX><ETX>. Single <Ctrl+Z> means end of the FTP data. <ETX> is 0x03, and <Ctrl+Z> is 0x1A. The value for FTP “REST” command which is used for broken <rest_size>...
Smart Machine Smart Decision +CFTPSGET: DATA,<out_len><CR><LF> … b)If the cache data is AT+CFTPSLIST and everything goes well: +CFTPSLIST: DATA,<out_len><CR><LF> … Defined Values <len> Numeric type, The bytes of data cached in FTPS module. The bytes of data to output. The maximum value is 1024 for <out_len>...
Page 19
Smart Machine Smart Decision a) ensure GPRS network is available: AT+CSQ +CSQ: 23,0 AT+CREG? +CREG: 0,1 AT+CGREG? +CGREG: 0,1 b) PDP context Enable: //Specify the parameter value of the PDP context corresponding to cid AT+CGSOCKCONT=1,"IP","CMNET" AT+CGPADDR +CGPADDR: 1,10.49.14.68 //ensure the first PDP context get a IP address +CGPADDR: 4,0.0.0.0 Note: usually CSOCKAUTH and CSOCKSETPN parameter are kept default if not care about.
Smart Machine Smart Decision 3.1 Access to FTP server 3.1.1 Download a file from FTP server to module/upload a file to FTP server from module Following commands show us how to login to a FTP server, list the current directory items get the current directory and download a file to module ”E:/”.
Page 21
Smart Machine Smart Decision -rw-rw-rw- 1 user group 21 Jan 15 2018 11.txt -rw-rw-rw- 1 user group 41 Apr 8 19:32 11111.txt -rw-rw-rw- 1 user group 327680 Mar 15 2017 111ww.txt +CFTPSLIST: 0 AT+CFTPSPWD//get current directory of FTP server +CFTPSPWD: "/" AT+CFTPSGETFILE="111ww.txt",0 //download a file from FTP server to module directory ”E:/”...
Smart Machine Smart Decision AT+CFTPSLOGOUT //logout FTP server +CFTPSLOGOUT: 0 AT+CFTPSSTOP //stop FTP service +CFTPSSTOP: 0 3.1.2 Download a file from FTP server to serial port/upload a file to FTP server from serial port Following commands show us how to download a file from FTP server to serial port and how to upload a file from serial port to FTP server.
Page 23
Smart Machine Smart Decision drw-rw-rw- 1 user group 0 Aug 23 15:37 . drw-rw-rw- 1 user group 0 Aug 23 15:37 .. -rw-rw-rw- 1 user group 4 Aug 11 2016 008test -rw-rw-rw- 1 user group 5505024 Jun 7 17:27 0529-0607.zip drw-rw-rw- 1 user group...
Smart Machine Smart Decision +CFTPSLOGOUT: 0 3.2 Access to FTPS server 3.2.1 Download a file from FTPS server to module/upload a file to FTPS server from module Following commands show us how to download a file from FTPS sever to module and how to upload a file from module to FTPS server: AT+CFTPSSTART +CFTPSSTART: 0...
Smart Machine Smart Decision AT+FSLS//list all items in directory E:/ +FSLS: FILES: POST_JPG.DAT update2.zip AT+CFTPSPUTFILE="Code_204_NOK.qmdl" //upload a file from “E:/” to FTPS server +CFTPSPUTFILE: 0 AT+CFTPSLOGOUT// log out FTPS server +CFTPSLOGOUT: 0 AT+CFTPSSTOP //deactive the PDP context, stop FTP service. +CFTPSSTOP: 0 3.2.2 Download a file from FTPS server to serial port/upload a file to FTPS server from serial port Following commands show us how to download a file form FTPS sever to serial port and how to upload a file...
Page 28
Smart Machine Smart Decision -rw-r--r-- 1 ftp ftp 18158 Aug 07 2017 update2.zip +CFTPSLIST: 0 AT+CFTPSPWD//get current directory of FTP server +CFTPSPWD: "/" AT+CFTPSPUT="wwwwpute",10 //upload a file from serial to FTPS server >qqqqqqqqqq//this is what you input to serial port. +CFTPSPUT: 0 AT+CFTPSGET="wwwwpute",0 //download the file uploaded by AT+CFTPSPUT to serial port...
Smart Machine Smart Decision 4 Summary of FTP Error Code FTP error code:. <errorcode> Meaning Success SSL alert Unknown error Busy Connection closed by server Timeout Transfer failed File not exists or any other memory error Invalid parameter Operation rejected by server Network error State error Failed to parse server name...
Need help?
Do you have a question about the SIM7500 Series and is the answer not in the manual?
Questions and answers