SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R09

20FTP
Page 211 of 307
20î™–î™–î™–î™–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.
20.1î™–î™–î™–î™–FTP service configuration +UFTP
+UFTP
SARA-R404M SARA-R410M-01B SARA-R410M-02B SARA-R410M-52B SARA-R412MModules
SARA-N4
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
partial No No No - Appendix A.6.1
20.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.
20.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