Qt-usb-HID device
-
Hi everyone.. I have STM32 board. Can you tell me how to open and read the device from HID Usb device in qt..
I don't know if this will help:
https://doc.qt.io/qt-5/qtserialport-index.htmlThere is something on Github:
https://github.com/fpoussin/QtUsbSimilar question:
https://forum.qt.io/topic/105016/usb-communication-in-qt/6 -
FWIW I've always prefered the event interface, which commonly presents under /dev/input/eventXX
and /dev/input/by-id lists what the kernel can find as plugged and available devices.
-
I don't know if this will help:
https://doc.qt.io/qt-5/qtserialport-index.htmlThere is something on Github:
https://github.com/fpoussin/QtUsbSimilar question:
https://forum.qt.io/topic/105016/usb-communication-in-qt/6Thx for ur rply sir. This one for serialport module. But I am asking usb HID.
https://doc.qt.io/qt-5/qtserialport-index.htmlI already tried this one. It is not worked for me.
https://github.com/fpoussin/QtUsb -
FWIW I've always prefered the event interface, which commonly presents under /dev/input/eventXX
and /dev/input/by-id lists what the kernel can find as plugged and available devices.
Thx for ur reply sir. I am working in windows environment. But u r mentioning linux .
-
Thx for ur reply sir. I am working in windows environment. But u r mentioning linux .
@yamu said in Qt-usb-HID device:
Thx for ur reply sir. I am working in windows environment. But u r mentioning linux .
When you mention STM32 I assume embedded linux.
-
@yamu said in Qt-usb-HID device:
Thx for ur reply sir. I am working in windows environment. But u r mentioning linux .
When you mention STM32 I assume embedded linux.
@Kent-Dorfman said in Qt-usb-HID device:
assume embedded linux.
sorry sir. This is my mistake. can you tell me solution for windows enviroment.
-
Solly...I no speak windoze. I run away screaming when anyone asks me to use a windoze machine.
The concepts are the same though. USB provides a standard set of operations/endpoints for HID compliant devices. and you don't mention what the HID device is. Chances are Qt is going to expect a higher level abstraction to support the device: joystick, mouse, keyboard, etc. and not provide direct access to the HID layer.
-
Hi All,
Do you have any idea about libusb. I want to use in windows environment. If you know means, plz explain in step by step. becoz i am new to this concepts. I having STM32 board. I want to read the board in USB HID device via. Jus i wanna open and read the hex value and output to the qt creator.