Example: Socket Host Reads Small Amounts Of Udp Data Packets (Urc Mode) - Siemens Brodersen MC55 AT Command Manual

At command manual
Table of Contents

Advertisement

(num)
<cnfReadLength>
-2
-1
0
>1
(num)
<urcCauseId>
Indicates whether or not data is available for reading with AT^SISR.
1
2
<remainUdpPacketLength>
Optional third parameter of the
UDP.
The reception of each datagram must be completed before the next datagram can be received. This may be a
problem if the buffer of the host application is limited and not designed to handle the maximum packet size of
1500 bytes. To compensate this, the host is advised to request, via <reqReadLength>, an amount less or
equal its maxmimum buffer capacity and wait for the resulting
eter <remainUdpPacketLength>. The benefit of this approach is that the host may properly receive all parts
of a UDP datagram, as after each received data part the number of remaining bytes is synchronized, until read-
ing the datagram is finished.
If the currently read datagram is smaller than the number of bytes requested by the host the
parameter is omitted.
etLength>
Further write attempts with
is not omitted. In this case the service returns
0
1...(max. data size)-1
10.7.1
Example: 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")
MC55_ATC_V04.00
Confidential / Released
Indicates end of data. Data transfer has been finished (all data have been read)
and the service can be closed with AT^SISC.
Applies only to HTTP: Querying number of available bytes is not supported by
the HTTP service.
Indicates that no further is are available at the moment.
Number
of
available
<reqReadLength>:
If
<reqReadLength>
less or equal to the value requested with <reqReadLength>.
If
<reqReadLength>
<cnfReadLength>
Data is available and can be read by sending the
URC appears when less data was confirmed (in <cnfReadLength>) than
requested (with <reqReadLength>) during the last "Read Data" operation
and new data is available.
End of data. Data transfer has completed (all data read). The service can be
closed with AT^SISC.
(num)
write command response displayed only if the Socket service uses
AT^SISR
are denied as long as the
AT^SISR
"+CME ERROR: operation of service temporary not
Indicates that all bytes of the current UDP datagram are read.
Indicates that the currently read UDP datagram is not yet complete. The dis-
played value is the remaining number of bytes.
<remainUdpPacketLength>
rent datagram is finished.
Page 246 of 475
data
bytes.
The
was greater than 0, then
equals 0 (peek operator) the value indicated by
may be greater than 1500.
write command response with param-
AT^SISR
<remainUdpPacketLength>
is unequal 0 until reading all parts of the cur-
range
is
determined
may be
<cnfReadLength>
command. The
AT^SISR
<remainUdpPack-
is unequal 0 or
allowed".
3/17/06
by

Advertisement

Table of Contents
loading

This manual is also suitable for:

Brodersen mc55

Table of Contents