User's Manual

Table Of Contents
File Transfer Protocol (FTP)
AT+i Programmer‘s Manual Version 8.32 11-7
11.7 +iFRCV FTP Receive File
Syntax:
AT+iFRCV:<F_hn>,<path>
Downloads a file from an FTP server.
Parameters:
<F_hn>
An open FTP session handle
<path>
File pathname
Command Options:
<F_hn>
Must have been obtained by a previous execution of an
AT+iFOPN command during the current Internet mode
session.
<path>
Absolute or relative path name of the remote file.
Result Code:
I/OK
When command has been received and about to be processed.
I/ERROR
If <F_hn> is not an open FTP session or otherwise some error
has occurred.
Followed by:
I/ERROR
If the FTP RECV command could not be processed.
-or-
I/<sz><CR><LF>
Followed by:
<data stream>
where,
<sz> is the exact size (in bytes) of the <data stream> to follow.
If <sz> cannot be determined, iChip returns I/0 followed by the
data stream. When this is the case, the host must monitor for a
timeout condition of at least 5 seconds without any data being
transmitted before seeing the I/ONLINE to deduce that the
data stream is complete.
If <sz> was reported but a transmission error occurred,
preventing the iChip from returning all <sz> data bytes an
I/ERROR command is issued after a 5 seconds non-
transmission period. See FTP Receive Flow Diagram.
Followed by:
I/ONLINE
After successfully retrieving file contents.