132 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
102
views
Calling WinUsb_ReadPipe()/WinUsb_WritePipe() in multiple threads for different endpoints
I am trying to determine if it is possible/allowable to have multiple threads calling WinUsb_ReadPipe()/WinUsb_WritePipe(). Each thread I have only calls read or write for a single pipeID. I have read ...
0
votes
2
answers
877
views
libusb errors on Windows
I "created" a very basic USB device of communication class using an STM32 (f446re) that simply sends a sentence every second. Now I am writing a program to read the said sentence on the ...
0
votes
1
answer
499
views
Visual Studio cannot recognize connected USB device (Nikon D3100 DSLR)
I followed the instructions in Microsoft website to create a desktop app for connecting to a USB device using WinUSB library functions. However, every time I run the code, the software is unable to ...
1
vote
0
answers
692
views
How to install WinUSB driver through code
I don't want the client to do an extra WinUSB installation for my node.js software. How can I install the WinUSB driver through code or there is an alternative to skip it?
1
vote
2
answers
402
views
How to get notified if a USB device of a specific interface is connected in Windows?
I would like to be informed, if a (Android) USB device of a specific interface (USB debugging) is connected to my Windows computer.
For this, I'm trying to use .Net with this code:
const string ...
1
vote
1
answer
1k
views
'best driver already installed' when trying to replace generic HID with WinUSB
I am trying to send SetReports to vendor defined features on a USB HID device for testing purposes.
So far I used BusHound for this but I have hit some limitations with that.
I followed this guide in ...
0
votes
1
answer
330
views
Why is WinUsb_WritePipe returning error 997 With asynchronous winusb io?
If I use WinUsb_WritePipe with a LPOVERLAPPED entry, and use WinUsb_GetOverlappedResult to wait on the results, I have an error where WinUsb_WritePipe always returns false, and GetLastError returns ...
1
vote
0
answers
334
views
Why does WinUSB split transfers greater than MAXIMUM_TRANSFER_SIZE and non-multiples of MaximumPacketSize into multiple transfers?
When transferring a superspeed bulk-in transfer greater than the MAXIMIMUM_TRANSFER_SIZE (2MiB), and a non multiple of the maximum packet size (1024B) it will split the transfers into 3 USB transfers ...
2
votes
1
answer
3k
views
Chrome WebUSB controlTransferOut Results in "Transfer failed: A device attached to the system is not functioning. (0x1F)"
I'm developing a consumer USB device that will be configured via a web interface.
The first interface is a HID Gamepad. The second is a vendor interface where configuration will be handled.
Running ...
3
votes
1
answer
2k
views
How to get Windows 10 to autoload WinUSB as driver using MS_OS_20 BOS descriptor
I am struggling to get Windows to load the default WinUSB driver for my device. Please note that I am looking for a solution that is using BOS descriptor (and not the old 0xEE string index).
The ...
0
votes
0
answers
475
views
Bulk stream support in WinUSB
I'm using WinUSB to access the USB device and using bulk transfers for my application. When I provide stream number greater than 0 in the firmware and try bulk transfer from the desktop application, ...
2
votes
2
answers
1k
views
How would I reproduce the functionality of the Windows winusb driver on Linux? Do I even need to?
I need to implement an application on Linux that drives a USB connected device (a medical instrument). The application will be written in C++ (2011 standard).
The current application is written for ...
2
votes
2
answers
2k
views
USB device prototype timeouts with WinUSB or HID drivers, works fine with libusb
I'm trying to create a prototype for an USB (1.1) HID device using an Arudino board and a CH376 module. I have managed to write the Arduino code that sets the CH376 in device mode and handles all the ...
0
votes
0
answers
65
views
Adding winusb dll to codeblocks
I want cod user-mode winusb project, but when I want to use it in codeblocks project for example with WinUsb_Initialize function I have error undefined reference.
How can I link winusb.dll to ...
0
votes
0
answers
490
views
Win32Error when writing to endpoint with LibUsbDotNet (Wrong alt interface on WinUSB)?
I am trying to port a C++ library to .NET, but I cannot get it to work and I don't understand what's wrong. The only big change I see is that in the C++ library with libusb, I have to set the alt ...