All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: A way of polling SIM status
Date: Wed, 20 Oct 2010 23:43:27 +0200	[thread overview]
Message-ID: <1287611007.3316.160.camel@aeonflux> (raw)
In-Reply-To: <AANLkTi=hh06TUUFknSEtLTsv-YDQSHiFMQaJ4CT5=YXk@mail.gmail.com>

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

Hi Andrew,

> >> Unfortunately some modems report CPIN: READY even though they're not
> >> ready.  The only reliable way to poll for this is to poll the IMSI, then
> >> the phonebook and the sms store and report ready only once all of them
> >> can be manipulated.
> >
> > I seems to me that Caiwen is proposing SIM presence polling. Each and
> > every modem does it now separately. Unfortunately this seems to be
> > even trickier than PIN lock polling, at least MBM returns different
> > error codes depending on how far its own initialization has got.
> 
> My MBM seems to only detect the SIM if it is inserted during the modem
> enumeration (on USB or PCI).  If you there's no SIM during modem
> initialisation, or you extract the SIM, then inserting a new SIM is
> never detected, the modem will always return "SIM not inserted" until
> reset.

there is a MBM specific event for SIM insertion. Not sure if it works on
the F35xx, but it should be working on the F36xx and later.

Regards

Marcel



  reply	other threads:[~2010-10-20 21:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-19 10:41 A way of polling SIM status Zhang, Caiwen
2010-10-19 11:13 ` Marcel Holtmann
2010-10-19 18:28 ` Denis Kenzior
2010-10-20 13:21   ` Pekka Pessi
2010-10-20 21:36     ` andrzej zaborowski
2010-10-20 21:43       ` Marcel Holtmann [this message]
2010-10-20 22:42         ` Denis Kenzior
2010-10-21  2:39       ` Zhang, Caiwen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1287611007.3316.160.camel@aeonflux \
    --to=marcel@holtmann.org \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.