Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.i386 Subject: Re: ISC 2.0.2, How to set baud rate on serial ports? Message-ID: <1990Aug29.113110.704@virtech.uucp> Date: 29 Aug 90 11:31:10 GMT References: <9008280005.aa24338@PARIS.ICS.UCI.EDU> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 34 In article <9008280005.aa24338@PARIS.ICS.UCI.EDU> baxter@zola.ICS.UCI.EDU (Ira Baxter) writes: > >an ancient Z80 CP(shudder)M system at 9600 baud. I assume that UNIX >on my 20Mhz 386 can catch any stream of characters I pitch at it >without losing anything [if it can't, I'll just lower the baud rate This isn't necessarily true (especially when the machine has other work to do). >Trying "stty 9600 < /dev/tty02 & stty -a /dev/tty02" also tells The correct way to do this is as follows: (stty 9600; stty -a) < /dev/tty02 Or, for your data capture: (stty 9600; cat > capture_file) < /dev/tty02 >Par for the course is that "stty 9600 < /dev/tty02 & cat /dev/tty02" >seems to pick up garbage when the Z80 transmits at 9600; Describe garbage. I mean, do some of the characters get garbled, or do you get additional junk data or do you loose some data? This may be a simptom of flow control not being correctly set between the system and your Z80 (on either side). -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc., uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170