Open SunJun8 opened 3 years ago
The device can already be found in wsl2
❯ sudo usbip list --remote=$wsl_ip
Exportable USB devices
======================
- 172.25.128.1
1-220: Intel Corp. : AX200 Bluetooth (8087:0029)
: \\?\usb#vid_8087&pid_0029#6&254d9ecd&0&4#{fb265267-c609-41e6-8eca-a20d92a833e6}
: Wireless / Radio Frequency / Bluetooth (e0/01/01)
which version do you use?
type:
#-$ usbip version & usbip --debug
in server and client
post Output pls.☺️
Win11 Pro
PS D:\Tool\usbip-win-0.3.5> .\usbip.exe version
usbip (usbip-win 0.3.5)
wsl2
❯ usbip version
usbip (usbip-utils 2.0)
Same device and Problem (Error 43) here:
Exportable USB devices
======================
- zeus
3-3: Intel Corp. : AX200 Bluetooth (8087:0029)
: /sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb3/3-3
: Wireless / Radio Frequency / Bluetooth (e0/01/01)
: 0 - Wireless / Radio Frequency / Bluetooth (e0/01/01)
: 1 - Wireless / Radio Frequency / Bluetooth (e0/01/01)
probably because not all switches in project have speed for Wireless usb bcdusb = 0x0250 ~ wireless
usb_util.c switch (bcdUSB) {} //missed 0x0201,0x0210, 0x0250
stub_ioctl.c switch (bcdUSB) {} //have 0x0250, but missed 0x0201,0x0210
vhci_plugin.c switch (bcdUSB) {} //missed 0x0201,0x0210, 0x0250
-- off top more strange what msdn UDECX USB have only 4 speed gradaitions typedef enum _UDECX_USB_DEVICE_SPEED { UdecxUsbLowSpeed = 0, UdecxUsbFullSpeed, UdecxUsbHighSpeed, UdecxUsbSuperSpeed, } UDECX_USB_DEVICE_SPEED, *PUDECX_USB_DEVICE_SPEED;
and here we have: /userspace/lib/usbip_common.c static const struct speed_string speed_strings[] = { { USB_SPEED_UNKNOWN, "unknown", "Unknown Speed"}, { USB_SPEED_LOW, "1.5", "Low Speed(1.5Mbps)" }, { USB_SPEED_FULL, "12", "Full Speed(12Mbps)" }, { USB_SPEED_HIGH, "480", "High Speed(480Mbps)" }, { USB_SPEED_WIRELESS, "53.3-480", "Wireless" }, { USB_SPEED_SUPER, "5000", "Super Speed(5000Mbps)" }, { 0, NULL, NULL } };
and /include/usbip_proto.h enum usb_device_speed { USB_SPEED_UNKNOWN = 0, // enumerating USB_SPEED_LOW, // usb 1.1 USB_SPEED_FULL, // usb 1.1 USB_SPEED_HIGH, // usb 2.0 USB_SPEED_WIRELESS, // wireless (usb 2.5) USB_SPEED_SUPER, // usb 3.0 USB_SPEED_SUPER_PLUS // usb 3.1 };