HUAWEI MU509 HSDPA LGA Module
AT Command Interface Specification
Internet Service Commands
Issue 04 (2013-01-28)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
198
15.3 ^IPLISTEN–Enable Server Listening
15.3.1
Command Syntax
Command
Possible Response(s)
^IPLISTEN=<type>,<listen_port> <CR><LF>OK<CR><LF>
In case of an MT-related error:
<CR><LF>+CME ERROR: <err><CR><LF>
^IPLISTEN?
<CR><LF>^IPLISTEN:
<type>,<listen_port>,<idle_num><CR><LF>
<CR><LF>OK<CR><LF>
^IPLISTEN=?
<CR><LF>^IPLISTEN: (list of supported
<type>s),(list of supported <listen_port>s),(list
of supported <idle_num>s)<CR><LF>
<CR><LF>OK<CR><LF>
15.3.2
Description
This command enables the server listening function. After a server is started, the
server can be connected to a maximum of five clients.
15.3.3
Defined Values
<type>: a string with double quotation marks, specifying the connection type.
"TCP": A TCP connection is established.
"UDP": A UDP connection is established.
"": 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.
Note:
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.
15.3.4
Examples
AT^IPLISTEN?
^IPLISTEN: "",0,2