Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix grc/uhd_rfnoc_radio #31

Merged
merged 2 commits into from
Nov 8, 2018
Merged

Fix grc/uhd_rfnoc_radio #31

merged 2 commits into from
Nov 8, 2018

Conversation

trabucayre
Copy link
Contributor

The first patch is to allows user to specify explicitly an antenna name depending on daughterboard. For example BasicRX names are limited to A, B and AB. Using an other value will result on a gnuradio fail at start time.

The second patch is to fix rx_bandwidth configuration in RX mode when more than one channel is used. Without this, set_rx_bandwitdh is only called when radio is in TX mode and 2 channels are used.

By default uhd_rfnoc_radio allows only 3 possible name : TX/RX, TX and RX.
Depending on the daughterboard this not enough: BasicRX allows A, B, AB
and BA. With other value gnuradio fails with :
Traceback (most recent call last):
  File "/somewhere/top_block.py", line 243, in <module>
    main()
  File "/somewhere/top_block.py", line 231, in main
    tb = top_block_cls()
  File "/somewhere/top_block.py", line 101, in __init__
    self.uhd_rfnoc_streamer_radio_0.set_rx_antenna("TX/RX", 0)
  File "/usr/lib64/python2.7/site-packages/ettus/ettus_swig.py", line 3268, in set_rx_antenna
    return _ettus_swig.rfnoc_radio_sptr_set_rx_antenna(self, ant, chan)
RuntimeError: LookupError: KeyError: key "TX/RX" not found in dict(NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE)
Without this modification, the rx bandwidth for channel 1 is only applied if
radio is in tx mode and if 2 channels are used.
@mbr0wn
Copy link
Contributor

mbr0wn commented Nov 8, 2018

Thanks, this is great.

@mbr0wn mbr0wn merged commit 9b50ceb into EttusResearch:master Nov 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants