Hi all,
Some of our devices suddenly stop working and print following log:
[949363428] [WARN] [CellularLib] [_Cellular_ProcessLine:405] Modem return ERROR: line ERROR, cmd : AT+CPIN?, respPrefix +CPIN<\r><\n>
[949363428] [WARN] [CellularLib] [_Cellular_AtcmdRequestTimeoutWithCallbackRaw:242] Modem returns error in sending AT command AT+CPIN?, pktStatus 2.<\r><\n>
[949363428] [ERROR] [CellularLib] [_Cellular_TranslatePktStatus:482] _Cellular_TranslatePktStatus: Status 2<\r><\n>
[949363428] [INFO] [cellular_setup] [cellularSetup:245] Cellular SIM card state 3, Lock State 16.<\r><\n>
They have worked for months without problems and then suddenly they stop working.
We do not have any PIN or PUK activated.
If I take the same simcard and put it in a previously working device, it can connect.
If I take another simcard and put it in the previously not working device, it can connect.
So in my opinion it only happens with Any idea, where this could come from?
BC660k_GL in combination with STM32 running FreeRTOS Cellular Library.
Cheers
Execute AT+CPIN? Then, what does it return?
Hi Herbert,
it returns ERROR:
[949363368] [DEBUG] [CellularLib] [_Cellular_AtcmdRequestTimeoutWithCallbackRaw:215] >>>>>Start sending [AT+CPIN?]<<<<<
[949363368] [INFO] [CellularLib] [_Cellular_PktioSendAtCmd:1473] _Cellular_PktioSendAtCmd: AT+CPIN?
[949363368] [INFO] [CellularLib] [_Cellular_ReadLine:639] AT Read 9 bytes, data:
ERROR
However, if I put another simcard in the same device it returns: +CPIN: READY
If I put a new simcard in the non working device, it works again,
So we are sending
AT > OK
ATE0 > OK
AT+QSCLK=0 > OK
AT+QBAND=2,8,20 > OK
AT+CFUN=1 > +CFUN: 1
+CPIN: NOT READY
AT+CPIN? > ERROR
wait 0.5 sec
AT+CPIN? > ERROR
wait 0.5 sec
… in a loop
Perhaps this SIM card is abnormal or incompatible.
We have about 400 devices in the field and about one device per week stops working randomly. Strangely it only happens when roaming is activated, never, when we connect to the home network. Might also just be a coincidence. Therefore I think it is not a SIM card abnormality. What do you think?
We have the devices in the field since March and right now we have about 20 devices with this behaviour.Is it safe to call AT+CPIN? to check if the sim card is available right after setting CFUN to 1?
Werner
@herbert.pan-Q Do you have any suggestions on that topic?
Thank you
@herbert.pan-Q Any news about that topic?
Thanks
I suggest you try replacing the SIM card and conducting a cross-verification.
Hi Herbert,
if i take the sim card of the broken device into another device, it works. Also if I use a new simcard, the device works. Only if the same BC660k-GL module and the same sim card are used, it does not work.
Hi Herbert, any news on that topic?
Please monitor whether the electrical characteristics of the sim_vdd and sim_data pins meet the design requirements.
Hi Herbert, we checked the characteristics.
on picture 1 is sim_vdd (yellow) and sim_data (blue)
on picture 2 is clock (yellow) and reset (blue)
The sim cards can not be recovered, if they fail once. Did you encountered any similar problem? Any Idea, how this can happen?