fixeria has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmocom-bb/+/39813?usp=email )
Change subject: trx_toolkit: implement sending of NOPE.ind
......................................................................
trx_toolkit: implement sending of NOPE.ind
Now that we have the transmit burst queue properly working, we can
finally emit NOPE.ind from fake_trx.py. There's no more need to
rely on trxcon sending NOPE.ind, so the respective logic will be
reverted in a follow-up patch.
Change-Id: I1e1a5209a9acff6c747cb4c574e9118bc8268474
---
M src/target/trx_toolkit/transceiver.py
1 file changed, 6 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/13/39813/1
diff --git a/src/target/trx_toolkit/transceiver.py
b/src/target/trx_toolkit/transceiver.py
index ce71bb1..a5298b4 100644
--- a/src/target/trx_toolkit/transceiver.py
+++ b/src/target/trx_toolkit/transceiver.py
@@ -23,6 +23,7 @@
from ctrl_if_trx import CTRLInterfaceTRX
from data_if import DATAInterface
+from data_msg import TxMsg
from udp_link import UDPLink
from trx_list import TRXList
@@ -308,8 +309,11 @@
if not self.running:
return
+ # list of PDUs to be dropped
drop = []
- emit = []
+ # list of PDUs to be emitted (all NOPE.ind by default)
+ emit = [TxMsg(fn, tn) for tn in range(8)]
+ # list of PDUs to be kept in the Tx queue
wait = []
with self._tx_queue_lock:
@@ -317,7 +321,7 @@
if msg.fn < fn:
drop.append(msg)
elif msg.fn == fn:
- emit.append(msg)
+ emit[msg.tn] = msg
else:
wait.append(msg)
--
To view, visit
https://gerrit.osmocom.org/c/osmocom-bb/+/39813?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I1e1a5209a9acff6c747cb4c574e9118bc8268474
Gerrit-Change-Number: 39813
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>