Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Huawei E176 - not online
Date: Sun, 18 Jul 2010 20:42:28 -0500	[thread overview]
Message-ID: <4C43AD84.8000207@gmail.com> (raw)
In-Reply-To: <20100718201936.GA29262@h02.hostsharing.net>

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

Hi Florian,

<snip>

> The SIM is present, but still PIN code blocked.
> The notify_sim_state function needs be changed.
> 
> pseudo code:
>  If sim_state == 0 then 
>    if 'AT+CPIN?' returns 'CPIN: SIM PIN' then
>      sim_state = 'present but sim locked'
>    else
>      sim_state = 'invalid SIM'
>    endif
>  else if sim_state == 255 then
>    sim_state = 'SIM not present'
>  endif
> 

I keep forgetting about modems behaving differently with PIN code set.
You are of course correct.  The mbm driver does something very similar
for PIN / SIM inserted logic.  Might be a good template to follow.

Regards,
-Denis

  parent reply	other threads:[~2010-07-19  1:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-18 11:04 Huawei E176 - not online Florian Steinel
2010-07-18 14:55 ` Denis Kenzior
2010-07-18 20:19   ` Florian Steinel
2010-07-18 22:09     ` [PATCH 1/1] (RFC) Huawei: Modify ^SYSINFO logic Florian Steinel
2010-07-18 22:59       ` Marcel Holtmann
2010-07-19  1:42     ` Denis Kenzior [this message]
2010-07-21  8:56 ` Huawei E176 - not online Kalle Valo
2010-07-21  9:06   ` Kalle Valo

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=4C43AD84.8000207@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox