Menu

usbip client Windows verses Linux version

Thomasy
2015-10-09
2018-01-22
  • Thomasy

    Thomasy - 2015-10-09

    The windows version cannot attach device for the very first time connect to usbipd. But Linux client is okay all the time. I found the received request is different between windows version [0x8005(5)] and linux version [0x8003(5)].

    For windows version: [usbip_windows_v0.2.0.0_signed with patch version 1.0.6 to 1.1.1 to match server version]

    >usbip.exe -l 192.168.1.120
    usbip err: usbip_windows.c: 829 (attach_device) cannot find device
    

    With usbipd log [usbipd (usbip-utils 2.0)]

    usbipd: debug: usbipd.c:571:[do_standalone_mode] heartbeat timeout on ppoll()
    usbipd: debug: usbipd.c:566:[do_standalone_mode] read event on fd[0]=3
    usbipd: info: connection from 192.168.1.60:54747
    usbipd: info: received request: **0x8005(5)**
    usbipd: info: exportable devices: 1
    libusbip: debug: usbip_common.c:90:[dump_usb_device] path                 = /sys/devices/pci0000:00/0000:00:0b.0/usb1/1-1
    libusbip: debug: usbip_common.c:91:[dump_usb_device] busid                = 1-1
    libusbip: debug: usbip_common.c:97:[dump_usb_device] Device(C/SC/P)       = (Defined at Interface level) (00/00/00)
    libusbip: debug: usbip_common.c:99:[dump_usb_device] bcdDevice            = 100
    libusbip: debug: usbip_common.c:104:[dump_usb_device] Vendor/Product       = unknown vendor : unknown product (13fe:4100)
    libusbip: debug: usbip_common.c:106:[dump_usb_device] bNumConfigurations   = 1
    libusbip: debug: usbip_common.c:107:[dump_usb_device] bNumInterfaces       = 0
    libusbip: debug: usbip_common.c:110:[dump_usb_device] speed                = High Speed(480Mbps)
    libusbip: debug: usbip_common.c:112:[dump_usb_device] busnum               = 1
    libusbip: debug: usbip_common.c:113:[dump_usb_device] devnum               = 6
    usbipd: info: request 0x8005(5): complete
    

    But with Linux version

    $ sudo usbip --debug attach -r 192.168.1.120 -b 1-1
    usbip: debug: usbip.c:141:[run_command] running command: 'attach'
    libusbip: debug: vhci_driver.c:242:[usbip_vhci_driver_open] available ports: 7
    libusbip: debug: vhci_driver.c:71:[parse_status] port 0 status 4 speed 0 devid 0
    libusbip: debug: vhci_driver.c:72:[parse_status] socket 0 lbusid 0000000000000000
    libusbip: debug: vhci_driver.c:71:[parse_status] port 1 status 4 speed 0 devid 0
    libusbip: debug: vhci_driver.c:72:[parse_status] socket 0 lbusid 0000000000000000
    libusbip: debug: vhci_driver.c:71:[parse_status] port 2 status 4 speed 0 devid 0
    libusbip: debug: vhci_driver.c:72:[parse_status] socket 0 lbusid 0000000000000000
    libusbip: debug: vhci_driver.c:71:[parse_status] port 3 status 4 speed 0 devid 0
    libusbip: debug: vhci_driver.c:72:[parse_status] socket 0 lbusid 0000000000000000
    libusbip: debug: vhci_driver.c:71:[parse_status] port 4 status 4 speed 0 devid 0
    libusbip: debug: vhci_driver.c:72:[parse_status] socket 0 lbusid 0000000000000000
    libusbip: debug: vhci_driver.c:71:[parse_status] port 5 status 4 speed 0 devid 0
    libusbip: debug: vhci_driver.c:72:[parse_status] socket 0 lbusid 0000000000000000
    libusbip: debug: vhci_driver.c:71:[parse_status] port 6 status 4 speed 0 devid 0
    libusbip: debug: vhci_driver.c:72:[parse_status] socket 0 lbusid 0000000000000000
    libusbip: debug: vhci_driver.c:71:[parse_status] port 7 status 4 speed 0 devid 0
    libusbip: debug: vhci_driver.c:72:[parse_status] socket 0 lbusid 0000000000000000
    libusbip: debug: vhci_driver.c:105:[parse_status] exit
    libusbip: debug: vhci_driver.c:311:[usbip_vhci_attach_device2] writing: 0 3 65542 3
    libusbip: debug: vhci_driver.c:316:[usbip_vhci_attach_device2] attach attribute path: /sys/devices/platform/vhci_hcd/attach
    libusbip: debug: vhci_driver.c:324:[usbip_vhci_attach_device2] attached port: 0
    

    With usbipd log [usbipd (usbip-utils 2.0)]

    usbipd: debug: usbipd.c:566:[do_standalone_mode] read event on fd[0]=3
    usbipd: info: connection from 192.168.1.149:42161
    usbipd: info: received request:** 0x8003(5)**
    usbipd: info: found requested device: 1-1
    libusbip: info: connect: 1-1
    usbipd: debug: usbipd.c:153:[recv_request_import] import request busid 1-1: complete
    usbipd: info: request 0x8003(5): complete
    usbipd: debug: usbipd.c:571:[do_standalone_mode] heartbeat timeout on ppoll()
    usbipd: debug: usbipd.c:571:[do_standalone_mode] heartbeat timeout on ppoll()
    

    Is this bug of usbip.exe client?

     
    • Alexandre Demers

      Hi Thomasy. I am going through the reported bugs, help requests to catch whatever is still usefull. I'm trying to rive this project, but since may call to old admins have been left unanswered until now, I've created a fork and I'm beginning my work on github.

      That being said, while I understand your bug report, I'm not sure to follow you when you said "...with patch version 1.0.6 to 1.1.1 to match server version". Which patches are you talking about? Were you refering to the Linux patches applied on 0.2.0 Windows code?

       

Log in to post a comment.