[HL7692] +CPIN? returns +CME ERROR: 10 when registration is initiated


#1

+CPIN? returns +CME ERROR: 10 when registration is initiated.

This occurs for a few seconds, after registring an apn until +CREG goes from 0 -> 2, then +CPIN? starts returning +CPIN: READY

Is this known behavior? This also seems to happen during a 1 -> 2 transit.

How to reproduce:
ATI
HL7692
AT+CPIN?
+CPIN: READY
AT+CGDCONT=1,…
OK
AT+WPPP=1,1,…
OK
AT+CPIN?
ERROR
…wait few seconds…
AT+CPIN?
+CPIN: READY


#2

Hi roel0,

If you did not send AT+CGDCONT=1…and AT+WPPP=1,1,…, will issue disppear?


#3

Hi Sieraa_klin1,

Yes, if I let the device use the (previous) configured apn from the nvm then I don’t see the issue. So it’s indeed caused by the registering of the ‘new’ apn.

But every time I set a new apn, my application thinks the sim card has been removed for a few moments which is unwanted behavior.


#4

Hi roel0,

In facct, when the current APN is being used, you cannot change it directly.
To change it, please follow:
AT+CFUN=4 or AT+CGATT=0,
AT+CGDCONT=1…
AT+WPPP=1,1,…,
AT+CFUN=1