user manual

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.
120
10.7 ^IPCLOSECommand for Disabling a TCP/UDP
Connection
10.7.1 Syntax
Command
Possible Response(s)
^IPCLOSE=<link_id>
<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>
^IPCLOSE?
<CR><LF>^IPCLOSE:<link1_state>,<link2_state>,<l
ink3_state>,<link4_state>,<link5_state><CR><LF>
<CR><LF>OK<CR><LF>
^IPCLOSE=?
<CR><LF>^IPCLOSE:(supported <link_id>
list)<CR><LF>
<CR><LF>OK<CR><LF>
10.7.2 Interface Description
This command disables a TCP/UDP connection or disables the TCP/UDP function.
If <link_id> is set to 15, it indicates that the corresponding established connection is
disconnected. To disconnect a TCP connection, four handshaking operations are
needed for both party. UDP connection can be disconnected directly.
If <link_id> is set to 6, it indicates that the server listening function is disabled for the
module.
If <link_id> is set to 7, it indicates that the module deregisters from the network,
which is similar to dial-up disconnection.
10.7.3 Parameter Description
<link_id>: Specifies the ID of a connection. The value ranges from 1 to 7.
15: actual connection ID
6: established connection and the local server
7: disable all connections and PPP
<linkx_state>: Specifies the state of connection x.
0: Connection x is disabled and can be used.
1: Connection x is enabled and is being used.
10.7.4 Example
AT^IPCLOSE?