Re: How to save pin number and auto-connect on startup?
- From: Dan Williams <dcbw redhat com>
- To: Achim Weber <dotzball gmx net>
- Cc: networkmanager-list <networkmanager-list gnome org>
- Subject: Re: How to save pin number and auto-connect on startup?
- Date: Thu, 21 Oct 2010 10:40:05 -0500
On Wed, 2010-09-15 at 09:08 +0200, Achim Weber wrote:
> Hi Dan
>
> >> can you please explain why the PIN is needed before dialling the connection.
> >> Which functionality needs the PIN?
> >
> > Many things:
> >
> > 1) registration status
> > 2) signal strength
> > 3) access technology status
> > 4) SMS
> > 5) location-based services
> > 6) IMEI/IMSI (often)
> >
> > On most "consumer" modems that I have in my possession (see [1]; some
> > are more functional than others) you are unable to do much of anything
> > beyond AT+GCAP or ATI before entering the PIN. All other commands
> > return ERROR. Most consumer modems have a "limited" AT command parser
> > that is used until the SIM is unlocked, at which point the full AT
> > command parser is available. Until the PIN is entered the modem is
> > effectively unusable.
>
> Ok.
>
> > Without entering the PIN before connecting, you have no indication if
> > the device has any signal, whether you're roaming, etc. So most of the
> > time you *do* want to unlock the device long before actually dialing up
> > the connection, if only to make sure you're not roaming so you don't get
> > charged $$$ the second you connect.
>
> Ok. I'm normally only in my home country (Germany) where you have no roaming
> between the available/local networks/providers. So you have only the chance to
> connect to *your* provider. Too (to my knowledge) here in germany there is no
> difference (by now/in the way you get charged) if you connect via GSM/UMTS or
> something different.
>
> When I need access to the internet, I try do dial, if I have a signal: fine
> (with high/fast signal: even better), if not: :-(
> Currently I only use the modem to dial/connect when I need to. I don't use SMS,
> GPS or anything else.
> Only 1/3 of the times I boot/resume, I want to use the modem/connect to the
> internet via ModemManager, but as my modem doesn't go to S3 atm, the dialog with
> PIN request is shown every boot/resume.
>
> > What I think we'll end up doing here is probably some combination of
> > "best effort" (ie, if we can get the IMSI we use that to identify the
> > SIM), maybe fall back to IMEI or USB IDs, and finally just have a
> > "Always ask me later" checkbox in the initial PIN dialog that suppresses
> > the initial dialog based on USB IDs or such.
> >
> > Dan
>
>
> So as you can see in my comments above, I only need to unlock the modem in the
> moment I want to connect via ModemManager (independent of signal strength,
> roaming, access technology). So if you would add those features like "Always ask
> me later" or "best effort" would be very cool and a big timesaver (at least for
> me) because there where no more annoying popups which asks for the PIN even I
> don't want to use the Modem.
I went through all my 3G cards yesterday morning and built up a
spreadsheet of what identifying information we can get before the PIN is
unlocked. Remember, the PIN is specific to the *SIM* itself, not to the
phone.
The result is that no modem allows access to the IMSI (the SIM's unique
ID) before the PIN is entered, which is expected, though unfortunate.
Most modems allow access to the IMEI of the card with the exception of
some ZTE, Ericsson, and Huawei devices.
With a combination of AT+GSN, ATI, AT+GMR, and AT+GMM, we should be able
to build up a "device identifier" in ModemManager that NM/nm-applet can
use to save the PIN, retrieve the PIN using that ID, and automatically
unlock the device when it's plugged in.
The downside of this is that you'll need to re-enter your PIN if you
move the SIM card between devices, or if you flash the firmware of your
device. But I think that's rare enough that it's acceptable. Does that
sound like an acceptable approach?
If anyone has a bit of time to help with implementing this, I'd
appreciate that, as it would make the process go faster :)
Thanks!
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]