Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!umnd-cs!puff!avery From: avery@puff.WISC.EDU (Aaron Avery) Newsgroups: comp.sys.amiga Subject: Re: set serial port Message-ID: <706@puff.WISC.EDU> Date: Sun, 26-Apr-87 01:45:04 EDT Article-I.D.: puff.706 Posted: Sun Apr 26 01:45:04 1987 Date-Received: Sun, 26-Apr-87 22:47:59 EDT References: <50@f.gp.cs.cmu.edu> <1213@ulowell.cs.ulowell.edu> <934@charon.unm.edu> Organization: U of Wisconsin CS Dept Lines: 30 Summary: not to worry... In article <934@charon.unm.edu>, hansb@ariel.unm.edu (Richard Harris PSYCHOLOGY) writes: > I need some help with the serial port. I need to know how to set the > serial port in C to a one byte buffer. Currently, the buffer is set by > preferences to 512 bytes. > Nice try, but this won't solve the problem. It's that AmigaDos asks SER: for 256(? really a guess) characters at a time. > The major reason for this one byte buffer is so I can hook up a "simple" > terminal to the amiga through the serial port and say: > > newcli ser: > > That would make the amiga into a multi-user system, but right now, > since the buffer is 512 bytes, I have to enter 512 bytes of data before the > computer responds. As before, I think it's more on the order of 256. I will be posting an AmigaDos handler which allows just this. It takes care of the most obvious LF -> CR,LF conversions, etc. It will be posted in both executable and binary (uuencoded) forms. This is (partly) because someone will probably want to hack it up to his own needs, and (partly) because it might be of some educational value. I have a few more modifications to make, one being a slight problem with the skeleton handler Phillip Lindsay provided (thanks, Phil!), and I really should comment the thing before posting. Hopefully in the next week or so. It really is quite slick (thanks Amiga!). Aaron Avery ({caip,seismo,allegra,harvard,ihnp4}!uwvax!puff!avery) (avery@puff.wisc.edu)