Skip to main content

A package to view EROS logs

Project description

Eros CLI Interface

This is a terminal based interface to interact with eros. Its built ontop eros-core-python.

Recommended installation

Step 1: Install the Package with PIP

Install the package using pip. Run the command:

pip install git+https://github.com/Florioo/eros-cli-python

This method of installation and the function of the installation in the following action:

Python test package installation

Step 2: Verify Installation

After installation, you can verify if Eros was installed correctly. Run the command:

eros --help

If the installation was successful, this command should show the help menu

If the above failed, ther might be something wrong with your python path (or with the package installation), try the following as a workaround:

python -m eros_cli.entrypoint --help

Installation from source

Follow the steps below to install Eros-View:

Step 1: Clone the Repository

Clone the repository to your local machine. Use the command below:

git clone git@github.com:Florioo/eros-cli-python.git

Step 2: Navigate to the Directory

Navigate to the cloned repository's directory using the command:

cd eros-cli-python

Step 3: Install the Package

Install the package using pip. Run the command:

pip install .

Step 4: Verify Installation

After installation, you can verify if Eros-View was installed correctly. Run the command:

eros --help

If the installation was successful, this command should show the help menu of Eros-View.

Usage

To start an application we need to use the following commands

eros [OPTIONS] <transport [OPTIONS]> <application1 [OPTIONS]> <application2 [OPTIONS]...>

EROS arguments

Optional Arguments:

  • --debug: Is flag set, eros cli will be launced in debug mode

Transport

Here the transport is configured

UART

To select UART, use the uart option, the following arguments can be provided

uart --port [PORT] --baud [BAUD_RATE] --vid [VENDOR_ID]

Optional Arguments:

  • [PORT]: Port for UART communication (default is "auto", this will auto select uart based on vendor id)
  • [BAUD_RATE]: Baud rate for UART communication (default is 2000000)
  • [VENDOR_ID]: Vendor ID for automatic serial port detection (default is 4292)

TCP/UDP

To select TCP or UDP, use the tcp or udp option, the following arguments can be provided

tcp --ip [IP_ADDRESS] --port [PORT]
udp --ip [IP_ADDRESS] --port [PORT]

Optional Arguments:

  • [IP_ADDRESS]: IP address (default is "192.168.0.1")
  • [PORT]: Port (default is 6767)

Application

The final argument are the applications, these specify what to do with the output. Multiple applications can also be specified in the command by chaining them.

To get the arguments fot a specifc application, type help after it

For example:

eros uart log --help

Usage: eros uart log [OPTIONS]

  Log the data of a specific channel

Options:
  --channel INTEGER  Channel to monitor
  -f, --log_failed   also log failed packets (which could not be decoded)
  --help             Show this message and exit.

log

This is one of the basic applications which provides textual logs

dump

This will dump all the data received from eros

cli

This provides a interactive CLI to the device.

Note: the device needs repl-CLI enabled for this to work

m-cli

This provides a semi-interactive CLI to the device.

This can be used to test the machine cli

Note: the device needs machine-CLI enabled for this to work

perf

This is an utility to monitor the troughput eros is a great combination with zmq:

For example:

eros uart zmq perf

zmq

This exposes eros over zmq, making it accesible for multiple programs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eros_cli-1.0.4.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eros_cli-1.0.4-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file eros_cli-1.0.4.tar.gz.

File metadata

  • Download URL: eros_cli-1.0.4.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for eros_cli-1.0.4.tar.gz
Algorithm Hash digest
SHA256 3a3976726ee8bf050996abac316eb761f2cf03c3ad7f8540db4014de180d9b95
MD5 61ccaca1c6bc573a70eaf3a187a97d07
BLAKE2b-256 e0d1f425cfaa754b09a99178a4f30f193b15ba8d0dd796c4af5fefb7123cf4fa

See more details on using hashes here.

File details

Details for the file eros_cli-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: eros_cli-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for eros_cli-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e3a27de8528c381d6fc997fc1355da2e9b00584bc85063ee01769020fb2d3ab2
MD5 87b1fc27a699ef53dfba471a3311f778
BLAKE2b-256 d4807560bc490caa232e16083eb3d3d53699f7ee61303035ac5301d752ea567b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page