From: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
To: ofono@ofono.org
Subject: Re: bug reactivating primary context?
Date: Tue, 26 May 2015 18:20:57 +0200 [thread overview]
Message-ID: <55649D69.40904@dynamicdevices.co.uk> (raw)
In-Reply-To: <CANPyyuM9YBrrGuTM9FS9ZKgNqUJ6tXvS5RADYstUsoXCFW+ZyA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 4185 bytes --]
Hi Mike,
On 26/05/2015 17:38, 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.
>
> See ofono debug trace below with OFONO_PPP_DEBUG and OFONO_AT_DEBUG enabled:
>
> ofonod[1366]: PPP: gatchat/gatppp.c:ppp_enter_phase() 4
> ofonod[1366]: drivers/atmodem/gprs-context.c:ppp_connect()
> ofonod[1366]: IP: 21.186.242.106
> ofonod[1366]: DNS: 10.177.0.34, 10.168.187.116
> ofonod[1366]: src/gprs.c:pri_activate_callback() 0xcd5b0
> ofonod[1366]: plugins/udev.c:udev_event() subsystem net add
> ofonod[1366]: plugins/udev.c:udev_event() subsystem net finished
> ofonod[1366]: PCUI: < \r\n^MODE: 5,7\r\n
> ofonod[1366]: plugins/udevng.c:check_modem_list()
> ofonod[1366]: PCUI: <
> \r\n^DSFLOWRPT:00000002,000000BB,00000041,0000000000000177,0000000000000082,0010E000,001F4000\r\n
> ofonod[1366]: drivers/atmodem/gprs-context.c:at_gprs_deactivate_primary() cid 1
> ofonod[1366]: PPP: lcp: pppcp_generate_event: current state 9:OPENED
> ofonod[1366]: PPP: event: 3 (Close), action: 8224, new_state: 4 (CLOSING)
> ofonod[1366]: PPP: lcp: pppcp_initialize_restart_count: current state 9:OPENED
> ofonod[1366]: PPP: lcp: pppcp_send_terminate_request: current state 9:OPENED
> ofonod[1366]: PPP: ipcp: pppcp_generate_event: current state 9:OPENED
> ofonod[1366]: PPP: event: 1 (Down), action: 201, new_state: 1 (STARTING)
> ofonod[1366]: PPP: gatchat/gatppp.c:ppp_enter_phase() 5
> ofonod[1366]: plugins/udevng.c:remove_device() /sys/devices/virtual/net/ppp0
> ofonod[1366]: plugins/udev.c:udev_event() subsystem net remove
> ofonod[1366]: plugins/udev.c:remove_modem() /devices/virtual/net/ppp0
> ofonod[1366]: plugins/udev.c:udev_event() subsystem net finished
> ofonod[1366]: PPP: lcp: pppcp_process_terminate_ack: current state 4:CLOSING
> ofonod[1366]: PPP: lcp: pppcp_generate_event: current state 4:CLOSING
> ofonod[1366]: PPP: event: 11 (RTA), action: 802, new_state: 2 (CLOSED)
> ofonod[1366]: PPP: lcp: pppcp_this_layer_finished: current state 2:CLOSED
> ofonod[1366]: PPP: gatchat/gatppp.c:ppp_enter_phase() 0
> ofonod[1366]: PCUI: < \r\n^MODE: 5,4\r\n
> ofonod[1366]: PPP: gatchat/gatppp.c:ppp_dead()
> ofonod[1366]: drivers/atmodem/gprs-context.c:ppp_disconnect() Reason: 6
> ofonod[1366]: drivers/atmodem/gprs-context.c:at_gprs_activate_primary() cid 1
> ofonod[1366]: src/gprs.c:pri_activate_callback() 0xcd5b0
> ofonod[1366]: src/gprs.c:pri_activate_callback() Activating context
> failed with error: Unknown error type
> ofonod[1366]: PCUI: < \r\n^RSSI: 3\r\n
> ofonod[1366]: src/network.c:ofono_netreg_strength_notify() strength 9
>
>
> I have a test script that can reproduce this issue 100%. If necessary,
> I can send it along.
>
> This is using ofono 1.16 and connman 1.29 on a custom embedded system
> generated by buildroot. I have three small patches applied, one for
> ofono I got from the mailing list to support the e173, another for
> ofono to allow duplicate APNs, and a third for connman to allow
> autoconnecting cellular modems by specifying 'cellular' in
> DefaultAutoConnectTechnologies. Unfortunately, I need all three to
> enable my setup so I cannot test a pure source release.
I too am having to make use of a patch to allow duplicate APNs - such a
thing would be useful in the source, as otherwise I can't auto-provision
various SIMs using the vanilla serviceproviders.xml
Would you mind sharing the auto connection patch for cellular as we have
been wondering here why configuring autoconnection didn't seem to make
any difference?
Thanks / Best Regards, Alex
next prev parent reply other threads:[~2015-05-26 16:20 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 [this message]
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
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=55649D69.40904@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.