Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Aug 1999 08:49:44 +0100
From:      Brian Somers <brian@FreeBSD.org.uk>
To:        Khetan Gajjar <khetan@os.org.za>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Way to send commands to modem when no DCD with user-ppp 
Message-ID:  <199908030749.IAA00541@keep.lan.Awfulhak.org>
In-Reply-To: Your message of "Sat, 03 Aug 1999 03:56:29 %2B0200." <Pine.BSF.4.02A.9908030351590.19081-100000@pleb.cs.uct.ac.za> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi.
> 
> I've got a Microcom Deskporte FAST+ modem on my side,
> which is being used in analogue leased line mode.
> When it's connected, user-ppp works great.
> 
> However, when the modems loose power, they lose the contents
> of their EPROM, resulting in them starting up again in 
> normal modem mode (like any other modem). If this happens,
> user-ppp grabs the modem and tries to establish a PPP connection,
> which will never happen (because the modems are not connected).
> 
> I can't specify the init strings in the ppp.conf, because
> that will be sent irrespective of whether or not the
> modems are connected.
> 
> What I need to know is whether or not there is a program that
> can send commands to a modem (I've checked /usr/ports/comms/*
> and chat(8)), but neither of them seem to do exactly what I want,
> which is to send commands to a modem and then disconnect
> (the program shouldn't expect anything; once the string is sent,
> it should just die).
> 
> First prize (of course) would be to get user-ppp to send a string
> when there is no DCD, but I don't think that would be in the realm
> of many applications of user-ppp ;-)

How about a ppp.conf that says:

  set dial
  set login
  set cd 1!
  set hangup "\"\" mysendstring"

and maybe a ppp.linkup that says

  set hangup

Assuming the modem is either connected or disconnected and requires 
``mysendstring'' to connect, ppp will start, do the null-dial bit, 
wait for carrier (latest versions only), and then either succeed and 
nuke the hangup script or fail and chat the hangup script.

This won't work too well if LCP or IPCP fail to negotiate though.

> TIA.
> --- 
> Khetan Gajjar       (!kg1779) * khetan@iafrica.com ; khetan@os.org.za
> http://www.os.org.za/~khetan  * Talk/Finger khetan@chain.freebsd.os.org.za
> FreeBSD enthusiast            * http://www2.za.freebsd.org/
> Stupidest quote heard : Who is this BSD, and why should we free him ?

-- 
Brian <brian@Awfulhak.org>                        <brian@FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour !          <brian@FreeBSD.org.uk>




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908030749.IAA00541>