• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
usb hotplug
#1
Dear netpi users,

I'm starting to grow grey hear from the attempt to hotplug usb devices.
At the moment it is impossible to have in running container usb devices taken off and reattached after a while.

the easiest way to test this is by
-privileged mode
-device /dev/bus

lsusb -vd XXXX:XXXX
XXXX for example the vendor and product id of a hid-device (keyboard)

now remove the keyboard
reattach it
run lsusb again
now you see "Couldn't open device, some information will be missing" at the beginning of the output.
and you can't access it anymore

Same for tty devices
-device /dev/ttyACM0

start container
everything fine
run "udevadm monitor"
remove and attach the device again
now you see the device is not connected back to the device path /dev/ttyACM0 instead it takes /dev/ttyACM1

an easy solution would be if the restrictions of the netpi wouldn't be this restrictive
-device /dev
now the tty would get connected again

-volume bind /dev/bus/usb:/dev/bus/usb
now the usb hid-device could reconnect

I hope anybody has a solution to this problem of the missing USB hotplug functionality or we have to buy other devices for our customers with over 100 devices just in one production system, more would follow.

Thank you very much in advance
Sven
  Reply


Messages In This Thread
usb hotplug - by Sven - February-13th-2019, 09:52 PM
RE: usb hotplug - by Armin@netPI - February-14th-2019, 12:43 PM
RE: usb hotplug - by Armin@netPI - February-18th-2019, 05:10 PM
RE: usb hotplug - by FrankJacob - March-29th-2019, 02:49 PM
RE: usb hotplug - by Armin@netPI - March-29th-2019, 07:37 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)