From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: no connection after ofono restart while huawei modem connected
Date: Thu, 19 Jul 2018 11:20:31 -0500 [thread overview]
Message-ID: <fb1bd594-a374-08a9-eae4-db3db745f35e@gmail.com> (raw)
In-Reply-To: <faf6cc59-d31b-54a1-9e51-fa9a97980847@kerlink.fr>
[-- Attachment #1: Type: text/plain, Size: 1466 bytes --]
Hi Christophe,
>> The best course of action would be to have modem.disable() issue a
>> CFUN=0 equivalent that resets everything properly. If that's not
>> possible, then a solution along the lines of what you propose is
>> needed. E.g. sending a '+++' in at_gprs_context_remove if the state
>> isn't IDLE.
> I don't have a document describing AT command supported by MS2372. I use
> a document describing AT command supported by another Huawei modem. I
> didn't find any better command than AT+CFUN=0 to try to put back PPP
> channel in command mode.
Sometimes these modules take an extra reset parameter after the CFUN.
E.g. AT+CFUN=0,1 to reset the module completely. Not sure if this has
other implications. Possibly we can issue a AT+CFUN=1,1 or AT+CFUN=4,1
on .enable() that might fix this as well.
> I had a look at g_at_ppp_suspend and you are right, there is a guard
> timeout before sending '+++'. That's why it won't solve my problem.
> Ofono will die before this command is really sent.
> So I don't have any better idea than patch I already sent? Should I send
> a proper patch series with similar content?
That's the issue, the guard timeout is supposed to be used after all
activity has been stopped and only then should '+++' be sent. So it
might be a good idea to put this behind a VENDOR guarded if-statement
and issue the '+++' directly to the GAtIO without involving GAtPPP at all.
Regards,
-Denis
next prev parent reply other threads:[~2018-07-19 16:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-13 7:47 no connection after ofono restart while huawei modem connected Christophe Ronco
2018-07-13 16:09 ` Denis Kenzior
2018-07-19 10:40 ` Christophe Ronco
2018-07-19 16:20 ` Denis Kenzior [this message]
2018-07-25 13:43 ` Christophe Ronco
2018-07-25 13:45 ` [PATCH 1/2] atmodem: Add gprs-context quirk for HUAWEI vendor Christophe Ronco
2018-07-25 13:45 ` [PATCH 2/2] huawei: use VENDOR_HUAWEI quirk on gprs context creation Christophe Ronco
2018-07-25 19:12 ` [PATCH 1/2] atmodem: Add gprs-context quirk for HUAWEI vendor 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=fb1bd594-a374-08a9-eae4-db3db745f35e@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