473,322 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

RS232

hello,

Does anybody know if Microsoft Dot Net supports the RS232
type of connection.

As far as I know Visual basic 6 supports RS232 connection
format.

Thanks,

nchap99
Jul 21 '05 #1
4 2179
As far as I know there are no built in classes that supports serial
communication. But take a look at this article on MSDN magazine. I have used
it a lot...

http://msdn.microsoft.com/msdnmag/is...m/default.aspx

/Henke

"nchap99" <ns******@yahoo.com> skrev i meddelandet
news:00****************************@phx.gbl...
hello,

Does anybody know if Microsoft Dot Net supports the RS232
type of connection.

As far as I know Visual basic 6 supports RS232 connection
format.

Thanks,

nchap99

Jul 21 '05 #2
My Serial Port FAQ:

..NET 1.0/1.1 has no support for legacy ports (COM/LPT).

There are plans to add support for serial ports in a future version:
http://groups.google.com/groups?&sel...%40tkmsftngp09
"this sample is very similar to what we will be adding" :
http://www.gotdotnet.com/community/u...ery=SerialPort
(note, project built with beta VS.NET, read gotdotnet comment)

Future Directions for Visual C#
http://msdn.microsoft.com/chats/vstu...dio_032103.asp
"We will add support for Serial ports to the framework..."

Longhorn Preview with SerialPort class:
http://longhorn.msdn.microsoft.com/l....io.ports.aspx
(should already be in Whidbey 2004)

Serial Support in Whidbey Demo:
http://www.gotdotnet.com/team/clr/bcl/demos/demos.aspx

With 1.0/1.1 you have to use PInvoke or Interop :

First understand the Win32 API as described here (C++):
http://msdn.microsoft.com/library/en...sdn_serial.asp

MSDN article for .NET (mostly C#):
http://msdn.microsoft.com/msdnmag/is...NETSerialComm/

PInvoke samples for C#:
http://www.gotdotnet.com/community/u...ery=SerialPort
http://msdn.microsoft.com/msdnmag/is...NETSerialComm/
http://www.gotdotnet.com/community/u...y=SerialStream
http://www.gotdotnet.com/Community/U...e-5413384f0c25

or for VB.NET:
http://support.microsoft.com/?kbid=823179
http://msdn.microsoft.com/library/en...ortinvbnet.asp
http://www.gotdotnet.com/community/u...px?query=rs232
http://www.mentalis.org/classlib/class.php?id=15
http://www.corradocavalli.cjb.net/

or you can use the "Managed Extensions for C++" and write wrappers.
http://msdn.microsoft.com/library/en...MCOverview.asp
http://www.gotdotnet.com/team/cplusplus/
http://msdn.microsoft.com/library/en...rp12192002.asp
on your VS.NET path:
...\VC7\managedextensionsspec.doc
...\VC7\migration_guide.doc
MC++ Sample:
http://www.codeproject.com/managedcpp/howtocomport.asp

or reusing the VB6 MSComm ActiveX is easy, but it has some 'problems' (license)
http://support.microsoft.com/?kbid=318597
http://www.devhood.com/tutorials/tut...utorial_id=320
http://ourworld.compuserve.com/homep...NETCommOCX.htm

commercial:
http://www.sax.net/dotnet/communications/
(Community edition in : http://msdn.microsoft.com/vbasic/vbrkit/)
http://www.winsoft.sk/ncomport.htm

for the Compact Framework (Windows CE)
http://msdn.microsoft.com/library/en...l/PISAPICF.asp
http://www.microsoft.com/downloads/d...3-2d3b9cef4aa5
http://ourworld.compuserve.com/homep...r/CFSerial.htm

for Interop, use newsgroup:
microsoft.public.dotnet.framework.interop


--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html - http://dnetmaster.net/
Jul 21 '05 #3
Hi,

There are a number of options. I have a class (and a number of examples) in
my book. See below for information. You can download several other classes
from the web (www.msdn.microsoft.com has at least two). You can download
NETComm.ocx from my homepage. And, there are commercial products for
enhanced serial communications, such as Sax Comm Objects (www.saxsoft.net).

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.
Jul 21 '05 #4
longhorn.msdn.microsoft.com

"nchap99" <ns******@yahoo.com> wrote in message
news:00****************************@phx.gbl...
hello,

Does anybody know if Microsoft Dot Net supports the RS232
type of connection.

As far as I know Visual basic 6 supports RS232 connection
format.

Thanks,

nchap99

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dan | last post by:
I wnat to see in browser an status from an device connected on rs232 port The java class for read from serial port is: //Serial.java import java.io.*; import java.util.*; import...
6
by: Przemo | last post by:
Hi, Do you know some good RS232C class? There is one in VB.NET 101 Examples, but I think it is poor. 1. I can't for e.g. read into my application all data received. I must tell how many...
2
by: AlirezaH | last post by:
Any sample program for rs232 communication?
0
by: Jason T | last post by:
I've downloaded and installed the '101 Visual Basic and C# Code Samples' from http://www.microsoft.com/downloads/details.aspx?familyid=08e3d5f8-033d-420b-a3b1-3074505c03f3&displaylang=en I have...
8
by: Terry Olsen | last post by:
I'm trying to use the RS232 class that was in the Platform SDK (i think). Has anyone else used this with events successfully? Here's what i've got: ====================== Public WithEvents...
13
by: jay.dow | last post by:
I want to write to the pins of an RS232 without using the serial protocol. The use would be every pin could act to complete a circuit in customized hardware. I could use python to communicate...
4
by: Dave Harry | last post by:
I found the RS232 class from MS's 101 VB samples. Writing to the port works fine. (I've got hyperterminal on the other comm port and a crossover cable between COM1 and COM2) The port is opened...
6
by: Henning M | last post by:
Hi all, Im trying to send a command to my uprocessor project, but when i try to read the answer for the uPU I get the same commed I just send to it??? It is as if the command isn't send before I...
3
by: ad | last post by:
I am using VS2005 to develop Web application. How can I receive the data from RS232 of client's computer?
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.