From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Unable to get network interface working
Date: Fri, 03 Oct 2014 09:28:18 -0500 [thread overview]
Message-ID: <542EB282.2060007@gmail.com> (raw)
In-Reply-To: <CAH4ZQwtdtSyR_Fy8R_dEd-PgGpK+uF+7spUxssF_EcnrMh_fLQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1662 bytes --]
Hi Enrico,
On 10/03/2014 07:40 AM, Enrico Sau wrote:
> Hi Denis, hi all,
>
> I finally got the network interface working by uninstalling the network
> manager and manually setting the ppp0 interface with parameters
> retrieved from the modem.
>
good
> I have another problem:
> I start the network interface with activate-context python script, and
> stop with deactivate-context script.
> Once I call deactivate-context, I'm no more able to activate it because
> ppp disconnect function calls io_disconnect method, which clears the at
> channel.
> The only way to resume the ppp connection is to disable and re-enable
> the modem in order fot the at channel structures to be filled in again.
>
This is a known issue on some hardware, or may be an issue with the
modem driver for the hardware you are using. First some background:
Whenever PPP is disconnected, there are several ways to indicate a hangup:
1. Send an escape sequence to AT mode, followed by 'NO CARRIER'
2. Send a low level serial line hang-up
Many modems do both, which results in the tty port being 'closed'. This
is why you see the ppp_disconnect being triggered.
oFono understands escape sequences, so #1 is sufficient. On most
hardware we can send AT&C0 to disable #2, but some hardware still
ignores that.
Hardware that uses a high-speed interface (most anything released in the
last few years) doesn't suffer from this issue.
> Is there any reason for that? Is deactivate-context the correct way to
> temporary stop the network?
>
Yes, that is the correct way, assuming your hardware is well behaved.
Regards,
-Denis
next prev parent reply other threads:[~2014-10-03 14:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-25 14:25 Unable to get network interface working Enrico Sau
2014-09-25 14:23 ` Denis Kenzior
2014-09-25 14:58 ` Enrico Sau
2014-09-25 15:07 ` Denis Kenzior
2014-09-25 15:20 ` Enrico Sau
2014-10-03 12:40 ` Enrico Sau
2014-10-03 14:28 ` Denis Kenzior [this message]
2014-10-08 14:50 ` Enrico Sau
2014-10-08 15:18 ` 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=542EB282.2060007@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 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.