Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get the example host to work #46

Open
bczhc opened this issue Jan 18, 2024 · 0 comments
Open

Can't get the example host to work #46

bczhc opened this issue Jan 18, 2024 · 0 comments

Comments

@bczhc
Copy link

bczhc commented Jan 18, 2024

The host example fails to share a logitech receiver.

How I reproduced it:

  1. Plug in the receiver on my Raspberry PI

  2. Set up the server:

    ~/usbip master ❯ export RUST_LOG=info
    ~/usbip master ❯ sudo target/release/examples/host
  3. Set up the client on my computer:

    ~ ❯ sudo usbip list -r 192.168.124.103                                                                                                                                                     16:28:58
    [sudo] password for bczhc:
    Exportable USB devices
    ======================
     - 192.168.124.103
          4-1-0: Linux Foundation : 3.0 root hub (1d6b:0003)
               : /sys/bus/4/1/0
               : Hub / Unused / unknown protocol (09/00/03)
               :  0 - Hub / Unused / Full speed (or root) hub (09/00/00)
    
          3-1-0: Linux Foundation : 2.0 root hub (1d6b:0002)
               : /sys/bus/3/1/0
               : Hub / Unused / Single TT (09/00/01)
               :  0 - Hub / Unused / Full speed (or root) hub (09/00/00)
    
          2-1-0: Linux Foundation : 3.0 root hub (1d6b:0003)
               : /sys/bus/2/1/0
               : Hub / Unused / unknown protocol (09/00/03)
               :  0 - Hub / Unused / Full speed (or root) hub (09/00/00)
    
         1-47-4: Logitech, Inc. : Unifying Receiver (046d:c52f)
               : /sys/bus/1/47/4
               : (Defined at Interface level) (00/00/00)
               :  0 - Human Interface Device / Boot Interface Subclass / Mouse (03/01/02)
               :  1 - Human Interface Device / No Subclass / None (03/00/00)
    
          1-2-1: VIA Labs, Inc. : Hub (2109:3431)
               : /sys/bus/1/2/1
               : Hub / Unused / Single TT (09/00/01)
               :  0 - Hub / Unused / Full speed (or root) hub (09/00/00)
    
          1-1-0: Linux Foundation : 2.0 root hub (1d6b:0002)
               : /sys/bus/1/1/0
               : Hub / Unused / Single TT (09/00/01)
               :  0 - Hub / Unused / Full speed (or root) hub (09/00/00)
    
    ~ ❯ sudo usbip attach -r 192.168.124.103 -b 1-47-4                                                                                                                                         16:29:06

Actual behavior

The cursor won't move when I move the mouse.

Expected behavior

Not so.

Additional info

With the original usbip (as the server), this works.

dmesg:

[114533.584038] vhci_hcd vhci_hcd.0: pdev(0) rhport(0) sockfd(3)
[114533.584049] vhci_hcd vhci_hcd.0: devid(65540) speed(2) speed_str(full-speed)
[114533.584056] vhci_hcd vhci_hcd.0: Device attached
[114533.759561] vhci_hcd: vhci_device speed not set
[114533.816210] usb 5-1: new full-speed USB device number 30 using vhci_hcd
[114533.886315] vhci_hcd: vhci_device speed not set
[114533.942896] usb 5-1: SetAddress Request (30) to port 0
[114533.968102] usb 5-1: not running at top speed; connect to a high speed hub
[114533.989433] usb 5-1: New USB device found, idVendor=046d, idProduct=c52f, bcdDevice=1e.00
[114533.989440] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[114533.989444] usb 5-1: Product: USB Receiver
[114533.989447] usb 5-1: Manufacturer: Logitech
[114534.013670] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013687] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013697] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013706] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013716] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013725] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013734] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013746] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013756] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013765] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013774] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013783] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013792] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013801] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013810] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013819] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013828] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013838] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013847] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013856] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013865] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013874] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013883] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013892] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013903] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013913] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013923] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013933] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013943] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013953] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013963] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013973] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013983] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.013993] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014003] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014012] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014022] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014032] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014042] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014052] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014062] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014072] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014082] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014092] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014102] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014112] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014122] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014132] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014142] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014151] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014161] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014171] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014181] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014191] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014201] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014211] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014221] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014231] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014241] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014251] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014261] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014271] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014281] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014291] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014301] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014311] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.014320] logitech-djreceiver 0003:046D:C52F.003C: unknown main item tag 0x0
[114534.034080] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034084] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034087] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034089] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034092] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034095] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034097] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034100] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034102] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034105] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034107] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034110] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034112] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034115] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034117] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034120] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034123] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034125] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034128] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034130] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034133] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034135] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034138] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034140] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034143] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034145] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034148] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034151] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034153] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034156] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034158] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034161] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034165] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034167] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034170] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034173] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034175] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034178] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034180] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034183] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034186] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034188] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034191] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034193] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034196] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034199] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034201] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034204] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034206] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034209] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034212] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034214] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034217] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034220] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034222] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034225] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034227] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034230] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034233] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034235] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034238] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034240] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034243] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034246] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034248] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034251] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034253] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034256] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034259] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034261] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034264] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034266] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034269] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034272] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034274] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034277] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034279] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034282] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
[114534.034285] logitech-djreceiver 0003:046D:C52F.003D: unknown main item tag 0x0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant