Technical information

Chapter 2: AT+i Commands Reference
May 31, 2008 AT+i Commands Reference Manual 2-31
+iTBSN[%] - Telnet Send a Byte Stream
Parameters:
<data line> A line of data bytes to be sent to the Telnet server. W24 terminates the
<data line> with a <CR><LF> and sends it to the Telnet server.
Command Options:
<data line> If the line to be sent incorporates W24 delimiter characters (, ; : ; = ; ~),
<data line> must be enclosed in single (') or double (") quotes. AT+i
command's terminating <CR> is considered a terminating quote, as well.
Result Code:
I/OK After the <data line> has been successfully sent to the Telnet server.
I/ERROR Otherwise.
Syntax: AT+iTBSN[%]:<sz>:<stream>
Sends a byte stream of size <sz> to the Telnet server.
Parameters:
<sz> The exact size of the byte stream that follows.
<stream> A byte stream of size <sz> to be sent to the Telnet server.
Command Options:
<sz> 0..4GB
<stream> An 8-bit byte stream of exactly size <sz>. 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 mode, the host processor must respond to
W24's flow control characters. The flow control protocol is detailed in the
"Host -> W24 Software Flow Control" section later in this document.
Under hardware flow control, the ~CTS/~RTS RS232 control signals must
be connected and the host must respond to W24's ~CTS signal. The host
may send data only when the ~CTS signal is asserted (active low).
% When the auto-flush ('%') flag is specified, the Telnet socket is
automatically flushed immediately after receiving the <stream> from the
host. Otherwise, data will be transmitted to the Internet only in integral
quantities of the specified Maximum Transfer Unit (MTU) or when the
AT+iTFSH command is issued.
Result Code:
I/OK After <sz> bytes have been transferred successfully to the Telnet socket's
output buffer.
I/ERROR Otherwise.