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 Direct Socket Interface<br />

13.1 +iSTCP — Open and Connect A TCP Socket<br />

Syntax: <strong>AT+i</strong>STCP:,[,]<br />

Parameters:<br />

Command Options:<br />

Direct Socket Interface<br />

Opens a Transmission Control Protocol (TCP) client socket<br />

and attempts to connect it to the specified on a server<br />

defined by .<br />

Logical name of the target server or a host IP address<br />

0..65535, target port<br />

Optional local port on iChip<br />

The server name may be any legal Internet server name that<br />

can be resolved by iChip‘s DNS (Domain Name Server)<br />

settings. The server name can also be specified as an absolute<br />

IP address given in DOT form.<br />

It is assumed that the server system is listening on the specified<br />

port.<br />

Can be optionally specified to force iChip to use lport as the<br />

local port when opening the TCP socket. If unspecified, iChip<br />

allocates a port from its internal pool 1 .<br />

Result Code:<br />

I/ Upon successfully opening and connecting the TCP socket to<br />

the :, a socket handle is returned. The socket<br />

handle is in the range 0..9 and used to reference<br />

the socket in all following socket commands.<br />

I/ERROR Otherwise<br />

The Socket Command Abort may be used to abort prematurely.<br />

1 Note: iChip uses the port range [1025 .. 2048] when assigning default local ports. The<br />

host should refrain from specifying local ports in this range to ensure that Error 218 is not<br />

generated as a result of requesting local ports that overlap internal assignments.<br />

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

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

Saved successfully!

Ooh no, something went wrong!