28.04.2015 Views

TC65 AT Command Set

TC65 AT Command Set

TC65 AT Command Set

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.

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

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

s<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>TC65</strong>_<strong>AT</strong>C_V02.000 Page 298 of 567 6/2/06<br />

Confidential / Released

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

Saved successfully!

Ooh no, something went wrong!