cezanne / usbip-win

USB/IP for Windows
GNU General Public License v3.0
1.95k stars 351 forks source link

attach_ude does not return #202

Closed septatrix closed 3 years ago

septatrix commented 3 years ago

When running usbip.exe attach_ude --remote=10.8.0.128 --busid=1-1.3 the command does not return.

I have not tried the non-ude version as that does not support my device but under linux the attach subcommand returns after calling. Running attach_ude on Windows on the other hand blocks the terminal. Nevertheless the device seems to get attached correctly and works without any problems.

amerkestijn commented 3 years ago

I've got this working using the following repository: https://github.com/barbalion/usbip-win-client Just use "Install.cmd" to set up the config & service. After you've done that use "Attach.cmd" to attach your configured device.

cezanne commented 3 years ago

@septatrix : Blocking attach is one of the weaknesses of usbip-win. Non-blocking attach command will be started to develop.

cezanne commented 3 years ago

@septatrix : Please check dev branch. It supports non-blocking attach.

septatrix commented 3 years ago

I used the artifacts from https://ci.appveyor.com/project/cezanne/usbip-win/builds/37426780 and installed the ude version. Everything seemed to work as expected so from my side this issue is resolved (once it hits master).


Some things I noticed in the instructions: The files are listed as usbip_*_udf.* whereas the files in the build contain _ude.*. Also you wrote that it will install both versions (wdm and ude) if the corresponding installation files are found - how would I then select which one to choose for attaching? I just installed the ude version because of that...

cezanne commented 3 years ago

@septatrix :

Some things I noticed in the instructions: The files are listed as usbip__udf. whereas the files in the build contain _ude.*.

Oh.. typo.. thanks. I'll fix.

Also you wrote that it will install both versions (wdm and ude) if the corresponding installation files are found - how would I then select which one to choose for attaching? I just installed the ude version because of that...

CMD> usbip.exe install -u I'll add this instruction to README. You can see a simple help with usbip.exe help install.

septatrix commented 3 years ago

CMD> usbip.exe install -u I'll add this instruction to README. You can see a simple help with usbip.exe help install.

Thanks for the quick response. But if I were to install both drivers which one would usbip.exe attach use?

cezanne commented 3 years ago

@septatrix :

But if I were to install both drivers which one would usbip.exe attach use?

When no option is given, ude is tried first. So there's no way to install both drivers. I'll check if README is misleading in this regard.

cezanne commented 3 years ago

@septatrix : This functionality was added since v0.3.4. This issue will be closed.

septatrix commented 3 years ago

Yes of course. Thanks for working on this :D