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.7 <strong>AT</strong>^SISR<br />

10.7.1 Example: Socket Host Reads Small Amounts of UDP Data Packets<br />

(URC Mode)<br />

This section applies only to the Socket service using the UDP protocol. The example shows how to read UDP<br />

packets if the buffer of the host application can handle only a few bytes. There are two datagrams available for<br />

reading.<br />

Buffer size: 6 bytes<br />

Datagram A = 18 bytes (content "THIS_IS_D<strong>AT</strong>AGRAM_A")<br />

Datagram B = 3 bytes (content "NEW")<br />

^SISR: 0,1<br />

at^sisr=0,6<br />

^SISR: 0,6,12<br />

THIS_I<br />

OK<br />

at^sisr=0,6<br />

^SISR: 0,6,6<br />

S_D<strong>AT</strong>A<br />

OK<br />

at^sisr=0,6<br />

^SISR: 0,6,0<br />

GRAM_A<br />

OK<br />

at^sisr=0,6<br />

^SISR: 0,3<br />

NEW<br />

OK<br />

Service profile 0 is configured for Socket service and UDP. The URC<br />

notifies host that data is available for reading.<br />

The host requests to read 6 bytes.<br />

The first 6 bytes of datagram A are confirmed and transmitted. Another<br />

12 bytes are still available.<br />

The host requests to read the next part of 6 bytes.<br />

The next 6 bytes of datagram A are confirmed and transmitted. Another<br />

6 bytes are still available.<br />

The host requests to read the next part of 6 bytes.<br />

Last part of datagram A was received, no remainder is left.<br />

Again, the host requests to read 6 bytes. This time, the request refers to<br />

datagram B which has only 3 bytes. As the read datagram is smaller<br />

than the size requested by the host, the response does not include the<br />

.<br />

3 bytes are confirmed and transmitted. Datagram B was properly<br />

received.<br />

<strong>TC63i</strong>_<strong>AT</strong>C_V01.100 Page 281 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!