PC Review


Reply
Thread Tools Rate Thread

Accessing COM ports

 
 
Kevin E.
Guest
Posts: n/a
 
      21st Oct 2008
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.
 
Reply With Quote
 
 
 
 
DaveL
Guest
Posts: n/a
 
      21st Oct 2008
Take a look at this link below

http://csharp.simpleserial.com/


"Kevin E." <(E-Mail Removed)> wrote in message
news:382648F7-36E7-472E-A675-(E-Mail Removed)...
>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.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing the Bluetooth COM ports in VB silverfox Microsoft Dot NET Compact Framework 28 15th Aug 2007 01:35 AM
Help on Accessing USB ports from C# kiran Microsoft C# .NET 1 28th Apr 2005 02:25 PM
Accessing com ports through Excel97? Michael Bowen Microsoft Excel Programming 3 30th Oct 2003 11:56 PM
Accessing serial ports Keith Microsoft VB .NET 3 24th Oct 2003 01:24 PM
Accessing parallel and seriel ports in .NET Michael Lykke Microsoft Dot NET Framework Forms 2 5th Aug 2003 08:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:15 PM.