Huawei MC509 Network Router 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.
116
10.3.2 Interface Description
This command enables the server listening function. After a server is started, the
server can be connected to a maximum of five clients.
10.3.3 Parameter Description
<type>: A string, specifying the connection type. Double quotation marks are used in
the execution command. Double quotation marks are not contained in the returned
value when the READ and test commands are executed. For details, see "Example."
"TCP": A TCP connection is established.
"UDP": A UDP connection is established.
"NULL": No connection is established. The value is returned only when the read
command is executed. The value cannot be returned when the test command is
executed. The value cannot be used in the execution command.
<listen_port>: An integer, specifying the local listening port. The value ranges from 1
to 65535.
If server listening is not enabled, 0 is returned when the query command is executed.
<idle_num>: An integer, specifying the number of currently idle connections. The
value ranges from 0 to 5.
10.3.4 Example
AT^IPLISTEN?
^IPLISTEN:NULL,0,2
OK
AT^IPLISTEN=?
^IPLISTEN:(TCP,UDP),(1-65535),(0-5)
OK
AT^IPLISTEN="TCP",12000
OK
AT^IPLISTEN?
^IPLISTEN:TCP,12000,2
OK