Help about serial programming: manipulating DTR
Wed Feb 2 16:52:00 GMT 2005
I'm trying to manipulate the DTR signal of the serial port.
As an example I used this code snippet:
I can open the com1, I can send and receive data but the ioctl I use
to read the status of the signals returns -1:
ioctl(upsfd, TIOCMGET, &status);
Anybody can help me? I have no idea about what's wrong with this code.
Thanks a lot in advance,
DAVE Electronics System House - R&D Department
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin