HUAWEI MG323 GSM M2M Module

 

AT Command Interface Specification

Commands for Internet Services

10.8.2 Reading Data Out From the Buffer of an Internet Service

Write AT^SISR=<srvProfileId>,<reqReadLength> command

Function Reads data out from the buffer of an internet service.

Response z In case of successful execution:

zWhen the buffer contains data:

<CR><LF>^SISR:

<srvProfileId>,<reqReadLength>[,<remainUdpPacketLength>] <CR><LF>……(Returns the read data)<CR><LF> <CR><LF>OK<CR><LF>

zWhen 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>

zIn case of an error during command execution: <CR><LF>ERROR<CR><LF>

zIn 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.

z0: Peek Operator, which queries the number of bytes received by the internal buffer.

z1–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.

z0: 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.

Issue 02 (2010-11-23)

Huawei Proprietary and Confidential

153

Copyright © Huawei Technologies Co., Ltd.

 

 

Page 170
Image 170
Huawei MG323 manual Reading Data Out From the Buffer of an Internet Service, Crlfsisr