Linux PPP protocol development
 help / color / mirror / Atom feed
From: James Carlson <carlsonj@workingcode.com>
To: linux-ppp@vger.kernel.org
Subject: Re: switching to command mode when using a PPPD with a gprs modem
Date: Tue, 18 Nov 2008 16:53:45 +0000	[thread overview]
Message-ID: <18722.62233.16576.905016@gargle.gargle.HOWL> (raw)

Paul De La Rosa writes:
> Is there a way with pppd to send the '+++' command to temporarily switch
> out of data mode into command mode. I'm using a Siemens tc63 module and
> I need to check signal strength every now and then but I was trying to
> avoid bringing down the whole ppp0 interface to do that check. I tried
> spawning pppd as a child process using the same file descriptor as the
> parent so the parent could send the mode switch and signal strength
> commands but it seems that pppd is reading the data that is returned
> before the parent got it.

This is something that's been discussed a few times.  In order to do
it "right," you'd need to modify the PPP kernel driver to do this
work, so that you don't accidentally stomp too much on packets in
flight.

A slightly better way to do this (rather than the Hayes TIES signal)
is to use the enter-command-mode-on-DTR-drop configuration for the
modem, and then use that to switch back and forth reliably between
data and command mode.  It still requires driver involvement, and it
also requires explicitly doing ATH to hang up (rather than just
closing the device), but it's much more reliable.

Better still is to get a commercial-grade modem that has a separate
performance monitoring interface.  That's what we ended up doing when
I was at Bay Networks; all of the other in-band methods of signaling
are mere hackery in comparison.

-- 
James Carlson         42.703N 71.076W         <carlsonj@workingcode.com>

                 reply	other threads:[~2008-11-18 16:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=18722.62233.16576.905016@gargle.gargle.HOWL \
    --to=carlsonj@workingcode.com \
    --cc=linux-ppp@vger.kernel.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