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. get connected Device ID from USB Port

get connected Device ID from USB Port

Scheduled Pinned Locked Moved C#
csharpcomquestion
5 Posts 2 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
    Tyler45
    wrote on last edited by
    #1

    Dear All, I have so many barcode readers which are connected from usb port. I have to differ each other so I need to get device ID of each of them. I think it is possible because I installed and use USBTrace and it gets. How can we handle it using c#? Thank you for your concerns.

    Mircea PuiuM 1 Reply Last reply
    0
    • T Tyler45

      Dear All, I have so many barcode readers which are connected from usb port. I have to differ each other so I need to get device ID of each of them. I think it is possible because I installed and use USBTrace and it gets. How can we handle it using c#? Thank you for your concerns.

      Mircea PuiuM Offline
      Mircea PuiuM Offline
      Mircea Puiu
      wrote on last edited by
      #2

      Would the article here: A USB Library to Detect USB Devices[^] at CP provide an acceptable solution to your problem?

      SkyWalker

      T 1 Reply Last reply
      0
      • Mircea PuiuM Mircea Puiu

        Would the article here: A USB Library to Detect USB Devices[^] at CP provide an acceptable solution to your problem?

        SkyWalker

        T Offline
        T Offline
        Tyler45
        wrote on last edited by
        #3

        Dear Mircea, First of all, thank you for your concern. I have just checked the solution and tried but there is something that i do not understand What should be the values of VID and PID. they are assigned automatically and program gives always disconnected message. Method USBClass.GetUSBDevice cannot regocnize my barcode reader. Thank you in advance Kind regards

        Mircea PuiuM 1 Reply Last reply
        0
        • T Tyler45

          Dear Mircea, First of all, thank you for your concern. I have just checked the solution and tried but there is something that i do not understand What should be the values of VID and PID. they are assigned automatically and program gives always disconnected message. Method USBClass.GetUSBDevice cannot regocnize my barcode reader. Thank you in advance Kind regards

          Mircea PuiuM Offline
          Mircea PuiuM Offline
          Mircea Puiu
          wrote on last edited by
          #4

          Article's author ist definitely more qualified to answer that :-)

          SkyWalker

          T 1 Reply Last reply
          0
          • Mircea PuiuM Mircea Puiu

            Article's author ist definitely more qualified to answer that :-)

            SkyWalker

            T Offline
            T Offline
            Tyler45
            wrote on last edited by
            #5

            Sorry, I didn't check :) I guessed that you were poster. Thank You.

            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