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

Christopher Bergeron christopher at bergeron.com
Tue Dec 28 20:18:05 EST 2004


Chris (and Ben) - thanks for the response.  Is it safe to say that my 
serial port is toast if DTR doesn't go to +9v (give or take a few volts) 
when the port is opened?

Thanks!
-CB




Christopher Fowler wrote:

>Easier then that.  A simple open() will raise DTR
>
>Try cat > /dev/ttyS?
>
>
>That will open the port and cause DTR to be raised.
>
>On Mon, 2004-12-27 at 12:56, Benjamin Scherrey wrote:
>  
>
>>You can do it in python easily if you have pySerial ( 
>>http://pyserial.sourceforge.net/ ) installed.
>>
>>    Good luck,
>>
>>       Ben Scherrey
>>
>>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.
>>>
>>>I can't seem to think of a way to do it with a bash script.  Is there 
>>>a command I can send from within Minicom?  Or doe  anyone have a few 
>>>lines of C or similar code that could do it?  Is there a gtk app that 
>>>will let me toggle serial pins?
>>>
>>>Anyone have any ideas?
>>>
>>>Thanks in Advance!
>>>-CB
>>>
>>>
>>>P.S.
>>>I'm at the console of the box, I'm not connected to a serial tty.
>>>_______________________________________________
>>>Ale mailing list
>>>Ale at ale.org
>>>http://www.ale.org/mailman/listinfo/ale
>>>
>>>      
>>>
>>_______________________________________________
>>Ale mailing list
>>Ale at ale.org
>>http://www.ale.org/mailman/listinfo/ale
>>    
>>
>
>_______________________________________________
>Ale mailing list
>Ale at ale.org
>http://www.ale.org/mailman/listinfo/ale
>
>  
>



More information about the Ale mailing list