Created
July 13, 2018 13:22
-
-
Save peisenhower/bf3749a3186017d75721959b6508a20e to your computer and use it in GitHub Desktop.
wrapper for py-serials miniterm for logging serial ports and quick opening. Must make folder on path ~/Documents/serial-logs for logging to work. Add snippet to .bashrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ports='python -m serial.tools.list_ports' | |
goofy() { | |
local logfile=~/Documents/serial-logs/two3-$1-$(date '+%F-%H:%M').log | |
echo "Logging $1@115200 to $logfile" | |
python -m serial.tools.miniterm $1 57600 -e --raw | tee $logfile | |
} | |
serial() { | |
local logfile=~/Documents/serial-logs/$1-$(date '+%F-%H:%M').log | |
echo "Logging $1@115200 to $logfile" | |
python -m serial.tools.miniterm $1 115200 -e --raw | tee $logfile | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment