LPWA Module Series
BG95&BG77&BG600L Series TCP/IP Application Note
BG95&BG77&BG600L_Series_TCP/IP_Application_Note 18 / 56
Parameter
SERVICE","<IP_address>/<domain_name>",(
range
of
supported
<remote_port>
s
),(
range
of
supported
<local_port>
s
),(
range of supported
<access_mode>
s
)
OK
Write Command
AT+QIOPEN=<contextID>,<connectI
D>,<service_type>,<IP_address>/<d
omain_name>,<remote_port>[,<local
_port>[,<access_mode>]]
Response
If in transparent transmission mode (
<access_mode>
=2)
and the service is opened successfully:
CONNECT
If there is any error:
ERROR
Error description can be got via
AT+QIGETERROR
.
If in buffer access mode (
<access_mode>
=0) or direct push
mode (
<access_mode>
=1):
OK
+QIOPEN: <connectID>,<result>
<result>
is 0 when the service is opened successfully. In
other cases,
<result>
is not 0.
Maximum Response Time
150 seconds, determined by the network.
Characteristics
/
<contextID>
Integer type. Context ID. Range: 1
–16.
<connectID>
Integer type. Socket service index. Range: 0
–11.
<service_type>
String type. The socket service type.
"TCP"
Start a TCP connection as a client
"UDP"
Start a UDP connection as a client
"TCP LISTENER" Start a TCP server to listen for TCP incoming connections
"UDP SERVICE" Start a UDP service
<IP_address>
String type.
If
<service_type>
is "TCP" or "UDP", it indicates the IP address of remote server,
such as "220.180.239.212".
If
<service_type>
is "TCP LISTENER" or "UDP SERVICE", enter "127.0.0.1".
<domain_name>
String type. Domain name address of the remote server.
<remote_port>
Integer type. Port number of the remote server. Range: 0
–65535.
If
<service_type>
is "TCP" or "UDP", this parameter must be specified. Range:
1
–65535.