From: Marko Sulejic <marko.sulejic@hale.at>
To: ofono@ofono.org
Subject: Re: HE910 + ofono: "Activating context failed with error: Unknown error type"
Date: Mon, 29 Jun 2015 15:33:12 +0200 [thread overview]
Message-ID: <55914918.80109@hale.at> (raw)
In-Reply-To: <CAH4ZQwuimaHq1-FXu-NQCj5tGiuwEg1aSXQzPN_Q7bZ6bLRXzQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 6641 bytes --]
Hi Enrico!
Am 2015-06-29 um 14:59 schrieb Enrico Sau:
> Hi Marko,
> I had a similar problem with HE910 and I solved with the following
> code line immediatly after line 99 in he910.c plugin:
>
> 99| g_hash_table_insert(options, "Baud", "115200");
> 100| *g_hash_table_insert(options, "Local", "on");*
>
> Let me know if it helps.
>
>
> Enrico
>
Thanks for the answer, but unfortunately it didn't help me.
I figured out that the *at_cgdcont_cb() *callback is not called on
reconnect:
_The correct log_ (on startup):
Jun 29 15:16:38 mx31tt01 daemon.warn connmand[561]: Skipping disconnect
of /he910_0/context15, network is connecting.
Jun 29 15:16:38 mx31tt01 daemon.debug ofonod[657]:
gprs-context.c(240):at_gprs_activate_primary() cid 1
Jun 29 15:16:38 mx31tt01 daemon.info ofonod[657]: Modem: >
AT+CGDCONT=1,"IP","web.one.at"\r
Jun 29 15:16:38 mx31tt01 daemon.info ofonod[657]: Modem: <
AT+CGDCONT=1,"IP","web.one.at"\r
Jun 29 15:16:38 mx31tt01 daemon.info ofonod[657]: Modem: < \r\nOK\r\n
Jun 29 15:16:38 mx31tt01 daemon.debug ofonod[657]:
gprs-context.c(200):*at_cgdcont_cb()* ok 1
Jun 29 15:16:38 mx31tt01 daemon.info ofonod[657]: Modem: >
AT+CGDATA="PPP",1\r
Jun 29 15:16:38 mx31tt01 daemon.info ofonod[657]: Modem: <
AT+CGDATA="PPP",1\r
Jun 29 15:16:38 mx31tt01 daemon.info ofonod[657]: Modem: < \r\nCONNECT\r\n
Jun 29 15:16:38 mx31tt01 daemon.debug ofonod[657]:
gprs-context.c(176):*at_cgdata_cb()* ok 1
Jun 29 15:16:38 mx31tt01 daemon.debug ofonod[657]:
gprs-context.c(141):setup_ppp()
_And the fail log _(on reconnect):
Jun 29 15:19:34 mx31tt01 daemon.debug ofonod[657]:
gprs-context.c(240):at_gprs_activate_primary() cid 1
Jun 29 15:19:34 mx31tt01 daemon.info ofonod[657]: Modem: >
AT+CGDCONT=1,"IP","web.one.at"\r
...
Jun 29 15:20:14 mx31tt01 daemon.err connmand[561]: Failed to change
property: /he910_0/context15 org.ofono.ConnectionContext.Active:
org.freedesktop.DBus.Error.NoReply Did not receive a reply. Possible
causes include: the remote application did not send a reply, the mess
Jun 29 15:21:25 mx31tt01 daemon.warn connmand[561]: Skipping disconnect
of /he910_0/context15, network is connecting.
Jun 29 15:21:25 mx31tt01 daemon.err connmand[561]: Failed to change
property: /he910_0/context15 org.ofono.ConnectionContext.Active:
org.ofono.Error.InProgress Operation already in progress
Any idea what could cause this?
Regards,
Marko
>
> 2015-06-29 13:16 GMT+02:00 Marko Sulejic <marko.sulejic@hale.at
> <mailto:marko.sulejic@hale.at>>:
>
>
> Am 2015-06-25 um 15:05 schrieb Marko Sulejic:
>
> Hi again,
>
> the problem seems to be in the
> atmodem/gprs-context.c : gprs_activate_primary
> function, where
>
> if (g_at_chat_send(gcd->chat, buf, none_prefix,
> at_cgdcont_cb, gc, NULL) > 0)
>
> is called after a reconnect, and then it fails.
>
>
> It seems to work if I call
>
> g_at_chat_send(gcd->chat, "AT&C0", none_prefix,
> NULL, NULL, NULL)
>
> prior.
>
> So this would mean that a disconnect or similar action sets
> DCD to low,
> and the chats are closed.
>
> Does oFono anywhere in the code sets DCD explicitely to low or
> is it maybe a bug?
>
> My patch would look something like this (if it is an HE910
> issue only):
>
> if (gcd->vendor == OFONO_VENDOR_TELIT)
> {
> if(g_at_chat_send(gcd->chat, "AT&C0", none_prefix,
> NULL, NULL, NULL) <= 0)
> goto error;
> }
>
>
> Thanks,
> Marko
>
>
> Am 2015-06-25 um 11:15 schrieb Marko Sulejic:
>
> Hi,
>
> I need your help in using a Telit HE910 with ofono (and
> eventually connman).
> (I am using ofono 1.16 with HE910 firmware version
> 12.00.006; connman version is 1.29).
>
> My problem is the following ...
> on startup everything works fine and the ppp0 connection
> is established,
> but problems occur in the following case:
>
> connmanctl> disconnect cellular_*_context15
> Disconnected cellular_*_context15
>
> connmanctl> connect cellular_*_context15
> Error /net/connman/service/cellular_*_context15:
> Input/output error
>
>
> ofonod[5355]:
> gprs-context.c(244):at_gprs_activate_primary() cid 1
> ofonod[5355]: gprs.c(889):pri_activate_callback() 0x1a18c50
> ofonod[5355]: gprs.c(893):pri_activate_callback()
> Activating context failed with error: Unknown error type
> connmand[3815]: Failed to change property:
> /he910_0/context15 org.ofono.ConnectionContext.Active:
> org.ofono.Error.Failed Operation failed
>
>
> The same error happens if I am manually sending
> connect/disconnect via dbus-send.
>
> Only a hard ofono restart can establish the connection again.
> This behavior happens all the time once a ppp0 disconnect
> happened
> (e.g. by removing the SIM; manual disconnect via dbus or
> connmanctl).
>
> A subquestion regarding connman:
> Can connmand be configured in such a way that on every
> connection
> loss, ofono is triggered to reconnect to the Internet?
>
> Thank you very muchin advance,
> Marko
> _______________________________________________
> ofono mailing list
> ofono(a)ofono.org <mailto:ofono@ofono.org>
> https://lists.ofono.org/mailman/listinfo/ofono
>
>
> _______________________________________________
> ofono mailing list
> ofono(a)ofono.org <mailto:ofono@ofono.org>
> https://lists.ofono.org/mailman/listinfo/ofono
>
>
>
> Hi,
>
> ok, the above code doesn't seem to solve the problem.
>
> Regards,
>
> Marko
>
>
>
>
>
> _______________________________________________
> ofono mailing list
> ofono(a)ofono.org <mailto:ofono@ofono.org>
> https://lists.ofono.org/mailman/listinfo/ofono
>
>
>
>
> _______________________________________________
> ofono mailing list
> ofono(a)ofono.org
> https://lists.ofono.org/mailman/listinfo/ofono
[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 11850 bytes --]
next prev parent reply other threads:[~2015-06-29 13:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-25 9:15 HE910 + ofono: "Activating context failed with error: Unknown error type" Marko Sulejic
2015-06-25 13:05 ` Marko Sulejic
2015-06-29 11:16 ` Marko Sulejic
2015-06-29 12:59 ` Enrico Sau
2015-06-29 13:33 ` Marko Sulejic [this message]
2015-06-26 2:20 ` Denis Kenzior
2015-06-30 5:54 ` Marko Sulejic
2015-06-30 11:31 ` Marko Sulejic
2015-06-26 23:01 ` Denis Kenzior
2015-06-30 15:16 ` Enrico Sau
2015-07-01 7:14 ` Marko Sulejic
2015-07-01 7:11 ` Marko Sulejic
2015-07-01 0:44 ` 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=55914918.80109@hale.at \
--to=marko.sulejic@hale.at \
--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