COM port on Android

    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 for a full-size female connector , a completely standard USB serial controller based on a PL2303 chip (they are almost all work on this chip) and no less standard ciskin blue lace , go to the console of network equipment and work with it without any restrictions. Although no one bothers connecting to the tablet / phone any other equipment that works with the command line on top of RS-232.

    First of all, we get root-rights on the tablet. 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 run 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? Yes, and I want to have the numbers in the top row, above the letters, and not somewhere else. Because - Hacker's Keyboard . It is better, of course, to connect an external keyboard, but for now we are not going to manually type multiscreen configs.

    Everything is ready to connect.
    We launch 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, drivers for PL2303 have been included in the Linux kernel for many years. Under root, run dmesg. (if it’s too small for anyone - click on the picture) You need to remember where the controller was mounted. In my case, it was always / dev / ttyUSB0. It remains to establish a connection. The “microcom” program is included in the Busybox package, and it will be useful to us. We type in the console “microcom -s [port speed] [device mount point]”. Exiting microcom via ctrl + x. Break should be sent via ctrl + b (not tested yet). Other hotkeys are transmitted correctly. Alternatives?











    You can buy one of the many “Bluetooth Serial” adapters. Here are just such adapters and are more expensive (> $ 50), and require external power. I have not seen a single one on the batteries. In the best case, you need to screw the battery yourself.
    For Apple users, there is a wired solution for the same> $ 50.

    Also popular now: