AC75 AT Command Set

10.7 AT^SISR

s

10.7.1Example: Socket Host Reads Small Amounts of UDP Data Pack- ets (URC Mode)

This section applies only to the Socket service using the UDP protocol. The example shows how to read UDP packets if the buffer of the host application can handle only a few bytes. There are two datagrams available for reading.

Buffer size: 6 bytes

Datagram A = 18 bytes (content "THIS_IS_DATAGRAM_A") Datagram B = 3 bytes (content "NEW")

^SISR: 0,1

Service profile 0 is configured for Socket service and UDP. The URC

 

notifies host that data is available for reading.

at^sisr=0,6

The host requests to read 6 bytes.

^SISR: 0,6,12

The first 6 bytes of datagram A are confirmed and transmitted. Another

THIS_I

12 bytes are still available.

OK

The host requests to read the next part of 6 bytes.

at^sisr=0,6

^SISR: 0,6,6

The next 6 bytes of datagram A are confirmed and transmitted. Another

S_DATA

6 bytes are still available.

OK

The host requests to read the next part of 6 bytes.

at^sisr=0,6

^SISR: 0,6,0

Last part of datagram A was received, no remainder is left.

GRAM_A

 

OK

Again, the host requests to read 6 bytes. This time, the request refers to

at^sisr=0,6

 

datagram B which has only 3 bytes. As the read datagram is smaller

 

than the size requested by the host, the response does not include the

 

<remainUdpPacketLength>.

^SISR: 0,3

3 bytes are confirmed and transmitted. Datagram B was properly

NEW

received.

OK

 

 

 

AC75_ATC_V01.002

Page 282 of 569

10/30/06

Confidential / Released

 

 

Page 282
Image 282
Siemens AC75 manual Thisi, Sdata, Grama, RemainUdpPacketLength, New