summaryrefslogtreecommitdiffstats
path: root/src/target/fake_trx/fake_trx.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/fake_trx/fake_trx.py')
-rwxr-xr-xsrc/target/fake_trx/fake_trx.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/target/fake_trx/fake_trx.py b/src/target/fake_trx/fake_trx.py
index c30382b4..724a5207 100755
--- a/src/target/fake_trx/fake_trx.py
+++ b/src/target/fake_trx/fake_trx.py
@@ -30,6 +30,7 @@ import sys
from ctrl_if_bts import CTRLInterfaceBTS
from ctrl_if_bb import CTRLInterfaceBB
from burst_fwd import BurstForwarder
+from fake_pm import FakePM
from udp_link import UDPLink
from clck_gen import CLCKGen
@@ -64,6 +65,15 @@ class Application:
self.bb_ctrl = CTRLInterfaceBB(self.bb_addr,
self.bb_base_port + 101, self.bb_base_port + 1)
+ # Power measurement emulation
+ # Noise: -120 .. -105
+ # BTS: -75 .. -50
+ self.pm = FakePM(-120, -105, -75, -50)
+
+ # Share a FakePM instance between both BTS and BB
+ self.bts_ctrl.pm = self.pm
+ self.bb_ctrl.pm = self.pm
+
# BTS <-> BB burst forwarding
self.bts_data = UDPLink(self.bts_addr,
self.bts_base_port + 102, self.bts_base_port + 2)