Skip to content

Instantly share code, notes, and snippets.

Multithreaded, Multiprocessed, Signal Handling, Serial Port to TCP Filter/Proxy

To run it, terminal 1:

socat -d -d pty,raw,b38400 pty,raw,b38400 &
./serial_to_tcp_filter.py /dev/pty1 38400 127.0.0.1 8888
@rom-gi
rom-gi / s2net.py
Created November 9, 2023 00:40 — forked from tiagocoutinho/s2net.py
Python serial to tcp
"""
tsb.py -- A telnet <-> serial port bridge
Copyright (C) 2005 Eli Fulkerson
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
Byobu is a suite of enhancements to tmux, as a command line
tool providing live system status, dynamic window management,
and some convenient keybindings:
F1 * Used by X11 *
Shift-F1 Display this help
F2 Create a new window
Shift-F2 Create a horizontal split
Ctrl-F2 Create a vertical split
Ctrl-Shift-F2 Create a new session