thewh1teagle / zero-hid

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

unable to write the HID interface in mac issue in RPI Zero W #22

Open dhan2001verma opened 1 month ago

dhan2001verma commented 1 month ago

Using mac as host pc, it is giving below error

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

What is the issue bro ,is it related to path or some permission needs to enable in mac ?

thewh1teagle commented 1 month ago

Using mac as host pc, it is giving below error

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

What is the issue bro ,is it related to path or some permission needs to enable in mac ?

I just checked the library on latest raspbian lite with RPI 4 and it works both on macOS and Windows. Please check your setup. try fresh install of raspbian lite with latest version of zero-hid. Also double check that your Raspberry supports usb host to emulate HID.