serial communication in C#

  • Thread starter Thread starter Arsalan Ahmad
  • Start date Start date
A

Arsalan Ahmad

Hi all,

I need to communicate with a GSM modem in my application which is connected
to a serial port of my PC in a Windows Form application (written in C#).
Please can you give any idea how to do it. I don't want to use MSCOMM
control.

Thanks,

Arsalan Ahmad
 
Hi

Currently Base CLass libraries of .NET framework do not support serial communication. Third party libraries such as SAX.NET are available for a price

Wait for the next release of VS.NET (Whidbey) for support of serial communication

Regard
Vipu
 
Hi,

There are a number of free serial classes that may be downloaded. Also, you
can get a free version of Sax.net Communications as part of the Visual Basic
..NET Resource Kit, which is free. This, and the other components, work
equally well with C#.

You can download NETComm.ocx from my homepage, but it is a wrapper for
MSComm. I have a serial class in my book that you could use (see below).
And, PInvoke samples for C#:

http://www.gotdotnet.com/community/usersamples/Default.aspx?query=SerialPort
http://msdn.microsoft.com/msdnmag/issues/02/10/NETSerialComm/

http://www.gotdotnet.com/community/usersamples/Default.aspx?query=SerialStream

--
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.
 
Back
Top