From owner-freebsd-questions Tue Aug 3 1:46:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from storm.FreeBSD.org.uk (storm.freebsd.org.uk [194.242.128.198]) by hub.freebsd.org (Postfix) with ESMTP id 1962114C44 for ; Tue, 3 Aug 1999 01:46:49 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.9.3/8.9.3) with ESMTP id JAA39445; Tue, 3 Aug 1999 09:44:56 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id IAA00541; Tue, 3 Aug 1999 08:49:45 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199908030749.IAA00541@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Khetan Gajjar Cc: questions@FreeBSD.ORG Subject: Re: Way to send commands to modem when no DCD with user-ppp In-reply-to: Your message of "Sat, 03 Aug 1999 03:56:29 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 03 Aug 1999 08:49:44 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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 Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message