GNUradio errors

I'm running Ubuntu 20.04, GNUradio 3.8.1.0 and a PlutoSDR+ (AD9363), trying to get everything to play nice with eachother. My unit has 2 TX and RX, Ethernet and a better clock.

I can ping and change settings on the Pluto with OpenSSH. I unlocked the CPU and set the Pluto to 9361 2x2 mode. I installed GNUradio 3.8.1 with gr-iio from libiio and libad9361. I then made the pythonpath permanent and GNUradio sees both the iio modules directory and the programming blocks. But when I try to execute either flowgraph from this I get the following errors in GNUradio:


FMCOMMS block error:

Warning: failed to XInitThreads()
Traceback (most recent call last):
  File "/home/puddle/GNUradio projects/Pluto.py", line 134, in <module>
    main()
  File "/home/puddle/GNUradio projects/Pluto.py", line 110, in main
    tb = top_block_cls()
  File "/home/puddle/GNUradio projects/Pluto.py", line 76, in __init__
    self.iio_fmcomms2_source_0 = iio.fmcomms2_source_f32c('ip:pluto.local', 2400000000, 2084000, 20000000, True, True, 32768, True, True, True, 'manual', 64, 'manual', 64, 'A_BALANCED', '', True)
  File "/usr/local/lib/python3/dist-packages/iio/iio_swig.py", line 199, in make
    return _iio_swig.fmcomms2_source_f32c_make(*args, **kwargs)
RuntimeError: Channel not found


PlutoSDR block error:

Warning: failed to XInitThreads()
ERROR: Unable to find host: Temporary failure in name resolution
ERROR: Unable to find host: Name or service not known
Traceback (most recent call last):
  File "/home/puddle/GNUradio projects/plutosdrsource.py", line 134, in <module>
    main()
  File "/home/puddle/GNUradio projects/plutosdrsource.py", line 110, in main
    tb = top_block_cls()
  File "/home/puddle/GNUradio projects/plutosdrsource.py", line 78, in __init__
    self.iio_pluto_sink_0 = iio.pluto_sink('ip:local.pluto', 2400000000, 2084000, 20000000, 32768, False, 10.0, '', True)
  File "/usr/local/lib/python3/dist-packages/iio/iio_pluto_sink_swig.py", line 92, in make
    return _iio_pluto_sink_swig.pluto_sink_make(*args, **kwargs)
RuntimeError: Unable to create context

And I have no idea where to go from here. I just want throughput in and out to verify that it's working. Any help would be appreciated.

Parents Reply Children
  • Ok thank you.

    Also, I just updated to fw v.033 and in the changelog it says:

    analogdevicesinc/u-boot-xlnx@b15d169 configs: zynq-common: Fix mode 2r2t

    But I still get the missing channel-error in GNUradio and the Pluto still reverts to 1r1t after rebooting.
    It's kinda odd since both 'fw_setenv attr_val' and 'fw_setenv_name' stays.

    Edit: Fixed the runtime channel errors.
    Through DFU I updated both pluto.dfu and u-boot-env.dfu to v0.33 and now all the' fw_setenv' cmd's stay after rebooting, including fw_setenv mode 2r2t. So far so good.

    I no longer get errors when running the FMCOMMS block in GNUradio, but I can't see any signal in the window that appears. Do I need to change settings in the FMCOMMS blocks?

  • Do I simply need to wait for you guys to update the Pluto blocks for GNUradio?

    I believe it would be a minor change to add a second channel to the blocks but it seems to be a rather steep learning curve to achieve that, if I'm not a programmer. Which I'm not. And I'm new to Linux. I'm more of a hardware guy.