aboutsummaryrefslogtreecommitdiffstats
path: root/python/trx
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-08-10 00:01:26 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-08-10 16:38:59 +0700
commit5394c6012d05d6565d1374e1c7a67b3f5f2decc6 (patch)
tree1371ea16a810e05d204a2dc64c02ac79ebabae98 /python/trx
parent0e246372bc692f2f12198b61010c4ea156056428 (diff)
gsm_trx_burst_if: allow to customize the bind address
Pleviously remote address for DATA interface was also used as the bind address, what is definitely wrong. Let's change the API a bit in order to allow one to specify a custom bind address. Change-Id: I6e5f7b7119ac454217b8dd04f9ee0dd3b23972b6
Diffstat (limited to 'python/trx')
-rw-r--r--python/trx/radio_if.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/trx/radio_if.py b/python/trx/radio_if.py
index 2648cc9..25a35a5 100644
--- a/python/trx/radio_if.py
+++ b/python/trx/radio_if.py
@@ -81,7 +81,8 @@ class radio_if(gr.top_block):
def __init__(self, phy_args, phy_sample_rate,
phy_rx_gain, phy_tx_gain, phy_ppm,
phy_rx_antenna, phy_tx_antenna,
- trx_remote_addr, trx_base_port):
+ trx_remote_addr, trx_base_port,
+ trx_bind_addr = "0.0.0.0"):
print("[i] Init Radio interface")
@@ -95,8 +96,8 @@ class radio_if(gr.top_block):
# TRX Burst Interface
self.trx_burst_if = grgsm.trx_burst_if(
- trx_remote_addr, str(trx_base_port))
-
+ trx_bind_addr, trx_remote_addr,
+ str(trx_base_port))
# RX path definition
self.phy_src = uhd.usrp_source(phy_args,