All of lore.kernel.org
 help / color / mirror / Atom feed
From: =?unknown-8bit?q?Beno=C3=AEt?= Monin <benoit.monin@gmx.fr>
To: ofono@ofono.org
Subject: What should happen after losing and retrieving gsm signal ?
Date: Tue, 07 Dec 2010 18:00:49 +0100	[thread overview]
Message-ID: <20101207170412.263820@gmx.com> (raw)

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

Hi,

I'm trying to re-establish a 3G connection after a gsm signal loss and
I'm getting some pretty strange results.

So first, some short and general questions : What should happen after
going off gsm coverage and back again ?
In particular, is ofono taking care of the network registration or
does it need a manual call org.ofono.NetworkRegistration.Register ?
Also, is ofono reactivating a previously activated context or does it
needs a manual call ?

I'm running my tests on the following platform :
    - Atom Z520 based.
    - 2 ethernet
    - 2 gsm modem: Option GTM382, usb ID 0af0:7601, firmware 2.9.4.0Hd
    - 1 wlan ath9k (unused for the tests)

Software side:
    - linux 2.6.35.9
    - connman 0.64
    - ofono 0.36
    - dbus 1.2.20

I'm using only one modem and I have a variable antenna attenuator to
simulate gsm signal loss/retrieval. The device is not moving and the
signal strength is around 60% without attenuation. The sim card used
is configured with a dedicated password authenticated APN connected
to our internal network through vpn. The context is created before
the first test. Then the sequence of my test is as follow:
    - power-up device
    - call activate_context (no antenna attenuation)
    - Set attenuator to the max (-60dB)
    - Set attenuator back to 0
    - call activate_context again

I'm getting some mixed results:
 * connman crash (sig11) when stopping attenuation
 or reactivating context:
    This is obviously a connman bug (will post backtrace to connman
    ml), but after connman is restarted, the modem service does not
    appear and I have to restart both connman and ofono. Is there a
    startup dependency between connman and ofono ?

 * Network Registration stays in registered state with
 strength = 0 :
    This happens with attenuation set to -60dB. I haven't been able
    to catch some debug traces with AT_DEBUG on. I've waited one hour
    and nothing else happened.

 * Network Registration stays in searching state with
 strength != 0 :
    This happens after setting attenuator back to 0dB. I also don't
    have debug traces for this case. After waiting 15 minutes, I
    called the method org.ofono.NetworkRegistration.Register and
    things went back to normal.

 * Calling activate_context exits with timeout :
    This is the most common case, debug trace below shows that the
    modem never sends the _OWANCALL callback. After waiting more than
    an hour, I restarted ofono and called activate_context, it worked.

(actual apn, username and password have been replaced)
2010-12-06_16:44:15.28570 user.notice: test: reactivate context
2010-12-06_16:44:15.36944 daemon.info: ofonod[1109]: Control: > AT$QCPDPP=1,1,"password","username"\r
2010-12-06_16:44:15.44620 daemon.info: ofonod[1109]: Control: < \r\nOK\r\n
2010-12-06_16:44:15.44636 daemon.info: ofonod[1109]: Control: > AT+CGDCONT=1,"IP","apn"\r
2010-12-06_16:44:15.45019 daemon.info: ofonod[1109]: App: < \r\n_OSIGQ: 14,0\r\n
2010-12-06_16:44:15.47923 daemon.info: ofonod[1109]: Control: < \r\nOK\r\n
2010-12-06_16:44:15.47938 daemon.info: ofonod[1109]: Control: > AT_OWANCALL=1,1,1\r
2010-12-06_16:44:15.48118 daemon.info: ofonod[1109]: Control: < \r\nOK\r\n
2010-12-06_16:44:24.42033 daemon.info: ofonod[1109]: App: < \r\n_OSIGQ: 16,0\r\n
2010-12-06_16:44:27.42032 daemon.info: ofonod[1109]: App: < \r\n_OSIGQ: 17,0\r\n
2010-12-06_16:44:33.42032 daemon.info: ofonod[1109]: App: < \r\n_OSIGQ: 16,0\r\n
2010-12-06_16:44:42.41933 daemon.info: ofonod[1109]: App: < \r\n_OSIGQ: 17,0\r\n
...

I can run some other tests and provide full logs if needed, Do you
think there is something wrong with the test I'm running ?
Might the modem be@fault ?

--
Thanks for reading so far,
Benoît.

             reply	other threads:[~2010-12-07 17:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-07 17:00 =?unknown-8bit?q?Beno=C3=AEt?= Monin [this message]
2010-12-07 17:09 ` What should happen after losing and retrieving gsm signal ? =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont

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=20101207170412.263820@gmx.com \
    --to=benoit.monin@gmx.fr \
    --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.