473,508 Members | 2,240 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.Readline() 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 1301
Take a look at this link below

http://csharp.simpleserial.com/
"Kevin E." <Ke****@discussions.microsoft.comwrote in message
news:38**********************************@microsof t.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.Readline()
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
8128
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...
0
1014
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...
1
1222
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...
1
1340
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...
2
1090
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...
2
7844
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...
0
1361
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....
3
1251
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Is there any way I can access .net application through mainframe.
1
1550
by: vinesh kumar | last post by:
please guide me to access the usb ports using C together with the source code ....
1
1461
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...
0
7231
marktang
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,...
0
7132
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...
0
7401
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...
1
7063
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...
0
7504
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...
0
5640
agi2029
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,...
1
5059
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...
0
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.