Hi Lucas,

On Tue, Jan 4, 2011 at 6:36 PM, Lucas De Marchi <lucas.demarchi@profusion.mobi> wrote:
Here is the second implementation for the retry counter task. The difference
from the previous approach is that now a dict with all the available retry
counters is returned. This way is possible to query the retry counter even when
PinRequired == None, what allows us to properly handle calls to EnterPin(),
LockPin(), UnlockPin() and so on.

The dict has the form { pin = 3, puk = 10, ... }. The driver implementation for
huawei modem is done using its proprietary command, which returns 4 counters:

{SimManager} [/huawei0] Retries = { pin2 = 3, puk2 = 10, pin = 3, puk = 10 }

How this information is retrieved at the oFono core. Is your solution to maintain a counter or read the value from the sim elementary files?

Thanks,
Sankar.

Lucas De Marchi (4):
 include: add method to query pin Retries
 sim: query remaining pin retries
 doc: detail Retries property
 atmodem: implement query for remaining pin retries

 doc/sim-api.txt       |   12 ++++++
 drivers/atmodem/sim.c |   99 +++++++++++++++++++++++++++++++++++++++++++++++
 include/sim.h         |   11 +++++
 src/sim.c             |  102 +++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 224 insertions(+), 0 deletions(-)

--
1.7.3.4

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono