You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.1 KiB
48 lines
1.1 KiB
#!/bin/sh
|
|
|
|
sudo modprobe snd-aloop
|
|
|
|
if [ ! -d "/home/pi/CubeSatSim/groundstation/direwolf.conf" ]; then
|
|
|
|
wget https://raw.githubusercontent.com/alanbjohnston/CubeSatSim/FIAB-v3/groundstation/direwolf.conf -O /home/pi/CubeSatSim/groundstation/direwolf.conf
|
|
|
|
fi
|
|
|
|
if [ ! -d "/home/pi/CubeSatSim/groundstation/cubicsdr/cubicsdr-aprs-direwolf.xml" ]; then
|
|
|
|
wget https://raw.githubusercontent.com/alanbjohnston/CubeSatSim/FIAB-v3/groundstation/cubicsdr/cubicsdr-aprs-direwolf.xml -O /home/pi/CubeSatSim/groundstation/cubicsdr/cubicsdr-aprs-direwolf.xml
|
|
|
|
fi
|
|
|
|
sudo killall -9 CubicSDR &>/dev/null
|
|
sudo killall -9 direwolf &>/dev/null
|
|
|
|
sleep 5
|
|
|
|
echo
|
|
|
|
echo "Opening CubicSDR... (this will take a few seconds)"
|
|
|
|
nohup CubicSDR </dev/null >/dev/null 2>&1 &
|
|
|
|
echo
|
|
|
|
echo "When CubicSDR opens, select Generic RTL2832 device then click Start to begin."
|
|
|
|
echo
|
|
|
|
echo "Then select File/Session/Open Session then load /home/pi/CubeSatSim/groundstation/cubicsdr/cubicsdr-aprs-direwolf.xml then Open."
|
|
|
|
echo
|
|
|
|
echo "Hit the Return key when you have done this in CubicSDR and Direwolf will start"
|
|
|
|
read input
|
|
|
|
direwolf -c direwolf.conf -r 48000 -t 0
|
|
|
|
sleep 5
|
|
|
|
|
|
|