Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Notification to the Qt application while USB plug/unplug
Forum Updated to NodeBB v4.3 + New Features

Notification to the Qt application while USB plug/unplug

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 2.9k 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.
  • S Offline
    S Offline
    sreeram
    wrote on last edited by
    #1

    Hi All,

    I am working with Qt application handling usb devices on LInux os(3.1.0 kernel version) . I am able to interact with USB devices using Qt application with Libusb. But i am not able to communicate with usb device which is connected while Qt application is running(USB Hotplug).For interacting with new devices I am calling libusb api in every function then my application is able to communicate with new enumerated usb device also.

    Is there any other way to call it (libusb API ) while usb connecting and removing(when Qt application got notification ) instead of calling before every operation.

    Thanks
    Sreeram

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sreeram
      wrote on last edited by
      #2

      Hi

      Any idea anyone ????

      Just I want to call libusb API function while usb plug or unplug .

      Thanks & Regards
      Sreeram

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dbzhang800
        wrote on last edited by
        #3

        Hi,
        libudev should work for you.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sreeram
          wrote on last edited by
          #4

          Hi

          Thanks for your reply,

          Presently My ubuntu dont have libudev , I can install libudev but how my Qt application will cal libudev automatically when usb is pulg/unplug to get hotpluged usb device.

          And one more thing is already i have libusb API function(libusb_get_device_list) to get fresh usb devices list just i need Qt application should call this function automatically when usb is plug/unplug to update usb devices with out user involvement.

          Thanks & Reagards
          Sreeram

          1 Reply Last reply
          0

          • Login

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