mirror of
https://github.com/romanz/amodem.git
synced 2026-02-07 18:08:03 +08:00
24 lines
394 B
Bash
Executable File
24 lines
394 B
Bash
Executable File
#!/bin/bash
|
|
set -u
|
|
set -e
|
|
|
|
dd if=/dev/urandom of=data.send bs=1024 count=5K status=none
|
|
./send.py tx.int16 < data.send
|
|
|
|
killall -q arecord aplay || true
|
|
|
|
./wave.py record rx.int16 &
|
|
sleep 1
|
|
|
|
./recv.py rx.int16 > data.recv &
|
|
./wave.py play tx.int16
|
|
|
|
killall -q arecord aplay || true
|
|
|
|
./errors.py data.*
|
|
sha256sum data.* | ./colorhash.py
|
|
if [ -z $? ]; then
|
|
./show.py tx.int16 rx.int16
|
|
fi
|
|
|