If you’re like me, you might enjoy being able to do things on your phone that you might otherwise do from your computer. I wanted to play around with my ESP32-WROOM-32 development board, but apparently there is no online guide specifically for Termux, so I want to document the steps that worked for me as a future reference for myself and others. ⚠️ DISCLAIMER I am not responsible for any damage that could occurr by following this guide. This is written for educational purposes. Requirements any ESP32 development board will do, but in my case I will use a ESP32-WROOM-32 an OTG adapter a USB-A cable (in my case micro-USB, but it depends by your board) a phone with Termux installed, ideally from F-Droid ❗️ NOTE Make sure that your USB-A cable supports data transfer. This is crucial. Many cables I tried either did not support data transfer or were not delivering the power correctly, making the board brownout. Getting started The first thing you need to do is installing TCPUART transparent Bridge. This application will act as a bridge between the android Serial USB API and Termux. It will expose a local two-way TCP server that will forward the data to and from UART. Installing a third party application is not ideal. An alternative could have been using termux-usb through Termux-API, but I was facing constant disconnections and setup issues, so I settled for this app. TCPUART main screen After connecting the ESP32 After starting the local TCP server TCPUART app screenshots TCPUART Setup Set Baud Rate to 115200 Press the Connect button A prompt should appear (see the second screenshot). Click OK Between client and server, choose server Use 8080 as the port Click the Start button Termux setup Make sure you have the following termux packages installed. Run this command: pkg install -y python esptool mpremote socat We will then setup a TCP bridge virtual device file: socat pty,link=$HOME/esp32,raw,echo=0 tcp:127.0.0.1:8080 & If it was executed successfully, the command should...
First seen: 2025-10-09 17:20
Last seen: 2025-10-10 09:29