Link to home
Start Free TrialLog in
Avatar of James5863
James5863Flag for United States of America

asked on

What is the easiest way to control the DTR or RTS lines on a serial port on a windows system with XP Professional?

I am programming C++/MFC using Visual C++ 6.0. I am connecting to a Pololu servo motor controller and my serial (RS-232) commands are working fine. I am using a simple serial communications class called “Sio,” but the Sio class is limited. I am also using the include files, <windows.h> and <mmsystem.h> and coding information found at http://msdn2.microsoft.com/en-us/library/ms709377.aspx to connect to a USB joystick. I would like to control the DTR or RTS lines on the serial port, so I can reset the controller via software control by causing one of these lines to go low, and then back high, for a few milliseconds. What is the easiest way to control the DTR or RTS lines on a serial port on a windows system with XP Professional? Thank you for your time.
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial