Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. USB plug/unplug many times, I'd like to use same no "/dev/bus/usb/"
Forum Updated to NodeBB v4.3 + New Features

USB plug/unplug many times, I'd like to use same no "/dev/bus/usb/"

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 224 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.
  • nishiokasN Offline
    nishiokasN Offline
    nishiokas
    wrote on last edited by
    #1

    Hi.
    When my pc connect a usb device, I can see making a folder "/dev/bus/usb/002/002".
    Then disconnect one, this folder is gone.
    Next, reconnect one, I can see making a new folder "/dev/bus/usb/002/003".

    I'd like to use the same folder like "/dev/bus/usb/002/002" when I plug/unplug it many times.
    Is it possible?
    Perhaps I should clear something?

    Thanks.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      This has nothing to do with Qt, better look for help on some Linux-specific forum.

      The /dev folder is under complete control of the operating system. You should not try to change how it works! Instead, if you need to talk to such USB device, use common libraries (like libusb) and always search for your device using it's device ID, not path.

      (Z(:^

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved