vadimgrn / usbip-win2

USB/IP Client for Windows
GNU General Public License v3.0
477 stars 40 forks source link

Remoted device not showing up #57

Closed brandonros closed 10 months ago

brandonros commented 10 months ago

The device is attached:

PS C:\Users\star> usbip list -r redacted
Exportable USB devices
======================
   2-6-5   : Realtek Semiconductor Corp. : unknown product (0bda:1100)
           : /sys/bus/2/6/5
           : (Defined at Interface level) (00/00/00)
           :  0 - (Defined at Interface level) (00/00/00)

   2-5-1   : Realtek Semiconductor Corp. : unknown product (0bda:5483)
           : /sys/bus/2/5/1
           : (Defined at Interface level) (00/00/00)
           :  0 - (Defined at Interface level) (00/00/00)

   2-4-2   : Realtek Semiconductor Corp. : RTL8153 Gigabit Ethernet Adapter (0bda:8153)
           : /sys/bus/2/4/2
           : (Defined at Interface level) (00/00/00)
           :  0 - (Defined at Interface level) (00/00/00)
           :  1 - (Defined at Interface level) (00/00/00)

   2-3-1   : Realtek Semiconductor Corp. : unknown product (0bda:0483)
           : /sys/bus/2/3/1
           : (Defined at Interface level) (00/00/00)
           :  0 - (Defined at Interface level) (00/00/00)

   2-2-3   : Realtek Semiconductor Corp. : unknown product (0bda:0483)
           : /sys/bus/2/2/3
           : (Defined at Interface level) (00/00/00)
           :  0 - (Defined at Interface level) (00/00/00)

   2-1-2   : Realtek Semiconductor Corp. : unknown product (0bda:5483)
           : /sys/bus/2/1/2
           : (Defined at Interface level) (00/00/00)
           :  0 - (Defined at Interface level) (00/00/00)

   0-1-1   : unknown vendor : unknown product (18e1:01b3)
           : /sys/bus/0/1/1
           : Miscellaneous Device/?/Interface Association (ef/02/01)
           :  0 - Miscellaneous Device/?/? (ef/04/01)
           :  1 - (Defined at Interface level) (00/00/00)
           :  2 - (Defined at Interface level) (00/00/00)
           :  3 - (Defined at Interface level) (00/00/00)

PS C:\Users\star> usbip attach -r redacted -b 0-1-1
succesfully attached to port 1

PS C:\Users\star> usbip port
Imported USB devices
====================
Port 01: device in use at High Speed(480Mbps)
         unknown vendor : unknown product (18e1:01b3)
           -> usbip://redacted:3240/0-1-1
           -> remote bus/dev 000/001

Zadig shows the device:

image

image

device shows up, but when i call setupapi to use it with win32api from a driver perspective:

[   2024-01-20T14:59:08.016449-05:00] trace_hooks::setupapi INFO: SetupDiGetClassDevsW ClassGuid = 0x6c4e0b5c (Data1 = f99f6fce Data2 = 03f4 Data3 = 4817 Data4 = [8a, 03, 8c, fd, e4, 74, 3b, 92]) Enumerator = 0x0 hwndParent = 0x0 Flags = 18
[2024-01-20T14:59:08.023907700-05:00] trace_hooks::setupapi INFO: SetupDiGetClassDevsW ClassGuid = 0x6c4e0b5c (Data1 = f99f6fce Data2 = 03f4 Data3 = 4817 Data4 = [8a, 03, 8c, fd, e4, 74, 3b, 92]) Enumerator = 0x0 hwndParent = 0x0 Flags = 18 ret_val = 0x1429ea8 last_error = 0
[2024-01-20T14:59:08.028475800-05:00] trace_hooks::setupapi INFO: SetupDiEnumDeviceInterfaces DeviceInfoSet = 0x1429ea8 DeviceInfoData = 0x0 InterfaceClassGuid = 0x6c4e0b5c (Data1 = f99f6fce Data2 = 03f4 Data3 = 4817 Data4 = [8a, 03, 8c, fd, e4, 74, 3b, 92]) MemberIndex = 0 DeviceInterfaceData = 0xddcef8
[2024-01-20T14:59:08.036703800-05:00] trace_hooks::setupapi INFO: SetupDiEnumDeviceInterfaces DeviceInfoSet = 0x1429ea8 DeviceInfoData = 0x0 InterfaceClassGuid = 0x6c4e0b5c (Data1 = f99f6fce Data2 = 03f4 Data3 = 4817 Data4 = [8a, 03, 8c, fd, e4, 74, 3b, 92]) MemberIndex = 0 DeviceInterfaceData = 0xddcef8 ret_val = 0 last_error = 259
[2024-01-20T14:59:08.043235400-05:00] trace_hooks::setupapi INFO: SetupDiDestroyDeviceInfoList
[2024-01-20T14:59:08.045522400-05:00] trace_hooks::setupapi INFO: SetupDiDestroyDeviceInfoList

it isn't showing?

error 259 = ERROR_NO_MORE_ITEMS

image

wonder if this is an issue/how to fix?

brandonros commented 10 months ago

I was trying to remote a non-WinUSB device with https://github.com/jiegec/usbip which only supports libusb.

Switching to https://github.com/dorssel/usbipd-win slightly fixed the issue.