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.

13.3 +iLTCP — Open A TCP Listening Socket<br />

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

Parameters:<br />

Direct Socket Interface<br />

Opens a TCP listening socket on the local IP address and the<br />

specified port . The parameter specifies the<br />

maximum number of remote concurrent connections allowed<br />

through the listening socket.<br />

0..65535<br />

1..10<br />

Command Options:<br />

Listening port to be used by a remote system when connecting<br />

to iChip.<br />

Specifies the maximum number of active connections that may<br />

be concurrently established through the listening socket.<br />

Result Code:<br />

Once the listening socket is open, it automatically accepts<br />

remote connect requests up to the maximum allowed. When a<br />

remote system connects through the listening socket, a new<br />

TCP socket is spawned internally ready to send and receive<br />

data. See the <strong>AT+i</strong>LSST command for details on retrieving the<br />

handles of active sockets connected through a listening socket.<br />

When a connected socket is closed by the host using the<br />

<strong>AT+i</strong>SCLS command, the listening socket allows a new<br />

connection in its place.<br />

I/ Upon successfully opening a TCP listening socket, a socket<br />

handle is returned. The socket handle is in the<br />

range 10..11 and used to reference the socket in all following<br />

socket commands.<br />

I/ERROR Otherwise<br />

<strong>AT+i</strong> Programmer‘s <strong>Manual</strong> Version 8.21 13-3

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

Saved successfully!

Ooh no, something went wrong!