From a954c2f35239f7f197d97c9a6fa6740b0a96322c Mon Sep 17 00:00:00 2001 From: Colin McCabe Date: Tue, 15 Dec 2009 15:43:48 -0800 Subject: [PATCH] Add "ser" script for accessing the serial port --- ser | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) create mode 100755 ser diff --git a/ser b/ser new file mode 100755 index 0000000..d5991e8 --- /dev/null +++ b/ser @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ $# -ne 1 ]; then + echo "usage: ${0} " + echo "example: ${0} USB0" + exit 1 +fi +PORT="/dev/tty${1}" +if test -c ${PORT}; then + : +else + echo "no such device as ${PORT}" + exit 1 +fi + +/usr/bin/picocom --baud 115200 --flow n --parity n --databits 8 \ +--send-cmd sb --receive-cmd rb ${PORT} -- 1.6.6.rc1.39.g9a42