From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Re-activating a context.
Date: Thu, 12 Jul 2012 15:49:28 -0500 [thread overview]
Message-ID: <4FFF3858.8000605@gmail.com> (raw)
In-Reply-To: <4FFEE449.7080902@hale.at>
[-- Attachment #1: Type: text/plain, Size: 1768 bytes --]
Hi Christopher,
On 07/12/2012 09:50 AM, Christopher Vogl wrote:
> Hello,
>
> I am trying to simulate a connection loss and after a valid ppp
> connection I disconnect the antenna to get detached from GPRS.
> After reconnecting the antenna everything seems to work fine just until
> activating the context.
>
> Ofono seems to get stuck in
> drivers/atmodem/gprs-context.c:at_gprs_activate_primary() and
> AT+CGDCONT=1 is missing on the debug output.
> When I retry to activate the context after some minutes with a dbus-send
> call, I receive an operation in progress error.
>
> Below I have attached ofono's debug output and dbus-send calls for
> important interfaces
> - before removing the antenna
> - after removing the antenna
> - after reconnecting the antenna
>
> Modem in use: Telit UC864-G
>
> connMan in the debug output is my own simple connection manger. I am not
> sure if I missed to set some ofono state or if there is a known issue.
> I really would appreciate a hint in this case.
>
To me it looks like your PPP connection has not been dropped when the
antenna has been removed. Today oFono assumes that the PPP connection
will be dropped by the modem in this case, and your modem does not do
this. This leads to problems because the AT channel on which the PPP
connection is being run can not accept additional commands. This is why
you're not seeing the CGDCONT.
A while ago Guillaume posted a patch to fix this problem (we saw this
with Huawei PPP based devices). The patch looked good to me but needed
further testing (e.g. for regressions). Can you dig the mailing
archives and test that patch?
Or maybe Guillaume will be nice enough to repost it to the mailing list.
Regards,
-Denis
next prev parent reply other threads:[~2012-07-12 20:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-12 14:50 Re-activating a context Christopher Vogl
2012-07-12 20:49 ` Denis Kenzior [this message]
2012-07-13 10:12 ` Christopher Vogl
2012-07-13 13:39 ` Guillaume Zajac
2012-07-16 12:31 ` Christopher Vogl
2012-08-29 18:40 ` Chrisopher Vogl
2012-08-29 23:56 ` 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=4FFF3858.8000605@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.