User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
21FTP
Page 259 of 401
Parameter Type Description
sending the +++ sequence to switch off the direct link mode. This operation may
take a few seconds because the command also handles the final steps of the FTP
protocol.
8: changes the working directory to the specified one.
9: RFU.
10: creates a directory on the FTP host.
11: removes the directory from the remote FTP server.
12: RFU.
13: information of a file or a directory. The URC +UUFTPCD returns the information
of the specified file or directory from the FTP server.
14: lists the file names in a specified directory. The URC +UUFTPCD returns the list
of the file names received from FTP server. If the directory name is omitted, the list
of the files names of current working directory is requested.
100: retrieves the FOTA update file. The downloaded file will not be accessible to the
user. The +UUFTPCR URC will display the MD5 checksum of the downloaded file.
<file_name> String File name to be deleted/renamed from the FTP host. For the limit of the length of the
string, see Command line.
<new_file_name> String New file name. For the limit of the length of the string, see Command line.
<remote_file_name> String Remote file name to be retrieved from the FTP host or stored in it. The maximum
parameter length is 256 characters.
<local_file_name> String Local file name (module file system) text string to be stored/sent on the file system.
For the limit of the length of the string, see the File system limits.
<retrieving_mode> Number Allowed values:
0 (default value): the file is retrieved from beginning.
1: restart the data retrieving from the last data received during the previous
download interrupted due to error.
<number_of_byte> Number Represents the number of bytes already sent to the FTP server or received from it.
During a file retrieval the server writes the file from the offset indicated with this
parameter.
During a file storing the server sends the data from the value indicated with this
parameter.
<directory_name> String Directory name on the FTP server. For the limit of the length of the string, see
Command line.
<file_directory_
name>
String Path file/directory name to be listed. If not specified, the current directory list is
requested. For the limit of the length of the string, see Command line.
<param1> optional parameter; the text string of the path (file or directory) to be
name listed. If not specified, the list of the files names of current working directory
is requested.
<fw_download_
status>
Number Manages the firmware package download status:
if omitted trigger the firmware package download from an FTP server
0: cancel the firmware package download from an FTP server
1: resume the firmware package download from an FTP server
<ftp_data_len> Number Amount of data in bytes
<ftp_data> String Data available from the FTP server in the ASCII [0x00,0xFF] range. The starting
quotation mark shall not be taken into account like data, the first byte of data starts
after the first quotation mark. The total number of bytes is <ftp_data_len>. At the
end of the byte stream, another quotation mark is provided for user convenience and
visualization purposes.
<ftp_result> Number Allowed values:
0: fail
1: success
<md5_sum> String MD5 checksum of the FOTA update file downloaded via +UFTPC=100 AT command.
This parameter is issued only for +UFTPC=100 AT command.
<param1> String Content depend on related <op_code> (details are given above)
<param2> String Content depend on related <op_code> (details are given above)
<param3> String Content depend on related <op_code> (details are given above)
<stored_byte> Number Amount of stored bytes
<total_byte> Number Amount of total bytes of the FOTA update file to be stored