Results 1 to 4 of 4

Thread: SerialPort.GetPortNames() does not list one of the comPorts in device manager

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2015
    Posts
    53

    SerialPort.GetPortNames() does not list one of the comPorts in device manager

    I'm trying to communicate with COM18 listed under Ports in my device manager without success. When I use the function call System.IO.Ports.SerialPort.GetPortNames() to see all the available ports, COM18 is not listed. Does this mean it's not a serial port? I'm trying to send commands to a power supply through USB interface.

  2. #2
    Addicted Member
    Join Date
    Apr 2015
    Location
    Connecticut, USA
    Posts
    147

    Re: SerialPort.GetPortNames() does not list one of the comPorts in device manager

    Does the device manager listing disappear when you unplug the interface? Is the driver installed correctly?

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2015
    Posts
    53

    Re: SerialPort.GetPortNames() does not list one of the comPorts in device manager

    Quote Originally Posted by Maylar View Post
    Does the device manager listing disappear when you unplug the interface? Is the driver installed correctly?
    Yes it disappears when I unplug the interface. The driver that I got from manufacture site is installed correctly I think. It shows up under Ports in device manager.

  4. #4
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: SerialPort.GetPortNames() does not list one of the comPorts in device manager

    Plug the device in. Restart the PC. After the restart check the device manager and try with the name listed.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width