Commit a16e20f6 authored by yids's avatar yids

added fft size as cli option for server

parent 80cc2943
#!/bin/bash
if [ $# -ne 4 ]; then
echo "Usage: $0 device rate ppm listen-address"
if [ $# -ne 5 ]; then
echo "Usage: $0 device rate ppm fft-size listen-address"
exit 2
fi
......@@ -10,14 +10,15 @@ tune="/tmp/tunepipe"
gain="30"
ppm="$3"
sample_rate="$2"
listen_address="$4"
listen_address="$5"
freq="$(( 100 * 1000 * 1000 ))"
fft_size="$4"
[ ! -p "$sdr" ] && mkfifo "$sdr"
[ ! -p "$tune" ] && mkfifo "$tune"
# set -b :: for ipv4 and ipv6 all interfaces
./server -p "$ppm" -f "$freq" -i "$tune" -o "$sdr" -f "$freq" -g "$gain" -a -s "$sample_rate" -b "$listen_address" -t 4444 -w 1024 &
./server -p "$ppm" -f "$freq" -i "$tune" -o "$sdr" -f "$freq" -g "$gain" -a -s "$sample_rate" -b "$listen_address" -t 4444 -w "$fft_size" &
spid=$!
echo "Server PID $spid, use 'gdb ./server $spid -ex c' to debug"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment