Replies: 3 comments 2 replies
-
Hm maybe that's not it. I just tried a logitech unifying receiver with a paired keyboard; I have to believe this supports the report protocol. Same error with the assertion failure in |
Beta Was this translation helpful? Give feedback.
-
Ah. I should not be calling |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer. I investigated this in the meantime and found out how to supposedly do it. Just initialize tinyusb like this:
I could confirm that this works using a LA. Unfortunately it didn't help me with my buggy keyboard problem. Still I think this should be documented somewhere... |
Beta Was this translation helpful? Give feedback.
-
I have a device (random no-name 2.4ghz keyboard/mouse combo receiver) which seems to only support the BOOT protocol. The initial protocol shows up as BOOT. If I try to switch to HID_REPORT_PROTOCOL, the usb stack hangs somewhere. Turning on debugging, I get assertion failures on the tuh_control_xfer call.
This is with somewhat hacked logging (I'm running both device and host; device on rp2040 main usb, and host on Pico-PIO-USB port on core 2); so I attempted to enable logging for the host-side stack only.
Note that if I don't try to set_protocol, I get device instance 1 right after this (my log below). I need to set up a picoprobe/SWD debugger to see what's actually happening above. At the very least I don't get another
tuh_hid_mount_cb
.Is there some way of detecting that the device doesn't support the report protocol, if that's what's actually happening here?
Beta Was this translation helpful? Give feedback.
All reactions