Reading Data Out From The Buffer Of An Internet Service - Huawei MG323 At Command Interface Specification

Gsm m2m module
Hide thumbs Also See for MG323:
Table of Contents

Advertisement

HUAWEI MG323 GSM M2M Module
AT Command Interface Specification

10.8.2 Reading Data Out From the Buffer of an Internet Service

Write
command
Function
Response
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.
<remainUdpPacketLength>: Integer parameter, which is used when Socket service is
UDP protocol.
Issue 02 (2010-11-23)
AT^SISR=<srvProfileId>,<reqReadLength>
Reads data out from the buffer of an internet service.
In case of successful execution:
When the buffer contains data:
<CR><LF>^SISR:
<srvProfileId>,<reqReadLength>[,<remainUdpPacketLength>]
<CR><LF>......(Returns the read data)<CR><LF>
<CR><LF>OK<CR><LF>
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>
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MT: <CR><LF>CME ERROR:
<err><CR><LF>
0: Peek Operator, which queries the number of bytes received by the internal
buffer.
1–1500: number of data bytes read by the internet service whose <srvProfileId>
is specified.
-2: indicates the data tail. The data is fully transmitted. This value is not
supported currently.
-1 (applies to HTTP only): queries the number of available bytes not supported
by the HTTP service. This value is not supported currently.
0: indicates that no data is available currently.
>0: number of available data bytes. The value range is defined by
<reqReadLength>.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Commands for Internet Services
153

Advertisement

Table of Contents
loading

Table of Contents