Results 1 to 2 of 2

Thread: Generic USB Device communication

  1. #1
    Join Date
    Aug 2010
    Posts
    28
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Post Generic USB Device communication

    Hello,

    I have been fighting with reading generic USB data in a Qt project on Windows.

    I have investigated libUSB, WinUSB, WDK and hooking but they all seem grossly overkill for what I wish to do.

    I essentially want to read the raw byte stream from a generic, already installed USB device such as interrupts from a mouse or graphics tablet and display this data in my application. A low rent sniffer of sorts but just for one specific device. (The device is unimportant, the USB Data-> Qt app is since eventually this will be modified to accommodate a specific device with its own driver.)

    Since I do not need to control the temporary device and my interactions with it at this stage in development are read only... what would the simplest way in Qt to obtain this data be?

    Thank you very much!

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Generic USB Device communication

    You've already looked at them: libUSB, WinUSB, etc.

    Qt hides all this from the user - you typically don't get any usb data from the mouse/etc, you just get the filtered and processed input events instead. You don't even know (or care) if the mouse is a usb, ps2 or serial device.

Similar Threads

  1. Communicating with a USB device in Qt?
    By N3wb in forum Qt Programming
    Replies: 7
    Last Post: 3rd May 2011, 10:30
  2. Replies: 1
    Last Post: 7th August 2010, 22:38
  3. generic catch-all error during runtime
    By babygal in forum Qt Programming
    Replies: 7
    Last Post: 23rd June 2010, 08:53
  4. How to know the object names of any generic application ?
    By soumyadeep_pan in forum Qt Programming
    Replies: 2
    Last Post: 5th May 2009, 07:11
  5. Generic Component Framework
    By prashanthudupa in forum Qt-based Software
    Replies: 5
    Last Post: 4th October 2007, 12:16

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.