Hi team,
I am using kit Dragino NB-IoT shield, connect to Arduino Uno, to send AT command to BG96.
At first time, there is nothing was wrong, I still successfully checked the IMEI, CCID of the USIM, but everything seems going to be wrong when I decided to send “AT+QSIMDET=1,0”. I can’t check the IMEI or CCID of USIM any more. Please help me.
I have attached all of my process below.
Thanks a lot for reading,
Best regards,
Xuan Thanh.
// I intend to know whether the SIM is inserted /connected to the BG96 with some AT commands.
// My very first initial state when nothing was wrong before I decided to send “AT+QSIMDET=1,0”.
AT+QINISTAT
+QINISTAT: 3
OK
AT+QINISTAT=?
+QINISTAT: (0-3)
OK
AT+QSIMSTAT=?
+QSIMSTAT: (0,1)
OK
AT+QSIMSTAT?
+QSIMSTAT: 0,1
OK
// Seems still has no problem now.
AT+QSIMDET?
+QSIMDET: 0,0
OK
*** Van de xuat hien sau lenh "AT+QSIMDET=1,0
//enable detection USIM
AT+QSIMDET=1,0
OK
// Kiem tra lai coi co kich hoat chua
// check if it is enabled or not
AT+QSIMDET?
+QSIMDET: 1,0
OK
//
AT+QSIMDET=?
+QSIMDET: (0,1),(0,1)
OK
//
AT+QSIMSTAT=?
+QSIMSTAT: (0,1)
OK
//
AT+QSIMSTAT?
+QSIMSTAT: 0,0
OK
//
AT+QSIMSTAT=1
OK
// Tu doan nay minh thao sim va gan lai sim
// At that time, I began to remove and insert (u)sim repecstively.
AT+QSIMSTAT?
+QSIMSTAT: 1,0
OK
AT+QSIMSTAT?
+QSIMSTAT: 1,0
OK
AT+QSIMSTAT?
+QSIMSTAT: 1,0
OK
AT+QSIMSTAT?
+QSIMSTAT: 1,0
OK
AT+QSIMSTAT?
+QSIMSTAT: 1,0
OK
AT+QSIMSTAT?
+QSIMSTAT: 1,0
OK
AT+QSIMSTAT?
+QSIMSTAT: 1,0
OK
*** thay co gi do khong on nen kiem tra cac thong so khac
*** I felt something was wrong so I checked other parameters.
//
AT+QINISTAT=?
+QINISTAT: (0-3)
OK
//
AT+QSIMDET=?
+QSIMDET: (0,1),(0,1)
OK
//
ATE
OK
ATI
Quectel
BG96
Revision: BG96MAR02A07M1G
OK
//
AT+CGSN=?
OK
//
AT+CGSN
868446031757533
OK
//
AT+QINISTAT=?
+QINISTAT: (0-3)
OK
//
AT+QSIMSTAT?
+QSIMSTAT: 1,0
OK
AT+QSIMSTAT?
+QSIMSTAT: 1,0
OK
AT+QSIMSTAT?
+QSIMSTAT: 1,0
OK
AT+QSIMSTAT=?
+QSIMSTAT: (0,1)
OK
*** Problem No.1, QINISTAT RETURNS VALUE “0”, not “3” like above.
07:35:33.116 -> AT+QINISTAT
07:35:33.116 -> +QINISTAT: 0
07:35:33.151 ->
07:35:33.151 -> OK
//
07:36:26.884 -> AT+QINISTAT=?
07:36:26.918 -> +QINISTAT: (0-3)
07:36:26.918 ->
07:36:26.918 -> OK
//
07:37:12.527 -> AT+QSIMDET=?
07:37:12.561 -> +QSIMDET: (0,1),(0,1)
07:37:12.561 ->
07:37:12.561 -> OK
//
07:37:32.569 -> AT+QSIMDET?
07:37:32.569 -> +QSIMDET: 1,0
07:37:32.569 ->
07:37:32.604 -> OK
//
07:37:52.863 -> AT+QSIMDET=1,1
07:37:52.932 -> OK
//
07:38:00.784 -> AT+QINISTAT
07:38:00.818 -> +QINISTAT: 0
07:38:00.818 ->
07:38:00.818 -> OK
//
07:38:53.715 -> AT+QINISTAT?
07:38:53.749 -> ERROR
//
07:39:01.607 -> AT+QSIMSTAT?
07:39:01.607 -> +QSIMSTAT: 1,0
07:39:01.642 ->
07:39:01.642 -> OK
//
07:39:35.455 -> AT+QSIMSTAT?
07:39:35.455 -> +QSIMSTAT: 1,0
07:39:35.490 ->
07:39:35.490 -> OK
//
07:40:21.768 -> AT+QINISTAT
07:40:21.768 -> +QINISTAT: 0
07:40:21.802 ->
07:40:21.802 -> OK
//
07:45:06.352 -> AT+QSIMDET=1,0
07:45:06.420 -> OK
//
07:45:26.316 -> AT+QINISTAT
07:45:26.316 -> +QINISTAT: 0
07:45:26.316 ->
07:45:26.316 -> OK
07:45:29.850 ->
*** Panic time
// I hit button reset
07:45:36.343 -> RDY
07:45:36.410 ->
07:45:36.444 -> APP RDY
// checked again
07:45:45.722 -> ATE
07:45:45.757 -> OK
07:45:48.068 -> ATI
07:45:48.102 -> Quectel
07:45:48.102 -> BG96
07:45:48.102 -> Revision: BG96MAR02A07M1G
07:45:48.137 ->
07:45:48.137 -> OK
07:46:43.530 -> AT+IPR?
07:46:43.530 -> +IPR: 9600
07:46:43.530 ->
07:46:43.530 -> OK
07:47:24.646 -> AT+QINISTAT=?
07:47:24.646 -> +QINISTAT: (0-3)
07:47:24.681 ->
07:47:24.681 -> OK
07:47:31.564 -> AT+QINISTAT
07:47:31.564 -> +QINISTAT: 0
07:47:31.564 ->
07:47:31.564 -> OK
07:48:43.116 -> AT+QSIMSTAT?
07:48:43.116 -> +QSIMSTAT: 1,0
07:48:43.150 ->
07:48:43.150 -> OK
07:48:58.613 -> AT+QSIMDET?
07:48:58.647 -> +QSIMDET: 1,0
07:48:58.647 ->
07:48:58.647 -> OK
07:57:01.003 -> AT+CLCK=?
07:57:01.003 -> +CLCK: (“AB”,“AC”,“AG”,“AI”,“AO”,“IR”,“OI”,“OX”,“SC”,“FD”,“PN”,“PU”,“PP”,“PC”,“PF”)
07:57:01.105 ->
07:57:01.105 -> OK
/// After a while, i decided to upload code from Arduino then run again,
then another problem revealed.
11:04:34.564 -> wellcom to dragino
11:04:41.818 -> ATE
11:04:41.818 -> OK
11:04:46.025 -> ATI
11:04:46.025 -> Quectel
11:04:46.025 -> BG96
11:04:46.025 -> Revision: BG96MAR02A07M1G
11:04:46.059 ->
11:04:46.059 -> OK
11:05:09.105 -> AT+QCCID
11:05:09.105 -> +CME ERROR: 13
11:05:17.072 -> AT+QCCID
11:05:17.106 -> +CME ERROR: 13
11:06:22.394 -> AT+CGSN
11:06:22.428 -> 868446031757533
11:06:22.428 ->
11:06:22.428 -> OK
11:06:40.597 -> AT+CIMI
11:06:40.597 -> +CME ERROR: 3
11:07:02.479 -> AT+QCCID
11:07:02.514 -> +CME ERROR: 13
11:07:17.048 ->
11:07:24.792 -> RDY
11:07:24.860 ->
11:07:24.860 -> APP RDY
11:07:35.328 -> ATE
11:07:35.362 -> OK
11:07:37.830 -> ATI
11:07:37.865 -> Quectel
11:07:37.865 -> BG96
11:07:37.865 -> Revision: BG96MAR02A07M1G
11:07:37.899 ->
11:07:37.899 -> OK
11:07:44.565 -> AT+QCCID
11:07:44.600 -> +CME ERROR: 13
// I stoped doing more stupid things at this time.