[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] quick way to raise DTR on serial port?



Opening the tty port should raise DTR if the bit rate is non-zero so

stty 9600 -hupcl < /dev/ttyS0

should do it.  Use stty hupcl if you want to turn if off after close.

sleep 1 < /dev/ttyS0 to pulse it for about a sec.


On Mon, 2004-12-27 at 12:43, Christopher Bergeron wrote:
> Does anyone know of a quick/simple/easy way I can raise the DTR signal 
> on my serial port?  I'm trying to determine if the port is bad.
>