diff --git a/workspace/Makefile b/workspace/Makefile
index 34170a2..4591143 100644
--- a/workspace/Makefile
+++ b/workspace/Makefile
@@ -1,3 +1,57 @@
-all:
- ./wifi_loopback_noGUI.py -t $(t) -n $(n) -c $(c) -s $(s) -o $(o) -e $(e) -i $(i) -r $(result)
- tshark -r $(result)/ofdm_t$(t)_n$(n)_s$(s)_e$(e)_i$(i).pcap > $(result)/t$(t)_n$(n)_s$(s)_e$(e)_i$(i).log
\ No newline at end of file
+ifdef DIR
+result_dir = $(DIR)
+else
+DIR := $(shell date '+%m_%d__%H_%M_%S')
+result_dir := result_$(DIR)
+endif
+
+trials := 10
+packets := 50
+min_snr := -5
+max_snr := 15
+snr_steps := 1
+interval := 100
+
+# logfile name: loop_(trials)_(npackets)_(snr)_(encoding)_interval
+LOGFILES=$(shell /bin/bash -c "echo $(result_dir)/loop_{1..$(trials)}_$(packets)_{$(min_snr)..$(max_snr)..$(snr_steps)}.0_{0..7}_$(interval).log")
+PCAPFILES=$(shell /bin/bash -c "echo $(result_dir)/ofdm_{1..$(trials)}_$(packets)_{$(min_snr)..$(max_snr)..$(snr_steps)}.0_{0..7}_$(interval).pcap")
+
+all: $(result_dir)/plot.png
+
+# Will parse logfiles and create a plot
+$(result_dir)/plot.png: $(LOGFILES)
+ ./parse.py $(result_dir) $(trials)
+
+%.pcap:
+ @echo $@
+ $(eval PARAMS=$(shell python -c "print \"$@\".split(\"/\")[1]"))
+ @echo PARAMS=$(PARAMS)
+ $(eval TRIAL=$(shell python -c "print \"$(PARAMS)\".split(\"_\")[1]"))
+ $(eval NPKTS=$(shell python -c "print \"$(PARAMS)\".split(\"_\")[2]"))
+ $(eval SNR=$(shell python -c "print \"$(PARAMS)\".split(\"_\")[3]"))
+ $(eval ENC=$(shell python -c "print \"$(PARAMS)\".split(\"_\")[4]"))
+ $(eval INTVL=$(shell python -c "print \"$(PARAMS)\".split(\"_\")[5][:-5]"))
+ @echo TRIAL=$(TRIAL)
+ @echo NPKTS=$(NPKTS)
+ @echo SNR=$(SNR)
+ @echo ENC=$(ENC)
+ @echo INTVL=$(INTVL)
+ $(shell mkdir -p $(result_dir))
+ ./wifi_loopback_noGUI.py -t $(TRIAL) -n $(NPKTS) -c 1 -s $(SNR) -o 0 -e $(ENC) -i $(INTVL) -r $(result_dir)
+ sleep 1
+
+%.log: $(PCAPFILES)
+ @echo $@
+ $(eval PARAMS=$(shell python -c "print \"$@\".split(\"/\")[1]"))
+ @echo PARAMS=$(PARAMS)
+ $(eval TRIAL=$(shell python -c "print \"$(PARAMS)\".split(\"_\")[1]"))
+ $(eval NPKTS=$(shell python -c "print \"$(PARAMS)\".split(\"_\")[2]"))
+ $(eval SNR=$(shell python -c "print \"$(PARAMS)\".split(\"_\")[3]"))
+ $(eval ENC=$(shell python -c "print \"$(PARAMS)\".split(\"_\")[4]"))
+ $(eval INTVL=$(shell python -c "print \"$(PARAMS)\".split(\"_\")[5][:-4]"))
+ @echo TRIAL=$(TRIAL)
+ @echo NPKTS=$(NPKTS)
+ @echo SNR=$(SNR)
+ @echo ENC=$(ENC)
+ @echo INTVL=$(INTVL)
+ tshark -r $(result_dir)/ofdm_$(TRIAL)_$(NPKTS)_$(SNR)_$(ENC)_$(INTVL).pcap > $@
diff --git a/workspace/parse.py b/workspace/parse.py
index 3e3dc32..8d9036d 100755
--- a/workspace/parse.py
+++ b/workspace/parse.py
@@ -27,21 +27,19 @@ def mean_confidence_interval(data, confidence=0.95):
for filename in glob.glob(os.path.join(path, "*.log")):
- snr_arg = re.search(r"s([-+]?\d+.\d+)", filename) # SNR
- nfiles_arg = re.search(r"n(\d+)", filename) # Nfiles
- enc_arg = re.search(r"e(\d+)", filename) # Encoding
- trial_arg = re.search(r"t(\d+)", filename) # trial number
+ params = filename.split("/")[1].split("_")
+ print params
try:
- assert snr_arg and nfiles_arg and enc_arg and trial_arg
+ trial = int(params[1])
+ npkts = int(params[2])
+ snr = float(params[3])
+ encode = int(params[4])
except AssertionError:
print "Log filename parse failed; exiting!"
sys.exit()
- total = nfiles_arg.group(1)
- pdrate = sum(1 for line in open(filename))/float(total)
- encode = int(enc_arg.group(1))
- snr = float(snr_arg.group(1))
+ pdrate = sum(1 for line in open(filename))/float(npkts)
if snr not in snr_list:
snr_list.append(snr)
diff --git a/workspace/temp/ofdm_t1_n10_s1.0_e0_i200.pcap b/workspace/temp/ofdm_t1_n10_s1.0_e0_i200.pcap
deleted file mode 100644
index 9c82de7..0000000
Binary files a/workspace/temp/ofdm_t1_n10_s1.0_e0_i200.pcap and /dev/null differ
diff --git a/workspace/temp/ofdm_t1_n10_s3.0_e0_i200.pcap b/workspace/temp/ofdm_t1_n10_s3.0_e0_i200.pcap
deleted file mode 100644
index 8432bfa..0000000
Binary files a/workspace/temp/ofdm_t1_n10_s3.0_e0_i200.pcap and /dev/null differ
diff --git a/workspace/temp/ofdm_t1_n10_s5.0_e0_i200.pcap b/workspace/temp/ofdm_t1_n10_s5.0_e0_i200.pcap
deleted file mode 100644
index b566964..0000000
Binary files a/workspace/temp/ofdm_t1_n10_s5.0_e0_i200.pcap and /dev/null differ
diff --git a/workspace/temp/ofdm_t1_n10_s7.0_e0_i200.pcap b/workspace/temp/ofdm_t1_n10_s7.0_e0_i200.pcap
deleted file mode 100644
index c041f06..0000000
Binary files a/workspace/temp/ofdm_t1_n10_s7.0_e0_i200.pcap and /dev/null differ
diff --git a/workspace/temp/ofdm_t1_n10_s9.0_e0_i200.pcap b/workspace/temp/ofdm_t1_n10_s9.0_e0_i200.pcap
deleted file mode 100644
index c5453eb..0000000
Binary files a/workspace/temp/ofdm_t1_n10_s9.0_e0_i200.pcap and /dev/null differ
diff --git a/workspace/temp/ofdm_t2_n10_s1.0_e0_i200.pcap b/workspace/temp/ofdm_t2_n10_s1.0_e0_i200.pcap
deleted file mode 100644
index 9c82de7..0000000
Binary files a/workspace/temp/ofdm_t2_n10_s1.0_e0_i200.pcap and /dev/null differ
diff --git a/workspace/temp/ofdm_t2_n10_s3.0_e0_i200.pcap b/workspace/temp/ofdm_t2_n10_s3.0_e0_i200.pcap
deleted file mode 100644
index c1e8d59..0000000
Binary files a/workspace/temp/ofdm_t2_n10_s3.0_e0_i200.pcap and /dev/null differ
diff --git a/workspace/temp/ofdm_t2_n10_s5.0_e0_i200.pcap b/workspace/temp/ofdm_t2_n10_s5.0_e0_i200.pcap
deleted file mode 100644
index 73846a9..0000000
Binary files a/workspace/temp/ofdm_t2_n10_s5.0_e0_i200.pcap and /dev/null differ
diff --git a/workspace/temp/ofdm_t2_n10_s7.0_e0_i200.pcap b/workspace/temp/ofdm_t2_n10_s7.0_e0_i200.pcap
deleted file mode 100644
index ba81ca3..0000000
Binary files a/workspace/temp/ofdm_t2_n10_s7.0_e0_i200.pcap and /dev/null differ
diff --git a/workspace/temp/ofdm_t2_n10_s9.0_e0_i200.pcap b/workspace/temp/ofdm_t2_n10_s9.0_e0_i200.pcap
deleted file mode 100644
index 4d9e06a..0000000
Binary files a/workspace/temp/ofdm_t2_n10_s9.0_e0_i200.pcap and /dev/null differ
diff --git a/workspace/temp/ofdm_t3_n10_s1.0_e0_i200.pcap b/workspace/temp/ofdm_t3_n10_s1.0_e0_i200.pcap
deleted file mode 100644
index b6097da..0000000
Binary files a/workspace/temp/ofdm_t3_n10_s1.0_e0_i200.pcap and /dev/null differ
diff --git a/workspace/temp/ofdm_t3_n10_s3.0_e0_i200.pcap b/workspace/temp/ofdm_t3_n10_s3.0_e0_i200.pcap
deleted file mode 100644
index 9bae1a3..0000000
Binary files a/workspace/temp/ofdm_t3_n10_s3.0_e0_i200.pcap and /dev/null differ
diff --git a/workspace/temp/ofdm_t3_n10_s5.0_e0_i200.pcap b/workspace/temp/ofdm_t3_n10_s5.0_e0_i200.pcap
deleted file mode 100644
index 03f2075..0000000
Binary files a/workspace/temp/ofdm_t3_n10_s5.0_e0_i200.pcap and /dev/null differ
diff --git a/workspace/temp/ofdm_t3_n10_s7.0_e0_i200.pcap b/workspace/temp/ofdm_t3_n10_s7.0_e0_i200.pcap
deleted file mode 100644
index 8d71265..0000000
Binary files a/workspace/temp/ofdm_t3_n10_s7.0_e0_i200.pcap and /dev/null differ
diff --git a/workspace/temp/ofdm_t3_n10_s9.0_e0_i200.pcap b/workspace/temp/ofdm_t3_n10_s9.0_e0_i200.pcap
deleted file mode 100644
index 9b99b15..0000000
Binary files a/workspace/temp/ofdm_t3_n10_s9.0_e0_i200.pcap and /dev/null differ
diff --git a/workspace/temp/plot.png b/workspace/temp/plot.png
deleted file mode 100644
index a1efd31..0000000
Binary files a/workspace/temp/plot.png and /dev/null differ
diff --git a/workspace/temp/t1_n10_s1.0_e0_i200.log b/workspace/temp/t1_n10_s1.0_e0_i200.log
deleted file mode 100644
index e69de29..0000000
diff --git a/workspace/temp/t1_n10_s3.0_e0_i200.log b/workspace/temp/t1_n10_s3.0_e0_i200.log
deleted file mode 100644
index c55c289..0000000
--- a/workspace/temp/t1_n10_s3.0_e0_i200.log
+++ /dev/null
@@ -1,7 +0,0 @@
- 1 0.000000 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 2 0.200103 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 3 0.401058 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 4 0.601474 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 5 0.801792 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 6 1.403985 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 7 1.603923 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
diff --git a/workspace/temp/t1_n10_s5.0_e0_i200.log b/workspace/temp/t1_n10_s5.0_e0_i200.log
deleted file mode 100644
index b72abdf..0000000
--- a/workspace/temp/t1_n10_s5.0_e0_i200.log
+++ /dev/null
@@ -1,10 +0,0 @@
- 1 0.000000 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 2 0.196848 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 3 0.396943 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 4 0.598886 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 5 0.800263 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 6 1.004287 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 7 1.202008 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 8 1.402387 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 9 1.603159 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 10 1.803635 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
diff --git a/workspace/temp/t1_n10_s7.0_e0_i200.log b/workspace/temp/t1_n10_s7.0_e0_i200.log
deleted file mode 100644
index d705aff..0000000
--- a/workspace/temp/t1_n10_s7.0_e0_i200.log
+++ /dev/null
@@ -1,10 +0,0 @@
- 1 0.000000 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 2 0.197604 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 3 0.397545 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 4 0.598080 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 5 0.798288 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 6 0.999863 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 7 1.199764 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 8 1.400345 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 9 1.600798 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 10 1.804125 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
diff --git a/workspace/temp/t1_n10_s9.0_e0_i200.log b/workspace/temp/t1_n10_s9.0_e0_i200.log
deleted file mode 100644
index 9e6edfc..0000000
--- a/workspace/temp/t1_n10_s9.0_e0_i200.log
+++ /dev/null
@@ -1,10 +0,0 @@
- 1 0.000000 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 2 0.194485 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 3 0.394516 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 4 0.595770 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 5 0.795402 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 6 0.995353 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 7 1.196162 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 8 1.396947 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 9 1.597469 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 10 1.799082 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
diff --git a/workspace/temp/t2_n10_s1.0_e0_i200.log b/workspace/temp/t2_n10_s1.0_e0_i200.log
deleted file mode 100644
index e69de29..0000000
diff --git a/workspace/temp/t2_n10_s3.0_e0_i200.log b/workspace/temp/t2_n10_s3.0_e0_i200.log
deleted file mode 100644
index 9fd911c..0000000
--- a/workspace/temp/t2_n10_s3.0_e0_i200.log
+++ /dev/null
@@ -1,7 +0,0 @@
- 1 0.000000 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 2 0.198189 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 3 0.600105 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 4 0.801267 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 5 1.002216 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 6 1.202105 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 7 1.404350 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
diff --git a/workspace/temp/t2_n10_s5.0_e0_i200.log b/workspace/temp/t2_n10_s5.0_e0_i200.log
deleted file mode 100644
index 17121e2..0000000
--- a/workspace/temp/t2_n10_s5.0_e0_i200.log
+++ /dev/null
@@ -1,10 +0,0 @@
- 1 0.000000 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 2 0.197739 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 3 0.398757 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 4 0.599049 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 5 0.798477 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 6 0.998967 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 7 1.200756 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 8 1.400910 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 9 1.601646 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 10 1.801618 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
diff --git a/workspace/temp/t2_n10_s7.0_e0_i200.log b/workspace/temp/t2_n10_s7.0_e0_i200.log
deleted file mode 100644
index 9021e49..0000000
--- a/workspace/temp/t2_n10_s7.0_e0_i200.log
+++ /dev/null
@@ -1,10 +0,0 @@
- 1 0.000000 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 2 0.196757 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 3 0.396891 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 4 0.598621 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 5 0.798138 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 6 0.998740 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 7 1.198333 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 8 1.398526 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 9 1.599641 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 10 1.800784 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
diff --git a/workspace/temp/t2_n10_s9.0_e0_i200.log b/workspace/temp/t2_n10_s9.0_e0_i200.log
deleted file mode 100644
index ee0a0ef..0000000
--- a/workspace/temp/t2_n10_s9.0_e0_i200.log
+++ /dev/null
@@ -1,10 +0,0 @@
- 1 0.000000 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 2 0.199280 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 3 0.399189 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 4 0.599032 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 5 0.801261 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 6 1.001054 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 7 1.200619 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 8 1.401371 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 9 1.602194 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 10 1.802983 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
diff --git a/workspace/temp/t3_n10_s1.0_e0_i200.log b/workspace/temp/t3_n10_s1.0_e0_i200.log
deleted file mode 100644
index 8a1f40e..0000000
--- a/workspace/temp/t3_n10_s1.0_e0_i200.log
+++ /dev/null
@@ -1 +0,0 @@
- 1 0.000000 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
diff --git a/workspace/temp/t3_n10_s3.0_e0_i200.log b/workspace/temp/t3_n10_s3.0_e0_i200.log
deleted file mode 100644
index 5e69906..0000000
--- a/workspace/temp/t3_n10_s3.0_e0_i200.log
+++ /dev/null
@@ -1,3 +0,0 @@
- 1 0.000000 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 2 0.998518 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 3 1.206310 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
diff --git a/workspace/temp/t3_n10_s5.0_e0_i200.log b/workspace/temp/t3_n10_s5.0_e0_i200.log
deleted file mode 100644
index 78bd777..0000000
--- a/workspace/temp/t3_n10_s5.0_e0_i200.log
+++ /dev/null
@@ -1,10 +0,0 @@
- 1 0.000000 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 2 0.197080 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 3 0.397965 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 4 0.598432 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 5 0.798915 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 6 1.000282 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 7 1.200058 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 8 1.400496 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 9 1.600906 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 10 1.800908 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
diff --git a/workspace/temp/t3_n10_s7.0_e0_i200.log b/workspace/temp/t3_n10_s7.0_e0_i200.log
deleted file mode 100644
index 699b8f4..0000000
--- a/workspace/temp/t3_n10_s7.0_e0_i200.log
+++ /dev/null
@@ -1,10 +0,0 @@
- 1 0.000000 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 2 0.195165 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 3 0.395094 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 4 0.596681 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 5 0.796858 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 6 0.996674 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 7 1.198238 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 8 1.398442 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 9 1.601660 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 10 1.802568 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
diff --git a/workspace/temp/t3_n10_s9.0_e0_i200.log b/workspace/temp/t3_n10_s9.0_e0_i200.log
deleted file mode 100644
index 18b2b82..0000000
--- a/workspace/temp/t3_n10_s9.0_e0_i200.log
+++ /dev/null
@@ -1,10 +0,0 @@
- 1 0.000000 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 2 0.198489 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 3 0.397349 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 4 0.598199 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 5 0.798432 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 6 0.999793 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 7 1.199805 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 8 1.401055 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 9 1.603784 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
- 10 1.803290 23:23:23:23:23:23 -> 42:42:42:42:42:42 LLC 53 I, N(R)=54, N(S)=54; DSAP 0x48 Individual, SSAP 0x64 Response
diff --git a/workspace/wifi_loopback_noGUI.grc b/workspace/wifi_loopback_noGUI.grc
index 40b0198..ff2ecdb 100644
--- a/workspace/wifi_loopback_noGUI.grc
+++ b/workspace/wifi_loopback_noGUI.grc
@@ -104,49 +104,6 @@
96000
-
- blocks_complex_to_arg
-
- alias
-
-
-
- comment
-
-
-
- affinity
-
-
-
- _enabled
- True
-
-
- _coordinate
- (792, 152)
-
-
- _rotation
- 0
-
-
- id
- blocks_complex_to_arg_0
-
-
- maxoutbuf
- 0
-
-
- minoutbuf
- 0
-
-
- vlen
- 1
-
-
blocks_file_sink
@@ -171,7 +128,7 @@
file
- " + resultdir + "/ofdm_t" + str(ntrials) + "_n" + str(nmessages) + "_s" + str(snr) + "_e" + str(encoding) + "_i" + str(interval) + ".pcap
+ " + resultdir + "/ofdm_" + str(ntrials) + "_" + str(nmessages) + "_" + str(snr) + "_" + str(encoding) + "_" + str(interval) + ".pcap
_coordinate
@@ -1009,99 +966,18 @@ Max: 30
encoding
-
- wxgui_scopesink2
-
- ac_couple
- False
-
-
- alias
-
-
-
- comment
-
-
-
- affinity
-
-
-
- _enabled
- True
-
-
- _coordinate
- (784, 195)
-
-
- _rotation
- 0
-
-
- grid_pos
-
-
-
- id
- wxgui_scopesink2_0
-
-
- notebook
-
-
-
- num_inputs
- 1
-
-
- samp_rate
- samp_rate
-
-
- t_scale
- 0
-
-
- title
- Scope Plot
-
-
- trig_mode
- wxgui.TRIG_MODE_AUTO
-
-
- type
- complex
-
-
- v_offset
- 0
-
-
- v_scale
- 0
-
-
- win_size
-
-
-
- xy_mode
- False
-
-
- y_axis_label
- Counts
-
-
blocks_multiply_const_vxx_0
channels_channel_model_0
0
0
+
+ channels_channel_model_0
+ wifi_phy_hier_0
+ 0
+ 0
+
foo_packet_pad2_0
blocks_multiply_const_vxx_0
diff --git a/workspace/wifi_loopback_noGUI.py b/workspace/wifi_loopback_noGUI.py
index 337974f..7706768 100755
--- a/workspace/wifi_loopback_noGUI.py
+++ b/workspace/wifi_loopback_noGUI.py
@@ -3,7 +3,7 @@
##################################################
# GNU Radio Python Flow Graph
# Title: Wifi Loopback Nogui
-# Generated: Fri Nov 6 18:30:18 2015
+# Generated: Sun Nov 15 22:48:19 2015
##################################################
import os
@@ -68,7 +68,7 @@ class wifi_loopback_noGUI(gr.top_block):
)
self.blocks_null_sink_0 = blocks.null_sink(gr.sizeof_gr_complex*1)
self.blocks_multiply_const_vxx_0 = blocks.multiply_const_vcc(((10**(snr/10.0))**.5, ))
- self.blocks_file_sink_0_0 = blocks.file_sink(gr.sizeof_char*1, "" + resultdir + "/ofdm_t" + str(ntrials) + "_n" + str(nmessages) + "_s" + str(snr) + "_e" + str(encoding) + "_i" + str(interval) + ".pcap", False)
+ self.blocks_file_sink_0_0 = blocks.file_sink(gr.sizeof_char*1, "" + resultdir + "/ofdm_" + str(ntrials) + "_" + str(nmessages) + "_" + str(snr) + "_" + str(encoding) + "_" + str(interval) + ".pcap", False)
self.blocks_file_sink_0_0.set_unbuffered(True)
##################################################
@@ -97,8 +97,8 @@ class wifi_loopback_noGUI(gr.top_block):
def set_encoding(self, encoding):
self.encoding = encoding
+ self.blocks_file_sink_0_0.open("" + self.resultdir + "/ofdm_" + str(self.ntrials) + "_" + str(self.nmessages) + "_" + str(self.snr) + "_" + str(self.encoding) + "_" + str(self.interval) + ".pcap")
self.wifi_phy_hier_0.set_encoding(self.encoding)
- self.blocks_file_sink_0_0.open("" + self.resultdir + "/ofdm_t" + str(self.ntrials) + "_n" + str(self.nmessages) + "_s" + str(self.snr) + "_e" + str(self.encoding) + "_i" + str(self.interval) + ".pcap")
def get_freq_offset(self):
return self.freq_offset
@@ -112,28 +112,28 @@ class wifi_loopback_noGUI(gr.top_block):
def set_interval(self, interval):
self.interval = interval
- self.blocks_file_sink_0_0.open("" + self.resultdir + "/ofdm_t" + str(self.ntrials) + "_n" + str(self.nmessages) + "_s" + str(self.snr) + "_e" + str(self.encoding) + "_i" + str(self.interval) + ".pcap")
+ self.blocks_file_sink_0_0.open("" + self.resultdir + "/ofdm_" + str(self.ntrials) + "_" + str(self.nmessages) + "_" + str(self.snr) + "_" + str(self.encoding) + "_" + str(self.interval) + ".pcap")
def get_nmessages(self):
return self.nmessages
def set_nmessages(self, nmessages):
self.nmessages = nmessages
- self.blocks_file_sink_0_0.open("" + self.resultdir + "/ofdm_t" + str(self.ntrials) + "_n" + str(self.nmessages) + "_s" + str(self.snr) + "_e" + str(self.encoding) + "_i" + str(self.interval) + ".pcap")
+ self.blocks_file_sink_0_0.open("" + self.resultdir + "/ofdm_" + str(self.ntrials) + "_" + str(self.nmessages) + "_" + str(self.snr) + "_" + str(self.encoding) + "_" + str(self.interval) + ".pcap")
def get_ntrials(self):
return self.ntrials
def set_ntrials(self, ntrials):
self.ntrials = ntrials
- self.blocks_file_sink_0_0.open("" + self.resultdir + "/ofdm_t" + str(self.ntrials) + "_n" + str(self.nmessages) + "_s" + str(self.snr) + "_e" + str(self.encoding) + "_i" + str(self.interval) + ".pcap")
+ self.blocks_file_sink_0_0.open("" + self.resultdir + "/ofdm_" + str(self.ntrials) + "_" + str(self.nmessages) + "_" + str(self.snr) + "_" + str(self.encoding) + "_" + str(self.interval) + ".pcap")
def get_resultdir(self):
return self.resultdir
def set_resultdir(self, resultdir):
self.resultdir = resultdir
- self.blocks_file_sink_0_0.open("" + self.resultdir + "/ofdm_t" + str(self.ntrials) + "_n" + str(self.nmessages) + "_s" + str(self.snr) + "_e" + str(self.encoding) + "_i" + str(self.interval) + ".pcap")
+ self.blocks_file_sink_0_0.open("" + self.resultdir + "/ofdm_" + str(self.ntrials) + "_" + str(self.nmessages) + "_" + str(self.snr) + "_" + str(self.encoding) + "_" + str(self.interval) + ".pcap")
def get_snr(self):
return self.snr
@@ -141,7 +141,7 @@ class wifi_loopback_noGUI(gr.top_block):
def set_snr(self, snr):
self.snr = snr
self.blocks_multiply_const_vxx_0.set_k(((10**(self.snr/10.0))**.5, ))
- self.blocks_file_sink_0_0.open("" + self.resultdir + "/ofdm_t" + str(self.ntrials) + "_n" + str(self.nmessages) + "_s" + str(self.snr) + "_e" + str(self.encoding) + "_i" + str(self.interval) + ".pcap")
+ self.blocks_file_sink_0_0.open("" + self.resultdir + "/ofdm_" + str(self.ntrials) + "_" + str(self.nmessages) + "_" + str(self.snr) + "_" + str(self.encoding) + "_" + str(self.interval) + ".pcap")
def get_out_buf_size(self):
return self.out_buf_size