Elsa MicroLink 33.6TQV on HP-UX 10.20 with vgetty

Lutz Jaenicke (Lutz.Jaenicke@iee.TU-Berlin.DE)
Wed, 3 Dec 1997 21:03:13 +0100


On Wed, Dec 03, 1997 at 08:49:24PM +0100, Gert Doering wrote:
[...]
> > after the select in io.c:wait_for_input(), that no data is ready for reading
> > (read returns 0). This effect only happens, after the termio is reprogrammed
> > in voice/libvoice/init.c:voice_init(). I have no experience with programming
> > the serial line, but the problem seems to be related to the c_cc adjustments.
> 
> I dimly remember that we have seen this on some other platform as well.
> It seems to be related to setting VTIME to something > 0.

Yes, when I changed this in init.c to unbuffered(?) c_cc[VTIME]=0 select
behaved as expected.

> At that time, we did not fix it, because nobody had time (and partly
> because I think that's a bug -- select() should return if there is 
> *DATA*, not "if a subsequent read() won't block" - but then, select() 
> isn't standardized *that* well...)
Unfortunately the man page on HP-UX isn't that specific. It just says:
... 
If the readfs argument is not a null pointer, it points to an object
of type fd_set that on input specifies the file descriptors to be
checked for being ready to read, and on output indicates which file
descriptors are ready to read.
...

> > I have additional problems with sending audio data to the modem (buffer
> > underflow etc) which occur later on, but may be this is related to the 
> > problem above.
> 
> I don't think so. This is more likely a serial driver problem, but
> someone more "in the know" would have to look at the logs.
I will prepare a suitable part.

> > PS. Should I have spent more money? At home my Zyxel E2864ID works fine
> > with Linux, even with the additional memory for fax receipts without PC :-)
> 
> I don't think a different modem would have made a difference. A different
> operating system maybe :-)
Even then I like my HP :-), but maybe I would be able to track it down more
easily, if I would have the kernel source code, like at home :-)

Thanks a lot,
	Lutz
-- 
Lutz Jaenicke			  Lutz.Jaenicke@iee.TU-Berlin.DE 
TU Berlin	  http://www.iee.TU-Berlin.DE/personen/jaenicke/
Institut fuer Elektrische Energietechnik	Tel. +49 30 314-24552
Einsteinufer 11, D-10587 Berlin			Fax. +49 30 314-21133 
.