GithubHelp home page GithubHelp logo

meridien / serial-monitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pbahner/serial-monitor

0.0 0.0 0.0 73 KB

sending and writing serial data (for example to an Arduino)

Python 100.00%

serial-monitor's Introduction

Serial-Monitor

Table of Contents

About

A command-line serial monitor written in python developed to address a critical gap in arduino-cli, where the official project lacked a built-in serial monitor.

This tool, fills this void by providing a convenient and platform-independent solution for monitoring and interacting with Arduino-based projects via the serial interface. With this command-line utility, developers can effortlessly establish serial connections to their Arduino boards, receive real-time data and send commands, all while enjoying the flexibility and extensibility that Python offers.

This project not only simplifies the debugging and testing process but also underscores the collaborative spirit of the open-source community in catering to the needs of Arduino enthusiasts worldwide.

preview

Getting Started

Prerequisites

If needed install python and pip (methods may change based on the host OS).
Then you can get the serial library with:

pip install pyserial

Installing

clone the repo to your local machine:

git clone https://github.com/PBahner/Serial-Monitor.git

Usage

Go to the project directory and start the serial monitor with:

python3 monitor.py

The program will check the system for serial ports to monitor and present you with a numbered list:

Detected serial device ports:

0 - /dev/ttyUSB0
1 - /dev/ttyUSB1

port (enter list number, s to skip):

At the prompt enter the number corresponding to the listed port you wish to monitor. You can skip this by entering 's' and enter a port manually.

You can also enter the port at runtime by passing the --port command line argument, e.g.:

python3 monitor.py --port "/dev/ttyUSB0"

Baudrate is defaulted to 9600. You can specify a different baudrate at runtime by passing the --baudrate command line argument, e.g.:

python3 monitor.py --port "/dev/ttyUSB0" --baudrate 19200

Now you will see incoming data.

  • Press i to write data to the USB Device.
  • Press q to quit!

Notes

This script is tested on Linux and on Windows .

serial-monitor's People

Contributors

pbahner avatar meridien avatar schembrone avatar secretjuice 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.