USB Gadget error

I’ve followed the instructions on this related post (Micro-B USB port as a keyboard HID gadget - #11 by vadbut) to successfully update the kernel with USB Gadget HID support but when attempting to send any data I receive:

sudo echo -ne "\0\0\0\0\0\0\0\0" > /dev/hidg0
echo: write error: Cannot send after transport endpoint shutdown

Hi,
If you use Jetpack 6.0GA(r36.3), please check if certain kernel configs have to be enabled for the function. The defconfig is close to upstream kernel and for certain functions, you would need to manually enable the functions.

I’m using Jetpack 5.1.2 and have enabled the following kernel configs

Device Drivers -> USB support -> USB Gadget Support -> USB Gadget Drivers-> USB functions configurable through configfs -> HID function
and
Device Drivers -> USB support -> USB Gadget Support -> USB Gadget Drivers-> USB gadget drivers -> HID gadget

Please you try with JP6.0 GA to verify again.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.