*BSD News Article 49509


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!oleane!tank.news.pipex.net!pipex!btnet!dispatch.news.demon.net!demon!skate.demon.co.uk!skate.demon.co.uk!not-for-mail
From: plunky@skate.demon.co.uk (Iain Hibbert)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: Help: PPP and Modem communications
Date: 21 Aug 1995 18:46:50 +0100
Organization: The Bath Room
Lines: 40
Message-ID: <41agqa$2t2@skate.demon.co.uk>
References: <416eo3$4s1@news.laser.net>
NNTP-Posting-Host: skate.demon.co.uk
X-NNTP-Posting-Host: skate.demon.co.uk
X-Newsreader: TIN [version 1.2 PL2]

warbird@laser.net warbird@laser.net writes:
> I've read and read all about pppd and chat etc but am stumped as to why pppd
> fails to properly talk to my external modem.  The board/cables/modem all check
> out as I've use the combo under dos/OS/2 just fine.

> This is what I've typed at the prompt:
> pppd /dev/tty01 38400 connect 'chat "" "ATE1L0M1N1Q0V1W2X4....." "OK" (wrap)
> "ATDT934-9021" "login:" "****" "ssword:" "****"'

> The DTR light comes on but the send/receive lights do nothing.
> dmesg reports the existance of com0 and com1 as 16550 uarts, FIFO enabled
> but there is no /dev/com0 device.  I looked at the MAKEDEV and sure enough they
> don't get created but given the comments in there I assume there is a reason for this.

check the tty flags (stty -f /dev/tty01), I have had similar troubles with the modem
seemingly locking up (on a NetBSD/sparc) but having "cs8 parenb clocal crtscts" set
seems to fix it..

> Also, can anyone tell me why the following returns an error "unknown -f flag"?
> pppd /dev/tty01 38400 connect 'chat -f ~/chat.ppp'

> The only way I got it to not return an error was to enclose the 'chat...' section in
> double quotes instead of single.  Is this proper?

if it works, its proper :)

you could just have "#! /bin/chat -f" (no quotes) as the first line of the chat script
and run the script as the command..

> Finally, how do I communicate directly to the modem, as one can do in dos and OS/2
> with a 'copy con com2' and then send it the commands?  Chat appears to have no
> facility for specifying which device to open and initialize.

I use tip for that..  chat just uses the standard io, so I guess if you wanted to
start chat manually you could redirect the io to the tty you want to use.  I don't
really understand the ttya/cuaa thing, my system doesn't have it

--
]ain