HUAWEI MC509 CDMA LGA Module

 

AT Command Interface Specification

Internet Service Interface Commands

10.2^IPOPEN–Command for Establishing a TCP/UDP Connection

10.2.1 Syntax

Command

 

 

Possible Response(s)

 

 

 

 

 

 

^IPOPEN=<link_id>,

 

 

<CR><LF>OK<CR><LF>

 

<type>,

 

 

In case of an MT-related error:

 

 

 

 

 

<dest_ip>,<dest_port

 

 

<CR><LF>ERROR<CR><LF>

 

>,

 

 

 

 

 

 

 

<local_port>

 

 

 

 

 

 

 

 

 

^IPOPEN?

 

 

If a connection is established:

 

 

 

 

<CR><LF>^IPOPEN:<link_id>,<type>,<local_port>[,<dest_i

 

 

 

 

p>

 

 

 

 

[,<dest_port>]]

 

 

 

 

[<CR><LF>^IPOPEN:<link_id>,<type>,<local_port>[,<dest_i

 

 

 

 

p>

 

 

 

 

[,<dest_port>]]

 

 

 

 

[...]]<CR><LF>

 

 

 

 

<CR><LF>OK<CR><LF>

 

 

 

 

If no connection is established:

 

 

 

 

<CR><LF>OK<CR><LF>

 

 

 

 

 

 

^IPOPEN=?

 

 

<CR><LF>^IPOPEN:(supported <link_id> list), (supported

 

 

 

 

<local_port> list),(supported <dest_port> list)<CR><LF>

 

 

 

 

<CR><LF>OK<CR><LF>

 

 

 

 

 

 

10.2.2Interface Description

This command establishes a wireless connection with one or more remote servers to complete data exchange. TCP and UDP modes are supported.

10.2.3Parameter Description

<link_id>: Specifies the ID of a connection. The value ranges from 1 to 5.

<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 command is executed. For details, see "Example."

"TCP": A TCP connection is established.

"UDP": A UDP connection is established.

<dest_ip>: A string, specifying the target IP address to be connected to. Double quotation marks are used in the execution command. Double quotation marks are not

Issue 01 (2011-08-26)

Huawei Proprietary and Confidential

114

Copyright © Huawei Technologies Co., Ltd.

 

 

Page 114
Image 114
Huawei MC509 manual IPOPEN-Command for Establishing a TCP/UDP Connection, Ipopen?, Crlfokcrlf IPOPEN=?