Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Reading status of serial port pins

  • 09-08-2003 4:58pm
    #1
    Closed Accounts Posts: 1,669 ✭✭✭


    Can someone post some code that will read the level of the com port (RS232) lines under MSDOS/Windows?

    I'm trying to write a small decoder program for an interface that uses only the CTS line of the serial port for it's output, to provide either logic 1 or logic 0.


Comments

  • Registered Users, Registered Users 2 Posts: 2,152 ✭✭✭dazberry


    Originally posted by DMT
    Can someone post some code that will read the level of the com port (RS232) lines under MSDOS/Windows?

    No. Its been too long. From a purely windows (32) point of view look at the GetComm**** API calls, notably the GetCommMask call with a mask of EV_CTS. I really don't remember the DOS stuff anymore.

    D.


Advertisement