Change in osmocom-bb[master]: trx_toolkit/trx_sniff.py: add option to ignore NOPE / IDLE indications

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
Mon Mar 30 12:28:57 UTC 2020


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


Change subject: trx_toolkit/trx_sniff.py: add option to ignore NOPE / IDLE indications
......................................................................

trx_toolkit/trx_sniff.py: add option to ignore NOPE / IDLE indications

Change-Id: If51052af04289f10bfaefd5374049908de05319a
---
M src/target/trx_toolkit/trx_sniff.py
1 file changed, 9 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/74/17674/1

diff --git a/src/target/trx_toolkit/trx_sniff.py b/src/target/trx_toolkit/trx_sniff.py
index 5667df2..1417664 100755
--- a/src/target/trx_toolkit/trx_sniff.py
+++ b/src/target/trx_toolkit/trx_sniff.py
@@ -158,6 +158,12 @@
 			if msg.fn < self.argv.pf_fn_gt:
 				return False
 
+		# Message type specific filtering
+		if isinstance(msg, DATAMSG_TRX2L1):
+			# NOPE.ind filter
+			if not self.argv.pf_nope_ind and msg.nope_ind:
+				return False
+
 		# Burst passed ;)
 		return True
 
@@ -258,6 +264,9 @@
 		pf_group.add_argument("--frame-num-gt", metavar = "FN",
 			dest = "pf_fn_gt", type = int,
 			help = "TDMA frame number (greater than FN)")
+		pf_group.add_argument("--no-nope-ind",
+			dest = "pf_nope_ind", action = "store_false",
+			help = "Ignore NOPE.ind (NOPE / IDLE indications)")
 
 		return parser.parse_args()
 

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

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: If51052af04289f10bfaefd5374049908de05319a
Gerrit-Change-Number: 17674
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200330/f69663ea/attachment.htm>


More information about the gerrit-log mailing list