Skip to content

Commit

Permalink
Experiment with solving the issue: MLAB-project/signal-piping-tools#1
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklik committed Aug 9, 2020
1 parent 4270c21 commit 987ca21
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sw/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ rm -rf 3731_taps
./fir_taps -n 512 -r 96000 -c 1000 -w hanning > 3731_taps

if ! pidof sdr-widget > /dev/null; then
{ ./sdr-widget -r 96000 | buffer & } | ./servestream -d -p 3701
{ nice -n -4 ./sdr-widget -r 96000 | nice -n -3 buffer -s 128k -m 16m & } | ./servestream -d -p 3701
fi

if ! pidof ./servecmd > /dev/null; then
./servecmd -d -p 3731 'nc localhost 3701 | buffer -s 64k -m 2m | ./x_fir_dec -b 128 96000 26500 48 3731_taps'
fi

while true; do
today=`date '+%Y_%m_%d_%H%M%S%N'`;
filename="/data/distrometer/$station-$today.wav"
nc localhost 3701 | sox -t f32 -c 2 -r 96000 - $filename trim 0 60
done
#while true; do
# today=`date '+%Y_%m_%d_%H%M%S%N'`;
# filename="/data/distrometer/$station-$today.wav"
# nc localhost 3701 | sox -t f32 -c 2 -r 96000 - $filename trim 0 60
#done
2 changes: 2 additions & 0 deletions sw/stop.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
killall servestream
killall servecmd
killall sdr-widget
killall sox

0 comments on commit 987ca21

Please sign in to comment.