Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Serial Port Descriptions

Serial Port Descriptions

Scheduled Pinned Locked Moved C#
collaborationquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TheIdleProgrammer
    wrote on last edited by
    #1

    Hi Everyone, Bit of an obscure question but i can't find an answer elsewhere online so i thought I'd post here. I'd like to know if there's a way to retrieve a serial port description, as found in Device Manager, i.e. : Communications Port (COM1) I can easily get the serial port name using the static SerialPort method GetPortNames() (COM1, COM2 etc) but I cannot seem to find a way of getting the extra description information. Id like to know because our support team regularly have to launch device manager to check which comm port our USB-Serial converter has been assigned and getting garage monkeys to launch device manager over the telephone is sometimes harder than it sounds! Thanks for looking! Chris.

    J P 2 Replies Last reply
    0
    • T TheIdleProgrammer

      Hi Everyone, Bit of an obscure question but i can't find an answer elsewhere online so i thought I'd post here. I'd like to know if there's a way to retrieve a serial port description, as found in Device Manager, i.e. : Communications Port (COM1) I can easily get the serial port name using the static SerialPort method GetPortNames() (COM1, COM2 etc) but I cannot seem to find a way of getting the extra description information. Id like to know because our support team regularly have to launch device manager to check which comm port our USB-Serial converter has been assigned and getting garage monkeys to launch device manager over the telephone is sometimes harder than it sounds! Thanks for looking! Chris.

      J Offline
      J Offline
      Joachim Kerschbaumer
      wrote on last edited by
      #2

      as far as i know you cannot retrieve additional information about serial ports with the System.IO.Ports classes, but you can use WMI to get the information you need. check out the win32_serialport class.

      /******************************************** * dies & das - dot & net * http://blog.joachim.at ********************************************/

      1 Reply Last reply
      0
      • T TheIdleProgrammer

        Hi Everyone, Bit of an obscure question but i can't find an answer elsewhere online so i thought I'd post here. I'd like to know if there's a way to retrieve a serial port description, as found in Device Manager, i.e. : Communications Port (COM1) I can easily get the serial port name using the static SerialPort method GetPortNames() (COM1, COM2 etc) but I cannot seem to find a way of getting the extra description information. Id like to know because our support team regularly have to launch device manager to check which comm port our USB-Serial converter has been assigned and getting garage monkeys to launch device manager over the telephone is sometimes harder than it sounds! Thanks for looking! Chris.

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        I'd use Remote Desktop.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups