GithubHelp home page GithubHelp logo

liucf88 / moxanix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from socec/moxanix

0.0 2.0 0.0 99 KB

A serial device server, provides console access to multiple serial devices through telnet connection

License: MIT License

Makefile 10.21% C 77.39% Shell 12.40%

moxanix's Introduction

Build Status

Moxanix

A serial device server, provides console access to multiple serial devices through telnet connection.

Architecture

The serial device server is broken down into multiple micro servers dedicated to a single serial device and TCP port pair.

These micro servers are managed by a control script. The control script allows the user to start and stop these micro servers or check their status. Connections between serial devices and TCP ports are configured in a separate file.

This design allows scalability and customization based on the number of available serial connections and TCP port availability.

moxerver

  • a light server application handling the session between one TCP port and one serial device
  • allows bidirectional communication
  • it is expected to run a separate instance for every serial device and TCP port pair

moxerverctl

  • starts, stops or displays status for different moxervers
  • commands can handle one specific or all moxervers at once

moxerver.cfg

  • defines connections between serial devices and TCP ports
  • each line corresponds to one micro server handling the defined connection

Build and install

Run make to build the project and make install to install it.
This will install executables in "/usr/bin" (default prefix for binaries is "usr") and the configuration script in "/etc".

You can install directly into some other directory with make install INSTALL_ROOT=/some/dir.
You can change the default install prefix for executables with make install BIN_PREFIX=someprefix.
These options can also be combined into make install INSTALL_ROOT=/some/dir BIN_PREFIX=someprefix

Using

  1. Install moxanix on a device to be used as your serial device server
  2. Create your moxerver configuration by describing your serial device setup (device path, baudrate) in the "moxerver.cfg" file
  3. Start all configured moxervers with moxerverctl start 0 or a particular one with a matching ID as the parameter (e.g. moxerverctl start 2)
  4. Alteratively, if your server device runs systemd you can use the provided systemd service file
  5. From a remote machine, connect to a particular serial device with a telnet connection on the correct port of your server device (e.g. telnet 192.168.1.10 9999)
  6. Stop the moxervers, check their status or logs using moxerverctl

moxanix's People

Contributors

jeena avatar luka1983 avatar socec avatar

Watchers

 avatar  avatar

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.