So I have a QT project in which I want to check if a keyboard is connected. In case it’s not connected I want to be able to still use it if it is connected during the program is running. I looked around and found a few libraries that might be suitable but I am ..
In the project that I am currently working on I have to locate USB device (i.e. find device’s bus and port numbers) by its VID and PID. A huge portion of code that works with this device cannot be modified by me, so I cannot pass on the device using other methods. I have found ..
I am trying to start using libusb for communication via COM port, on windows 10 x64 only. My IDE is Code:blocks. I have a couple of questions: I downloaded libusb from their website (latest windows binaries) But I noticed there is a libusb-win32 ”version” of it in sourceforge. It says "libusb-win32 is a port of ..
The script developed for usb are from outsource. Everything seems to work correctly, but during a read operation, an empty buffer of length 128 bytes are sent and after execute the library (libusb_interrupt_transfer), there an updated value(rsp) of length 128.This return value will be used to determine which drive managed to toggle LED. However, the ..
I am new to stackoverflow.com. After having found plenty of information here during in the past I now need help to solve a very special problem concerning libusb on Windows to access a FT2232H device. The FT2232H contains 2 interfaces and 2 independent MPSSEs (Multi-Protocol Synchronous Serial Engines). I need to configure each MPSSE independently. ..
I am attempting to use libusb for a project and my C++ is rusty. I think I’ve resolved the dependencies for libtool and libdev on my ubuntu box, but now when I run, I get the following error. /usr/lib/gcc/x86_64-linux-gnu/10/include/stdatomic.h:40:9: error: ‘_Atomic’ does not name a type I found How to include C11 headers when compiling ..
PyUSB has a little utility function called usb.util.find_descriptor which, as the name implies, allows me to search for a description with specific criteria, for example: ep = usb.util.find_descriptor( intf, # match the first OUT endpoint custom_match = lambda e: usb.util.endpoint_direction(e.bEndpointAddress) == usb.util.ENDPOINT_OUT) I need the same functionality in a C++ application built with libusb. However ..
I worked on the synchronous libusb in my Qt project with good results and now I need the asynchronous features of this library. I understood reading here, here and here that, after I’ve registered my callback function using the libusb_fill_control_transfer and submitted a transfer with libusb_submit_transfer , I need to "keep live" the libusb_handle_events_completed inside ..
I am using libusb-1.0 and c++ to try read data from a device. I found in libusb such methods as get device descriptor, config descriptor, interface descriptor and endpoint descriptor, but I didn’t find any method to get report descriptor. I would like reading logical and physical limits of device. I post my code of ..
I have application in c++ with libusb (async) and 2 usb devices (engines) When i send data to one of these usb, this engine move continuously, but when i send data to both usb in one time, engines not moves at once. It move first engine then second, then again first Is it necessary to ..