I am trying to figure out how to program for a Serial port. I am not wanting to send and receive data. I have a device(footpedal for audio playback) that changes pin status. I just need to monitor for pin status changes and act according to that. The programs that I have written that need this functionality are written in C#, but I would be happy to figure this out in Visual C++. The closest I could get to accomplishing this is using a SetCommMask function to monitor the Com Port. It actually works great and detects two of the three actions that the footpedal gives. My footpedal commands are associated with the pins as follows:
Rewind - Pin 1(Carrier Detect)
Play - Pin 6(Data Set Ready)
Fast Forward - Pin 8(Clear to Send)
The SetCommMask function only allows me to monitor DSR and CTS. To my knowledge it will not allow me to monitor the Carrier Detect Pin. Please any suggestions??????????????????????????
Thanks,
Kendal



LinkBack URL
About LinkBacks


