Change in osmocom-bb[master]: trx_toolkit/data_msg.py: enable TRXDv2 protocol support

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
Fri Apr 30 20:34:11 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/24020 )


Change subject: trx_toolkit/data_msg.py: enable TRXDv2 protocol support
......................................................................

trx_toolkit/data_msg.py: enable TRXDv2 protocol support

Change-Id: Ib76138ec6523970fca43a4d69919c178f5a4b411
Related: OS#4006, SYS#4895
---
M src/target/trx_toolkit/data_msg.py
1 file changed, 11 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/20/24020/1

diff --git a/src/target/trx_toolkit/data_msg.py b/src/target/trx_toolkit/data_msg.py
index 570cfa0..18f1757 100644
--- a/src/target/trx_toolkit/data_msg.py
+++ b/src/target/trx_toolkit/data_msg.py
@@ -69,7 +69,7 @@
 
 	# NOTE: up to 16 versions can be encoded
 	CHDR_VERSION_MAX = 0b1111
-	KNOWN_VERSIONS = (0, 1)
+	KNOWN_VERSIONS = (0, 1, 2)
 
 	# PDU codecs for all known versions
 	CODECS = NotImplemented # type: Tuple[codec.Envelope, ...]
@@ -91,6 +91,8 @@
 			# Default TDMA frame/timeslot number
 			'fn'		: 0,
 			'tn'		: 0,
+			# TRA (RF channel) number
+			'trxn'		: 0,
 			# NOPE / IDLE frame indication
 			'nope'		: False,
 			# Modulation type and TSC info
@@ -99,6 +101,10 @@
 			'tsc'		: 0,
 			# Burst hard-/soft-bits
 			'burst'		: [],
+			# BATCHed PDU indication
+			'batch'		: False,
+			# BATCHed PDUs
+			'bpdu'		: [],
 			# Default fields for particular class
 			**self.DEF_CONT,
 			# Fields provided during instantiation
@@ -220,11 +226,14 @@
 	CODECS = (
 		trxd_proto.PDUv0Tx(),
 		trxd_proto.PDUv1Tx(),
+		trxd_proto.PDUv2Tx(),
 	)
 
 	DEF_CONT = {
 		# Power reduction (in dB)
 		'pwr'		: 0,
+		# Subchannel Power Imbalance Ratio (in dB)
+		'scpir'		: 0,
 	}
 
 	# Constants
@@ -295,6 +304,7 @@
 	CODECS = (
 		trxd_proto.PDUv0Rx(),
 		trxd_proto.PDUv1Rx(),
+		trxd_proto.PDUv2Rx(),
 	)
 
 	DEF_CONT = {

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

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ib76138ec6523970fca43a4d69919c178f5a4b411
Gerrit-Change-Number: 24020
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210430/0e28dec9/attachment.htm>


More information about the gerrit-log mailing list