thewh1teagle / zero-hid

Raspberry pi virtual HID mouse and keyboard
https://pypi.org/project/zero-hid
GNU Lesser General Public License v3.0
89 stars 20 forks source link

How can I make it work with USB HUB at the same time? #25

Open ironman97 opened 2 months ago

thewh1teagle commented 2 months ago

Please provide more info, such as which model you use, how many ports it has. etc

ironman97 commented 2 months ago

I am using usb hub on Raspberry Pi zero2w .There are 4 USB ports on the USB hub.

Like this: 图片

Then I connected my keyboard and mouse to it, and also used a USB cable to connect it to the computer. Using this library would result in an error.

ironman97 commented 2 months ago

zero_hid.hid.write.WriteError: Failed to write to HID interface: <_io.BufferedRandom name='/dev/hidg1'>. Is USB cable connected and Gadget module installed? check https://git.io/J1T7Q

ironman97 commented 2 months ago

图片

thewh1teagle commented 1 month ago

I think that it can't work with usb hub. you need to google it if it possible to use linux usb gadget kernel module with usb hub.