User's Manual

Table Of Contents
File Transfer Protocol (FTP)
AT+i Programmer‘s Manual Version 8.32 11-10
11.10 +iFSND FTP Send File Data
Syntax:
AT+iFSND:<F_hn>,<sz>:<stream…>
Uploads data to a remote FTP server file. Valid only after a
successful AT+iFSTO or AT+iFAPN command.
Parameters:
<F_hn>
An open FTP session handle
<sz>
The exact size of the data stream that follows
<stream>
A byte stream of size <sz> composing the remote file contents
Command Options:
<F_hn>
Must have been obtained by a previous execution of an
AT+iFOPN command during the current Internet mode
session.
<stream>
An 8-bit byte stream of exactly size <sz>. If <sz> is larger than
256 bytes, iChip assumes host flow control. Depending on the
setting of the FLW parameter, the flow control mode is either
software or hardware. Under software flow control mode, the
host processor must respond to iChip‘s flow control characters.
The flow control protocol is detailed in the ―Host iChip
Software Flow Control‖ section later in this document. When
software flow control is active, it is recommended to set iChip
to Echo-Off mode.
Under hardware flow control, the ~CTS/~RTS RS232 control
signals must be connected and the host must respond to iChip‘s
~CTS signal. The host may send data only when the ~CTS
signal is asserted (active low).
Several consecutive +iFSND commands may be issued in
sequence to create a larger aggregate of data to be sent.
The file transfer is complete by issuing a
+iFCLF (FTP Close
File) command.
Result Code:
I/OK
After <sz> bytes have been transferred successfully to the FTP
data socket.
I/ERROR
Otherwise