Change in ...osmocom-bb[master]: trx_toolkit/fake_trx.py: introduce a TRXC command for C/I simulation

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/.

fixeria gerrit-no-reply at lists.osmocom.org
Tue Jul 16 08:02:07 UTC 2019


fixeria has submitted this change and it was merged. ( https://gerrit.osmocom.org/c/osmocom-bb/+/14586 )

Change subject: trx_toolkit/fake_trx.py: introduce a TRXC command for C/I simulation
......................................................................

trx_toolkit/fake_trx.py: introduce a TRXC command for C/I simulation

C/I (Carrier-to-Interference ratio) is a value in cB (centiBels),
computed from the training sequence of each received burst,
by comparing the "ideal" training sequence with the received one.

This change introduces a new command similar to FAKE_TOA and FAKE_RSSI,
so it can be used by TTCN-3 test case 'TC_pcu_data_ind_lqual_cb' to
verify that the link quality measurements are delivered to the PCU.

Change-Id: I7080effbbc1022d1884c6d6f0cb580eba8e514ff
Related: OS#1855
---
M src/target/trx_toolkit/fake_trx.py
1 file changed, 29 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  osmith: Looks good to me, approved
  laforge: Looks good to me, but someone else must approve



diff --git a/src/target/trx_toolkit/fake_trx.py b/src/target/trx_toolkit/fake_trx.py
index de0e6ff..69cdd86 100755
--- a/src/target/trx_toolkit/fake_trx.py
+++ b/src/target/trx_toolkit/fake_trx.py
@@ -64,8 +64,16 @@
 	      from (rssi_base - rssi_rand_threshold)
 	        to (rssi_base + rssi_rand_threshold).
 
-	Please note that randomization of both RSSI and ToA is optional,
-	and can be enabled from the control interface.
+	  - C/I (Carrier-to-Interference ratio) - value in cB (centiBels),
+	    computed from the training sequence of each received burst, by
+	    comparing the "ideal" training sequence with the actual one.
+	    A pair of both base and threshold values defines a range of
+	    C/I randomization:
+
+	      from (ci_base - ci_rand_threshold)
+	        to (ci_base + ci_rand_threshold).
+
+	Please note that the randomization is optional and disabled by default.
 
 	== Timing Advance handling
 
@@ -263,6 +271,25 @@
 			self.rssi_base += int(request[1])
 			return 0
 
+		# C/I simulation
+		# Absolute form: CMD FAKE_CI <BASE> <THRESH>
+		elif self.ctrl_if.verify_cmd(request, "FAKE_CI", 2):
+			log.debug("(%s) Recv FAKE_CI cmd" % self)
+
+			# Parse and apply both base and threshold
+			self.ci_base = int(request[1])
+			self.ci_rand_threshold = int(request[2])
+			return 0
+
+		# C/I simulation
+		# Relative form: CMD FAKE_CI <+-BASE_DELTA>
+		elif self.ctrl_if.verify_cmd(request, "FAKE_CI", 1):
+			log.debug("(%s) Recv FAKE_CI cmd" % self)
+
+			# Parse and apply delta
+			self.ci_base += int(request[1])
+			return 0
+
 		# Path loss simulation: burst dropping
 		# Syntax: CMD FAKE_DROP <AMOUNT>
 		# Dropping pattern: fn % 1 == 0

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

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I7080effbbc1022d1884c6d6f0cb580eba8e514ff
Gerrit-Change-Number: 14586
Gerrit-PatchSet: 7
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: Hoernchen <ewild at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: laforge <laforge at gnumonks.org>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190716/be846f83/attachment.htm>


More information about the gerrit-log mailing list