22.03.2013 Views

AT+i Programmer's Manual - SE Spezial-Electronic AG

AT+i Programmer's Manual - SE Spezial-Electronic AG

AT+i Programmer's Manual - SE Spezial-Electronic AG

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

11.7 +iFRCV — FTP Receive File<br />

Syntax: <strong>AT+i</strong>FRCV:,<br />

Parameters:<br />

Command Options:<br />

Downloads a file from an FTP server.<br />

An open FTP session handle<br />

File pathname<br />

File Transfer Protocol (FTP)<br />

Must have been obtained by a previous execution of an<br />

<strong>AT+i</strong>FOPN command during the current Internet mode<br />

session.<br />

Absolute or relative path name of the remote file.<br />

Result Code:<br />

I/OK When command has been received and about to be processed.<br />

I/ERROR If is not an open FTP session or otherwise some error<br />

has occurred.<br />

Followed by:<br />

I/ERROR If the FTP RECV command could not be processed.<br />

-or- I/<br />

Followed by: <br />

Followed by:<br />

where,<br />

is the exact size (in bytes) of the to follow.<br />

If cannot be determined, iChip returns I/0 followed by the<br />

data stream. When this is the case, the host must monitor for a<br />

timeout condition of at least 5 seconds without any data being<br />

transmitted before seeing the I/ONLINE to deduce that the<br />

data stream is complete.<br />

If was reported but a transmission error occurred,<br />

preventing the iChip from returning all data bytes — an<br />

I/ERROR command is issued after a 5 seconds nontransmission<br />

period. See FTP Receive Flow Diagram.<br />

I/ONLINE After successfully retrieving file contents.<br />

<strong>AT+i</strong> Programmer‘s <strong>Manual</strong> Version 8.21 11-7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!