
Research & Development
Page
12
of
12
Revision 1.3
2002/7 From 3JTech
Direct Socket Interface
AT+iSTCP - Open and connect a TCP socket
Syntax:
AT+iSTCP:<host>,<port>
Description:
Opens a TCP (Transmission Control Protocol) client socket and attempts to connect
it to the specified <port> on a server defined by <host>.
Return Code:
I/<sock handle> Upon successfully opening and connecting the TCP socket to the
<host>::<port>, a socket handle is returned. The socket handle <sock handle> is in
the range 0..9 and is used to reference the socket in all following socket commands.
AT+iSUDP - Open a connectionless UDP socket
Syntax:
AT+iSUDP:<host>,<rport>[,<lport>]
Description:
Opens a UDP (User Datagram Protocol) socket and sets the remote system’s
<host>::<port> address.
<lport> = Optional local UDP port to use.
Return Code:
I/<sock handle> Upon successfully opening and connecting the UDP socket to the
<host>::<port>, a socket handle is returned. The socket handle <sock handle> is in
the range 0..9 and is used to reference the socket in all following socket commands.
AT+iSSND - Send a byte stream to a socket
Syntax:
AT+iSSND:<hn>,<sz>:<stream>
Description:
Send a byte stream of size <sz> to the socket specified by the socket handle <hn>.
<sz> = The exact size of the byte stream that follows.
<stream> = a byte stream of size <sz> to be sent to the specified socket.
Return Code:
I/OK After <sz> bytes have been transferred successfully to the socket’s output buffer.
AT+iSRCV - Receive a byte stream from a socket’s input buffer