From: Colin McCabe Date: Tue, 15 Dec 2009 23:43:48 +0000 (-0800) Subject: Add "ser" script for accessing the serial port X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a954c2f35239f7f197d97c9a6fa6740b0a96322c;p=cmccabe-bin Add "ser" script for accessing the serial port --- 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}