GSM/GPRS Module
M35 AT Commands Manual
M35_AT_Commands_Manual Confidential / Released 123 /
186
11
TCPIP Commands
11.1. AT+QIOPEN Start up TCP or UDP Connection
Parameter
AT+QIOPEN Start up TCP or UDP Connection
Test Command
AT+QIOPEN=?
Response
+QIOPEN:
(list of supported
<mode>
),(
IP address
range
),(
port range
)
<CR><LF>
+QIOPEN:
(list of supported
<mode>
),(
domain
name
),(
port range
)
OK
Write Command
AT+QIOPEN=[<index>,]<mode>,<IP
address>/<domain name>,<port>
Response
If format is right, respond:
OK
Otherwise respond:
ERROR
If the connection has already existed, respond:
ALREADY CONNECT
And then if connection is successful, respond:
[<index>,]
CONNECT OK
Otherwise respond:
[<index>,]
CONNECT FAIL
Reference
<
index
>
A numeric indicates which socket opens the connection. M35 supports at most 6
sockets at the same time. This parameter is necessary only if
AT+QIMUX
was set as 1
(refer to
AT+QIMUX
). When
AT+QIMUX
was set as 0, the parameter MUST be
omitted
<mode>
A string parameter which indicates the connection type
"TCP"
Establish a TCP connection
"UDP"
Establish a UDP connection
<IP address>
A string parameter that gives the address of the remote server in dotted decimal style.