Thank you for your comment.
[Environment]
・STM32L053
・use MQTT protocol
・receive return values of AT commands by interrupt
I sent the following command.
AT
AT&K3
ATE0
ATI3
AT+CGREG?
AT+CGDCONT=4,“IP”,“xxxcom”
AT+KCNXCFG=1,“GPRS”,“xxxcom”,“xxx@xxxcom”,“xxx”
AT+GPSSUPLCFG=0,“suplcn.sirf。com”,7276,1,0
AT+GPSSUPLCFG?
AT+CGDCONT?
AT+KTCPCFG=1,0,“xxxxxxxxcom”,1883
AT+KCNXUP=1
AT+KTCPCNX=1
AT+GPSNMEA=01
AT+GPSSTART=0
AT+CGDCONT?
AT+CGPADDR
AT+GPSSTOP
AT+KTCPSTAT=1
AT+KTCPSND=1,23
AAAAAAAAAA,bty=0–EOF–Pattern–
AT+KTCPSTAT=1
AT+CGDCONT?
AT+GPSSTOP
AT+KTCPCLOSE=1,1
AT+KTCPDEL=1
AT+KCNXDOWN=1,1
And I got the following result.
AT
AT
OK
AT&K3
AT&K3
OK
ATE0
ATE0
OK
ATI3
RHL85xx.5.5.22.0.201603171544.x6250_3
OK
AT+CGREG?
+CGREG: 0,1
OK
AT+CGDCONT=4,“IP”,“xxxcom”
OK
AT+KCNXCFG=1,“GPRS”,“xxxcom”,“xxx@xxxcom”,“xxx”
OK
+GPSEVINIT: 1
AT+GPSSUPLCFG=0,“suplcn.sirf。com”,7276,1,0
OK
AT+GPSSUPLCFG?
+GPSSUPLCFG: 0,“suplcn.sirf。com”,7276,1,0
+GPSSUPLCFG: 1,-1,1,1
OK
AT+CGDCONT?
+CGDCONT: 4,“IP”,“xxxcom”,“0.0.0.0”,0,0
OK
AT+KTCPCFG=1,0,“xxxxxxxxcom”,1883
+KTCPCFG: 1
OK
AT+KCNXUP=1
OK
+KCNX_IND: 1,4,1
AT+KTCPCNX=1
OK
AT+GPSNMEA=01
+KCNX_IND: 1,1,0
+KTCP_IND: 1,1
OK
AT+GPSSTART=0
OK
AT+CGDCONT?
+CGDCONT: 1,“IP”,“xxxcom”,“100.90.200.180”,0,0
+CGDCONT: 4,“IP”,“xxxcom”,“0.0.0.0”,0,0
OK
+GPSEVSTART: 1
$GPVTG…
+GPSEVPOS: 0
$GPVTG,0
AT+CGPADDR
0,T,…
$GNGNS…
+CGPADDR: 4,“100.90.200.180”
OK
$GPVTG…
AT+GPSSTOP
.0,T,…
$GNGNS…
OK
+GPSEVSTOP: 1
+GPSEVPOS: 0
AT+KTCPSTAT=1
+KTCPSTAT: 3,-1,0,0
OK
AT+KTCPSND=1,23
CONNECT
OK
OK
End of transmission
AT+KTCPSTAT=1
CNX_IND: 1,0,0
+KTCP_NOTIF: 1,0
+KTCPSTAT: 1,0,0,0
OK
AT+CGDCONT?
+CGDCONT: 1,“IP”,“xxxcom”,“0.0.0.0”,0,0
+CGDCONT: 4,“IP”,“xxxcom”,“0.0.0.0”,0,0
OK
AT+GPSSTOP
ERROR
AT+KTCPCLOSE=1,1
ERROR
AT+KTCPDEL=1
OK
AT+KCNXDOWN=1,1
OK