From c05497dc1965d00c670930364dc54e8ad6b59ef3 Mon Sep 17 00:00:00 2001 From: Bastian Bloessl Date: Tue, 31 May 2016 15:40:43 +0200 Subject: [PATCH] move awg simulations to root --- simulations/awgn/.gitignore | 2 + .../simulations => simulations}/awgn/Makefile | 2 + .../simulations => simulations}/awgn/parse.sh | 0 .../simulations => simulations}/awgn/pdr.pdf | Bin 13240 -> 13501 bytes .../simulations => simulations}/awgn/plot.py | 0 .../simulations => simulations}/awgn/sim.grc | 345 ++++++++---------- 6 files changed, 156 insertions(+), 193 deletions(-) create mode 100644 simulations/awgn/.gitignore rename {utils/simulations => simulations}/awgn/Makefile (82%) rename {utils/simulations => simulations}/awgn/parse.sh (100%) rename {utils/simulations => simulations}/awgn/pdr.pdf (76%) rename {utils/simulations => simulations}/awgn/plot.py (100%) rename {utils/simulations => simulations}/awgn/sim.grc (86%) diff --git a/simulations/awgn/.gitignore b/simulations/awgn/.gitignore new file mode 100644 index 0000000..e343d66 --- /dev/null +++ b/simulations/awgn/.gitignore @@ -0,0 +1,2 @@ +results/ +sim.py diff --git a/utils/simulations/awgn/Makefile b/simulations/awgn/Makefile similarity index 82% rename from utils/simulations/awgn/Makefile rename to simulations/awgn/Makefile index e58f3c6..b189403 100644 --- a/utils/simulations/awgn/Makefile +++ b/simulations/awgn/Makefile @@ -18,6 +18,7 @@ results/all.csv: $(PCAPFILES) %.pcap: sim.py @echo $@ mkdir -p results + export GR_CONF_DEFAULT_MAX_MESSAGES=123 $(eval REPETITION=$(shell python -c "print \"$@\".split(\"_\")[1]")) $(eval ENCODING=$(shell python -c "print \"$@\".split(\"_\")[2]")) $(eval SNR=$(shell python -c "print \"$@\".split(\"_\")[3]")) @@ -25,4 +26,5 @@ results/all.csv: $(PCAPFILES) @echo ENCODING=$(ENCODING) @echo SNR=$(SNR) ./sim.py --messages=$(MESSAGES) --encoding=$(ENCODING) --snr=$(SNR) --repetition=$(REPETITION) +#gdb -ex run -ex quit --args python ./sim.py --messages=$(MESSAGES) --encoding=$(ENCODING) --snr=$(SNR) --repetition=$(REPETITION) diff --git a/utils/simulations/awgn/parse.sh b/simulations/awgn/parse.sh similarity index 100% rename from utils/simulations/awgn/parse.sh rename to simulations/awgn/parse.sh diff --git a/utils/simulations/awgn/pdr.pdf b/simulations/awgn/pdr.pdf similarity index 76% rename from utils/simulations/awgn/pdr.pdf rename to simulations/awgn/pdr.pdf index 08277917d68161a0c258fa3bd05d06a5409bd5f8..ce9004505880c7d24121bffee7e4f065617cbdd7 100644 GIT binary patch delta 3232 zcmZuyc{mj68jp@`EQORUhGS%F%)VHoY*SJpWtl=WSq3wMlWi13)WJ1m3P*}8Wh={& zeX@ouN3tujHe?B9yPW4f_nu?!_s{n}zwdqD-|tZ=sMK$-5Ef18AlqgDlb(qS>qS{8bFlU z=&06t0)rN(T^nZ^_=Ir1^~Esn2MtvVRjIPu1&WKmOJ^mHP=|?|4~rEYinBkS6-PUp z8l}mckuVH&9er@(%j%F*?U&=|!bivRnfBUlF2P4zKCc>zJ{xG!CdtqoBzjuZQRhOQ z9oKVJCm1_pREZxj#Vo~JdE5g}gI^!%bovkv6VP=*xeL$U=o%~48H^xUSKm?$`Xtx5 zel=@JIKEdcU7mX36oH=yLwME+`6_MA1|z%@EhG>BT73P;Xr#K|SuaadHEFOapfNPi zzsro(k{ez}>HbDcfOCy2mSm7_@Ut%SeJMYb*V*Z%9QZ2&rZyH594Fn#mA|fpkU4T} zxjx@lGLrGkoiLI;?3j|_5IcqnVi^ivoM}!pYWjFj(u8`7?-oX(Rn*5o`uv+{SwQ!< z7}F^Ov4~XTZ1T?SbOqv%k*7>Y6MkRD?`CfN-;G}3A2s)!A&B@8u|wgLqEkA8nOEhl zqlW|x1^LPEgaIcN+oqT#M#vu~DH##KsjfIzsI{Vh0%Q)UeC?F}{liPVP-6eh9G9Vz zw5)~mv4d3MI7_*mol%CJf=%Kbj0%rxm^Y*1+> z6+NVpx|~P4$_>uGzyxs}v!=|acryg1!j}i~?#->2(|oFykj=jAL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WyeC*{RhnxOvBzct zl>PELWuJ`lepNji(8Qywa;4hh zBxHn@U!myByETJ6DrD=?>WY1mu((QapLsEE9u?(jnj=3f7dkUUsRO5>Phce>b~N%C z$&3YKce3Ld0e$&BNf?2=H{mr99E8DT7uwH#R38<)q2)h);IO(8Z>}~=sdQcS*NjKA z54c<_^84Vq&~ByN?{}{{k>BaA<6aN7=lic0Hldb+Y$HZ3sJ|~o$GZ!a7hmSk!s50)HJEesWzUU8+Bg-pjE-uK{bZ|an66Z@Paygq?G5T3O} z$M+8W;%Is%scoJ-czqMef;|DijI4m0jkbL9=)Cna$O}o zb@FOjnG}4(AfPq1>Y{YV$FO!@-Au%z0B6+Lqbp@93GHl^voKjk z;!KN!8hdV#RsBMq=ngVkdi42JfmJ47=^)Pv#gsBotthrE^81%=cQv`-*ayD7mHnmVA66MA@^saH2+Q>Dv%{M9on-@eTK zR{8e&dNbDlH0wzAdq;w{)CSEwu1&M4GY2$kU=i!8udUpz7kKwD3OB{L&Eh_`62nG< z4I3kKA=J&)Fm}ho+ub?{YT)_$;Ns){v9E7`4OP{(7n)(;XSvd&)|OuyQH1|+#a7O? z4ipPdu5PtG0Uh~S8;c#TMVaZV^sf8{W{#$a#8mI;HJar0sZg&pG3kY1tG>f`?y01M z50xE#UmctrOXpI#z#W3ruG`EHa>{ySkTDs1`=s>Gz1zu#ar7~MX$XKrS8wtsD+^%| z2owMiFaUr(2H@!FfIc@s9|!E+0US~e`0tVPmgE2Hf*0Wm1_?s@=Cz;Q4nezzxpfCqLn1OkKEtpy-47|gDI01}J)%P07^Aps;Fh2SV8 z5Ky}r3W>vVFcg+U1cl=iMg#wNyQ9Bz&^xj1Ziq% zGXMqyVs}RkU96000 + + analog_noise_source_x + + amp + 1 + + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (916, 616) + + + _rotation + 90 + + + id + analog_noise_source_x_0 + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + noise_type + analog.GR_GAUSSIAN + + + type + complex + + + seed + repetition + + + + blocks_add_xx + + alias + + + + comment + + + + affinity + + + + _enabled + True + + + _coordinate + (904, 496) + + + _rotation + 90 + + + id + blocks_add_xx_0 + + + type + complex + + + maxoutbuf + 0 + + + minoutbuf + 0 + + + num_inputs + 2 + + + vlen + 1 + + blocks_file_sink @@ -136,7 +242,7 @@ _coordinate - (40, 365) + (256, 388) _rotation @@ -152,7 +258,7 @@ unbuffered - True + False vlen @@ -183,7 +289,7 @@ _coordinate - (520, 568) + (688, 588) _rotation @@ -210,116 +316,6 @@ 1 - - blocks_null_sink - - alias - - - - bus_conns - [[0,],] - - - comment - - - - affinity - - - - _enabled - True - - - _coordinate - (408, 424) - - - _rotation - 180 - - - id - blocks_null_sink_0 - - - type - complex - - - num_inputs - 1 - - - vlen - 1 - - - - channels_channel_model - - alias - - - - block_tags - False - - - comment - - - - affinity - - - - _enabled - True - - - epsilon - 1.0 - - - freq_offset - 0 - - - _coordinate - (704, 543) - - - _rotation - 0 - - - id - channels_channel_model_0 - - - maxoutbuf - 0 - - - minoutbuf - 0 - - - noise_voltage - 1 - - - seed - repetition - - - taps - 1.0 - - parameter @@ -337,7 +333,7 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 _coordinate - (1016, 14) + (792, 11) _rotation @@ -396,7 +392,7 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 _coordinate - (368, 543) + (512, 560) _rotation @@ -424,7 +420,7 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 - foo_periodic_msg_source + foo_random_periodic_msg_source alias @@ -447,7 +443,7 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 _coordinate - (288, 181) + (392, 200) _rotation @@ -455,15 +451,15 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 id - foo_periodic_msg_source_0 + foo_random_periodic_msg_source_0 maxoutbuf 0 - msg - pmt.intern("".join([chr(random.randint(0,255)) for x in (lambda: (random.seed(repetition) == None) and range(pdu_len-24))()])) + msg_len + pdu_len - 24 minoutbuf @@ -475,12 +471,16 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 interval - interval + 5 quit True + + seed + repetition + foo_wireshark_connector @@ -506,7 +506,7 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 _coordinate - (248, 373) + (464, 396) _rotation @@ -530,7 +530,7 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 - ieee802_11_ofdm_mac + ieee802_11_mac bss_mac [0xff, 0xff, 0xff, 0xff, 0xff, 0xff] @@ -557,7 +557,7 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 _coordinate - (552, 216) + (720, 236) _rotation @@ -565,7 +565,7 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 id - ieee802_11_ofdm_mac_0 + ieee802_11_mac_0 maxoutbuf @@ -642,49 +642,6 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 import random - - parameter - - alias - - - - comment - message generation interval (in ms) - - - _enabled - True - - - _coordinate - (792, 21) - - - _rotation - 0 - - - id - interval - - - label - - - - short_id - - - - type - intx - - - value - 200 - - parameter @@ -744,7 +701,7 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 _coordinate - (1032, 173) + (1048, 11) _rotation @@ -760,7 +717,7 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 short_id - + l type @@ -787,7 +744,7 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 _coordinate - (216, 13) + (208, 11) _rotation @@ -803,7 +760,7 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 short_id - + r type @@ -877,7 +834,7 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 _coordinate - (568, 376) + (720, 408) _rotation @@ -895,28 +852,42 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 minoutbuf 0 + + bandwidth + 10e6 + chan_est - 0 + ieee802_11.LS encoding encoding + + frequency + 5.89e9 + sensitivity 0.56 - blocks_multiply_const_vxx_0 - channels_channel_model_0 + analog_noise_source_x_0 + blocks_add_xx_0 + 0 + 1 + + + blocks_add_xx_0 + wifi_phy_hier_0 0 0 - channels_channel_model_0 - wifi_phy_hier_0 + blocks_multiply_const_vxx_0 + blocks_add_xx_0 0 0 @@ -927,14 +898,8 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 0 - foo_periodic_msg_source_0 - foo_wireshark_connector_0 - out - in - - - foo_periodic_msg_source_0 - ieee802_11_ofdm_mac_0 + foo_random_periodic_msg_source_0 + ieee802_11_mac_0 out app in @@ -945,17 +910,11 @@ corresponds to BPSK 1/2, ..., 64-QAM 3/4 0 - ieee802_11_ofdm_mac_0 + ieee802_11_mac_0 wifi_phy_hier_0 phy out mac_in - - wifi_phy_hier_0 - blocks_null_sink_0 - 1 - 0 - wifi_phy_hier_0 foo_wireshark_connector_0