Huawei MG323 Recording Equipment User Manual


 
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification Commands for Internet Services
Issue 02 (2010-11-23)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
153
10.8.2 Reading Data Out From the Buffer of an Internet Service
Write
command
AT^SISR=<srvProfileId>,<reqReadLength>
Function
Reads data out from the buffer of an internet service.
Response
z
In case of successful execution:
z
When the buffer contains data:
<CR><LF>^SISR:
<srvProfileId>,<reqReadLength>[,<remainUdpPacketLength>]
<CR><LF>……(Returns the read data)<CR><LF>
<CR><LF>OK<CR><LF>
z
When the buffer contains no data or the length of the read data is 0:
<CR><LF>^SISR:
<srvProfileId>,<reqReadLength>[,<remainUdpPacketLength>]<CR><LF
>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
Note:
The buffer for the SISR command can store a maximum of 1500 bytes of data. If a UDP packet
contains more than 1500 bytes of data, the extra part will be discarded.
Parameter description
<srvProfileId>: integer parameter, which indicates the identification of the internet
service profile. Value range: 0–9.
<reqReadLength>: integer parameter, which indicates the data length requested from
the buffer.
z
0: Peek Operator, which queries the number of bytes received by the internal
buffer.
z
1–1500: number of data bytes read by the internet service whose <srvProfileId>
is specified.
z
-2: indicates the data tail. The data is fully transmitted. This value is not
supported currently.
z
-1 (applies to HTTP only): queries the number of available bytes not supported
by the HTTP service. This value is not supported currently.
z
0: indicates that no data is available currently.
z
>0: number of available data bytes. The value range is defined by
<reqReadLength>.
<remainUdpPacketLength>: Integer parameter, which is used when Socket service is
UDP protocol.