aboutsummaryrefslogtreecommitdiffstats
path: root/tests/power/ms_power_loop_test.ok
blob: 09e19ad4256475e42d55e1c9f0b8a6b26f425eae (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
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
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 RxLev 35.00 (expected 35.00)
lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1)
	MS current power 15 -> 13 (expected 13)
	Avg[t] is RxLev 32.00 (expected 32.00)
lchan_ms_pwr_ctrl(RxLvl=-90 dBm) returns 1 (expected 1)
	MS current power 13 -> 11 (expected 11)
	Avg[t] is RxLev 29.60 (expected 29.60)
lchan_ms_pwr_ctrl(RxLvl=-70 dBm) returns 1 (expected 1)
	MS current power 11 -> 9 (expected 9)
	Avg[t] is RxLev 31.60 (expected 31.60)
lchan_ms_pwr_ctrl(RxLvl=-50 dBm) returns 0 (expected 0)
	MS current power 15 -> 15 (expected 15)
	Avg[t] is RxLev 60.00 (expected 60.00)
lchan_ms_pwr_ctrl(RxLvl=-50 dBm) returns 0 (expected 0)
	MS current power 15 -> 15 (expected 15)
	Avg[t] is RxLev 60.00 (expected 60.00)
lchan_ms_pwr_ctrl(RxLvl=-110 dBm) returns 1 (expected 1)
	MS current power 15 -> 13 (expected 13)
	Avg[t] is RxLev 18.00 (expected 18.00)

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)


Starting test case 'test_power_loop_ci'
lchan_ms_pwr_ctrl(RxLvl=-60 dBm) returns 0 (expected 0)
	MS current power 15 -> 15 (expected 15)
lchan_ms_pwr_ctrl(RxLvl=-100 dBm) returns 1 (expected 1)
	MS current power 15 -> 13 (expected 13)
lchan_ms_pwr_ctrl(RxLvl=-100 dBm) returns 1 (expected 1)
	MS current power 13 -> 11 (expected 11)
lchan_ms_pwr_ctrl(RxLvl=-60 dBm) returns 1 (expected 1)
	MS current power 11 -> 12 (expected 12)
lchan_ms_pwr_ctrl(RxLvl=-60 dBm) returns 1 (expected 1)
	MS current power 12 -> 13 (expected 13)
lchan_ms_pwr_ctrl(RxLvl=-100 dBm) returns 1 (expected 1)
	MS current power 13 -> 11 (expected 11)
lchan_ms_pwr_ctrl(RxLvl=-100 dBm) returns 1 (expected 1)
	MS current power 11 -> 12 (expected 12)
lchan_ms_pwr_ctrl(RxLvl=-60 dBm) returns 1 (expected 1)
	MS current power 12 -> 13 (expected 13)
lchan_ms_pwr_ctrl(RxLvl=-60 dBm) returns 1 (expected 1)
	MS current power 13 -> 14 (expected 14)

Starting test case 'test_good_threshold_convergence'
lchan_ms_pwr_ctrl(RxLvl=-78 dBm) returns 0 (expected 0)
	MS current power 9 -> 10 (expected 10)
lchan_ms_pwr_ctrl(RxLvl=-78 dBm) returns 0 (expected 0)
	MS current power 10 -> 10 (expected 10)
lchan_ms_pwr_ctrl(RxLvl=-78 dBm) returns 0 (expected 0)
	MS current power 9 -> 10 (expected 10)
lchan_ms_pwr_ctrl(RxLvl=-78 dBm) returns 0 (expected 0)
	MS current power 10 -> 10 (expected 10)
lchan_ms_pwr_ctrl(RxLvl=-78 dBm) returns 0 (expected 0)
	MS current power 9 -> 10 (expected 10)
Power loop test OK