UIM card application state meaning

Christophe Ronco c.ronco at kerlink.fr
Thu Sep 7 14:51:25 UTC 2017


Hello,


Using an old SIM card, I have sometimes seen an application state 
saying  QMI_UIM_CARD_APPLICATION_STATE_ILLEGAL when sending "Get Card 
Status" message.

I am just trying to know if I must send a PIN code or not. I use this 
field like that:

  - QMI_UIM_CARD_APPLICATION_STATE_PIN1_OR_UPIN_PIN_REQUIRED: PIN needed

  - QMI_UIM_CARD_APPLICATION_STATE_PUK1_OR_UPIN_PUK_REQUIRED: PUK needed

  - QMI_UIM_CARD_APPLICATION_STATE_READY: no code needed

  - QMI_UIM_CARD_APPLICATION_STATE_CHECK_PERSONALIZATION_STATE: I just 
retry in this case, this looks like an unstable result I sometimes get 
with another SIM card


I don't know what to do in other cases (retry, saying SIM is blocked, 
...) and description in qmi-enums-uim.h does not help. Can you explain 
what other card application state are?

Other cases are:

  - QMI_UIM_CARD_APPLICATION_STATE_UNKNOWN
  - QMI_UIM_CARD_APPLICATION_STATE_DETECTED
  - QMI_UIM_CARD_APPLICATION_STATE_PIN1_BLOCKED
  - QMI_UIM_CARD_APPLICATION_STATE_ILLEGAL

Thanks,


Christophe Ronco



More information about the libqmi-devel mailing list