Closed FFY00 closed 3 years ago
I managed to get it to work with _controlTransfer
. Perhaps controlWrite
could get a direction
kw argument?
Hello,
Isn't controlRead
what you need ? There are 2 differences between controlRead
and controlWrite
:
bmRequestType
field of the setup stage. This I have control on as you saw in the code, and it conditions the next point.From what I understand from the capture, the setup transaction only has an IN
data stage (device-to-host, which would be consistent with the bmRequestType
flag), so it seems consistent. Or I'm missing something.
USB can be confusing at times, because at each protocol layer the directions can change.
Yes! My bad :blush:
Hi, I need to send a control request with a invalid direction in bmRequestType.
The device I want to talk to is awful and requires me to send some requests with the device to host direction, how can I do this?
Since
controlWrite
sets the direction bit, I tried to use_controlTransfer
directly, but I run into the following error.Please find attached a capture of what my packets need to look like. Sorry for the zip, Github won't let me upload the capture directly.
md800e-512-384.zip