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 10 2081
This is a common request. There are none baked into the current 1.1
Framework. I think there implementations out there.
--
Sam Gentile [C#/.NET MVP]
..NET Blog http://samgentile.com/blog/
MSDN Column: http://msdn.microsoft.com/library/de...tml/bridge.asp
Disclaimer: Please do not contact me directly. Please use the newsgroups.
"Jim H" <no****@jimsacc ount.com> wrote in message
news:el******** ******@TK2MSFTN GP10.phx.gbl... 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
This is a common request. There are none baked into the current 1.1
Framework. I think there implementations out there.
--
Sam Gentile [C#/.NET MVP]
..NET Blog http://samgentile.com/blog/
MSDN Column: http://msdn.microsoft.com/library/de...tml/bridge.asp
Disclaimer: Please do not contact me directly. Please use the newsgroups.
"Jim H" <no****@jimsacc ount.com> wrote in message
news:el******** ******@TK2MSFTN GP10.phx.gbl... 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
There's nothing built in the current product.
I've used the SerialStream class from http://www.gotdotnet.com successfully.
--
Eric Gunnerson
Visit the C# product team at http://www.csharp.net
Eric's blog is at http://weblogs.asp.net/ericgu/
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jim H" <no****@jimsacc ount.com> wrote in message
news:el******** ******@TK2MSFTN GP10.phx.gbl... 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
There's nothing built in the current product.
I've used the SerialStream class from http://www.gotdotnet.com successfully.
--
Eric Gunnerson
Visit the C# product team at http://www.csharp.net
Eric's blog is at http://weblogs.asp.net/ericgu/
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jim H" <no****@jimsacc ount.com> wrote in message
news:el******** ******@TK2MSFTN GP10.phx.gbl... 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
"Jim H" <no****@jimsacc ount.com> wrote in message
news:el******** ******@TK2MSFTN GP10.phx.gbl... 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
This is a good sample. I used it for a couple of in-house projects. http://msdn.microsoft.com/msdnmag/is...netserialcomm/
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/is...netserialcomm/
You can find more information about how to use serial port in .Net from: http://www.gotdotnet.com/community/m....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.
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 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/is...netserialcomm/
You can find more information about how to use serial port in .Net from: http://www.gotdotnet.com/community/m....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.
Thanks to everyone that responded. The information you guys pointed to was
a big help.
jim
"Jim H" <no****@jimsacc ount.com> wrote in message
news:el******** ******@TK2MSFTN GP10.phx.gbl... 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
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andreas Horneff |
last post by:
Hi @ all,
I've got a problem with serial communication in Borland C++ Builder. I've
already found a
lot of stuff about serial communication in the internet, but it dosen't
work.
What I want to do:
I want to connect only one button to my com port. If the button is pressed,
|
by: Peter Krikelis |
last post by:
Hi All,
I am having a problem setting up input mode for serial
communications.
(Sorry about the long code post).
The following code is what I use to set up my comm port.
|
by: Ramakant Kasar |
last post by:
Hi,
If an application is reading data from a serial port, How can I open the
same serial port with another application?
Any idea? Please help.
Thanks,
Ramakant K.
|
by: K.K. |
last post by:
I am writing program that will recieve or sent data to
selected port (users can select which port they want to
recieve or sent) but I don't know how or whick object I
can use.
|
by: Ben Zhu |
last post by:
I have a small project, which need use both RS232 port and
excel for data plot. I considering use excel VB macro for
the entire project.
Although I used serial port extensively in MFC, I am not
sure how to open serial port from VB. Can anyone give me
a little light?
Really appreciated,
| |
by: David |
last post by:
I am having trouble with "ACCESS DENIED" error messages in a VB.NET 2003
application when attempting to open
serial comms ports.
The application has 2 ports that connect via serial cable to 2 different
hardware devices to transfer binary data to the application. The setup
screen enables the user to select COM1 -- COM8 via combo boax for each port.
Then they click "Apply" to open the ports.
The code that I have written to open the...
|
by: Gary Frank |
last post by:
I'd like to write a program in VB.Net that handles serial communications to
several devices. VB.Net 2003 does not have adequate built-in serial
communications. I heard that 2005 will have that. Has this serial
communications functionality been built into 2005 Beta yet? If so, is there
any reason I can't get the Beta and create the program with serial
communications now?
|
by: vicky |
last post by:
Hello,I met a question when I wrote the program.I want the program can
transmit the data frame continuosly through the RS232 when the
communication has been interrupted.But I don't know how to write. I
don't know how to record.Who can give me hand?Thanks very much!
|
by: Franklin M. Gauer III |
last post by:
Hi All,
I've written an ASP.NET application (webservice) that does simple serial
communications via the .NET 2.0 SerialComm object.
The application runs fine on my development machine. The problem is when we
try to deploy it to another machine we receive: ACCESS IS DENIED TO COM1 PORT.
We have tried unsuccessfully to get this to work. We have tried the following:
1) Assign the IUSR.... account to Administrators
|
by: LongBow |
last post by:
Hello,
Is there a way, in .NET, to determine what are the avialable Serial
(Communications) Ports on a Windows OS and is there a way to determine
that port isn't being use other than attempting to opening the Serial
Port and catching the associated exception? Thanks
If there isn't a way to determine the Serial Port within .NET I would
be willing, I guess, to use a WinAPI is that was the only way.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |