Re: How to save pin number and auto-connect on startup?



On Thu, Oct 21, 2010 at 1:53 PM, Marcel Holtmann <marcel holtmann org> wrote:
[...]
> I think this is the wrong approach. You mentioned yourself that the PIN
> is bound to the SIM. And unless you base this of the ICCID you should
> not be allowing storing of a PIN based on modem specific features. The
> only exception would be if the SIM card is physically integrated into
> the device. However this is only done for M2M devices anyway and not for
> normal desktop devices.
>

I have to respectfully disagree here: unfortunately, some devices
don't seem to play well with getting the ICCID, so I think it's a
reasonable approach to expect most people to have one device, with a
SIM card usually not being moved across devices. For reference, these
devices were a Huawei E1831 and Huawei E182E. I used the same at+cgsn
approach to make a reasonable guess as to the devices' identification.

At least for two modems I've been testing for the past week, they
refuse to support AT!ICCID, I've tried a couple of different things
without luck.. The only thing I haven't tried was to get the ICCID
through at+csim?.

On the other hand, I tend to agree for disabling the PIN rather than
saving it... Yet, when saved it's protected by the keyring password,
which in most cases would be harder to guess than the PIN, I'd think.
We also get feedback for an incorrect PIN, so we can tell not to try
again with the saved value (and possibly remove it from keyring right
away).

Mathieu Trudel-Lapierre <mathieu tl gmail com>
Freenode: cyphermox, Jabber: mathieu tl gmail com
4096R/EE018C93 1967 8F7D 03A1 8F38 732E  FF82 C126 33E1 EE01 8C93


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]