usbip works fine #69
arnieSkyNet
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just compiled and installed heyu on a Linux box not physically connected to the heyu controller
On host (physically attached to controller for a USB to serial cable) a pi3+ with working heyu:
sudo apt install usbip
sudo modprobe usbip-core
sudo modprobe usbip-host
start daemon in another tab
sudo usbipd
list usb devices
sudo usbip list -l
in the list you will see bus id's that you use to make the usb device available to remote client eg 1-1.2.1
sudo usbip bind -b 1-1.2.1
then on remote client
sudo apt install usbip
sudo modprobe usbip-core
sudo modprobe vhci-hcd
now list on remote machine via its ip or host what's available to attach too
sudo usbip list -r 192.168.1.1
that will list the remotes usb devices with bus numbers
sudo usbip attach -r 192.168.1.1 -b 1-1.2.1
now do lsusb and see the remote usb device in the local usb device list
heyu info
heyu off A1
heyu on A1
heyu stop
that's it, note remote machines heyu won't work while attached.
now let's undo it all
on remote:
detach via port number, to get this do
sudo usbip port
use that port number in the list to detach probably going to be 00
sudo usbip attach -p 00
check it's detached
sudo usbip port
lsusb will show it's gone
on host
sudo usbip unbind -b 1-1.2.1
goto daemon tab and CTRL C to stop usbipd
make sure heyu running ok
heyu info
Beta Was this translation helpful? Give feedback.
All reactions