All of lore.kernel.org
 help / color / mirror / Atom feed
* ICCID not requested when PIN is locked
@ 2014-10-28 11:50 Enrico Sau
  2014-10-28 16:19 ` Denis Kenzior
  0 siblings, 1 reply; 4+ messages in thread
From: Enrico Sau @ 2014-10-28 11:50 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 520 bytes --]

Hi all,
I have a problem with SimManager interface.
When I start ofono with pin locked it starts to read the sim file manager
but the first message fails:

ofonod[29427]: Aux: > AT+CRSM=192,12258\r
ofonod[29427]: Aux: < \r\n+CME ERROR: 4\r\n

The callback of this message contains the following call which would
success but it is never called because of the error.

This results in the problem that ICCID is never retried even if I enter the
pin.

How can I solve this problem?

​Thank you!

Enrico

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 1304 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ICCID not requested when PIN is locked
  2014-10-28 11:50 ICCID not requested when PIN is locked Enrico Sau
@ 2014-10-28 16:19 ` Denis Kenzior
  2014-10-29  8:42   ` Enrico Sau
  0 siblings, 1 reply; 4+ messages in thread
From: Denis Kenzior @ 2014-10-28 16:19 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 867 bytes --]

Hi Enrico,

On 10/28/2014 06:50 AM, Enrico Sau wrote:
> Hi all,
> I have a problem with SimManager interface.
> When I start ofono with pin locked it starts to read the sim file
> manager but the first message fails:
>
> ofonod[29427]: Aux: > AT+CRSM=192,12258\r
> ofonod[29427]: Aux: < \r\n+CME ERROR: 4\r\n
>
> The callback of this message contains the following call which would
> success but it is never called because of the error.

This is a modem firmware problem.  The ICCID request should always 
succeed, even if the PIN is locked.

>
> This results in the problem that ICCID is never retried even if I enter
> the pin.
>
> How can I solve this problem?
>

You can disable the PIN, or power-cycle the modem.

You can also add code to try re-reading the ICCID when PIN is entered. 
Patches are always welcome.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ICCID not requested when PIN is locked
  2014-10-28 16:19 ` Denis Kenzior
@ 2014-10-29  8:42   ` Enrico Sau
  2014-11-02  3:09     ` Denis Kenzior
  0 siblings, 1 reply; 4+ messages in thread
From: Enrico Sau @ 2014-10-29  8:42 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 256 bytes --]

>
>
> You can also add code to try re-reading the ICCID when PIN is entered.
> Patches are always welcome.
>
> ​Ok, this is what I would like to do, but code is quite complex in sim
interface, can you give me some hint?

Thank you!

Enrico​

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 939 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ICCID not requested when PIN is locked
  2014-10-29  8:42   ` Enrico Sau
@ 2014-11-02  3:09     ` Denis Kenzior
  0 siblings, 0 replies; 4+ messages in thread
From: Denis Kenzior @ 2014-11-02  3:09 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 547 bytes --]

Hi Enrico,

On 10/29/2014 03:42 AM, Enrico Sau wrote:
>
>     You can also add code to try re-reading the ICCID when PIN is
>     entered. Patches are always welcome.
>
> ​Ok, this is what I would like to do, but code is quite complex in sim
> interface, can you give me some hint?
>

You can always try to read ICCID again after the PIN has been retrieved 
if the ICCID is missing.  e.g. something like:

if (sim->iccid == NULL)
	sim_iccid_changed(SIM_EF_ICCID_FILEID, sim);

in sim_initialize_after_pin()

Regards,
-Denis

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-02  3:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-28 11:50 ICCID not requested when PIN is locked Enrico Sau
2014-10-28 16:19 ` Denis Kenzior
2014-10-29  8:42   ` Enrico Sau
2014-11-02  3:09     ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.