-
Notifications
You must be signed in to change notification settings - Fork 3
/
FT8FT4
executable file
·99 lines (75 loc) · 2.83 KB
/
FT8FT4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#! /bin/tcsh
# Script to start single band monitoring of FT8 & FT4
# This is development code & has been incorporated into FT8 script
# Use the FT8 script!!!
###############################################################################
# Set rig to HAMLIB if want to compare decodes from SDR and rig
#set RIG="-rig HAMLIB"
set RIG="-rig NONE"
set FRQS = "1840 3573 7074 10136 14074 18100 21074 24915 28075 50313"
set FRQS = "3573 7074 10136 14074"
set FRQS = "7074 10136 14074 18100"
set FRQS = "1840 3573 7074 10136"
set FRQS = "3573 7074 10136 14074"
set FRQS = "10136 14074 18100 21074"
set FRQS = "10136"
set FRQS = "14074"
set FRQS = "14074 14080"
#set FRQS = ""
set HOP_TIME=150
#set HOP_TIME=30
set RTL="-rtlhf"
set RTL=""
set LOOPBACK="-loopback"
#set LOOPBACK=""
set FS=1
set FT4="-ft4"
set FT4=""
set HOPPER="$FT4 -hop -hop_time $HOP_TIME"
set HOPPER="$FT4"
#set SDR_OPTS="-vid_bw 45 -src -1 0"
set SDR_OPTS="-audio 2"
###############################################################################
cd ~/Python/pySDR
set PY_SDR = "pySDR.py"
set PY_SDR = "mp.py"
start_loopback
pkill pySDR
pkill bandmap
pkill rigctld
echo Starting pySDR ...
#$PY_SDR $RTL -fc $FRQS -fs $FS -IF 0 -mode USB -fsout 48 -af_bw 4 $HOPPER $LOOPBACK $RIG &
echo $PY_SDR $RTL -fc $FRQS -fs $FS -IF 0 -mode USB -fsout 48 -af_bw 4 $HOPPER $LOOPBACK $RIG $SDR_OPTS &
$PY_SDR $RTL -fc $FRQS -fs $FS -IF 0 -mode USB -fsout 48 -af_bw 4 $HOPPER $LOOPBACK $RIG $SDR_OPTS >& /tmp/SDR &
#exit
sleep 1
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
echo Waiting for SDR to start up ...
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
set id=`find_windows "pySDR" 20`
###############################################################################
# Sometimes we need to use pavucontrol to direct audio to right place
echo Starting WSJT-X ...
wsjtx -r SDR1 &
#if( "$FT4" == "-ft4" )then
wsjtx -r SDR14 &
#endif
exit
###############################################################################
echo Starting BANDMAPS ...
cd ~/Python/bandmap
set BANDMAP=~/Python/bandmap/bandmap.py
#$BANDMAP -rig NONE -server WSJT3 -dx >& /tmp/BANDMAP3 &
$BANDMAP -rig NONE -wsjt SDR1 -dx >& /tmp/BANDMAP3 &
if( "$FT4" == "-ft4" )then
#$BANDMAP -rig NONE -server WSJT34 -dx >& /tmp/BANDMAP34 &
$BANDMAP -rig NONE -wsjt SDR14 -dx >& /tmp/BANDMAP34 &
endif
exit
###############################################################################
# Organize windows
echo Waiting for bandmaps to start...
set id=`find_windows "Band Map" 20`
organize_windows