![Ublox SARA-R4 Series Command Manual Download Page 214](http://html2.mh-extra.com/html/ublox/sara-r4-series/sara-r4-series_command-manual_3309881214.webp)
SARA-R4/N4 series - AT Commands Manual
UBX-17003787 - R09
20 FTP
Page 214 of 307
Type
Syntax
Response
Example
Set
AT+UFTPC=0
OK
AT+UFTPC=0
OK
FTP login
Set
AT+UFTPC=1
OK
AT+UFTPC=1
OK
Delete the file from the FTP server
Set
AT+UFTPC=2,<file_name>
OK
AT+UFTPC=2,"mytest"
OK
Rename a file of FTP server
Set
AT+UFTPC=3,<file_name>,<new_
file_name>
OK
AT+UFTPC=3,"old_name","final_
name"
OK
Retrieve the file from the FTP server
Set
AT+UFTPC=4,<remote_file_name>,
<local_file_name>[,<retrieving_
mode>]
OK
AT+UFTPC=4,"data.zip","data.zip"
OK
Store the file on the FTP server
Set
AT+UFTPC=5,<local_file_name>,
<remote_file_name>[,<number_of_
byte>]
OK
AT+UFTPC=5,"data.zip","data.zip",
30
OK
Retrieve a file from the FTP server using direct link mode
Set
AT+UFTPC=6,<remote_file_name>[,
<number_of_byte>]
OK
AT+UFTPC=6,"data.zip",30
OK
Send a file to the FTP server using the direct link mode
Set
AT+UFTPC=7,<remote_file_name>[,
<number_of_byte>]
OK
AT+UFTPC=7,"data.zip",30
OK
Change the working directory to the specified one
Set
AT+UFTPC=8,<directory_name>
OK
AT+UFTPC=8,"data_folder"
OK
Create a directory on the FTP host
Set
AT+UFTPC=10,<directory_name>
OK
AT+UFTPC=10,"new_data_folder"
OK
Remove the directory from the remote FTP server
Set
AT+UFTPC=11,<directory_name>
OK
AT+UFTPC=11,"data_folder"
OK
Information of a file or a directory
Set
AT+UFTPC=13[,<file_directory_
name>]
OK
AT+UFTPC=13,"data_folder"
OK
List the file names in a specified directory
Set
AT+UFTPC=14[,<file_directory_
name>]
OK
AT+UFTPC=14,"data.zip"
OK
Retrieve the FOTA update file
Set
AT+UFTPC=100,<remote_file_
name>
OK
AT+UFTPC=100,"data.zip"
OK
Test
AT+UFTPC=?
+UFTPC: (list of supported <op_
code>s)
OK
+UFTPC: (0-5,8,10,11,13,14,100)
OK
URC
+UUFTPCD: <op_code>,<ftp_data_
len>,<ftp_data>
+UUFTPCD: 13,16,"16 bytes of data"
URC
+UUFTPCR: <op_code>,<ftp_
result>[,<md5_sum>]
+UUFTPCR: 1,1