All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Ofono with Sagem Hilo GPRS
Date: Tue, 01 Jun 2010 16:17:30 -0500	[thread overview]
Message-ID: <201006011617.30618.denkenz@gmail.com> (raw)
In-Reply-To: <AANLkTikGb7A1owSRix_siZnFOvAiFYisw6pm5ujwJdF7@mail.gmail.com>

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

Hi Andrew,

> Hi,
> 
> On 1 June 2010 21:11, Denis Kenzior <denkenz@gmail.com> wrote:
> > Hi Yoann,
> >
> > <snip>
> >
> >> ofonod[3221]: src/modem.c:get_modem_property() modem 0x8142058 property
> >>  status-poll-interval ofonod[3221]: > AT+CSIM=8,A0F200C0\r
> >> ofonod[3221]: < AT+CSIM=8,A0F200C0\r\r\n+CME ERROR: 3\r\n
> >
> > The culprit was sim polling which performs CSIM pdus to detect a dead
> > SIM. Your modem doesn't seem to support CSIM command, so returns an error
> > and oFono foolishly thinks the SIM has been removed.
> 
> Not if the +CME ERROR is sent withing 5 seconds.  Only if there is a 5
> second or longer lag between the AT+CSIM=... and the response (success
> or error), it decides the card is dead.

Thanks for the correction.  I was hitting a slightly different issue with HSO 
modem and atgen that was also resulting in sim removal.

Looking at the logs again, it seems that this response causes the poll to 
signal sim removal:

ofonod[3253]: > AT+CRSM=192,28618\r
ofonod[3253]: < A
ofonod[3253]: < T+CRSM=192,28618\r
ofonod[3253]: < \000
ofonod[3253]: src/message-waiting.c:mw_remove() atom: 0x9ac6c00
ofonod[3253]: src/phonebook.c:phonebook_remove() atom: 0x9ac6a98
ofonod[3253]: src/sms.c:sms_remove() atom: 0x9ac69c0
ofonod[3253]: src/ssn.c:ssn_remove() atom: 0x9ac68f0
ofonod[3253]: src/call-barring.c:call_barring_remove() atom: 0x9ac6880
ofonod[3253]: src/call-meter.c:call_meter_remove() atom: 0x9ac6780
ofonod[3253]: src/network.c:netreg_remove() atom: 0x9ac62e8
ofonod[3253]: src/call-settings.c:call_settings_remove() atom: 0x9ac64f8
ofonod[3253]: src/call-forwarding.c:call_forwarding_remove() atom: 0x9ac6418
ofonod[3253]: src/ussd.c:ussd_remove() atom: 0x9ac4e70
ofonod[3253]: src/modem.c:set_modem_property() modem 0x9ac4058 property 
status-poll-interval
ofonod[3253]: src/modem.c:unregister_property() property 0x9ac49d8

Seems we try to read EFmwis and get back a '\0' as a response.  This probably 
stalls the gatchat queue and causes the sim poll timeout to fire.  Or is there 
something else going on I'm not seeing?

There is another issue:
When we send the CPIN to unlock the PIN, the modem actually takes some time to 
initialize the SIM and our CIMI request fails.  This means that we don't 
proceed with the initialization procedure.  Disabling / Enabling the modem 
skips the PIN entry and we initialize properly.

This modem's firmware is wonderful :)

Regards,
-Denis

  reply	other threads:[~2010-06-01 21:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-01 14:46 Ofono with Sagem Hilo GPRS Bouteille Yoann
2010-06-01 19:11 ` Denis Kenzior
2010-06-01 20:34   ` andrzej zaborowski
2010-06-01 21:17     ` Denis Kenzior [this message]
2010-06-01 21:46       ` andrzej zaborowski
2010-06-01 22:13         ` Denis Kenzior
2010-06-01 22:23           ` andrzej zaborowski
2010-06-01 22:24             ` andrzej zaborowski

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=201006011617.30618.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 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.