*BSD News Article 69641


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!solace!nntp.uio.no!news.cais.net!bofh.dot!news.mathworks.com!newsfeed.internetmci.com!news1.erols.com!newsmaster@erols.com
From: Ken Bigelow <kbigelow@www.play-hookey.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: pppd: Problems with blocking /dev/ttyd1 / cuaa1
Date: Tue, 28 May 1996 15:32:17 -0700
Organization: Erols Internet Services
Lines: 41
Message-ID: <31AB7EF0.3103@www.play-hookey.com>
References: <31aa9b12.0@news.uni-konstanz.de>
Reply-To: kbigelow@www.play-hookey.com
NNTP-Posting-Host: kenjb05.play-hookey.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0b4 (Win16; I)

Pascal Gienger wrote:
> 
> I just tried to use pppd to establish a connection to our PPP terminal
> server. To log in I set up a chat script. I called pppd then in the
> following way:
> 
> pppd /dev/cuaa1 57600 connect "chat -f /etc/ppp/hydra.chat" crtscts lock passive
> 
> Result: None.
> 
> Investigating the problem, I found the following:
> 
> Trying to send modem commands to /dev/cuaa1 directly, e.g.
> echo "AT0DT0123456" > /dev/cuaa1 won't do anything. Doing the same
> thing on /dev/ttyd1 result in blocking the command....
> All accesses to /dev/cuaa1 have the same result as piping them to /dev/null.
> 
> stty </dev/ttyd1 does not work either. It blocks.
> If HylaFAX is invoked and attaches to /dev/ttyd1 above stty is perfectly
> working. When quitting HylaFAX, above stty blocks again.
> 
> What command do I have to use to "unblock" the /dev/ttyd1 device or to
> use "/dev/cuaa1" correctly?
> 
> Pascal

You're trying to do too much on the command line. I'm using pppd to keep 
a full-time connection to my ISP so my site will stay up 24/7, and my 
command line is just:

	pppd /dev/cuaa1 115200

(you can use 57600 in place of 115200 if you like). Either way, all the 
rest of the info for dialup comes from the file /etc/ppp/options. This 
includes the chat line, as well as a number of assorted options.

Check the man page on pppd; it's long, but it does have the info.

Hope it helps,

Ken