diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-09-07 19:09:12 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-09-12 00:36:13 +0700 |
commit | 38baac9678634fe48b3e0102e6af530679f5fe94 (patch) | |
tree | 98d081f88c779f2ca77480f643f4cd35afe31df3 | |
parent | 75ae9cc3613a8fd6aed168aefb31bc3fdb3d39ad (diff) |
apps/grgsm_trx: fix inaccurate sample rate calculation
Change-Id: I0c309588fa0f7822abfb3919327639735db07679
-rwxr-xr-x | apps/grgsm_trx | 2 | ||||
-rw-r--r-- | python/trx/radio_if.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/grgsm_trx b/apps/grgsm_trx index 45312e6..6efed07 100755 --- a/apps/grgsm_trx +++ b/apps/grgsm_trx @@ -46,7 +46,7 @@ class Application: base_port = 6700 # PHY specific - phy_sample_rate = 4 * 1625000 / 6 + phy_sample_rate = radio_if.SAMPLE_RATE phy_freq_offset_hz = None phy_tx_antenna = "TX/RX" phy_rx_antenna = "RX2" diff --git a/python/trx/radio_if.py b/python/trx/radio_if.py index 407e724..2aeb49a 100644 --- a/python/trx/radio_if.py +++ b/python/trx/radio_if.py @@ -75,6 +75,9 @@ class radio_if(gr.top_block): GSM_TS_PERIOD_uS = GSM_SYM_PERIOD_uS * 156.25 GSM_UL_DL_SHIFT_uS = -(GSM_TS_PERIOD_uS * 3) + # TODO: explain where do these values come from? + SAMPLE_RATE = 4.0 * 1625000.0 / 6.0 + # FIXME: shall be measured (automatically?) for # particular device and particular clock rate. # The current value is measured for USRP B2X0 at 26e6. |