Hi Sankar
Em 04/01/2011 11:20, "Sankar" <gsankar.gs(a)gmail.com> escreveu:
On Tue, Jan 4, 2011 at 6:36 PM, Lucas De Marchi
<lucas.demarchi(a)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?
Each vendor has proprietary commands to read these counters. For
example, on huawei you can get the retry counters by sending
"AT^CPIN?". Last version of 27.007 included an AT command for that
(+CPINR), so it's possible to have a generic implementation for
atmodem. However I don't know what vendors already support it.
regards,
Lucas De Marchi