Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site amiga.amiga.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!pyramid!amiga!tomp From: tomp@amiga.UUCP (Tom Pohorsky) Newsgroups: net.micro.amiga Subject: Re: More on serial problem Message-ID: <756@amiga.amiga.UUCP> Date: Wed, 26-Feb-86 14:44:33 EST Article-I.D.: amiga.756 Posted: Wed Feb 26 14:44:33 1986 Date-Received: Fri, 28-Feb-86 22:09:09 EST References: <8602251656.AA22138@cory> Reply-To: tomp@stella.UUCP (Tom Pohorsky) Organization: Commodore-Amiga Inc., 983 University Ave #D, Los Gatos CA 95030 Lines: 28 <8602251656.AA22138@cory> dillon@CORY.BERKELEY.EDU (Matt Dillon) writes: > I think I know why my serial.device routines failed, but I'm not >sure. The Hardware manuals have absolutely no examples or description of >how error's are returned, or what happens to your BeginIO. Look in the new ROM Kernel Manual for this info. > After suspecting that read-error's were causing my poor modem program >to flop over and die, I put in a small diagnostic to print what BeginIO() >returned (when I begin the read-request). For some reason, It came back with: > > 2058 (dec) = 00001000-00001010 > Perhaps I misunderstand what you're saying here, but bear in mind: - BeginIO (or SendIO) doesn't return a value. The ensuing WaitIO returns the error/completion code. - It's "recommended" to use SendIO rather than BeginIO. BeginIO is a tiny bit quicker, but requires the requestor to manipulate the IO_QUICK bit on his/her own. If you don't know what that bit does, use SendIO like you're "supposed" to. >any examples of serial.device routines that handle read-errors and such >without freezing up, I would appreciate it. > The Rom Kernel manual has a trite example program I wrote up back when. It handles and reports read errors. Happy hackin', tomp.