Serial Ports in C#
-
Hi: What is involved in setting up a serial port (RS232) under .NET and specifically, using C#? Does C# offer anything that supports this or do I have to drag some Win32 DLL into it? There is an example on this site but it uses a SerialPort class that is supposed to be part of the "System.IO" name space. I'm using Visual Studio 2003. I can't find that in any of my documentation. I specifically need to set up asynchronous communication so I need a background thread to service incoming characters. Thanks in advance to anybody who responds. Cheers, Mark
-
Hi: What is involved in setting up a serial port (RS232) under .NET and specifically, using C#? Does C# offer anything that supports this or do I have to drag some Win32 DLL into it? There is an example on this site but it uses a SerialPort class that is supposed to be part of the "System.IO" name space. I'm using Visual Studio 2003. I can't find that in any of my documentation. I specifically need to set up asynchronous communication so I need a background thread to service incoming characters. Thanks in advance to anybody who responds. Cheers, Mark
This link might shed some light on the matter - http://msdn.microsoft.com/msdnmag/issues/02/10/NETSerialComm/default.aspx
-
This link might shed some light on the matter - http://msdn.microsoft.com/msdnmag/issues/02/10/NETSerialComm/default.aspx