28.04.2015 Views

TC63i AT Command Set

TC63i AT Command Set

TC63i AT Command Set

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>TC63i</strong> <strong>AT</strong> <strong>Command</strong> <strong>Set</strong><br />

<br />

10.14 Examples of how to Configure and Use Internet Service Profiles<br />

10.14.3 Configuring Socket Client for Calling a Socket Listener on<br />

Another Host<br />

The example assumes that a connection profile has been created as explained in Section 10.1.1 or Section<br />

10.1.2.<br />

Configure the client's service profile 1 for calling a Socket listener on another host:<br />

at^siss=1,srvType,socket<br />

Select service type Socket.<br />

OK<br />

at^siss=1,conId,0 Select connection profile 0.<br />

OK<br />

at^siss=1,address,"socktcp://<br />

10.10.0.187:65534"<br />

OK<br />

The service profile of the client contains the IP<br />

address and the TCP port of the remote host.<br />

10.14.4 Socket Client Sends Data via TCP Connection (Polling Mode)<br />

The example uses service profile 0 configured for Socket service and TCP.<br />

<strong>AT</strong>^SISO=0 The host opens service profile 0.<br />

OK<br />

Note: URC ^SISW:0, 1 does not appear! The host<br />

must poll the service state by means of <strong>AT</strong>^SISI until<br />

the service is in "Up".<br />

<strong>AT</strong>^SISI=0<br />

^SISI: 0,3,0,0,0,0<br />

The service is still in "Connecting".<br />

OK<br />

<strong>AT</strong>^SISI=0<br />

^SISI: 0,4,0,0,0,0<br />

The service is now in "Up" and is<br />

ready to accept data.<br />

OK<br />

<strong>AT</strong>^SISW=0,10<br />

^SISW: 0,10,10<br />

0123456789<br />

OK<br />

<strong>AT</strong>^SISW=0,10,1<br />

^SISW: 0,0,10<br />

OK<br />

<strong>AT</strong>^SISW=0,10,1<br />

^SISW: 0,10,20<br />

0123456789<br />

OK<br />

<strong>AT</strong>^SISW=0,0,0<br />

The host requests to write 10 bytes.<br />

Response that 10 bytes can be sent and are unacknowledged.<br />

The host requests to write next 10 bytes and enables<br />

the end-of-data flag.<br />

But the service refuses the request, even the end-ofdata<br />

flag remains without effect.<br />

Next try (polling).<br />

Response that the service accepts 10 bytes and this<br />

data and the previously sent data are unacknowledged.<br />

Polling to request unacknowledged data.<br />

^SISW: 0,0,10<br />

There are 10 bytes still unacknowledged.<br />

OK<br />

<strong>AT</strong>^SISI=0 Polling for change ("Closing" -><br />

"Down").<br />

^SISI: 0,5,0,20,10,10<br />

OK<br />

20 bytes are transfered via serial interface, 10 bytes<br />

are acknowledged by remote peer, 10 bytes are on<br />

the way.<br />

<strong>TC63i</strong>_<strong>AT</strong>C_V01.100 Page 298 of 547 11/10/08<br />

Confidential / Released

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

Saved successfully!

Ooh no, something went wrong!