2011-07-13 22:41:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2012-01-16 06:15:45 +00:00
|
|
|
# Connect u0 to receiver, u0 to sender
|
2011-07-31 17:17:07 +00:00
|
|
|
# WARNING: Test config 2 only works with PLUS units.
|
2011-07-13 22:41:37 +00:00
|
|
|
|
2012-01-16 06:15:45 +00:00
|
|
|
jam u0 u1 && expect test.ex 1
|
2012-01-18 06:04:20 +00:00
|
|
|
sleep 1
|
|
|
|
stty 57600 raw ignbrk hup < /dev/ttyUSB0
|
|
|
|
sleep 1
|
|
|
|
stty 57600 raw ignbrk hup < /dev/ttyUSB1
|
2012-01-16 07:35:07 +00:00
|
|
|
expect test.ex 2
|
2012-01-18 06:04:20 +00:00
|
|
|
sleep 1
|
|
|
|
stty 57600 raw ignbrk hup < /dev/ttyUSB0
|
|
|
|
sleep 1
|
|
|
|
stty 57600 raw ignbrk hup < /dev/ttyUSB1
|
2012-01-16 07:35:07 +00:00
|
|
|
expect test.ex 3
|
2012-02-27 03:53:08 +00:00
|
|
|
sleep 1
|
|
|
|
stty 57600 raw ignbrk hup < /dev/ttyUSB0
|
|
|
|
sleep 1
|
|
|
|
stty 57600 raw ignbrk hup < /dev/ttyUSB1
|
|
|
|
expect test.ex 4
|