trx_toolkit/fake_trx.py: refactor L12TRX -> TRX2L1 burst transformation
commitb1ae186c55109dd324d8186bcb493b2fac657619
authorVadim Yanitskiy <axilirator@gmail.com>
Sun, 17 Nov 2019 13:37:05 +0000 (17 20:37 +0700)
committerlaforge <laforge@osmocom.org>
Wed, 20 Nov 2019 15:05:57 +0000 (20 15:05 +0000)
treeb216c4a7eb3bd7522ca3133ffb11eaa2b6790876
parent65dbd471fcc46510443494d537f008de909f1a14
trx_toolkit/fake_trx.py: refactor L12TRX -> TRX2L1 burst transformation

The burst transformation in BurstForwarder.forward_msg() used to be
done only once, so then the resulting message was distributed over
the list of connected (and active) transceivers.

This approach limits the path loss simulation capabilities, because
a reference to the same message is passed to FakeTRX.send_data_msg().
If one transceiver changes (or removes) the burst bits, the other
transceivers would not receive the original message.

Let's do the transformation individually for each transceiver,
so the original message will always remain unchanged.

Change-Id: Ia016a3a9bb6e9f17182a7168aa5a501ae9b9978b
src/target/trx_toolkit/burst_fwd.py
src/target/trx_toolkit/fake_trx.py