Giter Site home page Giter Site logo

ellysh / ecs Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 12.51 MB

Environment for Controllers Simulation (ECS) is set of utilities to simulate data exchange with any devices through Serial and Ethernet connections.

License: GNU General Public License v3.0

Verilog 22.93% Shell 3.17% Python 5.78% C++ 67.47% C 0.65%

ecs's Introduction

ECS 1.3 version

INTRODUCTION

Environment for Controllers Simulation (ECS) is set of utilities to simulate data exchange with any devices through Serial and Ethernet connections.

BUILDING

You need the CMake build system, C++ compiler, libserial and system, asio, program_options components of the Boost library to build this software. This is link to libserial library:
https://github.com/ellysh/libserial

There are steps to build serial-utils:

  1. Generate makefiles with CMake build system.
    Type one of these commands to build debug or release versions of the ECS:

    $ cmake -D CMAKE_BUILD_TYPE=Debug CMakeLists.txt

    $ cmake -D CMAKE_BUILD_TYPE=Release CMakeLists.txt

  2. Build binaries with C++ compiler:

    $ make

  3. Build debian package if you use Debian-based Linux distribution:

    $ make deb

You can find debian packages in the bin/deb directory.

INSTALLING

Debian-based Linux distribution users can install debian packages from bin/deb directory.

Another way is installing with Makefile default mechanism:

$ make install

USAGE

This is example to simulate data exchange through the serial connection.

  1. Create the virtual serial port with socat utility:

    $ socat PTY,link=/tmp/ttyS0,raw,echo=0 PTY,link=/tmp/ttyS1,raw,echo=0

  2. Run the virtual controller utility:

    $ virt-controller --dev /tmp/ttyS0 --baud 57600 --scenario a20-test.vc --type serial

  3. Send data to the /tmp/ttyS1 port for virtual controller:

    $ write-data -f /tmp/ttyS1 -b 57600 -d 3147

Serial Utils project have been used at the third point of the instruction above:
https://github.com/ellysh/serial-utils

COPYING

Free use of this software is granted under the terms of the GNU General Public License (GPL). For details see the file LICENSE included with the serial-utils distribution.

ecs's People

Contributors

ellysh avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

zhouhuashan

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.