linux-ppp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: md@Linux.IT (Marco d'Itri)
To: linux-ppp@vger.kernel.org
Subject: Re: Reset modem while using pppd
Date: Tue, 07 Nov 2017 15:25:48 +0000	[thread overview]
Message-ID: <20171107152548.jyox7u457vg5gas3@bongo.bofh.it> (raw)
In-Reply-To: <6661f19d-1804-b6e1-bd98-9503bad6b12b@lstronic.com>

[-- Attachment #1: Type: text/plain, Size: 533 bytes --]

On Nov 07, Léo Serre <leo@lstronic.com> wrote:

>     'OK' 'AT+CFUN=1,1'
This means "sending +CFUN after the OK prompt", but there is nothing 
before that which tells the modem to output the OK prompt.

I think that you can just use +CFUN in the normal connect script, like 
this one that I wrote for Debian ages ago:
https://anonscm.debian.org/git/collab-maint/pkg-ppp.git/tree/debian/extra/chatscripts/gprs

>  2. Is there an other way to send an AT command while pppd is running (or
> none)?
No.

-- 
ciao,
Marco

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

      parent reply	other threads:[~2017-11-07 15:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-07 15:11 Reset modem while using pppd Léo Serre
2017-11-07 15:25 ` walter harms
2017-11-07 15:25 ` Marco d'Itri [this message]

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=20171107152548.jyox7u457vg5gas3@bongo.bofh.it \
    --to=md@linux.it \
    --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;
as well as URLs for NNTP newsgroup(s).