All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
To: ofono@ofono.org
Subject: Re: bug reactivating primary context?
Date: Wed, 27 May 2015 19:07:17 +0200	[thread overview]
Message-ID: <5565F9C5.2070607@dynamicdevices.co.uk> (raw)
In-Reply-To: <55649D90.80603@gmail.com>

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

Hi Denis,

On 26/05/2015 18:21, Denis Kenzior wrote:
> 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. 

I'd like just to verify that this isn't an issue for Cinterion devices /
plugin.  Is it fair to assume that if there is an issue with context
activation and deactivation then I would not have a ppp0 interface
brought up after running the context deactivation and activation test
scripts?

[ all working - connected on ppp0 ]
/usr/lib/ofono/test/deactivate-context
/usr/lib/ofono/test/activate-context
[ all working - connected on ppp0 ]

That all seems OK here on Cinterion EHS6.

Thanks,

Alex


  parent reply	other threads:[~2015-05-27 17:07 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
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 [this message]
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=5565F9C5.2070607@dynamicdevices.co.uk \
    --to=ajlennon@dynamicdevices.co.uk \
    --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.