From 5394c6012d05d6565d1374e1c7a67b3f5f2decc6 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 10 Aug 2018 00:01:26 +0700 Subject: 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 --- python/trx/radio_if.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'python') 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, -- cgit v1.2.3