Update command add Loopback check

pull/327/head
Alan Johnston 1 year ago committed by GitHub
parent fb42fdd0c0
commit c4e0330b2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -23,6 +23,18 @@ echo -e "\nCommand and Control script for CubeSatSim v1.3.2\n"
# exit 1
fi
if [ "$1" = "d" ]; then
echo "debug mode"
debug=1
else
debug=0
fi
echo "Waiting 20 seconds for USB"
sleep 20
@ -32,7 +44,7 @@ if [[ $(arecord -l | grep "USB Audio Device") ]] && [ -f "$FILE" ]; then
echo "Starting Direwolf DTMF and APRS Command and Control"
if [ "$1" = "d" ]; then
if [ "$debug" = "1" ]; then
echo "debug mode"
@ -54,9 +66,14 @@ else
timeout 5 rtl-test
sudo modprobe snd-aloop
rtl_fm -M fm -f 435M -s 48k | aplay -D hw:2,0,0 -r 48000 -t raw -f S16_LE -c 1 &
if [ "$1" = "d" ]; then
value=`aplay -l | grep "Loopback"`
echo "$value" > /dev/null
set -- $value
rtl_fm -M fm -f 435M -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 &
if [ "$debug" = "1" ]; then
echo "debug mode"

Loading…
Cancel
Save

Powered by TurnKey Linux.