-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyc_rx
1613 lines (1419 loc) · 68.2 KB
/
pyc_rx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
magic 03f30d0a
code
argcount 0
nlocals 0
stacksize 5
flags 0040
code
6400006401006c00006d01005a01006d02005a0200016400006402006c00
006d03005a0300016400006403006c00006d04005a040001640000640400
6c05006d06005a0600016400006405006c07006d08005a08000164000064
06006c09006d0a005a0a00016400006407006c0a005a0a00640000640700
6c0b005a0b006400006407006c0c005a0c006400006407006c0d005a0d00
6400006407006c0e005a0e006400006408006c0f006d0f005a0f00016400
006407006c10005a10006400006407006c11005a11006512006113006409
00611400640a00611500640b006501006a1600660100640c008400008300
00595a1700640d008400005a1800651900640e006b0200722c01790b0065
180083000001576e110004651a006b0a007228010101016e0100586e0000
64070053
4 0 LOAD_CONST 0 (-1)
3 LOAD_CONST 1 (('gr', 'gru'))
6 IMPORT_NAME 0 (gnuradio)
9 IMPORT_FROM 1 (gr)
12 STORE_NAME 1 (gr)
15 IMPORT_FROM 2 (gru)
18 STORE_NAME 2 (gru)
21 POP_TOP
5 22 LOAD_CONST 0 (-1)
25 LOAD_CONST 2 (('digital',))
28 IMPORT_NAME 0 (gnuradio)
31 IMPORT_FROM 3 (digital)
34 STORE_NAME 3 (digital)
37 POP_TOP
6 38 LOAD_CONST 0 (-1)
41 LOAD_CONST 3 (('eng_notation',))
44 IMPORT_NAME 0 (gnuradio)
47 IMPORT_FROM 4 (eng_notation)
50 STORE_NAME 4 (eng_notation)
53 POP_TOP
7 54 LOAD_CONST 0 (-1)
57 LOAD_CONST 4 (('eng_option',))
60 IMPORT_NAME 5 (gnuradio.eng_option)
63 IMPORT_FROM 6 (eng_option)
66 STORE_NAME 6 (eng_option)
69 POP_TOP
8 70 LOAD_CONST 0 (-1)
73 LOAD_CONST 5 (('OptionParser',))
76 IMPORT_NAME 7 (optparse)
79 IMPORT_FROM 8 (OptionParser)
82 STORE_NAME 8 (OptionParser)
85 POP_TOP
9 86 LOAD_CONST 0 (-1)
89 LOAD_CONST 6 (('random',))
92 IMPORT_NAME 9 (numpy)
95 IMPORT_FROM 10 (random)
98 STORE_NAME 10 (random)
101 POP_TOP
10 102 LOAD_CONST 0 (-1)
105 LOAD_CONST 7 (None)
108 IMPORT_NAME 10 (random)
111 STORE_NAME 10 (random)
114 LOAD_CONST 0 (-1)
117 LOAD_CONST 7 (None)
120 IMPORT_NAME 11 (time)
123 STORE_NAME 11 (time)
126 LOAD_CONST 0 (-1)
129 LOAD_CONST 7 (None)
132 IMPORT_NAME 12 (struct)
135 STORE_NAME 12 (struct)
138 LOAD_CONST 0 (-1)
141 LOAD_CONST 7 (None)
144 IMPORT_NAME 13 (sys)
147 STORE_NAME 13 (sys)
150 LOAD_CONST 0 (-1)
153 LOAD_CONST 7 (None)
156 IMPORT_NAME 14 (math)
159 STORE_NAME 14 (math)
11 162 LOAD_CONST 0 (-1)
165 LOAD_CONST 8 (('datetime',))
168 IMPORT_NAME 15 (datetime)
171 IMPORT_FROM 15 (datetime)
174 STORE_NAME 15 (datetime)
177 POP_TOP
17 178 LOAD_CONST 0 (-1)
181 LOAD_CONST 7 (None)
184 IMPORT_NAME 16 (usrp_transmit_path)
187 STORE_NAME 16 (usrp_transmit_path)
18 190 LOAD_CONST 0 (-1)
193 LOAD_CONST 7 (None)
196 IMPORT_NAME 17 (usrp_receive_path)
199 STORE_NAME 17 (usrp_receive_path)
22 202 LOAD_NAME 18 (False)
205 STORE_GLOBAL 19 (sync_status)
27 208 LOAD_CONST 9 ('sync')
211 STORE_GLOBAL 20 (mode)
28 214 LOAD_CONST 10 (0)
217 STORE_GLOBAL 21 (data_packet_delivery_count)
30 220 LOAD_CONST 11 ('my_top_block')
223 LOAD_NAME 1 (gr)
226 LOAD_ATTR 22 (top_block)
229 BUILD_TUPLE 1
232 LOAD_CONST 12 (<code object my_top_block at 0x7ff8e03400b0, file "benchmark_rx.py", line 30>)
235 MAKE_FUNCTION 0
238 CALL_FUNCTION 0
241 BUILD_CLASS
242 STORE_NAME 23 (my_top_block)
42 245 LOAD_CONST 13 (<code object main at 0x7ff8e0340630, file "benchmark_rx.py", line 42>)
248 MAKE_FUNCTION 0
251 STORE_NAME 24 (main)
309 254 LOAD_NAME 25 (__name__)
257 LOAD_CONST 14 ('__main__')
260 COMPARE_OP 2 (==)
263 POP_JUMP_IF_FALSE 300
310 266 SETUP_EXCEPT 11 (to 280)
311 269 LOAD_NAME 24 (main)
272 CALL_FUNCTION 0
275 POP_TOP
276 POP_BLOCK
277 JUMP_FORWARD 17 (to 297)
312 >> 280 DUP_TOP
281 LOAD_NAME 26 (KeyboardInterrupt)
284 COMPARE_OP 10 (exception match)
287 POP_JUMP_IF_FALSE 296
290 POP_TOP
291 POP_TOP
292 POP_TOP
313 293 JUMP_FORWARD 1 (to 297)
>> 296 END_FINALLY
>> 297 JUMP_FORWARD 0 (to 300)
>> 300 LOAD_CONST 7 (None)
303 RETURN_VALUE
consts
-1
('gr', 'gru')
('digital',)
('eng_notation',)
('eng_option',)
('OptionParser',)
('random',)
None
('datetime',)
'sync'
0
'my_top_block'
code
argcount 0
nlocals 0
stacksize 1
flags 0042
code 6500005a01006400008400005a02005253
30 0 LOAD_NAME 0 (__name__)
3 STORE_NAME 1 (__module__)
32 6 LOAD_CONST 0 (<code object __init__ at 0x7ff8e0340530, file "benchmark_rx.py", line 32>)
9 MAKE_FUNCTION 0
12 STORE_NAME 2 (__init__)
15 LOAD_LOCALS
16 RETURN_VALUE
consts
code
argcount 6
nlocals 6
stacksize 4
flags 0043
code
7400006a01006a02007c0000830100017403006a03007c02007c03007c05
008303007c00005f04007405006a05007c01007c04008302007c00005f06
007c00006a07007c00006a0600830100017c00006a07007c00006a040083
01000164000053
35 0 LOAD_GLOBAL 0 (gr)
3 LOAD_ATTR 1 (top_block)
6 LOAD_ATTR 2 (__init__)
9 LOAD_FAST 0 (self)
12 CALL_FUNCTION 1
15 POP_TOP
36 16 LOAD_GLOBAL 3 (usrp_receive_path)
19 LOAD_ATTR 3 (usrp_receive_path)
22 LOAD_FAST 2 (demod_class)
25 LOAD_FAST 3 (rx_callback)
28 LOAD_FAST 5 (options_rx)
31 CALL_FUNCTION 3
34 LOAD_FAST 0 (self)
37 STORE_ATTR 4 (rxpath)
37 40 LOAD_GLOBAL 5 (usrp_transmit_path)
43 LOAD_ATTR 5 (usrp_transmit_path)
46 LOAD_FAST 1 (mod_class)
49 LOAD_FAST 4 (options_tx)
52 CALL_FUNCTION 2
55 LOAD_FAST 0 (self)
58 STORE_ATTR 6 (txpath)
38 61 LOAD_FAST 0 (self)
64 LOAD_ATTR 7 (connect)
67 LOAD_FAST 0 (self)
70 LOAD_ATTR 6 (txpath)
73 CALL_FUNCTION 1
76 POP_TOP
39 77 LOAD_FAST 0 (self)
80 LOAD_ATTR 7 (connect)
83 LOAD_FAST 0 (self)
86 LOAD_ATTR 4 (rxpath)
89 CALL_FUNCTION 1
92 POP_TOP
93 LOAD_CONST 0 (None)
96 RETURN_VALUE
consts
None
names ('gr', 'top_block', '__init__', 'usrp_receive_path', 'rxpath', 'usrp_transmit_path', 'txpath', 'connect')
varnames ('self', 'mod_class', 'demod_class', 'rx_callback', 'options_tx', 'options_rx')
freevars ()
cellvars ()
filename 'benchmark_rx.py'
name '__init__'
firstlineno 32
lnotab 00031001180115011001
names ('__name__', '__module__', '__init__')
varnames ()
freevars ()
cellvars ()
filename 'benchmark_rx.py'
name 'my_top_block'
firstlineno 30
lnotab 0602
code
argcount 0
nlocals 33
stacksize 15
flags 0003
code
6401007d00006401006100006401006101006402006102006403007d0100
640100640100640100640100640100670500610300640100640100640100
640100640100670500610400640100640100640100640100640100640100
640100640100640100640100640100640100640100640100640100670f00
6105006404007406006405008402008900006406008400007d0200640700
8400007d03008701008700006602006408008600007d04007407006a0800
6a09008300007d05007407006a08006a0a008300007d0600740b00640900
740c00640a00640b008300027d07007c07006a0d00640c00640d00640e00
640f006410007c05006a0e00830000641100641200641300641400641500
6a0f007c05006a0e0083000083010066010016830204017c07006a0d0064
1600641700640e00641800641100641900641300641a00830203017c0700
6a0d00641b00641c00640e00641800641100641d00641300641e00830203
017c07006a0d00640400641f006420006421006411007406006413006422
00830203017c07006a0d0064040064230064110064000064130064240083
0202017c07006a11006425008301007d08007c07006a1100642600830100
7d09007c09006a0d00642700642800640e00641800641100640300641300
642900830203017412006a13007c07007c0800830200017c07006a140064
2a00830100017821007c05006a1500830000445d13007d0a007c0a006a13
007c080083010001711102577c07006a16008300005c02007d0b007d0c00
7417007c0c008301006401006b03007266027c07006a1800830000017419
006a1a00642b00830100016e0000642c007c0b005f1b00642d007c0b005f
1c006412007c0b005f1d00642e007c0b005f1e00642f007c0b005f1f0064
30007c0b005f2000740b00640900740c00640a00640b008300027d0d007c
0d006a11006431008301007d0e007421006a13007c0d007c0e0083020001
7c0d006a1400642a00830100017c0d006a16008300005c02007d0f007d10
006432007c0f005f2200642d007c0f005f1c006412007c0f005f1d00642e
007c0f005f1e00642f007c0f005f1f006430007c0f005f20006433004748
7423007c05007c0b006a1d00197c06007c0f006a1d00197c04007c0b007c
0f008305008901007424006a25008300007d11007c11007424006a26006b
030072730364340047486e00008801006a2700830000017428007d120064
350047487880037c1200720a077429006436006b0200724c05742a007428
006b03007218057c03008300005c0200612b007d13007c02008300007d14
008801006a2c006a2d006a2e007c1400830100018801006a2f006a30006a
2e007c130083010001643700477c130047643800477c140047488801006a
2f006a31006a32008300007d15007433007c15008301007c01006b040072
2204718b036e00006402007d16006402007d17006401007d18006401007d
190078cb007c18007c16006b00007207057c0b006a34006400006b080072
61046439007d1a006e23007435006a36007c1700642d00188301007d1a00
7c1a006404006b0200728404506e00007437006a3800643a007c1900643b
00407c1a00742b00643b00408304007d1b008800008801007c1b00830200
017c18007417007c1b00830100377d18007419006a39006a3a00643c0083
0100017c0b006a3b00723d047c190064020016643d006b0200723d04743c
006a3d00642b00830100017c1900642b00377d1900713d04713d0457743c
006a3d00642b0083010001714c05643e0047742b0047643f004748640100
7d1c00644000612900640100613e00644100612a00743f006a4000830000
7d1d006e00007429006440006b0200728b036442007d16006442007d1700
6401007d1e006401007d18007894017c18007c16006b00007203077c0b00
6a34006400006b08007297056443007d1a006e23007435006a36007c1700
642d00188301007d1a007c1a006404006b020072ba05506e00007437006a
38006444007c1a008302007d1b008800008801007c1b00830200017c1800
7417007c1b00830100377d18007419006a39006a3a00644500830100017c
0b006a3b007222067c1e0064020016643d006b0200722206743c006a3d00
642b00830100016e00007c1e00642b00377d1e00743c006a3d0064460064
47007433007441006a4200640100642b00642d0064480067040083010083
0100141783010001743e007c00006b0200728d067c1c00642b00377d1c00
7c1c007402006b04007299066436006129007173057199066e0c00640100
7d0000640100613e00743e007d00008801006a2f006a31006a3200830000
7d1500644900477c150047644a0047487c15007c01006b0400727305743f
006a40008300007d1f007c1f007c1d00187d2000644b0047486435004748
644c00477c200047644a00474864360061290071730571730557718b0371
8b035764000053
47 0 LOAD_CONST 1 (0)
3 STORE_FAST 0 (data_packet_delivery_count_previous)
48 6 LOAD_CONST 1 (0)
9 STORE_GLOBAL 0 (n_rcvd)
49 12 LOAD_CONST 1 (0)
15 STORE_GLOBAL 1 (n_right)
50 18 LOAD_CONST 2 (5)
21 STORE_GLOBAL 2 (n_attempts)
51 24 LOAD_CONST 3 (0.01)
27 STORE_FAST 1 (threshold)
53 30 LOAD_CONST 1 (0)
33 LOAD_CONST 1 (0)
36 LOAD_CONST 1 (0)
39 LOAD_CONST 1 (0)
42 LOAD_CONST 1 (0)
45 BUILD_LIST 5
48 STORE_GLOBAL 3 (count_array)
54 51 LOAD_CONST 1 (0)
54 LOAD_CONST 1 (0)
57 LOAD_CONST 1 (0)
60 LOAD_CONST 1 (0)
63 LOAD_CONST 1 (0)
66 BUILD_LIST 5
69 STORE_GLOBAL 4 (time_array)
55 72 LOAD_CONST 1 (0)
75 LOAD_CONST 1 (0)
78 LOAD_CONST 1 (0)
81 LOAD_CONST 1 (0)
84 LOAD_CONST 1 (0)
87 LOAD_CONST 1 (0)
90 LOAD_CONST 1 (0)
93 LOAD_CONST 1 (0)
96 LOAD_CONST 1 (0)
99 LOAD_CONST 1 (0)
102 LOAD_CONST 1 (0)
105 LOAD_CONST 1 (0)
108 LOAD_CONST 1 (0)
111 LOAD_CONST 1 (0)
114 LOAD_CONST 1 (0)
117 BUILD_LIST 15
120 STORE_GLOBAL 5 (stats_array)
58 123 LOAD_CONST 4 ('')
126 LOAD_GLOBAL 6 (False)
129 LOAD_CONST 5 (<code object send_pkt at 0x7ff8e03401b0, file "benchmark_rx.py", line 58>)
132 MAKE_FUNCTION 2
135 STORE_DEREF 0 (send_pkt)
61 138 LOAD_CONST 6 (<code object get_freq_tx at 0x7ff8e03402b0, file "benchmark_rx.py", line 61>)
141 MAKE_FUNCTION 0
144 STORE_FAST 2 (get_freq_tx)
65 147 LOAD_CONST 7 (<code object get_freq_rx at 0x7ff8e0340330, file "benchmark_rx.py", line 65>)
150 MAKE_FUNCTION 0
153 STORE_FAST 3 (get_freq_rx)
81 156 LOAD_CLOSURE 1 (tb)
159 LOAD_CLOSURE 0 (send_pkt)
162 BUILD_TUPLE 2
165 LOAD_CONST 8 (<code object rx_callback at 0x7ff8e03405b0, file "benchmark_rx.py", line 81>)
168 MAKE_CLOSURE 0
171 STORE_FAST 4 (rx_callback)
123 174 LOAD_GLOBAL 7 (digital)
177 LOAD_ATTR 8 (modulation_utils)
180 LOAD_ATTR 9 (type_1_mods)
183 CALL_FUNCTION 0
186 STORE_FAST 5 (mods)
124 189 LOAD_GLOBAL 7 (digital)
192 LOAD_ATTR 8 (modulation_utils)
195 LOAD_ATTR 10 (type_1_demods)
198 CALL_FUNCTION 0
201 STORE_FAST 6 (demods)
129 204 LOAD_GLOBAL 11 (OptionParser)
207 LOAD_CONST 9 ('option_class')
210 LOAD_GLOBAL 12 (eng_option)
213 LOAD_CONST 10 ('conflict_handler')
216 LOAD_CONST 11 ('resolve')
219 CALL_FUNCTION 512
222 STORE_FAST 7 (parser_tx)
131 225 LOAD_FAST 7 (parser_tx)
228 LOAD_ATTR 13 (add_option)
231 LOAD_CONST 12 ('-m')
234 LOAD_CONST 13 ('--modulation')
237 LOAD_CONST 14 ('type')
240 LOAD_CONST 15 ('choice')
243 LOAD_CONST 16 ('choices')
246 LOAD_FAST 5 (mods)
249 LOAD_ATTR 14 (keys)
252 CALL_FUNCTION 0
255 LOAD_CONST 17 ('default')
132 258 LOAD_CONST 18 ('gmsk')
261 LOAD_CONST 19 ('help')
264 LOAD_CONST 20 ('Select modulation from: %s [default=%%default]')
133 267 LOAD_CONST 21 (', ')
270 LOAD_ATTR 15 (join)
273 LOAD_FAST 5 (mods)
276 LOAD_ATTR 14 (keys)
279 CALL_FUNCTION 0
282 CALL_FUNCTION 1
285 BUILD_TUPLE 1
288 BINARY_MODULO
289 CALL_FUNCTION 1026
292 POP_TOP
134 293 LOAD_FAST 7 (parser_tx)
296 LOAD_ATTR 13 (add_option)
299 LOAD_CONST 22 ('-s')
302 LOAD_CONST 23 ('--size')
305 LOAD_CONST 14 ('type')
308 LOAD_CONST 24 ('eng_float')
311 LOAD_CONST 17 ('default')
314 LOAD_CONST 25 (1500)
317 LOAD_CONST 19 ('help')
135 320 LOAD_CONST 26 ('set packet size [default=%default]')
323 CALL_FUNCTION 770
326 POP_TOP
136 327 LOAD_FAST 7 (parser_tx)
330 LOAD_ATTR 13 (add_option)
333 LOAD_CONST 27 ('-M')
336 LOAD_CONST 28 ('--megabytes')
339 LOAD_CONST 14 ('type')
342 LOAD_CONST 24 ('eng_float')
345 LOAD_CONST 17 ('default')
348 LOAD_CONST 29 (1.0)
351 LOAD_CONST 19 ('help')
137 354 LOAD_CONST 30 ('set megabytes to transmit [default=%default]')
357 CALL_FUNCTION 770
360 POP_TOP
138 361 LOAD_FAST 7 (parser_tx)
364 LOAD_ATTR 13 (add_option)
367 LOAD_CONST 4 ('')
370 LOAD_CONST 31 ('--discontinuous')
373 LOAD_CONST 32 ('action')
376 LOAD_CONST 33 ('store_true')
379 LOAD_CONST 17 ('default')
382 LOAD_GLOBAL 6 (False)
385 LOAD_CONST 19 ('help')
139 388 LOAD_CONST 34 ('enable discontinous transmission (bursts of 5 packets)')
391 CALL_FUNCTION 770
394 POP_TOP
140 395 LOAD_FAST 7 (parser_tx)
398 LOAD_ATTR 13 (add_option)
401 LOAD_CONST 4 ('')
404 LOAD_CONST 35 ('--from-file')
407 LOAD_CONST 17 ('default')
410 LOAD_CONST 0 (None)
413 LOAD_CONST 19 ('help')
141 416 LOAD_CONST 36 ('use file for packet contents')
419 CALL_FUNCTION 514
422 POP_TOP
144 423 LOAD_FAST 7 (parser_tx)
426 LOAD_ATTR 17 (add_option_group)
429 LOAD_CONST 37 ('Expert_tx')
432 CALL_FUNCTION 1
435 STORE_FAST 8 (expert_grp_tx)
145 438 LOAD_FAST 7 (parser_tx)
441 LOAD_ATTR 17 (add_option_group)
444 LOAD_CONST 38 ('DSA Options')
447 CALL_FUNCTION 1
450 STORE_FAST 9 (dsa_grp)
148 453 LOAD_FAST 9 (dsa_grp)
456 LOAD_ATTR 13 (add_option)
459 LOAD_CONST 39 ('-T')
462 LOAD_CONST 40 ('--threshold')
465 LOAD_CONST 14 ('type')
468 LOAD_CONST 24 ('eng_float')
471 LOAD_CONST 17 ('default')
474 LOAD_CONST 3 (0.01)
477 LOAD_CONST 19 ('help')
149 480 LOAD_CONST 41 ('set primary user sensing energy threshold [default=%default]')
483 CALL_FUNCTION 770
486 POP_TOP
151 487 LOAD_GLOBAL 18 (usrp_transmit_path)
490 LOAD_ATTR 19 (add_options)
493 LOAD_FAST 7 (parser_tx)
496 LOAD_FAST 8 (expert_grp_tx)
499 CALL_FUNCTION 2
502 POP_TOP
152 503 LOAD_FAST 7 (parser_tx)
506 LOAD_ATTR 20 (remove_option)
509 LOAD_CONST 42 ('-f')
512 CALL_FUNCTION 1
515 POP_TOP
155 516 SETUP_LOOP 33 (to 552)
519 LOAD_FAST 5 (mods)
522 LOAD_ATTR 21 (values)
525 CALL_FUNCTION 0
528 GET_ITER
>> 529 FOR_ITER 19 (to 551)
532 STORE_FAST 10 (mod)
156 535 LOAD_FAST 10 (mod)
538 LOAD_ATTR 19 (add_options)
541 LOAD_FAST 8 (expert_grp_tx)
544 CALL_FUNCTION 1
547 POP_TOP
548 JUMP_ABSOLUTE 529
>> 551 POP_BLOCK
159 >> 552 LOAD_FAST 7 (parser_tx)
555 LOAD_ATTR 22 (parse_args)
558 CALL_FUNCTION 0
561 UNPACK_SEQUENCE 2
564 STORE_FAST 11 (options_tx)
567 STORE_FAST 12 (args_tx)
161 570 LOAD_GLOBAL 23 (len)
573 LOAD_FAST 12 (args_tx)
576 CALL_FUNCTION 1
579 LOAD_CONST 1 (0)
582 COMPARE_OP 3 (!=)
585 POP_JUMP_IF_FALSE 614
162 588 LOAD_FAST 7 (parser_tx)
591 LOAD_ATTR 24 (print_help)
594 CALL_FUNCTION 0
597 POP_TOP
163 598 LOAD_GLOBAL 25 (sys)
601 LOAD_ATTR 26 (exit)
604 LOAD_CONST 43 (1)
607 CALL_FUNCTION 1
610 POP_TOP
611 JUMP_FORWARD 0 (to 614)
166 >> 614 LOAD_CONST 44 (2440000000.0)
617 LOAD_FAST 11 (options_tx)
620 STORE_ATTR 27 (tx_freq)
167 623 LOAD_CONST 45 (2)
626 LOAD_FAST 11 (options_tx)
629 STORE_ATTR 28 (samples_per_symbol)
168 632 LOAD_CONST 18 ('gmsk')
635 LOAD_FAST 11 (options_tx)
638 STORE_ATTR 29 (modulation)
169 641 LOAD_CONST 46 (4096)
644 LOAD_FAST 11 (options_tx)
647 STORE_ATTR 30 (fusb_block_size)
170 650 LOAD_CONST 47 (16)
653 LOAD_FAST 11 (options_tx)
656 STORE_ATTR 31 (fusb_nblocks)
171 659 LOAD_CONST 48 (12500.0)
662 LOAD_FAST 11 (options_tx)
665 STORE_ATTR 32 (bitrate)
174 668 LOAD_GLOBAL 11 (OptionParser)
671 LOAD_CONST 9 ('option_class')
674 LOAD_GLOBAL 12 (eng_option)
677 LOAD_CONST 10 ('conflict_handler')
680 LOAD_CONST 11 ('resolve')
683 CALL_FUNCTION 512
686 STORE_FAST 13 (parser_rx)
175 689 LOAD_FAST 13 (parser_rx)
692 LOAD_ATTR 17 (add_option_group)
695 LOAD_CONST 49 ('Expert_rx')
698 CALL_FUNCTION 1
701 STORE_FAST 14 (expert_grp_rx)
176 704 LOAD_GLOBAL 33 (usrp_receive_path)
707 LOAD_ATTR 19 (add_options)
710 LOAD_FAST 13 (parser_rx)
713 LOAD_FAST 14 (expert_grp_rx)
716 CALL_FUNCTION 2
719 POP_TOP
178 720 LOAD_FAST 13 (parser_rx)
723 LOAD_ATTR 20 (remove_option)
726 LOAD_CONST 42 ('-f')
729 CALL_FUNCTION 1
732 POP_TOP
180 733 LOAD_FAST 13 (parser_rx)
736 LOAD_ATTR 22 (parse_args)
739 CALL_FUNCTION 0
742 UNPACK_SEQUENCE 2
745 STORE_FAST 15 (options_rx)
748 STORE_FAST 16 (args_rx)
183 751 LOAD_CONST 50 (900000000.0)
754 LOAD_FAST 15 (options_rx)
757 STORE_ATTR 34 (rx_freq)
184 760 LOAD_CONST 45 (2)
763 LOAD_FAST 15 (options_rx)
766 STORE_ATTR 28 (samples_per_symbol)
185 769 LOAD_CONST 18 ('gmsk')
772 LOAD_FAST 15 (options_rx)
775 STORE_ATTR 29 (modulation)
186 778 LOAD_CONST 46 (4096)
781 LOAD_FAST 15 (options_rx)
784 STORE_ATTR 30 (fusb_block_size)
187 787 LOAD_CONST 47 (16)
790 LOAD_FAST 15 (options_rx)
793 STORE_ATTR 31 (fusb_nblocks)
188 796 LOAD_CONST 48 (12500.0)
799 LOAD_FAST 15 (options_rx)
802 STORE_ATTR 32 (bitrate)
192 805 LOAD_CONST 51 ('[[ Using the RANDOM channel selection algorithm ]]\n\n')
808 PRINT_ITEM
809 PRINT_NEWLINE
196 810 LOAD_GLOBAL 35 (my_top_block)
813 LOAD_FAST 5 (mods)
816 LOAD_FAST 11 (options_tx)
819 LOAD_ATTR 29 (modulation)
822 BINARY_SUBSCR
197 823 LOAD_FAST 6 (demods)
826 LOAD_FAST 15 (options_rx)
829 LOAD_ATTR 29 (modulation)
832 BINARY_SUBSCR
198 833 LOAD_FAST 4 (rx_callback)
836 LOAD_FAST 11 (options_tx)
199 839 LOAD_FAST 15 (options_rx)
842 CALL_FUNCTION 5
845 STORE_DEREF 1 (tb)
200 848 LOAD_GLOBAL 36 (gr)
851 LOAD_ATTR 37 (enable_realtime_scheduling)
854 CALL_FUNCTION 0
857 STORE_FAST 17 (r)
201 860 LOAD_FAST 17 (r)
863 LOAD_GLOBAL 36 (gr)
866 LOAD_ATTR 38 (RT_OK)
869 COMPARE_OP 3 (!=)
872 POP_JUMP_IF_FALSE 883
202 875 LOAD_CONST 52 ('Warning: failed to enable realtime scheduling')
878 PRINT_ITEM
879 PRINT_NEWLINE
880 JUMP_FORWARD 0 (to 883)
204 >> 883 LOAD_DEREF 1 (tb)
886 LOAD_ATTR 39 (start)
889 CALL_FUNCTION 0
892 POP_TOP
207 893 LOAD_GLOBAL 40 (True)
896 STORE_FAST 18 (running)
212 899 LOAD_CONST 53 ('\n[[ Scanning channels for network nodes ]]\n')
902 PRINT_ITEM
903 PRINT_NEWLINE
213 904 SETUP_LOOP 896 (to 1803)
>> 907 LOAD_FAST 18 (running)
910 POP_JUMP_IF_FALSE 1802
215 913 LOAD_GLOBAL 41 (mode)
916 LOAD_CONST 54 ('sync')
919 COMPARE_OP 2 (==)
922 POP_JUMP_IF_FALSE 1356
216 925 LOAD_GLOBAL 42 (sync_status)
928 LOAD_GLOBAL 40 (True)
931 COMPARE_OP 3 (!=)
934 POP_JUMP_IF_FALSE 1304
219 937 LOAD_FAST 3 (get_freq_rx)
940 CALL_FUNCTION 0
943 UNPACK_SEQUENCE 2
946 STORE_GLOBAL 43 (ch)
949 STORE_FAST 19 (hop_freq)
220 952 LOAD_FAST 2 (get_freq_tx)
955 CALL_FUNCTION 0
958 STORE_FAST 20 (hop_freq_tx)
222 961 LOAD_DEREF 1 (tb)
964 LOAD_ATTR 44 (txpath)
967 LOAD_ATTR 45 (sink)
970 LOAD_ATTR 46 (set_freq)
973 LOAD_FAST 20 (hop_freq_tx)
976 CALL_FUNCTION 1
979 POP_TOP
223 980 LOAD_DEREF 1 (tb)
983 LOAD_ATTR 47 (rxpath)
986 LOAD_ATTR 48 (source)
989 LOAD_ATTR 46 (set_freq)
992 LOAD_FAST 19 (hop_freq)
995 CALL_FUNCTION 1
998 POP_TOP
224 999 LOAD_CONST 55 ('RX_FREQ:')
1002 PRINT_ITEM
1003 LOAD_FAST 19 (hop_freq)
1006 PRINT_ITEM
1007 LOAD_CONST 56 (' TX_FREQ:')
1010 PRINT_ITEM
1011 LOAD_FAST 20 (hop_freq_tx)
1014 PRINT_ITEM
1015 PRINT_NEWLINE
225 1016 LOAD_DEREF 1 (tb)
1019 LOAD_ATTR 47 (rxpath)
1022 LOAD_ATTR 49 (probe)
1025 LOAD_ATTR 50 (level)
1028 CALL_FUNCTION 0
1031 STORE_FAST 21 (ch_energy)
227 1034 LOAD_GLOBAL 51 (int)
1037 LOAD_FAST 21 (ch_energy)
1040 CALL_FUNCTION 1
1043 LOAD_FAST 1 (threshold)
1046 COMPARE_OP 4 (>)
1049 POP_JUMP_IF_FALSE 1058
228 1052 JUMP_ABSOLUTE 907
1055 JUMP_FORWARD 0 (to 1058)
230 >> 1058 LOAD_CONST 2 (5)
1061 STORE_FAST 22 (nbytes)
231 1064 LOAD_CONST 2 (5)
1067 STORE_FAST 23 (pkt_size)
232 1070 LOAD_CONST 1 (0)
1073 STORE_FAST 24 (n)
233 1076 LOAD_CONST 1 (0)
1079 STORE_FAST 25 (pktno)
234 1082 SETUP_LOOP 203 (to 1288)
>> 1085 LOAD_FAST 24 (n)
1088 LOAD_FAST 22 (nbytes)
1091 COMPARE_OP 0 (<)
1094 POP_JUMP_IF_FALSE 1287
235 1097 LOAD_FAST 11 (options_tx)
1100 LOAD_ATTR 52 (from_file)
1103 LOAD_CONST 0 (None)
1106 COMPARE_OP 8 (is)
1109 POP_JUMP_IF_FALSE 1121
236 1112 LOAD_CONST 57 ('s')
1115 STORE_FAST 26 (data)
1118 JUMP_FORWARD 35 (to 1156)
238 >> 1121 LOAD_GLOBAL 53 (source_file)
1124 LOAD_ATTR 54 (read)
1127 LOAD_FAST 23 (pkt_size)
1130 LOAD_CONST 45 (2)
1133 BINARY_SUBTRACT
1134 CALL_FUNCTION 1
1137 STORE_FAST 26 (data)
239 1140 LOAD_FAST 26 (data)
1143 LOAD_CONST 4 ('')
1146 COMPARE_OP 2 (==)
1149 POP_JUMP_IF_FALSE 1156
240 1152 BREAK_LOOP
1153 JUMP_FORWARD 0 (to 1156)
242 >> 1156 LOAD_GLOBAL 55 (struct)
1159 LOAD_ATTR 56 (pack)
1162 LOAD_CONST 58 ('!HsH')
1165 LOAD_FAST 25 (pktno)
1168 LOAD_CONST 59 (65535)
1171 BINARY_AND
1172 LOAD_FAST 26 (data)
1175 LOAD_GLOBAL 43 (ch)
1178 LOAD_CONST 59 (65535)
1181 BINARY_AND
1182 CALL_FUNCTION 4
1185 STORE_FAST 27 (payload)
244 1188 LOAD_DEREF 0 (send_pkt)
1191 LOAD_DEREF 1 (tb)
1194 LOAD_FAST 27 (payload)
1197 CALL_FUNCTION 2
1200 POP_TOP
245 1201 LOAD_FAST 24 (n)
1204 LOAD_GLOBAL 23 (len)
1207 LOAD_FAST 27 (payload)
1210 CALL_FUNCTION 1
1213 INPLACE_ADD
1214 STORE_FAST 24 (n)
246 1217 LOAD_GLOBAL 25 (sys)
1220 LOAD_ATTR 57 (stderr)
1223 LOAD_ATTR 58 (write)
1226 LOAD_CONST 60 ('SEND SYNC PACKET\n')
1229 CALL_FUNCTION 1
1232 POP_TOP
247 1233 LOAD_FAST 11 (options_tx)
1236 LOAD_ATTR 59 (discontinuous)
1239 POP_JUMP_IF_FALSE 1085
1242 LOAD_FAST 25 (pktno)
1245 LOAD_CONST 2 (5)
1248 BINARY_MODULO
1249 LOAD_CONST 61 (4)
1252 COMPARE_OP 2 (==)
1255 POP_JUMP_IF_FALSE 1085
248 1258 LOAD_GLOBAL 60 (time)
1261 LOAD_ATTR 61 (sleep)
1264 LOAD_CONST 43 (1)
1267 CALL_FUNCTION 1
1270 POP_TOP
249 1271 LOAD_FAST 25 (pktno)
1274 LOAD_CONST 43 (1)
1277 INPLACE_ADD
1278 STORE_FAST 25 (pktno)
1281 JUMP_ABSOLUTE 1085
1284 JUMP_ABSOLUTE 1085
>> 1287 POP_BLOCK
250 >> 1288 LOAD_GLOBAL 60 (time)
1291 LOAD_ATTR 61 (sleep)
1294 LOAD_CONST 43 (1)
1297 CALL_FUNCTION 1
1300 POP_TOP
1301 JUMP_ABSOLUTE 1356
253 >> 1304 LOAD_CONST 62 ('\n\n[[ Network Node Found: Commencing communications on CHANNEL ')
1307 PRINT_ITEM
1308 LOAD_GLOBAL 43 (ch)
1311 PRINT_ITEM
1312 LOAD_CONST 63 (' ]]\n')
1315 PRINT_ITEM
1316 PRINT_NEWLINE
254 1317 LOAD_CONST 1 (0)
1320 STORE_FAST 28 (n_attempts_counter)
255 1323 LOAD_CONST 64 ('traffic')
1326 STORE_GLOBAL 41 (mode)
256 1329 LOAD_CONST 1 (0)
1332 STORE_GLOBAL 62 (data_packet_delivery_count)
257 1335 LOAD_CONST 65 ('False')
1338 STORE_GLOBAL 42 (sync_status)
258 1341 LOAD_GLOBAL 63 (datetime)
1344 LOAD_ATTR 64 (now)
1347 CALL_FUNCTION 0
1350 STORE_FAST 29 (start_time)
1353 JUMP_FORWARD 0 (to 1356)
263 >> 1356 LOAD_GLOBAL 41 (mode)
1359 LOAD_CONST 64 ('traffic')
1362 COMPARE_OP 2 (==)
1365 POP_JUMP_IF_FALSE 907
264 1368 LOAD_CONST 66 (15)
1371 STORE_FAST 22 (nbytes)
265 1374 LOAD_CONST 66 (15)
1377 STORE_FAST 23 (pkt_size)
266 1380 LOAD_CONST 1 (0)
1383 STORE_FAST 30 (data_pktno)
267 1386 LOAD_CONST 1 (0)
1389 STORE_FAST 24 (n)
268 1392 SETUP_LOOP 404 (to 1799)
>> 1395 LOAD_FAST 24 (n)
1398 LOAD_FAST 22 (nbytes)
1401 COMPARE_OP 0 (<)
1404 POP_JUMP_IF_FALSE 1795
269 1407 LOAD_FAST 11 (options_tx)
1410 LOAD_ATTR 52 (from_file)
1413 LOAD_CONST 0 (None)
1416 COMPARE_OP 8 (is)
1419 POP_JUMP_IF_FALSE 1431
270 1422 LOAD_CONST 67 ('dHi how are you')
1425 STORE_FAST 26 (data)
1428 JUMP_FORWARD 35 (to 1466)
272 >> 1431 LOAD_GLOBAL 53 (source_file)
1434 LOAD_ATTR 54 (read)
1437 LOAD_FAST 23 (pkt_size)
1440 LOAD_CONST 45 (2)
1443 BINARY_SUBTRACT
1444 CALL_FUNCTION 1
1447 STORE_FAST 26 (data)
273 1450 LOAD_FAST 26 (data)
1453 LOAD_CONST 4 ('')
1456 COMPARE_OP 2 (==)
1459 POP_JUMP_IF_FALSE 1466
274 1462 BREAK_LOOP
1463 JUMP_FORWARD 0 (to 1466)
277 >> 1466 LOAD_GLOBAL 55 (struct)
1469 LOAD_ATTR 56 (pack)
1472 LOAD_CONST 68 ('!15s')
1475 LOAD_FAST 26 (data)
1478 CALL_FUNCTION 2
1481 STORE_FAST 27 (payload)
279 1484 LOAD_DEREF 0 (send_pkt)
1487 LOAD_DEREF 1 (tb)
1490 LOAD_FAST 27 (payload)
1493 CALL_FUNCTION 2
1496 POP_TOP
280 1497 LOAD_FAST 24 (n)
1500 LOAD_GLOBAL 23 (len)
1503 LOAD_FAST 27 (payload)
1506 CALL_FUNCTION 1
1509 INPLACE_ADD
1510 STORE_FAST 24 (n)
281 1513 LOAD_GLOBAL 25 (sys)
1516 LOAD_ATTR 57 (stderr)
1519 LOAD_ATTR 58 (write)
1522 LOAD_CONST 69 ('SEND TRAFFIC PACKET\n')
1525 CALL_FUNCTION 1
1528 POP_TOP
282 1529 LOAD_FAST 11 (options_tx)
1532 LOAD_ATTR 59 (discontinuous)
1535 POP_JUMP_IF_FALSE 1570
1538 LOAD_FAST 30 (data_pktno)
1541 LOAD_CONST 2 (5)
1544 BINARY_MODULO
1545 LOAD_CONST 61 (4)
1548 COMPARE_OP 2 (==)
1551 POP_JUMP_IF_FALSE 1570
283 1554 LOAD_GLOBAL 60 (time)
1557 LOAD_ATTR 61 (sleep)
1560 LOAD_CONST 43 (1)
1563 CALL_FUNCTION 1
1566 POP_TOP
1567 JUMP_FORWARD 0 (to 1570)
284 >> 1570 LOAD_FAST 30 (data_pktno)
1573 LOAD_CONST 43 (1)
1576 INPLACE_ADD
1577 STORE_FAST 30 (data_pktno)
285 1580 LOAD_GLOBAL 60 (time)
1583 LOAD_ATTR 61 (sleep)
1586 LOAD_CONST 70 (0.2)
1589 LOAD_CONST 71 (0.05)
1592 LOAD_GLOBAL 51 (int)
1595 LOAD_GLOBAL 65 (random)