Re: modifying line state manually on ttyS

Michael Buesch (freesoftwaredeveloper@web.de)
Mon, 7 Apr 2003 17:48:50 +0200


On Monday 07 April 2003 17:51, Richard B. Johnson wrote:
> This means that you can't control TxD directly. I suggest that
> you use the parallel printer-port. This port allows you to set

That's my problem. parallel-port is used by a printer and I don't
wanna by an expensive extension card for second parport. :)

> Now, if you really need the +/- 12 volts that you think you
> will get out of a UART, please measure it first. Many new computers
> use I/O chips that only provide +/- 5 volts! Anyway, you can use the

That's no problem, because I "down-volt" it to 4.7V before using it.

> calls. You probably want to disable the SIGHUP signal before
> you muck with those bits. Some versions of Linux will send the
> hangup signal to the TTY owner even though it's not the controlling
> terminal for the process. This could cause your program to exit
> for "unknown" reasons; signal(SIGHUP, SIG_IGN) prevents such problems.

Thanks for this important information.

Regards
Michael Buesch.

-- 
My homepage: http://www.8ung.at/tuxsoft
fighting for peace is like fu**ing for virginity

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/