Technical information

Chapter 2: AT+i Commands Reference
May 31, 2008 AT+i Commands Reference Manual 2-11
+iEMB - Accept Binary Data for Immediate E-Mail Send
Notes:
•If <sz> is larger than 256 bytes, W24 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, the host processor must respond to W24's flow control
characters. The software flow control protocol is detailed in the Host -> W24 Software
Flow Control section later in this document. When software flow control is active, it
is recommended to set the W24 to Echo-Off mode. Under hardware flow control, the
~CTS/~RTS RS232 control signals must be connected and the host must respond to
the W24's ~CTS signal. The host may send data only when the ~CTS signal is asserted
Syntax: AT+i[!]EMB[#]:<sz>,<data>
Defines and sends a MIME-encoded binary e-mail.
Parameters:
<sz> Size of <data> in bytes.
<data> <sz> bytes of binary data.
Command Options:
<sz> 0..4GB
<data> 8 bit binary data. Must be exactly <sz> bytes long.
The binary data is encapsulated in a MIME-encoded e-mail message. The
receiving end views the binary data as a standard e-mail attachment.
Several consecutive +iEMB commands can be issued in sequence to create
a larger aggregate of data to be sent.
The e-mail contents are completed by issuing an AT+iE* (terminate binary
e-mail) command. Following the first +iEMB command, W24 establishes
an Internet connection while the data stream is being transmitted from the
host. Once an SMTP session is established, W24 maintains a data transmit
pipeline between the host and the SMTP server. W24 converts the binary
data using BASE64 encoding on-the-fly. Following this command, the
Internet session remains active to service additional +iEMB commands,
until the +iE* terminating command.
EMB uses the specified SMTP server to send the e-mail message. When
W24 acquires TOD from a network timeserver, outgoing e-mail messages
are time and date stamped.
! Stay online after completing the command. This flag is redundant, as the
W24 defaults to staying online until the AT+iE* command is issued.
# Modem baud rate limit flag. When this character is included in the
command, the W24 baud rate to the modem is limited by the baud rate from
the host. This flag is relevant for serial modems only and is especially useful
in GSM modem configurations. When this character is not present, the W24
attempts to lift the baud rate to the modem to its maximal value.
Result Code:
I/OK If <sz> is within limits and after <sz> bytes have been received
successfully.
I/ERROR If <sz> is out of bounds, or if a communication error occurred during the
Internet session.