Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: commit "Fix Use hashtable to record udev path" breaks huawei
Date: Wed, 19 May 2010 08:55:13 -0500	[thread overview]
Message-ID: <201005190855.13792.denkenz@gmail.com> (raw)
In-Reply-To: <87iq6j7w5j.fsf@potku.valot.fi>

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

Hi Kalle,

> Sorry, I was too hasty. The patch is fine, I was just testing
> inproperly. After a bit more testing I found out that problem always
> happens when I plugin the usb modem:
> 
> May 19 17:20:09 tukki connmand[30925]: plugins/ofono.c:modem_changed() path
>  /huawei1 May 19 17:20:10 tukki ofonod[672]: < ATE0\r\r\nOK\r\n
> May 19 17:20:10 tukki ofonod[672]: > AT+CFUN=1\r
> May 19 17:20:10 tukki ofonod[672]: < \r\nOK\r\n
> May 19 17:20:10 tukki ofonod[672]: plugins/huawei.c:cfun_enable()
> May 19 17:20:10 tukki ofonod[672]: > AT+CRC=1\r
> May 19 17:20:10 tukki ofonod[672]: < \r\n+CME ERROR: SIM busy\r\n
> May 19 17:20:10 tukki ofonod[672]: > AT+CLIP=1\r
> May 19 17:20:10 tukki ofonod[672]: < \r\n+CME ERROR: SIM busy\r\n
> May 19 17:20:10 tukki ofonod[672]: > AT+COLP=1\r
> May 19 17:20:10 tukki ofonod[672]: < \r\n+CME ERROR: SIM busy\r\n
> May 19 17:20:10 tukki ofonod[672]: > AT+CCWA=1\r
> May 19 17:20:10 tukki ofonod[672]: < \r\n+CME ERROR: SIM busy\r\n
> May 19 17:20:10 tukki ofonod[672]:
>  drivers/atmodem/voicecall.c:at_voicecall_initialized() voicecall_init:
>  registering to notifications May 19 17:20:10 tukki ofonod[672]:
>  src/sim.c:ofono_sim_add_state_watch() 0x132bcd0 May 19 17:20:10 tukki
>  ofonod[672]: * < \r\n^STIN:0,0,0\r\n
> May 19 17:20:10 tukki ofonod[672]: > AT+CGMI\r
> May 19 17:20:10 tukki connmand[30925]: plugins/ofono.c:modem_changed() path
>  /huawei1 May 19 17:20:10 tukki ofonod[672]: < \r\nhuawei\r\n\r\nOK\r\n
> May 19 17:20:10 tukki ofonod[672]: > AT+CRSM=176,28590,0,0,1\r
> May 19 17:20:10 tukki connmand[30925]: plugins/ofono.c:modem_changed() path
>  /huawei1 May 19 17:20:10 tukki ofonod[672]: < \r\n+CME ERROR: SIM busy\r\n
> May 19 17:20:10 tukki ofonod[672]: > AT+CLCC\r
> May 19 17:20:10 tukki ofonod[672]: < \r\n+CME ERROR: SIM busy\r\n
> May 19 17:20:10 tukki ofonod[672]: > AT+CRSM=192,28599\r
> May 19 17:20:10 tukki ofonod[672]: < \r\n+CME ERROR: SIM busy\r\n
> May 19 17:20:10 tukki ofonod[672]: src/voicecall.c:ecc_g2_read_cb() 0
> May 19 17:20:10 tukki ofonod[672]: > AT+CGMM\r
> May 19 17:20:10 tukki ofonod[672]: < \r\nE1552\r\n\r\nOK\r\n
> 
> But if I start ofono while the usb modem is plugged in it works fine.
> Also modem disable and then enable workarounds it. Oh well.
> 

Sounds like the SIM needs some time to be initialized.  Perhaps a Huawei 
specific command might be required to figure out when the SIM is actually ready.  
Try listening to ^SIMST or simply re-trying a particular command until you 
don't get SIM busy error.

Regards,
-Denis

  reply	other threads:[~2010-05-19 13:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-19 13:19 commit "Fix Use hashtable to record udev path" breaks huawei Kalle Valo
2010-05-19 15:23 ` Kalle Valo
2010-05-19 13:55   ` Denis Kenzior [this message]
2010-05-20  1:18   ` Zhang, Zhenhua
2010-05-20  5:13     ` 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=201005190855.13792.denkenz@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