KenHorse
12-19-2004, 02:16 PM
I posted this in the Technical groups when perhaps, I should have posted it here. So please forgive the bandwidth :D
I am currently using /dev/ttyS1 in a standalone binary that uses only Xon/Xoff for handshaking. This means DTR, RTS, etc aren't being used. The thing is, this binary obviously "opens and "closes" the serial port as part of its operation.
I'm hoping to set RTS to one state for 1 second , then reset it back to its original state, then call this binary. I want to use RTS as a "reset" line for an embedded processor. I would have to do this external of the binary obviously.
I have a few questions regarding this:
1) I know I can use ioctl() for setting and resetting RTS. But would the act of closing the device force RTS to a different state than it was left when port is closed (I need RTS to be high, until I specifically tell it to go low)
2) Is there anyway to manipulate RTS via a shell script?
Thanks in advance for any answers!
I am currently using /dev/ttyS1 in a standalone binary that uses only Xon/Xoff for handshaking. This means DTR, RTS, etc aren't being used. The thing is, this binary obviously "opens and "closes" the serial port as part of its operation.
I'm hoping to set RTS to one state for 1 second , then reset it back to its original state, then call this binary. I want to use RTS as a "reset" line for an embedded processor. I would have to do this external of the binary obviously.
I have a few questions regarding this:
1) I know I can use ioctl() for setting and resetting RTS. But would the act of closing the device force RTS to a different state than it was left when port is closed (I need RTS to be high, until I specifically tell it to go low)
2) Is there anyway to manipulate RTS via a shell script?
Thanks in advance for any answers!