Giter Site home page Giter Site logo

usbip-win-client's Introduction

Hi there ๐Ÿ‘‹

usbip-win-client's People

Contributors

barbalion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

usbip-win-client's Issues

Immediately reported disconnected

Hey,

This is what I get on the Windows side (first I tried UDE, and tried restarting both Windows and Raspberry):

C:\Users\user0\usr\usbip>install
Looking for the config...
Config is not found. Creating new "usbip.conf"...
Current ServiceName is "USBIPService".
Type new Service Name (leave empty to keep it):
Do you want to use UDE driver (default, newer one. Choose 'No' to fallback to the old driver if you experience any trouble with new UDE driver)? (Y/n): n
Do you want to add a remote host? (Y/n):
Type in the host name/IP: 192.168.0.221
Added host 192.168.0.221.
Do you want to add ports to this remote? (Y/n):
Looking up for available devices...
Exportable USB devices
======================
 - 192.168.0.221
        1-1: XMOS Ltd : unknown product (20b1:0008)
           : /sys/devices/platform/soc/3f980000.usb/usb1/1-1
           : Miscellaneous Device / ? / Interface Association (ef/02/01)

Type in the bus_id to add: 1-1
Added port with bus_id 1-1.
Do you want to add more ports to this remote? (y/N):
Do you want to add more remote hosts? (y/N):
Done with config. Save it? (Y/n):
        1 file(s) moved.
Install the test certificate for the driver? (Y/n):
CertMgr Succeeded
CertMgr Succeeded
Install the driver? (Y/n):
Installing the drivers...
usbip: info: vhci driver installed successfully
Install the service? (Y/n):
Installing the service "USBIPService"...
Service "USBIPService" installed successfully!
USBIPService: START: The operation completed successfully.
Looking for active ports...
SERVICE_RUNNING
Error: 192.168.0.221         1-1: XMOS Ltd : unknown product  "20b1:0008" is disconnected.
Press any key to continue . . .
Done. You now must have everything working. Press any key to exit.
Press any key to continue . . .

On the Raspberry side each attach attempt is reported by dmesg as:

usbip-host 1-1: stub up
usbip-host 1-1: recv a header, 0
Indeed it is in host mode hprt0 = 00001101
usbip-host 1-1: reset high-speed USB device number 2 using dwc_otg
Indeed it is in host mode hprt0 = 00001101
usbip-host 1-1: device reset

When connecting with a Linux client by the analogous sudo usbip attach --remote 192.168.0.221 --busid=1.1, all works fine.

usbip-host 1-1: stub up
usbip-host 1-1: usb_set_interface done: inf 1 alt 0
usbip-host 1-1: usb_set_interface done: inf 1 alt 1
usbip-host 1-1: usb_set_interface done: inf 1 alt 0
usbip-host 1-1: usb_set_interface done: inf 1 alt 2
usbip-host 1-1: usb_set_interface done: inf 1 alt 0
usbip-host 1-1: usb_set_interface done: inf 1 alt 3
usbip-host 1-1: usb_set_interface done: inf 1 alt 0
usbip-host 1-1: usb_set_interface done: inf 1 alt 0
usbip-host 1-1: usb_set_interface done: inf 1 alt 2
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: usb_set_interface done: inf 1 alt 0
usbip-host 1-1: usb_set_interface done: inf 1 alt 0
usbip-host 1-1: usb_set_interface done: inf 1 alt 2
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: unlinked by call to usb_unlink_urb()
usbip-host 1-1: usb_set_interface done: inf 1 alt 0
usbip-host 1-1: usb_set_interface done: inf 1 alt 0
usbip-host 1-1: usb_set_interface done: inf 1 alt 2

And the recv a header, 0 etc. appears when explicitly detaching.

I'd be grateful for any suggestions.

Thanks.

install.cmd file broken?

i ran the command both with powershell and cmd with and without admin. all of it i got the same error.

usbip_windows_v2.0> .\install.cmd
\usbip_windows_v2.0\install.cmd\" '" was unexpected at this time.

is this a issue on my side or this is a issue with the code?
i tried to fiddle with it. im guessing the issue is from the first line.

pushd "%~dp0" && net sess 1>nul 2>nul || (powershell -ex unrestricted -Command "Start-Process -Verb RunAs -FilePath '%comspec%' -ArgumentList '/c \"%~f0\" %*'" >nul 2>nul & exit /b 1)

Error when installing: Server is not defined! -> usbip.conf seems to be empty

Hello,

as said in the topic the install.cmd throws me the error message:

Error: Server is not defined! Run 'install.cmd' first.
Error: "" is disconnected.

This is despite me specifiyng the server and the second time running install.cmd correctly recalling, that I already made a config and showing me the correct server ip.

