Quectel BG95 Series Application Note page 22

Hide thumbs Also See for BG95 Series:
Table of Contents

Advertisement

Parameter
Integer type. Query type.
<query_type>
0
1
<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"
"UDP"
"TCP LISTENER"
"TCP INCOMING"
"UDP SERVICE"
<IP_address>
String type. IP address.
If <service_type> is "TCP" or "UDP", it is the IP address of a remote server.
If <service_type> is "TCP LISTENER" or "UDP SERVICE", it is the local IP
address.
If <service_type> is "TCP INCOMING", it is the IP address of a remote client.
<remote_port>
Integer type. Remote port number.
If <service_type> is "TCP" or "UDP", it is the port of a remote server.
If <service_type> is "TCP LISTENER" or "UDP SERVICE", the port is invalid.
If <service_type> is "TCP INCOMING", it is the port of a remote client.
<local_port>
Integer type. Local port number.
If <local_port> is 0, then the local port is assigned automatically.
Integer type. Socket service status.
<socket_state>
0
1
2
3
4
<serverID>
Integer type. Only valid when <service_type> is "TCP INCOMING". <serverID>
represents the ID of the server that accepts this TCP incoming connection, and the
value is the same as <connectID> of "TCP LISTENER".
<access_mode>
Integer type. Data access mode.
0
1
2
<AT_port>
String type. COM port of socket service.
"usbmodem"
"uart1"
BG95&BG77&BG600L_Series_TCP/IP_Application_Note
BG95&BG77&BG600L Series TCP/IP Application Note
Query connection status of all socket services in a specified context
Query connection status of a specified socket service
Start a TCP connection as a client
Start a UDP connection as a client
Start a TCP server to listen for TCP incoming connections
Start a TCP connection accepted by a TCP server
Start a UDP service
"Initial": connection has not been established
"Opening": client is connecting or server is trying to listen
"Connected": client/incoming connection has been established
"Listening": server is listening
"Closing": connection is closing
Buffer access mode
Direct push mode
Transparent transmission mode
USB modem port
UART1 port
LPWA Module Series
21 / 56

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Bg77 seriesBg600l series

Table of Contents