Click to See Complete Forum and Search --> : Visual Studio.Net 2003 and Serial Port
marker
April 16th, 2005, 03:13 PM
Please somebody give me good reference about Visual Studio.Net 2003 and Serial port programming. I am using Visual C#.
I would like to connect to Serial port from C# and read required data.
Thank you very much in advance
M
darwen
April 16th, 2005, 04:43 PM
I'd advise you wait for 6 months and use the new class to do serial communications in .NET 2.0.
Otherwise look at all the literature available for serial communications in C++. You'll have to write your own interop to do this.
I also remember reading something to do with this very subject on MSDN. Search on serial and Interop - it might bring up something for you.
Darwen.
MadHatter
April 16th, 2005, 06:58 PM
the company I work for does a lot (its pretty much all we do) of network programming. we do serial port communication in C#. the copyright headers on the source code say its from microsoft. I dont know where it came from, but knowing our shop, most likely microsoft's posted the source code somewhere online and thats where they got it.
a quick google of "Purpose: SerialPort wraps an internal SerialStream class," (which is directly from the source code from microsoft) brings up some actual samples in C# that should get you going.
alpm11
April 18th, 2005, 09:33 AM
Go to this site:
http://www.aciss.com/justin/io.htm
Download the JustinIO.zip file. This is an excellent and simple wrapper class of accessing Serial ports.
All praise go's to Justin Harrell.
Cya
Alps
mehdi62b
April 18th, 2005, 02:32 PM
aslo,
http://www.codeguru.com/Csharp/Csharp/cs_network/remoting/article.php/c6015
http://msdn.microsoft.com/msdnmag/issues/02/10/NETSerialComm/
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=fcba7fc5-666e-4eb0-863f-0045b0c79ec7
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.