I hope you can help, I much appreciate how much effort must have went into writing all these scripts.

Yours sincerely
Zaptro

After I install

I already installed but I'm having this issue installing the service.
error01
I already deleted the service with sc delete "USB-Over-IP Service" and I run the install again and I got the same output.
What I'm doing wrong?

Documentation missing

Please provide any documentation how to run client.
I think installation was almost successful:
image

I can't list any devices:
image

USBIP server is working because I can see connected devices on other USBIP client on Linux:
image

powershell not working

powershell not working .
i try ./usbip.exe on powershell.
cmd open and cmd automatic closed

Cannot attach equipment from win11

Hi,
I have installe usbip on the Pi4 and succeed to bind one usb equipment, a usb key for test.
On the Win11 i laso installed your solution, and succeeded to list the binded elements on the Pi4 from the Win11.
But when i launch the attach command i get "failed to attach"
I am not expert enough to understand what happens here, and what i did wrong...
Hope i can get some help.
image

How to remove all configs

How can I remove all configs
image
How can I make it soo it doesn't pick up old config (removed services, drivers, signatures, and deleted the folder and unzipped it again)
Thanks in advance.

Windows client encountering 'no exportable devices found'

I encounter problem

On RaspberryPi

pit@raspberrypi:~ $ sudo modprobe usbip_host
pit@raspberrypi:~ $ sudo usbipd -D
pit@raspberrypi:~ $ sudo usbip --debug bind --busid=1-1.3
usbip: debug: usbip.c:141:[run_command] running command: `bind'
usbip: info: bind device on busid 1-1.3: complete
pit@raspberrypi:~ $ sudo netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      601/sshd
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      313/cupsd
tcp        0      0 127.0.0.1:6010          0.0.0.0:*               LISTEN      872/sshd: pit@pts/1
tcp        0      0 0.0.0.0:3240            0.0.0.0:*               LISTEN      907/usbipd
tcp6       0      0 :::22                   :::*                    LISTEN      601/sshd
tcp6       0      0 ::1:631                 :::*                    LISTEN      313/cupsd
tcp6       0      0 ::1:6010                :::*                    LISTEN      872/sshd: pit@pts/1
tcp6       0      0 :::3240                 :::*                    LISTEN      907/usbipd
udp        0      0 0.0.0.0:959             0.0.0.0:*                           -
udp        0      0 0.0.0.0:68              0.0.0.0:*                           425/dhcpcd
udp        0      0 0.0.0.0:52326           0.0.0.0:*                           326/avahi-daemon: r
udp        0      0 0.0.0.0:631             0.0.0.0:*                           548/cups-browsed
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           326/avahi-daemon: r
udp6       0      0 :::546                  :::*                                425/dhcpcd
udp6       0      0 :::59028                :::*                                326/avahi-daemon: r
udp6       0      0 :::5353                 :::*                                326/avahi-daemon: r

On windows10

Microsoft Windows [Version 10.0.18363.1198]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd /

C:\>cd Users\joLo\usbip-win-client

C:\Users\joLo\usbip-win-client>install.cmd
Looking for the config...
Config is not found. Creating new "usbip.conf"...
Current ServiceName is "USBIPService".
Type new Service Name (leave empty to keep it):
Do you want to use UDE driver (default, newer one. Choose 'No' to fallback to the old driver if you experience any trouble with new UDE driver)? (Y/n):
Do you want to add a remote host? (Y/n):
Type in the host name/IP: 192.168.29.3
Added host 192.168.29.3.
Do you want to add ports to this remote? (Y/n): 1-1.3
Do you want to add ports to this remote? (Y/n):
Looking up for available devices...
Exportable USB devices
======================
 - 192.168.29.3
      1-1.3: Microdia : unknown product (0c45:636b)
           : /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3
           : Miscellaneous Device / ? / Interface Association (ef/02/01)

Type in the bus_id to add: 1-1.3
Added port with bus_id 1-1.3.
Do you want to add more ports to this remote? (y/N):
Do you want to add more remote hosts? (y/N):
Done with config. Save it? (Y/n):
        1 file(s) moved.
Install the test certificate for the driver? (Y/n):
CertMgr Succeeded
CertMgr Succeeded
Install the driver? (Y/n):
Installing the drivers...
usbip: info: vhci(ude) driver installed successfully
Install the service? (Y/n):
Installing the service "USBIPService"...
Service "USBIPService" installed successfully!
USBIPService: START: The operation completed successfully.
Looking for active ports...
SERVICE_RUNNING
usbip: info: no exportable devices found on 192.168.29.3
Error: 192.168.29.3  "" is disconnected.
Press any key to continue . . .

Please help me debug this

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.