General syntax |
Set | AT+UFTPC=<op_code>[,<param1>[,<param2>[,<param3>]]] | OK | AT+UFTPC=4,"data.zip","data.zip" OK |
FTP logout |
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,<filename> | OK | AT+UFTPC=2,"mytest" OK |
Rename a file of FTP server |
Set | AT+UFTPC=3,<filename>,<new_filename> | OK | AT+UFTPC=3,"old_name","final_name" OK |
Retrieve the file from the FTP server |
Set | AT+UFTPC=4,<remote_filename>,<local_filename>[,<retrieving_mode>] | OK | AT+UFTPC=4,"data.zip","data.zip" OK |
Store the file on the FTP server |
Set | AT+UFTPC=5,<local_filename>,<remote_filename>[,<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_filename>[,<number_of_byte>] | CONNECT file content DISCONNECT OK | AT+UFTPC=6,"data.zip",30 CONNECT …data… DISCONNECT OK |
Send a file to the FTP server using the direct link mode |
Set | AT+UFTPC=7,<remote_filename>[,<number_of_byte>] | CONNECT DISCONNECT OK | AT+UFTPC=7,"data.zip",30 … incoming data … +++ (user terminates the direct link) DISCONNECT OK |
Change the remote 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 filenames 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_filename>[,<fw_download_status>] | OK | AT+UFTPC=100,"data.zip" OK |
URC | | +UUFTPCR: 100,<stored_byte> / <total_byte> | +UUFTPCR: 100,202752 / 1103692 |
URC | | +UUFTPCD: 100,<stored_byte>,<total_byte> | +UUFTPCD: 100,131072,1000000 |
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 |