S
S
Slavka2015-12-04 20:26:32
C++ / C#
Slavka, 2015-12-04 20:26:32

How to read from a USB device larger than the size of the endpoint?

My controller's checkpoint is 64 bytes, but I need to transfer 2 times that to the PC, how do I do that ? I use this library www.signal11.us/oss/hidapi

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
monah_tuk, 2015-12-05
@monah_tuk

HIDAPI uses libusb (or usbraw) in the backend, they themselves can make several requests to fill the buffer. Those. to read a buffer of 4096 bytes, it will break into 4096/64 requests. From the iron side, you need to be able to react to this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question