Skip to content

Splice86/python_serial_logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Serial Capture

Simple standalone tool to capture serial data and save to CSV.

Install

pip install -r requirements.txt

Usage

python serial_capture.py output.csv -p /dev/ttyACM0 -b 921600 -f 2 -c 50 -t

Arguments

Argument Short Description Default
output_file - Output CSV filename capture.csv
--port -p Serial port /dev/ttyACM0
--baud -b Baud rate 921600
--fields -f Expected fields per line 2
--chunk -c Buffer size before writing 50
--timestamp -t Include timestamp column No
--verbose -v Show invalid line warnings No

Examples

Basic capture (2 fields, no timestamp):

python serial_capture.py data.csv

With timestamp:

python serial_capture.py data.csv -t

Different port/baud:

python serial_capture.py data.csv -p /dev/ttyUSB0 -b 115200

Show warnings for invalid lines:

python serial_capture.py data.csv -v

Output

CSV file with header row. Invalid lines (wrong field count or non-numeric values) are silently discarded.

Press Ctrl+C to stop - remaining buffer is saved before exit.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages