Serial communications in .NET???

J

Jim H

I need to communicate using a serial port. Are there any classes or
libraries for this in .NET? If not are there any open source libraries for
this out there?

jim
 
J

Jeffrey Tan[MSFT]

Hi Jim

Thank you for posting in the community!

Based on my understanding, you want to communicate with serial port in
.Net.
=======================================

Just as community member suggested, you may get this done through P/invoke
win32 API with this article:
http://msdn.microsoft.com/msdnmag/issues/02/10/netserialcomm/

You can find more information about how to use serial port in .Net from:
http://www.gotdotnet.com/community/messageboard/Thread.aspx?id=72182

The more I want to point out is that, if you want to specify Serial Ports
larger than COM9, you need different syntax, please refer to:
http://support.microsoft.com/default.aspx?scid=kb;[LN];115831

=======================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.
Have a nice day!!

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
M

Mark Smithson

There is another option if you do want to do anything to complicated:

The Visual Basic Resource Kit contains the "Sax.net Communications Community
Edition". This is a very easy to use class for using the Serial Port and can
be used from C#.

Regards

Mark
 
J

Jim H

Thanks to everyone that responded. The information you guys pointed to was
a big help.

jim
 
J

Jeffrey Tan[MSFT]

Hi Jim,

Thanks for your feedback.

If you have any further concern, please feel free to post, we will help
you. :)

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
P

pei_world

Hi everyone,
Can anyone help me to understand the serial port program? I don't know
how is work, send out data, but how to receive it?

welcome to add me: (e-mail address removed)

thanks

pei
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top