Commit c2387c9b authored by Mike Hibler's avatar Mike Hibler

Changes for Arduino I did a while back.

Avoid gratuituous serial line signal changes when opening up the USB
device for the Arduino. Otherwise, the Arduino will reset its state.
parent e234b170
...@@ -2,5 +2,28 @@ ...@@ -2,5 +2,28 @@
# #
# This should be auto-generated, but isn't yet. # This should be auto-generated, but isn't yet.
# #
#
# XXX Arduino will reset if we screw around with DTR (and RTS?),
# so lock anything flow control related down, or basically anything that
# might cause a USB parameter change.
#
# XXX Also do not try to do anything with the port (e.g., stty) before this,
# because it will open/close the port which will cause the change we are
# trying to avoid.
#
stty -f /dev/cuaU0.init -hupcl -ixon -ixoff -ixany -crtscts
stty -f /dev/cuaU0.lock hupcl ixon ixoff ixany crtscts
## XXX debugging
#echo "Everything locked, cuaU0:"
#stty -g -f /dev/cuaU0
#echo "About to start capture"
/usr/testbed/sbin/capture -T 15 -r -s 9600 powduino cuaU0 >/dev/null 2>&1 & /usr/testbed/sbin/capture -T 15 -r -s 9600 powduino cuaU0 >/dev/null 2>&1 &
## XXX debugging
#echo "Capture started, cuaU0:"
#stty -g -f /dev/cuaU0
exit 0 exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment