LPWA Module Series
BG96 TCP/IP Application Note
BG96_TCP/IP_Application_Note 17 / 52
Parameter
emote_port>,<local_port>,<socket_state>,<contextID>,<s
erverID>,<access_mode>,<AT_port>
[…]
OK
Write Command
If <query_type> is 0, query the
connection status of a specified context
AT+QISTATE=<query_type>,<context
ID>
Response
Return the status of all existing connections in a specified
context:
+QISTATE: <connectID>,<service_type>,<IP_address>,<r
emote_port>,<local_port>,<socket_state>,<contextID>,<s
erverID>,<access_mode>,<AT_port>
[…]
OK
Write Command
If <query_type> is 1, query the
connection status of a specified socket
service
AT+QISTATE=<query_type>,<connect
ID>
Response
+QISTATE: <connectID>,<service_type>,<IP_address>,<r
emote_port>,<local_port>,<socket_state>,<contextID>,<s
erverID>,<access_mode>,<AT_port>
OK
<query_type> Integer type. Query type.
0 Query connection status of all socket services in a specified context
1 Query connection status of a specified socket service
<contextID> Integer type. Context ID. Range: 1–16.
<connectID> Integer type. Socket service index. Range: 0–11.
<service_type> String type. 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 to TCP connection
"TCP INCOMING" Start a TCP connection accepted by a TCP server
"UDP SERVICE" Start a UDP service
<IP_address> String type. IP address.
If <service_type>="TCP" or "UDP", it is the IP address of remote server.
If <service_type>="TCP LISTENER" or "UDP SERVICE", it is the local IP address.
If <service_type>="TCP INCOMING", it is the IP address of remote client.
<remote_port> Integer type. Remote port number.