Now I’ll tell you how, having a completely standard Android device with USB Host support (in my case,
Nexus 7 ), a completely standard
USB Host adapter to a full-sized "mother" connector , a completely standard
USB serial controller on a PL2303 chip (they are almost all they work on this chip) and at least standard tsiskin
blue lace , go to the console of network equipment and work with it without any restrictions. Although no one bothers to connect to the tablet / phone and any other equipment that works with the command line on top of RS-232.
The first thing we get on the tablet is root-rights. No other way.
The second thing we put
Busybox . Who does not know - this is a great set of utilities, one of which we need. After installation, you need to start it and click “Install” in the program itself, when the program asks about the installation method - say “Normal”.
Then you need any decent terminal emulator. I like
Irssi ConnectBot .
And finally, regular keyboards are not suitable for working with the console. We need the Tab, ctrl, and other keys, right? And the numbers I want to have in the top row, above the letters, and not somewhere else. Therefore -
Hacker's Keyboard . It is better, of course, to connect an external keyboard, but for now we are not going to manually fill in multi-screen configs.
Everything is ready to connect.
We start the terminal client, select the local connection, and connect the controller to the tablet. You need to make sure that it is defined, although there are no problems expected, the drivers for PL2303 have been included in the Linux kernel for many years. Under the root run dmesg.

(if someone is too small - click on the picture)
It is necessary to remember where the controller is mounted. In my case, it was always / dev / ttyUSB0.
It remains to establish a connection. The “microcom” program is included with the Busybox, which is useful to us.
We type in the console “microcom -s [port speed] [device mount point]”.

')
Exit microcom by ctrl + x. Break should be sent by ctrl + b (not yet verified). Other hotkeys are transmitted correctly.
Alternatives?
You can buy one of the many "Bluetooth Serial" adapters. That's just such adapters and are more expensive (> $ 50), and require external power. I did not see one on the batteries. In the best case, the battery must be screwed.
For Apple users, there is a
wired solution for the same> $ 50.