LPWA  Module  Series 
   BG95&BG77&BG600L  Series  TCP/IP  Application  Note 
BG95&BG77&BG600L_Series_TCP/IP_Application_Note            20 / 56 
 
 
 
Parameter 
 
2.3.6.  AT+QISTATE    Query Socket Service Status 
This command queries the socket service status. If the <query_type> is 0, it returns the status of all 
existing socket  services in  the  specified context.  If  the  <query_type>  is  1,  it  returns  the  status of a 
specified socket service. 
Integer type. Socket service index. Range: 0–11.   
Integer type. Timeout value for the response to be outputted. If the FIN ACK of the 
other peer is not received within <timeout>, the module will be forced to close the 
socket. Range: 0–65535. Default value: 10. Unit: second. 
AT+QISTATE    Query Socket Service Status 
Test Command 
AT+QISTATE=? 
Read/Execution Command 
AT+QISTATE? or AT+QISTATE 
Response 
Return the status of all existing connections: 
+QISTATE:  <connectID>,<service_type>,<IP_address>,<
remote_port>,<local_port>,<socket_state>,<contextID>,<
serverID>,<access_mode>,<AT_port> 
[…] 
 
OK 
Write Command 
If  <query_type>  is  0,  query  the 
connection status of a specified context 
AT+QISTATE=<query_type>,<contex
tID> 
Response 
Return  the  status  of  all  existing  connections  in  a  specified 
context: 
+QISTATE:  <connectID>,<service_type>,<IP_address>,<
remote_port>,<local_port>,<socket_state>,<contextID>,<
serverID>,<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>,<connec
tID> 
Response 
+QISTATE:  <connectID>,<service_type>,<IP_address>,<
remote_port>,<local_port>,<socket_state>,<contextID>,<
serverID>,<access_mode>,<AT_port> 
 
OK