Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!samsung!think!snorkelwacker!ira.uka.de!smurf!urlichs From: urlichs@smurf.ira.uka.de Newsgroups: comp.sys.mac.programmer Subject: Re: FSRead hangs on the serial driver Message-ID: <1375@smurf.ira.uka.de> Date: 11 Jan 90 20:29:16 GMT References: <7770@unix.SRI.COM> Reply-To: urlichs@smurf.ira.uka.de (Matthias Urlichs) Organization: University of Karlsruhe, FRG Lines: 14 In article <7770@unix.SRI.COM> gil@ginger.sri.com (Gil Porat) writes: [regarding FSRead with the serial driver] >1) Why does the second FSRead hang? It wants as many characters as you tell it to read. The way around this is to ask the driver for status, and then read exactly as many characters as are available. General hint: Try not to read one character at a time. You can do that with async PBControl calls but you'll run into speed problems with faster serial devices. It won't hurt to make the receive buffer (standard: 64 byte...) somewhat bigger, either. -- Matthias Urlichs