|
-
April 13th, 2009, 08:47 AM
#1
SerialPort Class
After looking at the SerialPort class, it seems to only provide getters (not setters) for the bits (CD, DTR, DSR, Ring, etc.). 
Does anyone know if there is a way to set/clear these bits at my discretion using C#? 
Thanks
-Mike
-
April 14th, 2009, 05:58 AM
#2
Re: SerialPort Class
 Originally Posted by simmerheli
After looking at the SerialPort class, it seems to only provide getters (not setters) for the bits (CD, DTR, DSR, Ring, etc.).
Does anyone know if there is a way to set/clear these bits at my discretion using C#?
Thanks
-Mike
I guess these fields are available display the status of those bits only. As the low level handshaking of DSR/DTR is performed by .NET Framework.
Xander Tan
-
April 14th, 2009, 09:53 AM
#3
Re: SerialPort Class
If you want that kind of power over a serial port try using interop with the kernel32 library. It will allow you to set everything you could possibly want to set. Problem is... interop, sort of defeats the purpose of C# but Ive found it very useful in my development with serial ports.
R.I.P. 3.5" Floppy Drives
"I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones." - Albert Einstein
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|