Utility functions for pySerial
Project description
Utility functions for pySerial. This project is still at very early development stages and not guaranteed to work.
Install
PyPI
pip install serial_toolbox
Poetry (for development)
git clone <repo url>
cd <clone directory>
poetry shell
poetry install
Usage
Example usage as a python module
from serial_toolbox.interface_core import serial_interface
from serial_toolbox.connect import port_manager
import time
tx_port = port_manager.select_port(interactive=False, portname="TX port", baudrate=9600, timeout=0.1)
tx_interface = serial_interface(tx_port, terminal=False, max_queue_size=200, format='HEX')
tx_interface.write_to_port('c0040105')
time.sleep(1)
tx_interface.print_queue()
Serial I/O like Arduino IDE
Serial plotter
Interactively select serial port and plot values
>serial_plotter
Setup port (serial monitor). [] is default value.
baudrate [9600] >> 9600
timeout [0.1] >> 0.1
======================
index | device
0 | COM1
1 | COM2
device index [0] >> 0
format ('STR', 'HEX') ['STR'] >> 'HEX'
Serial monitor
Interactively select serial port and monitor values
> serial_monitor
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
serial_toolbox-0.1.5.tar.gz
(10.9 kB
view hashes)
Built Distribution
Close
Hashes for serial_toolbox-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa493ab209d46312c03cc5ce48b7bd2a5f5066de56338d6ef2e4158f80da44e7 |
|
MD5 | adea6300f7a0b33e4f4bd343f71555f0 |
|
BLAKE2b-256 | df3c4e983741471bfaef15464981b6a1128725f7777f90236b75b409aaa0a73c |