Skip to main content

serial2tcp

default python2, have python3 branches

Instalation

You can install from pip:

# pip install serial2tcp

or manual:

git clone git://github.com/mosquito/serial2tcp.git cd serial2tcp python setup.py install

Redirect USB-Serial

For redirect /dev/ttyUSB0 with baudrate 9600 bps and 192.168.2.1 can connect to that:

# serial2tcp -p /dev/ttyUSB0 -b 9600 -l 0.0.0.0 –allow-list=’192.168.2.1’

Help

Usage: serial2tcp [options]

Simple Serial to Network (TCP/IP) redirector.

WARNING: You have to allow connections only from the addresses in the “–allow-list” option. e.g. –allow-list=’10.0.0.1, 172.16.0.1, 192.168.0.1’ NOTICE: This service supports only one tcp connection per instance.

Options:
--version

show program’s version number and exit

-h, --help

show this help message and exit

-p SERIAL, --port=SERIAL

Serial port, a number, defualt = ‘/dev/tty0’

-b BAUDRATE, --baud=BAUDRATE

Baudrate, default 115200

-r, --rtscts

Enable RTS/CTS flow control (default off)

-x, --xonxoff

Enable software flow control (default off)

-P PORT, --localport=PORT

TCP/IP port on which to run the server (default 9100)

-l LISTEN, --listen=LISTEN

Listen address on which to run the server (default ‘127.0.0.1’)

--access-list=ACL

List of IP addresses e.g ‘127.0.0.1, 192.168.0.2’

Thanks to

This is based on http://www.cs.earlham.edu/~charliep/ecoi/serial/pyserial-2.2/examples/tcp_serial_redirect.py

Metadata

Release files for serial2tcp 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for serial2tcp 0.5.3
File Size Uploaded Provenance Actions
serial2tcp-0.5.3.tar.gz 3.7 kB Without provenance Details for serial2tcp-0.5.3.tar.gz

Release files / serial2tcp-0.5.3.tar.gz

Download URL serial2tcp-0.5.3.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
274c1ce3a4ce92e7a7d9e9f4066f5740710e1f4b2910fde80330d35aa929e9fb
BLAKE2b-256 checksum
How to use checksums
5ed8e6c3df09be0603e21391c36f44b3f7829022f9ec620bc17068c9a0466ed1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.11

Security for serial2tcp 0.5.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page