Giter Club home page Giter Club logo

Comments (12)

gleke avatar gleke commented on August 29, 2024
Parameter Value
Hardware ID USB\VID_5131&PID_2007&REV_0000
Setup Class HIDClass
Class GUID {745a17a0-74d3-11d0-b6fe-00a0c90f57da}
PDO Name \Device\00000087
Service Name HidUsb

from qtusb.

gleke avatar gleke commented on August 29, 2024

Interface Descriptor

bLength | 0x9
bInterfaceNumber | 0x0
bAlternateSetting | 0x0
bNumEndpoints | 0x2
bInterfaceClass | 0x3 (Human Interface Device)
bInterfaceSubClass | 0x0 (No Subclass)
bInterfaceProtocol | 0x0 (None)
iInterface | 0x5

from qtusb.

gleke avatar gleke commented on August 29, 2024

Endpoint Descriptor

bLength | 0x7
bEndpointAddress | 0x82 [IN]
bmAttributes | 0x3 (USB_ENDPOINT_TYPE_INTERRUPT)
wMaxPacketSize | 0x8
bInterval | 0x8

from qtusb.

gleke avatar gleke commented on August 29, 2024

Endpoint Descriptor

bLength | 0x7
bEndpointAddress | 0x2 [OUT]
bmAttributes | 0x3 (USB_ENDPOINT_TYPE_INTERRUPT)
wMaxPacketSize | 0x8
bInterval | 0x8

from qtusb.

gleke avatar gleke commented on August 29, 2024
Parameter Value
Configuration Descriptor
bLength 0x9
bDescriptorType USB_CONFIGURATION_DESCRIPTOR_TYPE
wTotalLength 0x29
bNumInterfaces 0x1
iConfiguration 0x4
bmAttributes 0xA0 ( Bus_Powered Remote_Wakeup )
MaxPower 0x23

from qtusb.

fpoussin avatar fpoussin commented on August 29, 2024

This is a HID device, so you need to use the QHidDevice class.
If you want to use QUsbDevice with an HID device, then it must not be used by the HID driver, you need a winusb driver. It's much easier to just use QHidDevice.

from qtusb.

gleke avatar gleke commented on August 29, 2024

QHidDevice class can't use QUsbEndpoint::interruptEndpoint???

from qtusb.

fpoussin avatar fpoussin commented on August 29, 2024

It's abstracted by the OS, you just have to use the read() and write() methods.

from qtusb.

gleke avatar gleke commented on August 29, 2024

from qtusb.

fpoussin avatar fpoussin commented on August 29, 2024

Did you try?

from qtusb.

gleke avatar gleke commented on August 29, 2024

from qtusb.

leifliddy avatar leifliddy commented on August 29, 2024

I think this would be way easier with python.

Both of these projects support variants of the 5131:2007 USB HID device.
https://github.com/Progman2k/USB_Watchdog
https://github.com/leifliddy/usb-watchdog

from qtusb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.