blob: 5fea4747ec01be0c503ea69063f87dff31605a9e (
plain)
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

Testing power loop...
Starting test case 'test_power_loop'
lchan_ms_pwr_ctrl(RxLvl=60 dBm) returns 0 (expected 0)
MS current power 15 > 15 (expected 15)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 15 > 13 (expected 13)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 13 > 11 (expected 11)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 11 > 9 (expected 9)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 9 > 7 (expected 7)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 7 > 5 (expected 5)
lchan_ms_pwr_ctrl(RxLvl=75 dBm) returns 0 (expected 0)
MS current power 5 > 5 (expected 5)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 5 > 3 (expected 3)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 3 > 2 (expected 2)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 0 (expected 0)
MS current power 2 > 2 (expected 2)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 2 > 0 (expected 0)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 0 (expected 0)
MS current power 0 > 0 (expected 0)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 0 > 30 (expected 30)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 30 > 29 (expected 29)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 0 (expected 0)
MS current power 29 > 29 (expected 29)
lchan_ms_pwr_ctrl(RxLvl=75 dBm) returns 0 (expected 0)
MS current power 29 > 29 (expected 29)
lchan_ms_pwr_ctrl(RxLvl=45 dBm) returns 1 (expected 1)
MS current power 29 > 30 (expected 1)
lchan_ms_pwr_ctrl(RxLvl=45 dBm) returns 1 (expected 1)
MS current power 30 > 31 (expected 5)
lchan_ms_pwr_ctrl(RxLvl=45 dBm) returns 1 (expected 1)
MS current power 31 > 0 (expected 9)
lchan_ms_pwr_ctrl(RxLvl=73 dBm) returns 1 (expected 1)
MS current power 0 > 1 (expected 10)
lchan_ms_pwr_ctrl(RxLvl=77 dBm) returns 1 (expected 1)
MS current power 1 > 0 (expected 9)
lchan_ms_pwr_ctrl(RxLvl=73 dBm) returns 1 (expected 1)
MS current power 0 > 14 (expected 14)
lchan_ms_pwr_ctrl(RxLvl=60 dBm) returns 0 (expected 0)
MS current power 14 > 14 (expected 14)
lchan_ms_pwr_ctrl(RxLvl=40 dBm) returns 1 (expected 1)
MS current power 14 > 15 (expected 15)
Starting test case 'test_pf_algo_ewma'
lchan_ms_pwr_ctrl(RxLvl=75 dBm) returns 0 (expected 0)
MS current power 15 > 15 (expected 15)
Avg[t] is 75.00 dBm (expected 75.00 dBm)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 15 > 13 (expected 13)
Avg[t] is 78.00 dBm (expected 78.00 dBm)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 13 > 11 (expected 11)
Avg[t] is 80.40 dBm (expected 80.40 dBm)
lchan_ms_pwr_ctrl(RxLvl=70 dBm) returns 1 (expected 1)
MS current power 11 > 9 (expected 9)
Avg[t] is 78.40 dBm (expected 78.40 dBm)
lchan_ms_pwr_ctrl(RxLvl=50 dBm) returns 0 (expected 0)
MS current power 15 > 15 (expected 15)
Avg[t] is 50.00 dBm (expected 50.00 dBm)
lchan_ms_pwr_ctrl(RxLvl=50 dBm) returns 0 (expected 0)
MS current power 15 > 15 (expected 15)
Avg[t] is 50.00 dBm (expected 50.00 dBm)
lchan_ms_pwr_ctrl(RxLvl=110 dBm) returns 1 (expected 1)
MS current power 15 > 13 (expected 13)
Avg[t] is 92.00 dBm (expected 92.00 dBm)
Starting test case 'test_power_hysteresis'
lchan_ms_pwr_ctrl(RxLvl=75 dBm) returns 0 (expected 0)
MS current power 15 > 15 (expected 15)
lchan_ms_pwr_ctrl(RxLvl=72 dBm) returns 0 (expected 0)
MS current power 15 > 15 (expected 15)
lchan_ms_pwr_ctrl(RxLvl=78 dBm) returns 0 (expected 0)
MS current power 15 > 15 (expected 15)
lchan_ms_pwr_ctrl(RxLvl=75 dBm) returns 0 (expected 0)
MS current power 15 > 15 (expected 15)
lchan_ms_pwr_ctrl(RxLvl=70 dBm) returns 0 (expected 0)
MS current power 15 > 15 (expected 15)
lchan_ms_pwr_ctrl(RxLvl=80 dBm) returns 0 (expected 0)
MS current power 15 > 15 (expected 15)
lchan_ms_pwr_ctrl(RxLvl=85 dBm) returns 1 (expected 1)
MS current power 15 > 13 (expected 13)
Starting test case 'test_power_ctrl_interval'
test_power_ctrl_interval(): power control interval is now 0
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 15 > 13 (expected 13)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 13 > 11 (expected 11)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 11 > 9 (expected 9)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 9 > 7 (expected 7)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 7 > 5 (expected 5)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 5 > 3 (expected 3)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 3 > 2 (expected 2)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 0 (expected 1)
MS current power 2 > 2 (expected 2)
test_power_ctrl_interval(): power control interval is now 1
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 15 > 13 (expected 13)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 0 (expected 0)
MS current power 13 > 13 (expected 13)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 13 > 11 (expected 11)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 0 (expected 0)
MS current power 11 > 11 (expected 11)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 11 > 9 (expected 9)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 0 (expected 0)
MS current power 9 > 9 (expected 9)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 9 > 7 (expected 7)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 0 (expected 0)
MS current power 7 > 7 (expected 7)
test_power_ctrl_interval(): power control interval is now 2
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 15 > 13 (expected 13)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 0 (expected 0)
MS current power 13 > 13 (expected 13)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 0 (expected 0)
MS current power 13 > 13 (expected 13)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 0 (expected 0)
MS current power 13 > 13 (expected 13)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 1 (expected 1)
MS current power 13 > 11 (expected 11)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 0 (expected 0)
MS current power 11 > 11 (expected 11)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 0 (expected 0)
MS current power 11 > 11 (expected 11)
lchan_ms_pwr_ctrl(RxLvl=90 dBm) returns 0 (expected 0)
MS current power 11 > 11 (expected 11)
Power loop test OK
