Skip to main content

02.05 – Serial Bridge (socat)

Long story short, I have Lilygo T-Beam Supreme nodes, and they absolutely hat my Wi-Fi network here. Until I get time to dork around with it, I figured a nice data USB cable and some magic would do the trick, and here is what I did to get that working.

MeshMonitor connects over TCP, not raw serial.

socat bridges

TCP :4403  ⇄ Β /dev/ttyACM0

Install socat

apt install socat

systemd Service

Create /etc/systemd/system/meshtastic-serial-bridge.service

[Unit]
Description=Meshtastic Serial Bridge
After=network.target

[Service]
ExecStart=/usr/bin/socat TCP-LISTEN:4403,reuseaddr,fork FILE:/dev/ttyACM0,b115200,raw,echo=0
Restart=always

[Install]
WantedBy=multi-user.target

Enable:

systemctl daemon-reload
systemctl enable --now meshtastic-serial-bridge