[usbproxy] Re: windows cannot start usb device relayed by USB proxy

  • From: "Y. Zhang" <ygz999@xxxxxxxxx>
  • To: usbproxy@xxxxxxxxxxxxx, Dominic Spill <dominicgs@xxxxxxxxx>
  • Date: Tue, 9 Jun 2015 18:18:59 -0700

Dominic,

Thank you for your response. The issue seems to be with the following
code with libusb_control_transfer gets stuck when relaying certain
setup messages from host to device. This actually happens with a linux
host as well. Do you have any suggestion/comment on how to deal with
it?

int
rc=libusb_control_transfer(dev_handle,setup_packet->bRequestType,setup_packet->bRequest,setup_packet->wValue,setup_packet->wIndex,dataptr,setup_packet->wLength,timeout);

Thanks,
Yuan

On Tue, Jun 9, 2015 at 6:38 AM, Dominic Spill <dominicgs@xxxxxxxxx> wrote:

On 7 June 2015 at 19:00, Y. Zhang <ygz999@xxxxxxxxx> wrote:
Hi All,

Has anyone tried a Windows Host?

I know someone has had success with XBox360, although I'm not sure how
similar the USB handling parts of those two OSs are.

I've done some tests and the USB
device relayed by USP proxy cannot be started by Windows. Here is the
test topology:

Host (Windows 7) <=> (USBProxy GadgetFS) (USBProxy LibUSB) <=> USB device

USBProxy runs on beaglebone black.

Do you have any output from usb-mitm? Have you tried it with other hosts?

I've tried a few USB devices: mass storage, HID mouse, HID keyboard.
None works. Windows 7 does recognize the USB device (mass storage, HID
mouse/keyboard) but cannot start the device (no proper driver). Is
there any information missing when USBProxy relays from the device
during the setup?

As far as I know there shouldn't be anything missing, USBProxy should
relay all requests to the device. Could you try with logging turned
on (-l) ? Then we may see the requests that the host is making.

Thanks,
Dominic


Other related posts: