Change in osmocom-bb[master]: fake_trx: Implement CTRL if for FAKE_RSSI

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Mon Oct 22 18:22:13 UTC 2018


Pau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/11432


Change subject: fake_trx: Implement CTRL if for FAKE_RSSI
......................................................................

fake_trx: Implement CTRL if for FAKE_RSSI

Change-Id: Ic01c31fb0304345dd7337c3ee1c7ee3c2d3e8460
---
M src/target/trx_toolkit/ctrl_if_bb.py
1 file changed, 23 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/32/11432/1

diff --git a/src/target/trx_toolkit/ctrl_if_bb.py b/src/target/trx_toolkit/ctrl_if_bb.py
index 808c880..85aca15 100644
--- a/src/target/trx_toolkit/ctrl_if_bb.py
+++ b/src/target/trx_toolkit/ctrl_if_bb.py
@@ -144,6 +144,29 @@
 
 			return 0
 
+		# RSSI simulation for Uplink
+		# Absolute form: CMD FAKE_RSSI <BASE> <THRESH>
+		elif self.verify_cmd(request, "FAKE_RSSI", 2):
+			print("[i] Recv FAKE_RSSI cmd")
+
+			# Parse and apply both base and threshold
+			self.burst_fwd.randomize_ul_rssi = True
+			self.burst_fwd.rssi_ul_base = int(request[1])
+			self.burst_fwd.rssi_ul_threshold = int(request[2])
+
+			return 0
+
+		# Timing of Arrival simulation for Uplink
+		# Relative form: CMD FAKE_RSSI <VALUE>
+		elif self.verify_cmd(request, "FAKE_RSSI", 1):
+			print("[i] Recv FAKE_RSSI cmd")
+
+			# Parse and apply value
+			self.burst_fwd.randomize_ul_rssi = False
+			self.burst_fwd.rssi_ul_base = int(request[1])
+
+			return 0
+
 		# Path loss simulation for UL: burst dropping
 		# Syntax: CMD FAKE_DROP <AMOUNT>
 		# Dropping pattern: fn % 1 == 0

-- 
To view, visit https://gerrit.osmocom.org/11432
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic01c31fb0304345dd7337c3ee1c7ee3c2d3e8460
Gerrit-Change-Number: 11432
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181022/080ae46d/attachment.htm>


More information about the gerrit-log mailing list