diy-ipmi icon indicating copy to clipboard operation
diy-ipmi copied to clipboard

Idea: Android device as USB Keyboard/Mouse

Open lars18th opened this issue 6 years ago • 6 comments

Hi,

This project transforms one Android device in a USB Keyboard/Mouse:

https://github.com/pelya/android-keyboard-gadget (used as library: https://github.com/Netdex/android-hid-script)

So, perhaps you can use one ancient rooted smartphone instead of the Pi0.

lars18th avatar Jul 24 '18 14:07 lars18th

I guess it can be done but I think it's not practical (more weight and power consumption), unless you want to control the keyboard remotely by cellular network with low budget and already have the smartphone in hand.

Better use a teensy board. You can also use arduino micro but I'm not sure there is a ready made library that support using keyboard in BIOS.

DedupOperator avatar Sep 21 '18 22:09 DedupOperator

Hi @DedupOperator .

Well form my point of view it will be practical if this project be "customizable". Perhaps someone likes to use for the USB HID interface: a) Raspberry Pi Zero; b) Teensy board; c) Android device.

Why not support different options?

lars18th avatar Sep 25 '18 08:09 lars18th

@lars18th I guess you're right. The project can expend, but I think some more details about use cases will help focus and priority.

Check out this little device it works on android out of box InputStick

DedupOperator avatar Sep 25 '18 21:09 DedupOperator

Hi @DedupOperator ,

This InputStick seems to be interesting. However, the idea of using an Android device is because tipycally it has support for the USB Gadget library. So it can impersonate an HID device. The Raspberry Pi Zero has this function too; but not the regular Pi. Thus, the concept is to support different hardware "options" for the connection between the main "diy-ipmi" controller and the USB port of the target device (the one commonly used when connecting the USB keyboard/mouse).

Regards.

lars18th avatar Sep 26 '18 15:09 lars18th

As stated in other tickets, happy to merge a PR for anything, though I'm not sure why you would want an expensive Android device to replace a $5 part (minus mouse control).

Fmstrat avatar Sep 26 '18 21:09 Fmstrat

though I'm not sure why you would want an expensive Android device to replace a $5 part (minus mouse control).

Because the cost of an 4-5 years old Android device with a broken screen is nearly... zero? :smile:

Now, seriously: My idea is to run the Manager (the central point) in a docker container inside a shared x86 server; instead of run it in a Raspberry Pi board. So the Relay board isn't required. The Video capture can be done using some HDMI-2-Network device. And the HID USB module can be best done over the Network with a (reused) Android device.

My suggestion targets the "modularity" of the project. I hope you agree with that! Regards.

lars18th avatar Sep 27 '18 12:09 lars18th