Huawei MC509 Manuel D’Utilisation

Page de 156
 
HUAWEI MC509 CDMA LGA Module 
AT Command Interface Specification 
Internet Service Interface Commands 
 
Issue 01 (2011-08-26) 
Huawei Proprietary and Confidential 
Copyright © Huawei Technologies Co., Ltd. 
118 
 
10.5 ^IPGETDATA–Command for Querying the TCP/UDP 
Data Receiving Buffer 
10.5.1 Syntax 
Command 
Possible Response(s) 
^IPGETDATA=<index> 
<CR><LF>^IPGETDATA: 
<index>,<link_id>,<data_len><CR><LF><data><CR
><LF> 
<CR><LF>OK<CR><LF> 
In case of an MT-related error: 
<CR><LF>ERROR<CR><LF> or 
<CR><LF>+CME ERROR:<err><CR><LF> 
^IPGETDATA? 
<CR><LF>^IPGETDATA:<index>,<link_id>,<data_le
n><CR><LF> 
<CR><LF>OK<CR><LF> 
^IPGETDATA=? 
<CR><LF>^IPGETDATA:(supported <index> 
list)<CR><LF> 
<CR><LF>OK<CR><LF> 
 
10.5.2 Interface Description 
This command queries the data receiving buffer provided for a user. The latest 
received three data packets are stored in the buffer for the user to query. If there are 
more than three data packets, the new data packets overwrite the oldest data packets. 
10.5.3 Parameter Description 
<index >: Specifies the index number of the buffered data. The value ranges from 0 
to 2. 
<link_id>: Specifies the connection ID recorded in the buffered data. The value 
ranges from 1 to 5. 
<data_len>: An integer, specifying the data length. The value ranges from 0 to 1500. 
<data>: A string embraced in double quotation marks, specifying subscriber data. 
Only visible characters are supported. Quotation marks and commas are not allowed 
in the subscriber data. 
10.5.4 Example 
AT^IPGETDATA? 
^IPGETDATA:0,2,4 
^IPGETDATA:1,2,3