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

unable to detach devices #267

Open
samzhou opened this issue Aug 30, 2021 · 3 comments
Open

unable to detach devices #267

samzhou opened this issue Aug 30, 2021 · 3 comments

Comments

@samzhou
Copy link

samzhou commented Aug 30, 2021

When I detach devices, it shows succesfull. But I can still find it using usbip port :

PS D:\bin\usbip-win> usbip -d detach -p 3
usbip: debug: usbip.c:151:[run_command] running command: detach
usbip: debug: usbip_vhci.c:61:[usbip_vhci_driver_open] device path: \\?\usbipwin#vhci#1&19724a8b&0#{d35f7840-6a0c-11d2-b841-00c04fad5171}
port 3 is succesfully detached

PS D:\bin\usbip-win> usbip port
Imported USB devices
====================
Port 00: <Device in Use> at Full Speed(12Mbps)
       unknown vendor : unknown product (163c:548c)
       ?-? -> unknown host, remote port and remote busid
           -> remote bus/dev ???/???
Port 01: <Device in Use> at Full Speed(12Mbps)
       unknown vendor : unknown product (163c:548c)
       ?-? -> unknown host, remote port and remote busid
           -> remote bus/dev ???/???
Port 02: <Device in Use> at Full Speed(12Mbps)
       unknown vendor : unknown product (163c:548c)
       ?-? -> unknown host, remote port and remote busid
           -> remote bus/dev ???/???
Port 03: <Device in Use> at Full Speed(12Mbps)
       unknown vendor : unknown product (163c:548c)
       ?-? -> unknown host, remote port and remote busid
           -> remote bus/dev ???/???

I can try to restart the windows to fix it at last week. But today I can see imported devices without any operation after rebooting.

PS D:\bin\usbip-win> usbip list -r $env:USBCON_HOST
Intel Corp.
Exportable USB devices
======================
  1-1.3.6.1: unknown vendor : unknown product (163c:548c)
           : (Defined at Interface level) (00/00/00)

PS D:\bin\usbip-win> usbip port
Imported USB devices
====================
Port 00: <Device in Use> at Full Speed(12Mbps)
       unknown vendor : unknown product (163c:548c)
       ?-? -> unknown host, remote port and remote busid
           -> remote bus/dev ???/???
Port 01: <Device in Use> at Full Speed(12Mbps)
       unknown vendor : unknown product (163c:548c)
       ?-? -> unknown host, remote port and remote busid
           -> remote bus/dev ???/???
Port 02: <Device in Use> at Full Speed(12Mbps)
       unknown vendor : unknown product (163c:548c)
       ?-? -> unknown host, remote port and remote busid
           -> remote bus/dev ???/???

I don't know how can it detach the device, pls help me. thanks!

Server: Ubuntu Server on Raspberry Pi
Client: Windows 10.0.18382, usbip-win 0.3.5

@samzhou
Copy link
Author

samzhou commented Aug 30, 2021

when i passed different port params, but i got the same device path in debug info(in fact they didn't take affect):

PS D:\bin\usbip-win> usbip -d  detach -p 0
usbip: debug: usbip.c:151:[run_command] running command: detach
usbip: debug: usbip_vhci.c:61:[usbip_vhci_driver_open] device path: \\?\usbipwin#vhci#1&19724a8b&0#{d35f7840-6a0c-11d2-b841-00c04fad5171}
port 0 is succesfully detached
PS D:\bin\usbip-win> usbip -d  detach -p 1
usbip: debug: usbip.c:151:[run_command] running command: detach
usbip: debug: usbip_vhci.c:61:[usbip_vhci_driver_open] device path: \\?\usbipwin#vhci#1&19724a8b&0#{d35f7840-6a0c-11d2-b841-00c04fad5171}
port 1 is succesfully detached
PS D:\bin\usbip-win> usbip -d  detach -p 2
usbip: debug: usbip.c:151:[run_command] running command: detach
usbip: debug: usbip_vhci.c:61:[usbip_vhci_driver_open] device path: \\?\usbipwin#vhci#1&19724a8b&0#{d35f7840-6a0c-11d2-b841-00c04fad5171}
port 2 is succesfully detached
PS D:\bin\usbip-win> usbip -d  detach -p 3
usbip: debug: usbip.c:151:[run_command] running command: detach
usbip: debug: usbip_vhci.c:61:[usbip_vhci_driver_open] device path: \\?\usbipwin#vhci#1&19724a8b&0#{d35f7840-6a0c-11d2-b841-00c04fad5171}
port 3 is succesfully detached

PS D:\bin\usbip-win> usbip -d  detach -p -1
usbip: debug: usbip.c:151:[run_command] running command: detach
usbip: debug: usbip_vhci.c:61:[usbip_vhci_driver_open] device path: \\?\usbipwin#vhci#1&19724a8b&0#{d35f7840-6a0c-11d2-b841-00c04fad5171}
all ports are detached

@samzhou
Copy link
Author

samzhou commented Aug 30, 2021

usbip devices are following: (via devcon find USB*)

USB\ROOT_HUB&VID_1209&PID_8250&REV_0000\2&62C1C07&0         : usbip-win VHUB
ROOT\USBIP\ROOT                                             : usbip-win VHCI Root
USBIPWIN\VHCI\1&19724A8B&0                                  : usbip-win VHCI

@tonyho
Copy link

tonyho commented Dec 16, 2021

Same problem, I use the Ubuntu 18.04.6.

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

2 participants