Serial Proxy is a Python package that provides a proxy for serial communication with logging capabilities. It wraps the pyserial
library and adds automatic logging of all serial operations.
You can install the Serial Proxy package using pip:
pip install git+https://github.com/harperreed/serial_proxy.git
Here's a basic example of how to use Serial Proxy:
from serial_proxy import SerialProxy
# Create a SerialProxy instance
proxy = SerialProxy('/dev/ttyUSB0', 9600)
# Use it just like you would use a regular Serial object
proxy.write(b'Hello, world!')
response = proxy.readline()
print(response)
# All operations are automatically logged to 'serial_log.json'
pyserial
operationsThis project is licensed under the MIT License - see the LICENSE file for details.