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/.
Vadim Yanitskiy gerrit-no-reply at lists.osmocom.orgVadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/12674
Change subject: trx/radio_if.py: print type of RadioInterface
......................................................................
trx/radio_if.py: print type of RadioInterface
Change-Id: I6c1ba8546caec122cd1ea0ed87656f691abec068
---
M python/trx/radio_if.py
M python/trx/radio_if_uhd.py
2 files changed, 10 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/gr-gsm refs/changes/74/12674/1
diff --git a/python/trx/radio_if.py b/python/trx/radio_if.py
index c4d4bd1..0d844c0 100644
--- a/python/trx/radio_if.py
+++ b/python/trx/radio_if.py
@@ -60,14 +60,18 @@
# basically, the DL freq. of ARFCN 0
DUMMY_FREQ = 935e6
+ # Human-readable description
+ def __str__(self):
+ return "(generic)"
+
def __init__(self, phy_args, phy_sample_rate,
phy_rx_gain, phy_tx_gain, phy_ppm,
phy_rx_antenna, phy_tx_antenna,
phy_freq_offset, trx_bind_addr,
trx_remote_addr, trx_base_port):
- print("[i] Init Radio interface (L:%s:%u <-> R:%s:%u)"
- % (trx_bind_addr, trx_base_port + 2,
+ print("[i] Init %s Radio interface (L:%s:%u <-> R:%s:%u)"
+ % (self, trx_bind_addr, trx_base_port + 2,
trx_remote_addr, trx_base_port + 102))
# PHY specific variables
diff --git a/python/trx/radio_if_uhd.py b/python/trx/radio_if_uhd.py
index b431fb6..ef2e0ed 100644
--- a/python/trx/radio_if_uhd.py
+++ b/python/trx/radio_if_uhd.py
@@ -27,6 +27,10 @@
from radio_if import RadioInterface
class RadioInterfaceUHD(RadioInterface):
+ # Human-readable description
+ def __str__(self):
+ return "UHD"
+
@property
def phy_proc_delay(self):
# FIXME: shall be measured (automatically?) for
--
To view, visit https://gerrit.osmocom.org/12674
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: gr-gsm
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6c1ba8546caec122cd1ea0ed87656f691abec068
Gerrit-Change-Number: 12674
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190122/6e55726d/attachment.htm>