Accessing COM ports

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?S2V2aW4gRS4=?=

    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.
  • DaveL

    #2
    Re: Accessing COM ports

    Take a look at this link below




    "Kevin E." <KevinE@discuss ions.microsoft. comwrote in message
    news:382648F7-36E7-472E-A675-0EAA87AB208D@mi crosoft.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.

    Comment

    Working...