User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
21FTP
Page 254 of 401
21FTP
Proprietary u-blox AT commands. FTP AT commands set can be used for sending and receiving files over
the available bearer, transparently retrieving and storing them in the file system. Standard file and directory
management operations on the remote FTP server are as well possible. PSD or CSD connection must be
activated before using FTP client services.
Basically, two AT commands are necessary for an FTP client service: one AT command (+UFTP) to configure
the FTP profile, a second AT command to execute a specific FTP command (+UFTPC). The final result of an FTP
command will be notified through the +UUFTPCR URC whereas data will be provided through +UUFTPCD URC.
When these commands report an error which is not a +CME ERROR, the error code can be queried using the
+UFTPER AT command.
SARA-R4 / SARA-N4
No need to establish a PSD connection explicitly. This device automatically establishes a PSD connection
as part of the network registration and attach procedure.
21.1FTP service configuration +UFTP
+UFTP
Modules All products
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
partial No No No - +CME Error
21.1.1Description
Sets up a parameter for FTP service, or resets a parameter to its factory-programmed value. The set/reset
command needs to be executed for each single <op_code>. The read command returns the current setting of
all the FTP parameters, one per line (i.e. the FTP profile). The FTP parameter values set with this command are
all volatile (not stored in non-volatile memory).
If the set command is issued without <param1> parameter, the corresponding <op_code> parameter is
reset to the default value.
21.1.2Syntax
Type Syntax Response Example
Generic syntax
Set AT+UFTP=<op_code>[,<param1>[,
<param2>]]
OK AT+UFTP=7,21
OK
FTP server IP address
Set AT+UFTP=0[,<IP_address>] OK AT+UFTP=0,"192.168.1.0"
OK
FTP server name
Set AT+UFTP=1[,<server_name>] OK AT+UFTP=1,"ftp.server.com"
OK
Username
Set AT+UFTP=2[,<username>] OK AT+UFTP=2,"user_test"
OK
Password
Set AT+UFTP=3[,<password>] OK AT+UFTP=3,"PWD"
OK
Account
Set AT+UFTP=4[,<account>] OK AT+UFTP=4,"test"
OK
Inactivity timeout
Set AT+UFTP=5[,<timeout>] OK AT+UFTP=5,21