Skip to content

Instantly share code, notes, and snippets.

@robinsmidsrod
Created October 10, 2019 10:09
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save robinsmidsrod/d2bdb98110e56f1a0f55adcbd593c371 to your computer and use it in GitHub Desktop.
Save robinsmidsrod/d2bdb98110e56f1a0f55adcbd593c371 to your computer and use it in GitHub Desktop.
USB-over-IP for sharing webcam over local network
# server - make a device available remotely
apt install linux-tools-common linux-tools-generic hwdata
modprobe usbip-core
modprobe usbip-host
usbipd -D # (runs in background)
usbip list -l
usbip bind -b <busid>
# client - attach to remote device
apt install linux-tools-common linux-tools-generic-hwe-18.04 hwdata
modprobe usbip-core
modprobe vhci-hcd
usbip list -r <server>
usbip attach -r <server> -b <busid>
usbip port
usbip detach -p <port>
# server - remove a shared device
usbip list -r localhost
usbip unbind -b <busid>
pkill usbipd
More information here: http://usbip.sourceforge.net/
README with older usbip tool examples: https://sourceforge.net/p/usbip/git-windows/ci/master/tree/trunk/userspace/README
A single camera with 640x480 resolution uses approx. 150Mbps, so no go on most wi-fi (2.4GHz). If you try to connect it up on a connection without enough bandwidth, you'll see the camera, but image will not show up at all in cheese application.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment