Programming Serial/COM ports

  • Thread starter Thread starter Phil Jones
  • Start date Start date
P

Phil Jones

I'm looking at writing some software that interacts with some hardware that
is plugged into the Serial/COM port(s).

What I'm wondering is where I'd start looking within the .NET framework to
program against these ports. Are there managed classes for doing this kind
of programming?

Many thanks
====
Phil : NZ
 
Hi Phil,

In addition to Sahil's suggetion, you may take a look at the link below
where has a sample for your reference.
This class adds serial comunication (Rs232) to your VB.NET applications.
V1.1: Added example and has been tested on final release. v1.2: Added Async
support v1.3: Fixed problem with BuildCommDCB on Open method
http://www.mentalis.org/classlib/class.php?id=15

Best regards,
Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi,

I have quite a bit of example code in my book. See below. Feel free to ask
specific questions here. I'll try to help.

Dick
--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
Hi,
and it won't
work on Toshiba laptops.
<<

I use MSComm and the equivalent on Toshiba notebooks all the time. There is
no problem with it.

However, there are better solutions, such as the free .NET library that is
part of the Visual Basic Resource Kit (free from Microsoft), and that can be
used with any .NET language. Still, MSComm is easy to use, and works well
(at least on the hundreds of systems that I have used it on).

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
Thank you everyone - this is a great set of starting pointers to get me
going
Mucn appreciated!
===
Phil : NZ
 
Back
Top