GithubHelp home page GithubHelp logo

vshymanskyy / serial-server Goto Github PK

View Code? Open in Web Editor NEW
25.0 3.0 2.0 106 KB

Simple serial port server

License: MIT License

HTML 5.68% JavaScript 92.69% CSS 1.63%
arduino mbed remote-shell serialport xterm pty

serial-server's Introduction

This tool allows you to share/access your serial terminal over the internet.
Based on xterm.js, localtunnel.

Works on: Linux, Windows, MacOS

Features:

  • Automatic tunneling from local machine to a public-accessible link
  • Multi-user access
  • Simple password-based authentication (with multiple credentials)
  • Read-only access for specific users
  • ANSI escape codes support: colors, mouse, window resize, window title
  • Bonus: share your OS shell. Just specify shell instead of serial port

Example

$ serial-server /dev/ttyACM0 --baud=115200 --auth=vova:MyPaSS --tunnel=vsh-device01
Server listening on 0.0.0.0:5123
Preparing your tunnel...
Opened port /dev/ttyACM0,115200
Tunnel link: https://vsh-device01.localtunnel.me

Visit the provided tunnel link. It will ask for the password, then present you with a remote terminal:

examples

Installation

npm i -g https://github.com/vshymanskyy/serial-server.git

Usage

serial-server <port> [options]

Options:
  --version               Show version number                                              [boolean]
  --bind, --addr          Server endpoint address                          [default: "0.0.0.0:5123"]
  --baudRate, -b, --baud                                                  [number] [default: 115200]
  --dataBits                                                      [choices: 8, 7, 6, 5] [default: 8]
  --stopBits                                                            [choices: 1, 2] [default: 1]
  --parity                       [choices: "none", "even", "mark", "odd", "space"] [default: "none"]
  --auth                  Password protection. Can add multiple users (user:pass)            [array]
  --readonly, --ro        List of users with readonly access (comma-separated)
  --tunnel                Create tunnel link automatically                                  [string]
  --config                Path to JSON config file
  -h, --help              Show help                                                        [boolean]

Copyright 2019 Volodymyr Shymanskyy

More examples

Start OS shell server, allow multiple guests to connect with read-only access:

$ serial-server shell --auth=vova:MyPaSS --auth=guest --readonly=guest --tunnel=vsh-shell

Non-authenticated access is always provided in read-only mode:

$ serial-server /dev/ttyACM0 --tunnel=vsh-device01

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.