AristoChen / usb-proxy

A USB proxy based on raw-gadget and libusb
Apache License 2.0
136 stars 29 forks source link

Automatically remap endpoint addresses based on their capabilities #12

Open xairy opened 8 months ago

xairy commented 8 months ago

Right now, USB Proxy tried to use the same addresses for UDC endpoints as the addresses that are provided in the USB descriptors of the proxied device. This doesn't always work, as UDC endpoints might not support the required addresses or capabilities.

Instead, we need to dynamically remap the endpoint addresses; see assign_ep_address in the Raw Gadget examples for reference.

This issue has previously came up here.