Date: Fri, 14 Mar 1997 10:08:14 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: adonai@jump.net (Lee Crites) Cc: freebsd-isp@freebsd.org, hackers@freebsd.org Subject: Re: How are you setting your modems???? Message-ID: <19970314100814.TS02670@uriah.heep.sax.de> In-Reply-To: <1.5.4.32.19970314065412.006970d4@jump.net>; from Lee Crites on Mar 14, 1997 00:54:12 -0600 References: <1.5.4.32.19970314065412.006970d4@jump.net>
next in thread | previous in thread | raw e-mail | index | archive | help
As Lee Crites wrote: > The closest thing to success I've had so far is with the cu command. I'm > doing something like: > > #cu -l /dev/cuaD00 dir > ATwhatever > ~. > > I can see the lights on the modem blinking, but nothing shows up on the > screen. You must be close. What exactly means `dir' in your command? Also, make sure to define the speed, e.g. by -s 57600. For the rest, you probably need what we call over here ``Mäusekino'', such a small gadget to monitor the V.24 lines. > When I've used /dev/ttyD00 I get nothing back, and the ~. command > doesn't work. Have a look at the ps -alx output: you would have seen a "siodcd" as the WCHAN. Means its waiting for carrier to arrive (DCD). That's the normal way a getty works, it tries to open the ttyd device, and blocks for carrier. > I'm sort of getting the impression from some of the tidbits > around that the ttyD device goes one way (in?) and the cuaD device goes the > other way (out?). You're totally right. The cua devices are the ``callout units''. They don't block on carrier (but interlock with the pending open on the ttyd device, so the waiting getty won't get the device while you are dialing out), and they behave similar to CLOCAL until the carrier first arrived. After this, they behave like -CLOCAL, thus you get a SIGHUP when carrier drops. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970314100814.TS02670>