From: Bill Currie Newsgroups: comp.os.msdos.djgpp Subject: Re: BCSIO20 problem Date: Mon, 20 Jul 1998 22:52:30 +1200 Organization: NetLink Wellington, New Zealand. Lines: 36 Message-ID: <35B3216E.3356A5E@taniwha.tssc.co.nz> References: <19980715100632 DOT 18241 DOT qmail AT www06 DOT netaddress DOT usa DOT net> NNTP-Posting-Host: nzlu02.tssc.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk jiri_novak AT usa DOT net wrote: > > Hi! > I'm trying to use BCSIO20 (Bill Currie's Serial IO library). Sending char works fine but if I try to receive one, nothing happens (eg. no char is received). To receive a char I use SioComPort class and it's method called get(). Can you give me a hint? > Bill C.'s e-mail address seems not to work so I use this one. billc AT blackmagic DOT tait DOT co DOT nz `expired' last year (I have to get around to updating the zip on simtel). My current email is bill AT taniwha DOT tssc DOT co DOT nz If that gives you problems, use bcurrie AT tssc DOT co DOT nz (I prefer taniwha as that's my home computer). > > Compiler package: gcc281.zip for DOS Hmm, serio has never been tested with gcc-2.8.1. As I know that 2.8.1 caused some problems for the Linux kernel with inline asms, I wouldn't be suprised if there are similar problems as I may not have specified the restraint's correctly. It has been tested with binutils-2.8.1 and unfortunatly it doesn't work (hence the object file and gas patch in the archive), nor does it work with 2.7 (bug in gas). That said, receiving chars shouldn't be affected, as the code is in serio.s, except...I think that version has some nasy type/offset bugs in the headers. You can get the latest version from http://www.tssc.co.nz/~bcurrie which has several bug fixes and some enhancements. If that doesn't help, I HAVE had problems with `stuck' serial ports. I've got code in serio.s that's supposed to reset a stuck port (done in sio_openport (sio_init_port, actually), but I can't remember if it always works :( Hope that helps and feel free to write Bill -- Leave others their otherness.