Huawei MC509 manual ATIPLISTEN? IPLISTENNULL,0,2 ATIPLISTEN=?, IPLISTENTCP,UDP,1-65535,0-5

Models: MC509

1 156
Download 156 pages 43.92 Kb
Page 116
Image 116

HUAWEI MC509 CDMA LGA Module

 

AT Command Interface Specification

Internet Service Interface Commands

10.3.2Interface 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.3Parameter 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.4Example

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

Issue 01 (2011-08-26)

Huawei Proprietary and Confidential

116

Copyright © Huawei Technologies Co., Ltd.

 

 

Page 116
Image 116
Huawei MC509 manual ATIPLISTEN? IPLISTENNULL,0,2 ATIPLISTEN=?, IPLISTENTCP,UDP,1-65535,0-5