473,668 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing COM ports

I just started looking into communicating with devices over a serial port. I
created a new project, and added "using System.IO.Ports " at the top of all
the code. I have a device connected via bluetooth which has a COM4 port open
for incoming communication. The point I get stuck at is trying to determine
what the COM port is named so i can access the SerialPort.Read line() method.
Is there a way i can get a list of all the COM port names that are open on my
computer. Any suggestions or tips are greatly appreciated. Thanks.
Oct 21 '08 #1
1 1316
Take a look at this link below

http://csharp.simpleserial.com/
"Kevin E." <Ke****@discuss ions.microsoft. comwrote in message
news:38******** *************** ***********@mic rosoft.com...
>I just started looking into communicating with devices over a serial port.
I
created a new project, and added "using System.IO.Ports " at the top of all
the code. I have a device connected via bluetooth which has a COM4 port
open
for incoming communication. The point I get stuck at is trying to
determine
what the COM port is named so i can access the SerialPort.Read line()
method.
Is there a way i can get a list of all the COM port names that are open on
my
computer. Any suggestions or tips are greatly appreciated. Thanks.

Oct 21 '08 #2

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

Similar topics

3
8144
by: Daniel Pope | last post by:
Hello Everybody, I'm preparing for doing a daunting task: to access Out look Microsoft Outlook Express(regardles the operating system and Outlook version) from a Java applet (after the client (user) acknowleges to run this applet on his machine). The user has to read the existent user Microsoft Outlook users accounts and to setup another Microsoft Outlook user accont. As I know so far, that the only way is to access from the applet a...
0
1027
by: Mark | last post by:
Hi Folks, I'm a new user of visual c++.net. Can someone help me? I am looking for examples of how to access the serial ports. I need to know how to set the baud rate, etc. and read data from the port. I have done that years ago with other c compilers, but this compiler is different. Does anyone know where I can find complete examples of how
1
1237
by: Ross | last post by:
Is there a simple way to access the serial RS232 ports com1: and com2: without using mscomm32.ocx (i.e. is there a file stream within .NET) I've being going through the documentation and can't get any hits on anything reasonable (like com1, rs232, com ports). .NET has intrinsic support for ethernet connections. Doesn't it believe in old fashioned things like com ports?
1
1348
by: kiran | last post by:
Hi all, I need some help on Accessing USB ports from C#. I have written a c# program to communicatee with COM (serial communication) ports using P/Invoke method. Just like I could't find a way to communicate USB ports. How can do it from C#..? Thanking for your kindly help. Regrads Kiran Kumar vemulakiran@gmail.com --
2
1098
by: kiran | last post by:
Hi all, I need some help on Accessing USB ports from C#. I have written a c# program to communicatee with COM (serial communication) ports using P/Invoke method. Just like I could't find a way to communicate USB ports. How can do it from C#..? Thanking for your kindly help. Regrads Kiran Kumar
2
7851
by: Jimmy Reds | last post by:
Hi, I have a blood glucose meter (a Lifescan OneTouch Ultra in case anyone was wondering) which I connect to my PC using a USB cable and I would like to have a go at accessing the data on this device without having to use the software provided by Lifescan. The software is free and is okay but it's not very good at manipulating the data. Although I connect my meter using a USB cable, it can be connected by a serial cable (there is a...
0
1376
by: Marg | last post by:
Recently I installed a library catalog software program on our server, which runs on Windows 2003. Our server does not have IIS installed and the library catalog software comes with Apache files. The install also installs Apache Tomcat and if the program installs correctly, then the administrator does not have to do anything with Apache Tomcat. The problem is that we can't get users outside of our network to successfully browse our catalog. ...
3
1259
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Is there any way I can access .net application through mainframe.
1
1561
by: vinesh kumar | last post by:
please guide me to access the usb ports using C together with the source code ....
1
1469
by: jrusse42 | last post by:
The Access DB is located on a server that people connect to through remote connections. I have to design a phone dialer that dials numbers through a remote COM port. I have the communication with the modem working, but it only uses the local ports and not the remote ports. I've read up on RPC, but there's very little information on how to actually implement it, and no examples on how to do it in Access that I've found. Does anyone have any...
0
8381
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8893
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8799
jinu1996
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...
1
8586
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,...
0
8658
tracyyun
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...
1
6209
isladogs
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...
0
5681
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4205
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...
2
2026
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.