Open Source Telephony
 help / color / mirror / Atom feed
From: Eric BOUXIROT <eric.bouxirot@azimut-monitoring.com>
To: ofono@ofono.org
Subject: Re: problem sim status
Date: Fri, 28 Mar 2014 18:27:08 +0100	[thread overview]
Message-ID: <lh4bcu$p02$1@ger.gmane.org> (raw)
In-Reply-To: <53348A7A.3040805@gmail.com>

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

Denis Kenzior a écrit :
> Hi Eric,
>
>> ok, i will add this, but if i understand well, this is for +CPIN request
>> AFTER sending a PIN. (but i mean my modem need this too.)
>> 
>> my problem is when modem is added throught dbus/ofono, ofono send somes
>> init commands and finaly i mean sim-manager send an +CPIN request to
>> know if SIM is locked or not... THIS request fail with CME error 14
>> because of too fast query.
>> 
>
> Ah, its one of those modems that doesn't have a sim ready notification.
>  In that case you probably need to run CPIN queries as part of the modem
> power-up procedure.  See examples in plugins/zte.c and plugins/speedup.c
> (cfun_enable & sim_state_cb)
>
> Regards,
> -Denis

hi Denis,

is it normal that pre_sim function is called before ofono get modem 
manufacturer and model ?

ofonod[406]: plugins/sierra.c:open_device() Modem /dev/ttyUSB2
ofonod[406]: Modem: > ATE0 &C0\r
ofonod[406]: Modem: < ATE0 &C0\r
ofonod[406]: Modem: < \r\nOK\r\n
ofonod[406]: Modem: > AT+CMEE=1\r
ofonod[406]: Modem: < \r\n+CREG: 2\r\n
ofonod[406]: Modem: < \r\n+CIEV: 2,1\r\n
ofonod[406]: Modem: < \r\n+CIEV: 4,1\r\n
ofonod[406]: Modem: < \r\nOK\r\n
ofonod[406]: Modem: > AT+CFUN=4\r
ofonod[406]: Modem: < \r\nOK\r\n
ofonod[406]: plugins/sierra.c:cfun_enable()
ofonod[406]: src/modem.c:get_modem_property() modem 0x12d290 property 
Model
ofonod[406]: src/modem.c:modem_change_state() old state: 0, new state: 
1
ofonod[406]: plugins/sierra.c:sierra_pre_sim() 0x12d290
ofonod[406]: src/modem.c:get_modem_property() modem 0x12d290 property 
Model
ofonod[406]: plugins/sierra.c:sierra_pre_sim()
ofonod[406]: Modem: > AT+GCAP\r
ofonod[406]: src/sim.c:ofono_sim_add_state_watch() 0x12e628
ofonod[406]: src/sim.c:ofono_sim_add_state_watch() 0x12e628
ofonod[406]: src/sim.c:ofono_sim_add_state_watch() 0x12e628
ofonod[406]: Modem: < \r\nERROR\r\n
ofonod[406]: Modem: > AT+CRSM=192,12258,0,0,255\r
ofonod[406]: Modem: < \r\n+CME ERROR: 3\r\n
ofonod[406]: Modem: > AT+CGMI\r
ofonod[406]: Modem: < \r\nSierra Wireless, Incorporated\r\n\r\nOK\r\n
ofonod[406]: Modem: > AT+CGMM\r
ofonod[406]: Modem: < \r\nSL8083\r\n\r\nOK\r\n
ofonod[406]: Modem: > AT+CGMR\r
ofonod[406]: Modem: < \r\nS4_0_0_7AP R1384 CNSZXD00000155 2012/09/29 
10:26:17\r\n\r\nOK\r\n
ofonod[406]: Modem: > AT+CGSN\r
ofonod[406]: Modem: < \r\n355131041136262\r\n\r\nOK\r\n
ofonod[406]: Modem: > AT+CRSM=192,28421,0,0,255\r
ofonod[406]: Modem: < \r\n+CIEV: 2,0\r\n\r\n+CIEV: 4,0\r\n\r\n+CREG: 
0\r\n\r\n+CME ERROR: 3\r\n
ofonod[406]: Modem: > AT+CRSM=192,12037,0,0,255\r
ofonod[406]: Modem: < \r\n+CME ERROR: 3\r\n
ofonod[406]: Modem: > AT+CPIN?\r
ofonod[406]: Modem: < \r\n+CME ERROR: 14\r\n
ofonod[406]: Querying PIN authentication state failed


i would like to get model in presim to make a better patch using modem 
model with a new enum in vendor list (like simcom)
how i can make pre_sim to wait for theses information available ?


  parent reply	other threads:[~2014-03-28 17:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-27 18:55 problem sim status Eric BOUXIROT
2014-03-27 20:05 ` Denis Kenzior
2014-03-27 20:21   ` Eric BOUXIROT
2014-03-27 20:30     ` Denis Kenzior
2014-03-27 21:34       ` Eric BOUXIROT
2014-03-27 22:14         ` Eric BOUXIROT
2014-03-28 17:27       ` Eric BOUXIROT [this message]
2014-03-28 17:31         ` Eric BOUXIROT
2014-03-28 20:54         ` Denis Kenzior
2014-03-29 13:35           ` Eric BOUXIROT
2014-03-31 15:30             ` Denis Kenzior

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='lh4bcu$p02$1@ger.gmane.org' \
    --to=eric.bouxirot@azimut-monitoring.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