#!/bin/bash
# this is old!
# use XON/XOFF flow control!

stty -F /dev/ttyUSB0 115200 crtscts

echo "\$defa=1" > /dev/ttyUSB0

sleep 10

echo "\$ex=2" > /dev/ttyUSB0

echo < /dev/ttyUSB0


