From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: bug reactivating primary context?
Date: Tue, 26 May 2015 11:21:36 -0500 [thread overview]
Message-ID: <55649D90.80603@gmail.com> (raw)
In-Reply-To: <CANPyyuM9YBrrGuTM9FS9ZKgNqUJ6tXvS5RADYstUsoXCFW+ZyA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]
Hi Mike,
On 05/26/2015 10:38 AM, Mike Williams wrote:
> All,
>
> Using connman/ofono to connect to a cellular network, the first time
> activating the GPRS context works. After deactivation, the next
> activation fails with an unknown error. I believe this is related to
> this issue:
> https://lists.01.org/pipermail/ofono/2015-May/015745.html
>
> Looking through the code, it looks like at_gprs_activate_primary() fails at:
>
> if (g_at_chat_send(gcd->chat, buf, none_prefix,
> at_cgdcont_cb, gc, NULL) > 0)
> return;
>
> g_at_chat_send() is returning NULL from at_chat_send_common() because
> the chat command_queue is NULL.
That generally happens because the underlying AT command port for the
GAtChat has been closed (most likely due to a serial line hangup).
What modem are you using? Some manufacturers' modems are known to have
this issue: whenever the PPP connection is dropped, the AT command port
is closed by the modem. Issuing AT&C0 should disable this behavior, but
some modems do not honor that command.
Regards,
-Denis
next prev parent reply other threads:[~2015-05-26 16:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-26 15:38 bug reactivating primary context? Mike Williams
2015-05-26 16:20 ` Alex J Lennon
2015-05-27 16:58 ` Mike Williams
2015-05-27 17:02 ` Alex J Lennon
2015-05-26 16:21 ` Denis Kenzior [this message]
2015-05-27 16:52 ` Mike Williams
2015-05-27 17:14 ` Denis Kenzior
2015-05-27 18:52 ` Mike Williams
2015-05-27 20:35 ` Denis Kenzior
2015-05-27 17:07 ` Alex J Lennon
2015-05-27 17:16 ` 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=55649D90.80603@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