How to sense DCD on serial port?

2000-10-19 Thread Alexander Maret
Hello, I just assembled a mini IR receiver for the serial Port. This device shows the IR-code by pulling DCD up or down. As there is no software for FreeBSD supporting IR I would like to have a try and code it myself. Unfortunately those Pulses sent by the IR device sometimes only last a few

Re: How to sense DCD on serial port?

2000-10-19 Thread andrew
On Thu, 19 Oct 2000, Alexander Maret wrote: How can I sense the state of the DCD line that quick? I I'm not sure how quick it is but have you tried ioctl with an argument of TIOCMGET? See tty(4) for more details. Andrew To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe

RE: How to sense DCD on serial port?

2000-10-19 Thread Alexander Maret
-Original Message- From: [EMAIL PROTECTED] To: Alexander Maret Cc: '[EMAIL PROTECTED]' Sent: 19.10.00 15:30 Subject: Re: How to sense DCD on serial port? How can I sense the state of the DCD line that quick? I I'm not sure how quick it is but have you tried ioctl with an argument

RE: How to sense DCD on serial port?

2000-10-19 Thread andrew
On Thu, 19 Oct 2000, Alexander Maret wrote: DCD because this takes ernormous cpu time. Is there a possibility to get a signal,intr or whatever, whenever the state of DCD changes? UmmI'm not sure but wouldn't you get SIGHUP if DCD was dropped? It would look like the "dialed in user" had