All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Alcatel Onetouch X515 support
Date: Thu, 08 Nov 2012 11:29:13 -0600	[thread overview]
Message-ID: <509BEBE9.4070908@gmail.com> (raw)
In-Reply-To: <CABvLYuBU9h+RJuutiFf3EYaiydj2Rd2MQWKY0u2ZjhdOCGfaBg@mail.gmail.com>

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

Hi Cedric,

On 11/08/2012 10:43 AM, Cedric Jehasse wrote:
> Hi Denis,
>
>     The SIM busy stuff is tricky.  oFono reads lots of files from the
>     SIM before even checking CPIN.  So you need to check the CPIN SIM
>     busy condition before signaling that the SIM is inserted.  As I
>     said, check how other Qualcomm based devices are doing this.  E.g.
>     Huawei, ZTE, etc.
>
>
> I've checked this, and i think we're talking about different things.
>  From what i understand you're talking about the sim being busy at early
> sim initialization (after enabling the modem it must wait for the sim to
> be ready before notifying the core a sim is inserted).
> I'm talking about the sim being busy right after entering the pin. The
> sim is initialized, and "AT+CPIN?" returns " +CPIN: SIM PIN". Then i
> enter the pin with AT+CPIN="xxxx". Right after this the pin is checked
> with "AT+CPIN?" and now it returns "+CME ERROR: 14".

Ah, I see now.  Yes you are correct.

>
> In at_pin_send_cb i see that for ZTE the state is polled with
>   at_util_sim_state_query_new, i think this also must be done for
> Alcatel. And for huawei this should probably look at ^SIMST.

Yes, the intent is for the gory details to be taken care of by the sim 
atom driver.  Most 'real' phone modems provide an unsolicited 
notification for this.  If the hardware does not provide such a 
notification then you have to poll.  If you can make Huawei work with 
^SIMST, that would be great as well.  It should work similarly to the 
IFX XSIM or the MBM EPEV notification.

Regards,
-Denis

      reply	other threads:[~2012-11-08 17:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-08 10:12 Alcatel Onetouch X515 support Cedric Jehasse
2012-11-08 14:16 ` Denis Kenzior
2012-11-08 15:02   ` Cedric Jehasse
2012-11-08 15:10     ` Denis Kenzior
2012-11-08 15:29       ` Cedric Jehasse
2012-11-08 15:43         ` Denis Kenzior
2012-11-08 16:43           ` Cedric Jehasse
2012-11-08 17:29             ` Denis Kenzior [this message]

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=509BEBE9.4070908@gmail.com \
    --to=denkenz@gmail.com \
    --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.