All of lore.kernel.org
 help / color / mirror / Atom feed
* PinRequired value during sim initialization
@ 2012-09-28  8:03 Cedric Jehasse
  2012-09-28  8:48 ` martin.grimme
  2012-09-28 15:23 ` Denis Kenzior
  0 siblings, 2 replies; 5+ messages in thread
From: Cedric Jehasse @ 2012-09-28  8:03 UTC (permalink / raw)
  To: ofono

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

Hi,

Immediately after the 'Present' property changes to true on
org.ofono.SimManager, i read the 'PinRequired' property. Because the
sim is not yet initialized this is set to "none". It would be nice if
this was set to "notinitialized", or if there would be an additional
property to know if sim initialization is done.

Thanks,
Cedric

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

* Re: PinRequired value during sim initialization
  2012-09-28  8:03 PinRequired value during sim initialization Cedric Jehasse
@ 2012-09-28  8:48 ` martin.grimme
  2012-09-28 15:18   ` Denis Kenzior
  2012-09-28 15:23 ` Denis Kenzior
  1 sibling, 1 reply; 5+ messages in thread
From: martin.grimme @ 2012-09-28  8:48 UTC (permalink / raw)
  To: ofono

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

Hi,

I wouldn't rely on the Present property too much. I have seen modems where the SimManager interface is not even available if the SIM was missing. And I have seen modems where Present was still true after I have pulled out the SIM...


Regards,
Martin


Cedric Jehasse schrieb am 28.09.12 10:03:

Hi,


Immediately after the 'Present' property changes to true on
org.ofono.SimManager, i read the 'PinRequired' property. Because the
sim is not yet initialized this is set to "none". It would be nice if
this was set to "notinitialized", or if there would be an additional
property to know if sim initialization is done.


Thanks,
Cedric

_______________________________________________

ofono mailing list

ofono(a)ofono.org
http://lists.ofono.org/listinfo/ofono




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

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

* Re: PinRequired value during sim initialization
  2012-09-28  8:48 ` martin.grimme
@ 2012-09-28 15:18   ` Denis Kenzior
  0 siblings, 0 replies; 5+ messages in thread
From: Denis Kenzior @ 2012-09-28 15:18 UTC (permalink / raw)
  To: ofono

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

Hi Martin,

Please do not top-post on this mailing list.

On 09/28/2012 03:48 AM, martin.grimme(a)gmail.com wrote:
> Hi,
>
>
> I wouldn't rely on the Present property too much. I have seen modems
> where the SimManager interface is not even available if the SIM was
> missing. And I have seen modems where Present was still true after I
> have pulled out the SIM...
>

Sounds like your hardware does not support SIM hot-swap.

Regards,
-Denis

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

* Re: PinRequired value during sim initialization
  2012-09-28  8:03 PinRequired value during sim initialization Cedric Jehasse
  2012-09-28  8:48 ` martin.grimme
@ 2012-09-28 15:23 ` Denis Kenzior
  2012-10-01  9:29   ` Cedric Jehasse
  1 sibling, 1 reply; 5+ messages in thread
From: Denis Kenzior @ 2012-09-28 15:23 UTC (permalink / raw)
  To: ofono

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

Hi Cedric,

On 09/28/2012 03:03 AM, Cedric Jehasse wrote:
> Hi,
>
> Immediately after the 'Present' property changes to true on
> org.ofono.SimManager, i read the 'PinRequired' property. Because the
> sim is not yet initialized this is set to "none". It would be nice if
> this was set to "notinitialized", or if there would be an additional
> property to know if sim initialization is done.
>

I do admit this is a slight inconsistency in the API.  However, 
PinRequired=none was never meant to signify that the SIM has been 
initialized.  If you want that, then you should monitor the 
'SubscriberIdentity' property.  Once that property goes live you can 
assume that the SIM has been initialized to the point that other tasks 
can be performed, e.g. going Online.  If the PIN is required then the 
PinRequired will at some point go to state other than 'none'.

In general oFono does not use 'unknown' states for any properties unless 
that is an explicit state that can be obtained from the network.  The 
best I can suggest right now is that we can make PinRequired an optional 
property; e.g. it will not be present until the PIN has been queried.

Regards,
-Denis

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

* Re: PinRequired value during sim initialization
  2012-09-28 15:23 ` Denis Kenzior
@ 2012-10-01  9:29   ` Cedric Jehasse
  0 siblings, 0 replies; 5+ messages in thread
From: Cedric Jehasse @ 2012-10-01  9:29 UTC (permalink / raw)
  To: ofono

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

Hi Denis,

> In general oFono does not use 'unknown' states for any properties unless
> that is an explicit state that can be obtained from the network.  The best I
> can suggest right now is that we can make PinRequired an optional property;
> e.g. it will not be present until the PIN has been queried.

I think this is a good idea. This way there's no doubt in the pin
state when 'PinRequired' is 'none'.

Thanks,
Cedric

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

end of thread, other threads:[~2012-10-01  9:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-28  8:03 PinRequired value during sim initialization Cedric Jehasse
2012-09-28  8:48 ` martin.grimme
2012-09-28 15:18   ` Denis Kenzior
2012-09-28 15:23 ` Denis Kenzior
2012-10-01  9:29   ` Cedric Jehasse

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.