rmed.blog

Posts tagged 'hid'

Using RPi Zero as a Keyboard Part 3: Sending and receiving reports

13 Jul 2017

In this third and last part of the series we will use the new keyboard to send keystrokes to the connected computer. To do this, I will provide a couple of examples using Bash and Python, although they can be easily translated to other languages.

Tags: report raspberry pi pi keyboard hid output keys descriptor input rpi linux zero

Using RPi Zero as a Keyboard Part 2: Report descriptor

05 Jul 2017

In this second part of the series we'll see the structure of HID report descriptors and how to apply them to the virtual keyboard. When done, the gadget will be completely configured and ready to use.

Tags: report raspberry pi keyboard pi hid descriptor hidrd rpi linux zero

Using RPi Zero as a Keyboard Part 1: Setup and device definition

26 Jun 2017

The Raspberry Pi Zero is a cool little piece of hardware with many possibilities. One of them is that it can work as a USB host OR as a USB gadget, meaning that it is possible to implement different types of devices such as ethernet, HID (keyboard, mouse, gamepad, etc.), audio, mass storage, etc. In this 3-part series of post we'll see how to configure and use a simple and generic keyboard gadget to send keys to the connected host.

In this part I'll go over the process of defining the gadget, breaking down what each different configuration files is used for and giving example values.

Tags: raspberry pi keyboard hid pi configfs rpi gadget linux zero