Quectel BG96 TCP/IP Application Note page 16

Lpwa module
Hide thumbs Also See for BG96 TCP/IP:
Table of Contents

Advertisement

Maximum Response Time
Characteristics
Parameter
<contextID>
<connectID>
<service_type>
<IP_address>
<domain_name>
<remote_port>
Integer type. Port number of the remote server. It is only valid when <service_type>
is "TCP" or "UDP", and in such as case, the range is 0–65535. Otherwise, any value
in the range of 0–65535 will not take effect.
<local_port>
<access_mode>
<err>
BG96_TCP/IP_Application_Note
If there is any error:
ERROR
Error description can be got via AT+QIGETERROR.
If <access_mode>=0 or 1:
OK
+QIOPEN: <connectID>,<err>
<err> is 0 when the service is opened successfully. In other
cases, <err> is not 0.
300 s, determined by network.
/
Integer type. Context ID. Range: 1–16.
Integer type. Socket service index. Range: 0–11.
String type. Socket service type.
"TCP"
"UDP"
"TCP LISTENER"
"UDP SERVICE"
String type.
If <service_type> is "TCP" or "UDP", it indicates the IP address of a remote server,
such as "220.180.239.212".
If <service_type> is "TCP LISTENER" or "UDP SERVICE", enter "127.0.0.1".
String type. Domain name address of the remote server.
Integer type. Local port number. Range: 0–65535.
If <service_type> is "TCP LISTENER" or "UDP SERVICE", this parameter must be
specified.
If <service_type> is "TCP" or "UDP", <local_port> will be 0, then the local port will
be assigned automatically. In this case, the value 0 will be used if it is omitted.
Integer type. Data access mode of the socket service.
0
Buffer access mode
1
Direct push mode
2
Transparent access mode
Integer type. Error code of operation. Please refer to Chapter 4.
Start a TCP connection as a client
Start a UDP connection as a client
Start a TCP server to listen to TCP connection
Start a UDP service
LPWA Module Series
BG96 TCP/IP Application Note
15 / 52

Advertisement

Table of Contents
loading

Table of Contents