10.01.2015 Views

AT Command Reference Guide for EDGE Wireless ... - wless.ru

AT Command Reference Guide for EDGE Wireless ... - wless.ru

AT Command Reference Guide for EDGE Wireless ... - wless.ru

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Chapter 10 – Internet Service <strong>Command</strong>s<br />

10.5.1 Example: Socket Host Reads Small Amounts of UDP Data Packets<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 <strong>for</strong><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 <strong>for</strong> Socket service and UDP. The URC notifies host that data<br />

are available <strong>for</strong> reading.<br />

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

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

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 URC refers to datagram B which<br />

has only 3 bytes. As the read datagram is smaller than the size requested by the host, the<br />

URC does not include the .<br />

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

Multi-Tech Systems, Inc. <strong>AT</strong> <strong>Command</strong>s <strong>for</strong> <strong>EDGE</strong> Modems (S000371B) 139

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

Saved successfully!

Ooh no, something went wrong!