Skip to content

Commit

Permalink
A new basics scripts for data recording.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklik committed Aug 8, 2020
1 parent a1546ed commit e53e2ba
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "sw/signal-piping-tools"]
path = sw/signal-piping-tools
url = https://github.com/MLAB-project/signal-piping-tools.git
1 change: 1 addition & 0 deletions sw/signal-piping-tools
Submodule signal-piping-tools added at e34673
25 changes: 25 additions & 0 deletions sw/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/sh
ntp-wait -v

ulimit -c unlimited

station='CAR0'

cd signal-piping-tools

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
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

0 comments on commit e53e2ba

Please sign in to comment.