interfernce simulation

This commit is contained in:
Bastian Bloessl
2017-10-12 16:24:54 +01:00
parent 872b2dd0af
commit 1624842801
7 changed files with 2395 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
files=`ls results/*.pcap`
outfile=results/all.csv
rm -f ${outfile}
echo "repetition;interference;snr;received"
echo "repetition;interference;snr;received" > ${outfile}
for f in ${files}
do
repetition=`python -c "print \"${f}\".split(\"_\")[1]"`
snr=`python -c "print \"${f}\".split(\"_\")[2]"`
interference=`python -c "print \"${f}\".split(\"_\")[3]"`
echo "file ${f} repetition ${repetition} interference ${interference} snr ${snr}"
rcvd=`tshark -r ${f} -Y "wlan.sa == 23:23:23:23:23:23" | wc -l | tr -d " "`
echo "${repetition};${interference};${snr};${rcvd}"
echo "${repetition};${interference};${snr};${rcvd}" >> ${outfile}
done