Questions tagged [winusb]

Windows USB (WinUSB) is a generic driver for USB devices that was developed concurrently with the Windows Driver Frameworks (WDF) for Windows XP with SP2.

The WinUSB architecture consists of a kernel-mode driver (Winusb.sys) and a user-mode dynamic link library (Winusb.dll) that exposes WinUSB functions. By using these functions, you can manage USB devices with user-mode software.

Winusb.sys is also a key part of the link between a UMDF function driver and the associated device, and is installed in the device's kernel-mode stack as an upper filter driver. An application communicates with the device's UMDF function driver to issue read, write, or device I/O control requests.

The driver interacts with the framework, which passes the request to Winusb.sys, which then processes the request and passes it to the protocol drivers and ultimately to the device. Any response returns by the reverse path. Winusb.sys also serves as the device stack's Plug and Play and power owner.

More details: MSDN

132 questions
0
votes
1 answer

Chrome not recognizing USB label printer in usb-internal

I'm trying to create a web app where I can print labels directly to a label printer Zebra LP2844 using webusb. The problem I am having is that I can't find the printer under Chrome://usb-internal. The driver used in device manager is usbprint.sys.…
0
votes
2 answers

how can I call WinUsb_WritePipe method in C# without issue

I have an issue when calling the 'WinUsb_WritePipe' method. At first, I start by call 'CreateFile' method that provides me a handle. Then I call 'WinUsb_Initialize' method to get the WinUsbHandle. After that, I retrieve some information about my…
0
votes
2 answers

Windows API USB IO (winusb.dll)

Edit: This question evolved over time. The basic question was about how to connect to a and read/write to/from a USB device in Windows. Eventually I answered the question with the help of @benvoigt. I have written a Hid library which writes and…
Christian Findlay
  • 6,770
  • 5
  • 51
  • 103
0
votes
1 answer

WINUSB_ControlTransfer can only be used on one of the two interfaces available on the device, but not the other

I am working with the device and it has two interfaces. The lsusb information on the USB device can be found in the link below. https://github.com/zougloub/libseek The camera has two interfaces, first one is iAP interface and second is…
user6305497
0
votes
1 answer

WINUSB and UWP App: Can´t connect to my Device

I'm facing two different problems with my USB device that uses WINUSB ( Class 0xFF, Subclass 0x00 ) I have three different small apps, the UWP CustomUsbDeviceAccess from Microsoft samples modified to connect to my Custom USB Device, My UWP App i'm…
0
votes
1 answer

Write usb bulk windows with winusb

Im trying to send some data using the bulkout endpoint of a usb device. I can open the usb device (corsair k65rgb keyboard) interface 2 (which control the lighting) using createfile and SetupDiGetDeviceInterfaceDetail. But the example code I have…
0
votes
1 answer

Low latency isochronous out on OSX and Windows 10

I'm trying to output isochronous data (generated programmatically) over High Speed USB 2 with very low latency. Ideally around 1-2 ms. On Windows I'm using WinUsb, and on OSX I'm using IOKit. There are two approaches I have thought of. I'm wondering…
Timmmm
  • 88,195
  • 71
  • 364
  • 509
0
votes
1 answer

WinUsb_WritePipe goes into an infinite loop

I'm using the WinUsb_WritePipe function to write data on a USB Device. The only trouble is that the function does an infinite loop. //bulkOutPipe is a pipeId set precedently //ucBuffer is an unsigned char array //uiBytesToWrite corresponds to the…
sh5164
  • 276
  • 2
  • 15
0
votes
0 answers

Writing to a USB device via WinUsb

LAST UPDATE : Now I have a string compatible with my device (it had to be in a specific format of non-printable bytes), but an infinite loop. The program never exits WinUsb_WritePipe. ORIGINAL TROUBLE : After initializing all my WinUsb interface (as…
sh5164
  • 276
  • 2
  • 15
0
votes
0 answers

Can a standard USB device use WinUSB to establish communication

It seems to be an unbelievable story. Please help. I want to develop a windows tool to communicate with HID device. However, it's not possible for me to modify the HID device usage table (report descriptor is fixed). And now, I need to send a…
Cindy
  • 1
0
votes
1 answer

How to use multiple endpoints (IN and OUT) in Bulk Mode for USB comm in PIC24FJGB410

In my project I am configuring USB endpoints (Bulk Mode) for both In and Out from the Host. I'm using PIC24FJ256GB410 and Microchip example code “Vendor throughput“ configured with PIC24FSTARTER KIT. Everything works OK if I’m using Endpoint 1, 2,3…
Rahul
  • 13
  • 6
0
votes
2 answers

Is there a way to change device configuration under WinUSB?

I have a multi-function USB device. There's no driver (yet). I want to write an application that talks to just one of its interfaces. It would seem that WinUSB would be perfect for the job, but there's one snag: I need to change the device…
capilot
  • 13
  • 3
0
votes
1 answer

Using WinUSB within a DLL?

I'm working on a USB device that will talk to a single application. It looks like we may want to have a Windows driver that presents a nicer software interface to the application. (As opposed to having the application itself send lower-level…
cp.engr
  • 2,291
  • 4
  • 28
  • 42
0
votes
1 answer

WinUSB application on raspberry Pi (win10 IoT)

I want to install and discuss with my own usb device on a raspberry pi with windows iot. For that, I just create an inf file for arm like WinUSB driver on Windows 10 IoT. The device is recognized by the raspberry (seen on the startup list of…
ID3_AB
  • 1
  • 3
0
votes
1 answer

How to install WinUSB .INF file on Windows Phone 10?

My Windows Phone 10 mobile device can operate the USB in OTG mode and I can plug in USB Flash memory for example. I would like to connect my custom device into the Windows Phone and use it from a Windows Store App on the phone. In theory, I…
Mike
  • 1,276
  • 4
  • 16
  • 27
1 2 3
8 9