summaryrefslogtreecommitdiff
path: root/gr-uhd/python/uhd
Commit message (Collapse)AuthorAgeFilesLines
* uhd: pybind rfnoc_{block, ddc, duc, rx/tx_radio} (#5291)a-andre2021-12-0916-6/+810
| | | | | | | | | | | | | | | | | | | | | | | * uhd: pybind rfnoc_block Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de> * uhd: pybind rfnoc_rx/tx_radio Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de> * uhd: pybind rfnoc_ddc/duc Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de> * Fix TypeError: set_freq(): incompatible function arguments Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de> * uhd: rfnoc_rx/tx_streamer: Fix AttributeError 'gnuradio.uhd.uhd_python.rfnoc_rx_streamer' object has no attribute 'to_basic_block' Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de>
* cmake: change how test files are build when cross compilingPhilip Balister2021-12-031-0/+3
| | | | | | | | | | | | | | | | | | | | * When cross compiling gnuradio, change how the test files are built. Normally, the gnuradio QA code expects to run in the build tree. For the cross compilng case, we cannot run the QA code during the build process. The changes here allow the creation of an additional package that can be installed on a target that will run the QA code against the installed libraries. Major changes are not using full paths to test files (since they include paths that only exist on the build machine) and not setting environment variables in the shell files to force the QA code to use code in the build tree. This patch disables the C++ only tests, these need some work and then they can be added back for the cross compile case. Signed-off-by: Philip Balister <philip@balister.org>
* uhd: pep8 formattingJosh Morman2021-11-242-17/+31
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* global: remove iostream from all files not use cout|cerr|cin|clogMarcus Müller2021-06-172-2/+2
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* uhd: pybind rfnoc_graph,_rx/tx_streamerMarcus Müller2021-06-088-10/+261
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* gr-uhd: Adding missing Python binding for uhd::tune_request_t::policy_t.Codey McCodeface2021-05-281-2/+1
| | | | Signed-off-by: Codey McCodeface <Codey.McCodeface@gmail.com>
* gr-uhd: Adding missing Python binding for uhd::tune_request_t::policy_t.Codey McCodeface2021-05-281-1/+9
| | | | Signed-off-by: Codey McCodeface <Codey.McCodeface@gmail.com>
* gr-uhd: update direction key namingJacob Gilbert2021-04-052-4/+4
| | | | | | | The 'ant_direction_' key getters have been reappropriated for wider use, changing to general 'direction_' and a few minor simplifications. Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
* GR-UHD: Add additional gr-uhd bindings.Victor Wollesen2021-03-031-0/+13
| | | | Signed-off-by: Victor Wollesen <victor.w@pervices.com>
* uhd: Fix filter APIMartin Braun2021-02-181-1/+3
| | | | | | | | | | | | 9cdfe5141a exposed a bug in gr-uhd: The filter API was incorrectly implemented for UHD (multi_usrp had an API change in UHD 4.0). This is an API change, b/c the existing gr-uhd code was actually never compatible to UHD 4.0's filter API. The change is to adapt gr-uhd's filter API to that in UHD. Signed-off-by: Martin Braun <martin.braun@ettus.com>
* gr-uhd: ALL_LOS bindingkarel2021-02-051-0/+1
| | | | Signed-off-by: karel <5636152+karel@users.noreply.github.com>
* uhd: Control of frequency and gain in both directions at the same momentNiki2021-01-241-1/+2
| | | | | | | | | | | | | | | | | | | It implements the ability to control frequency and gain in both directions (Tx and Rx) with use of a single UHD source or sink - in the same moment. It is possible to do that in separate moments with current UHD blocks but this way it is not possible to change both Rx and Tx settings for the same burst. Now, a single message can do that. Note that there is a bit of an oddity here: The GNU Radio USRP blocks are either Rx or Tx (source or sink). However, they all encapsulate an underlying multi_usrp object. That means that under the hood, a USRP source or a USRP sink potentially has access to the "other" direction. This is made use in this patch. To use this feature, add a direction key to the message dictionary going to the block. Signed-off-by: Martin Braun <martin@gnuradio.org>
* uhd: Fix unit testMartin Braun2021-01-071-7/+5
| | | | | | The qa_uhd.py test has been broken for a long time. Now fixed. Signed-off-by: Martin Braun <martin@gnuradio.org>
* usrp_block:pybind: add missing bind for cmd_power_keyHuang Rui2020-11-022-0/+6
| | | | Signed-off-by: Huang Rui <vowstar@gmail.com>
* qa: run autopep8 formatting on qa python filesmormj2020-10-301-6/+8
| | | | | | find ./ -iname qa*.py | xargs autopep8 --in-place -a -a mostly formats whitespace and gets rid of trailing semicolons
* qa: remove xml file parameter causing deprecation warningsmormj2020-10-301-1/+1
|
* pybind11: Remove SWIG remnants.Ron Economos2020-10-121-2/+0
|
* uhd: Add power reference APIsMartin Braun2020-08-262-0/+37
| | | | | | | | | | | | | | | | | | | | | UHD 4.0 is introducing a power reference level API, which will now become available in GNU Radio. Its availability is conditionally compiled into GNU Radio based on whether or not the feature is available in the UHD version GNU Radio was compiled against. USRP source and sink blocks receive the following new APIs: - has_power_reference() - set_power_reference() - get_power_reference() The command interface now understands a new `power_dbm` dictionary key. The GRC bindings can now switch between absolute gain, normalized gain, and absolute power settings. If GNU Radio was compiled against an older version of UHD (prior to UHD 4.0) which doesn't have this API, an error or warning is printed, the has_power_reference() will return false, and the others will throw an exception.
* uhd: wrap get_usrp_info to compatible return typeJosh Morman2020-08-146-19/+15
| | | | | | | | | | | - Move get_usrp_info() to usrp_block - Casts the return value to std::map so PyBind11 can turn it into a dictionary in Python This fixes an issue where get_usrp_info() would cause an Exception with PyBind11. Co-authored-by: Martin Braun <martin.braun@ettus.com>
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-031-1/+0
| | | | | | | | | | | | | | | | All of the removed `from __future__ import` were needed in older versions of Python (mostly 2.5.x and below) but later became mandatory in most versions of Python 3 hence are not necessary anymore. More specifically, according to __future__.py[1]: - unicode_literals is part of Python since versions 2.6.0 and 3.0.0; - print_function is part of Python since versions 2.6.0 and 3.0.0; - absolute_import is part of Python since versions 2.5.0 and 3.0.0; - division is part of Python since versions 2.2.0 and 3.0.0; Get rid of those unnecessary imports to slightly clean up the codebase. [1] https://github.com/python/cpython/blob/master/Lib/__future__.py
* uhd: remove import from uhdJosh Morman2020-07-021-2/+0
| | | | | There is no need to have the dependence on uhd python bindings as the types that are used in gr-uhd are wrapped separately
* uhd: Fix missing bindingsJohannes Demel2020-06-273-28/+14
| | | | | | | | | | | | | uhd python bindings were missing a couple of functions. 1. `uhd.ALL_MBOARDS` was not defined. 2. `uhd.streams_args` was incomplete. Instead of import magic, we define a pybind constructor which supports all cases. This should ease the maintainance burden as well. Be aware: some notes that `this file was generated with bindtool` were removed because this files contain manual edits. The foundations were probably generated with bindtool once.
* uhd: add default values for time_spec_t cotrJosh Morman2020-06-261-3/+6
|
* uhd: remove members not defined in earlier uhd apiJosh Morman2020-06-111-9/+12
|
* uhd: fix pybind11 bindingsJosh Morman2020-06-106-62/+210
| | | | | | | | | Instead of relying on the pyuhd pybind11 bindings, create new gr::uhd pybind11 bindings that wrap the underlying types. Trying to use the pyuhd bindings directly has many issues Also, push some of the overloading into the constructors as opposed to in the __init__ functions with constructor interception
* uhd: add pybind11 bindingsJosh Morman2020-06-0413-27/+1317
|
* Update license header to SPDX formatdevnulling2020-01-273-39/+3
|
* uhd: Remove unused and deprecated type io_type_tMartin Braun2018-12-121-1/+0
| | | | | | | UHD used to have a type called io_type_t which is referenced in GNU Radio, but never used. There were cases where SWIG would create invalid code around this type. Since it's no longer used in GNU Radio, and deprecated in UHD, removing it from gr-uhd is a twofer.
* gr-uhd: Remove blind exception handling for argument type castingBrennan Ashton2018-11-151-4/+4
|
* uhd: Update USRP block arguments in PythonMartin Braun2018-11-121-1/+2
| | | | | | | | The gnuradio.uhd.{usrp_source,usrp_sink,amsg_source} blocks have a custom ctor in Python which requires manual tracking of the available arguments. This updates the Python module with respect to the C++ API. Co-Authored-By: Ben Kempke <bpkempke@umich.edu>
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-313-12/+16
|\
| * Merge branch 'python3_fix' into nextAndrej Rode2018-06-243-11/+16
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manual merge conflict resolution has been applied to following conflicts: * Typos: * gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py * gr-blocks/python/blocks/qa_wavfile.py * gr-filter/examples/gr_filtdes_api.py * grc/blocks/parameter.xml * gr-uhd/python/uhd/__init__.py * ValueError -> RuntimeError: * gr-blocks/python/blocks/qa_hier_block2.py * relative Imports & other Py3k: * gr-digital/python/digital/psk_constellations.py * gr-digital/python/digital/qam_constellations.py * gr-digital/python/digital/test_soft_decisions.py * gr-digital/python/digital/gfsk.py * SequenceCompleter: * gr-utils/python/modtool/modtool_add.py * gr-utils/python/modtool/modtool_rename.py * gr-utils/python/modtool/modtool_rm.py * Updated API on next: * gr-blocks/grc/blocks_file_source.xml * gr-blocks/python/blocks/qa_file_source_sink.py * gr-qtgui/grc/qtgui_time_sink_x.xml * GRC Py3k Updates: * grc/core/Block.py * grc/core/Constants.py * grc/core/Platform.py * grc/core/utils/odict.py * grc/gui/Actions.py * grc/gui/Block.py * grc/gui/Executor.py * grc/gui/Port.py
| | * python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-263-11/+16
| | |
| * | Merge branch 'master' into nextMartin Braun2018-02-031-3/+3
| |\ \ | | |/ | |/|
| * | cmake: nuke cpack from existenceJohnathan Corgan2016-08-031-1/+0
| | | | | | | | | | | | | | | | | | CPack is not used, unmaintaned, and broken. This does not eliminate any MSVC build functionality.
* | | Test: adds swig dirs to python tests to allow ctest to run on win buildsgnieboer2018-03-221-0/+2
| |/ |/|
* | Comment typo fixing.luz.paz2018-02-031-3/+3
|/ | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* uhd: Fixed minor issue with kwargs in amsg_sourceMartin Braun2014-08-261-1/+1
|
* added subtraction and addition to time_spec_tMarcus Müller2014-04-141-0/+8
|
* Add a QA_PYTHON_EXECUTABLE variable so QA code knows what python to use when ↵Philip Balister2013-12-051-1/+1
| | | | | | | | | | | | cross compiling. With this (and the prior) patch, you can mount the compile directory on the target and run the QA code (as long as the paths are the same). The qtgui tests fail if there is no X server. Volk seems to fail for hard float builds. We'll need to look at adding thes changes to gr_modtool. Signed-off-by: Philip Balister <philip@balister.org>
* Fix missing module imports in error caseJohnathan Corgan2013-09-071-0/+1
|
* uninstalled import: Adding overlooked exception handling around imports.Ben Reynwar2013-06-141-1/+6
|
* uninstalled import: Updatings blocks, fec, uhd, and filter so that ↵Ben Reynwar2013-06-043-0/+231
uninstalled import works with recent changes.