LPWA Module Series
BG95&BG77&BG600L Series TCP/IP Application Note
BG95&BG77&BG600L_Series_TCP/IP_Application_Note 36 / 56
Parameter
2.4. Description of URCs
The URC of TCP/IP AT commands will be reported to the host in the format of beginning with
+QIURC:
. It
contains the reports about incoming data, connection closed and incoming connection and so on. Actually,
there is
<CR><LF>
both before and after URC, but
<CR><LF>
is not presented intentionally.
2.4.1. +QIURC: "closed" Indicate Connection Closed
When TCP socket service is closed by remote peer or due to a network error, the URC is outputted, and
the status of socket service is
“closing” (
<socket_state>
=4).
AT+QICLOSE=<connectID>
can be used
to change the
<socket_state>
to
“initial”
Parameter
AT+QIGETERROR Query the Last Error Code
Test command
AT+QIGETERROR=?
Response
OK
Execution Command
AT+QIGETERROR
Response
+QIGETERROR: <result>,<result_code_description>
OK
Maximum Response Time
300 ms
Characteristics
/
<result>
Integer type. Result code of the operation. See
Chapter 4
for details.
<result_code_description>
String type. Details of error information. See
Chapter 4
for details.
+QIURC: "closed" Indicate Connection Closed
+QIURC: "closed",<connectID>
Socket service connection is closed.
<connectID>
Integer type. Socket service index. Range: 0
–11.