Simple proxy for connecting over TCP or telnet to serial port
- Serial:
- port
- baudrate
- parity (NONE, EVEN, ODD)
- stopbits (ONE, TWO)
- TCP:
- allow to set listening socket (address and port, default: localhost:10000, change with:
-l
or--listen
param) - telnet mode (send every character immediately and not waiting to enter, with
-t
or--telnet
param) - allow more connections to one serial port:
- each connected client can sent to serial
- serial send received data to all connected clients
- allow to set listening socket (address and port, default: localhost:10000, change with:
python ser2tcp.py /dev/ttyS0 9600
python ser2tcp.py /dev/tty.SLAB_USBtoUART 115200 EVEN -l 0:10001 -t -v
python ser2tcp.py COM1 115200 ODD TWO -l 0:10001 -v
python ser2tcp.py --help
- python v3.4+
- pyserial v3.0+