This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help about serial programming: manipulating DTR


Hi all,

I'm trying to manipulate the DTR signal of the serial port.
As an example I used this code snippet: http://lists.exploits.org/upsdev/Feb2004/00013.html.
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:


    int status;
    ioctl(upsfd, TIOCMGET, &status);

Anybody can help me? I have no idea about what's wrong with this code.


Thanks a lot in advance,


llandre

DAVE Electronics System House - R&D Department
web:   http://www.dave-tech.it
email: r&d2@dave-tech.it


-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]