How implement mouse on Android TV boxes on platform rockchip?

Yevhen Vasilenko picture Yevhen Vasilenko · Dec 23, 2013 · Viewed 9.9k times · Source

I have an "MINIX NEO X7 mini" Android device. There is installed application eHomeMediaCenter. It is a DLNA server. Then I launch RKRemoteControl application on my Android smartphone, select eHomeMediaCenter and see mouse cursor on my Minix. And then I can move and click. But what protocol is used for that? And why in eHomeMediaCenter? Please, give me some info about that.

Answer

Ribo picture Ribo · Dec 27, 2013

Mouse and keyboard functions in the Minix Neo -- and probably Android devices in general -- builds on the desktop Linux keyboard and mouse support, specifically on /dev/hidraw -- the Human Input Drivers. See enter link description here for more info. A variety of external mice, keyboards or 'air mouse/keyboards' can be connected to the Minix Neo x5/x7 by USB, Bluetooth or other wired or wireless connection and feed mouse events of keyboard events to the normal Linux HID processing that Java -- and the Android apps consume.

I use this air mouse/keyboard with the Neo x5. (Air mouse means that the device is not placed on a desk, but accelerometers in the device allow you to wave the thing around to produce mouse movement.) What ever (perhaps proprietary) protocol is used between the device and the device driver is converted (in the device driver) to a data stream that emulates the signals that a conventional, old style, wired mouse or keyboard produced. Some devices use a generic HID device driver that is used for a serial (ie old RS-232, TTY, phone modem) device.