serial2tcp


Nameserial2tcp JSON
Version 0.5.3 PyPI version JSON
download
home_pagehttps://github.com/mosquito/serial2tcp
SummaryConvert serial device to tcp socket.
upload_time2024-06-30 13:13:22
maintainerNone
docs_urlNone
authorDmitry Orlov
requires_pythonNone
licenseGNU GPL v3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mosquito/serial2tcp",
    "name": "serial2tcp",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Dmitry Orlov",
    "author_email": "me@mosquito.su",
    "download_url": "https://files.pythonhosted.org/packages/5e/d8/e6c3df09be0603e21391c36f44b3f7829022f9ec620bc17068c9a0466ed1/serial2tcp-0.5.3.tar.gz",
    "platform": "linux",
    "description": "serial2tcp\n==========\ndefault python2, have python3 branches\n\nInstalation\n-----------\nYou can install from pip:\n\n    # pip install serial2tcp\n\nor manual:\n\n    git clone git://github.com/mosquito/serial2tcp.git\n    cd serial2tcp\n    python setup.py install\n\nRedirect USB-Serial\n-------------------\nFor redirect /dev/ttyUSB0 with baudrate 9600 bps and 192.168.2.1 can connect to that:\n\n    # serial2tcp -p /dev/ttyUSB0 -b 9600 -l 0.0.0.0 --allow-list='192.168.2.1'\n\nHelp\n----\n    Usage: serial2tcp [options]\n\n    Simple Serial to Network (TCP/IP) redirector.\n\n    WARNING: You have to allow connections only from the addresses in the\n    \"--allow-list\" option. e.g. --allow-list='10.0.0.1, 172.16.0.1, 192.168.0.1'\n    NOTICE: This service supports only one tcp connection per instance.\n\n    Options:\n      --version             show program's version number and exit\n      -h, --help            show this help message and exit\n      -p SERIAL, --port=SERIAL\n                            Serial port, a number, defualt = '/dev/tty0'\n      -b BAUDRATE, --baud=BAUDRATE\n                            Baudrate, default 115200\n      -r, --rtscts          Enable RTS/CTS flow control (default off)\n      -x, --xonxoff         Enable software flow control (default off)\n      -P PORT, --localport=PORT\n                            TCP/IP port on which to run the server (default 9100)\n      -l LISTEN, --listen=LISTEN\n                            Listen address on which to run the server (default\n                            '127.0.0.1')\n      --access-list=ACL     List of IP addresses e.g '127.0.0.1, 192.168.0.2'\n\nThanks to\n---------\nThis is based on http://www.cs.earlham.edu/~charliep/ecoi/serial/pyserial-2.2/examples/tcp_serial_redirect.py\n",
    "bugtrack_url": null,
    "license": "GNU GPL v3",
    "summary": "Convert serial device to tcp socket.",
    "version": "0.5.3",
    "project_urls": {
        "Download": "https://github.com/mosquito/serialtcp/archive/master.zip",
        "Homepage": "https://github.com/mosquito/serial2tcp"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5ed8e6c3df09be0603e21391c36f44b3f7829022f9ec620bc17068c9a0466ed1",
                "md5": "2afbedcce640a6be7172bfac945c286d",
                "sha256": "274c1ce3a4ce92e7a7d9e9f4066f5740710e1f4b2910fde80330d35aa929e9fb"
            },
            "downloads": -1,
            "filename": "serial2tcp-0.5.3.tar.gz",
            "has_sig": false,
            "md5_digest": "2afbedcce640a6be7172bfac945c286d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3682,
            "upload_time": "2024-06-30T13:13:22",
            "upload_time_iso_8601": "2024-06-30T13:13:22.688401Z",
            "url": "https://files.pythonhosted.org/packages/5e/d8/e6c3df09be0603e21391c36f44b3f7829022f9ec620bc17068c9a0466ed1/serial2tcp-0.5.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-30 13:13:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mosquito",
    "github_project": "serial2tcp",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "serial2tcp"
}
        
Elapsed time: 1.26951s