Pinchanged event

If I start with DSR connected to DTR and then break the connection, the pinchanged event fires just fine. However it executes several more times after I close the connection again. Is there something I need to do to "reset" the state of that pin so the event fires just once?

[292 byte] By [RobertinTampa] at [2007-12-26]
# 1
Are you paying attention to the SerialPinChangedEventArgs.EventType property?
nobugz at 2007-9-4 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2

No, but I'm using the xxxHolding properties to tell which pin is asserted. My problem is once the Pinchanged event fires the first time, I get a series of subsequent firings where all pins are false. I can code around it, but it does cause a delay in the application. Also, is it normal for DCD to go on whenever one of the other control lines goes on? I thought DCD was an input?

Thanks for your help!

RobertJMarra at 2007-9-4 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 3
PinChanged might fire multiple times to tell you about not just DSR but also CTS and DCD changing. Use e.EventType to filter for the one you're interested in. Beware that PinChanged fires on a non-GUI thread, well after the actual signal change occurred.

DCD is normally only used by modems (data carrier detect, only modems can detect a carrier). Non-modem devices often jumper that signal, most commonly to either DTR or DSR.

nobugz at 2007-9-4 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified