Post Go back to editing

PlutoSDR connected but with Traceback Error

Category: Hardware
Product Number: CN0566

Recently upon boot and executing the following, our CN0566 is showing the following error at the RaspPi terminal console, see screen capture:

analog@phaser:~/pyadi-iio/examples/phaser $ python phaser_find_hb100.py
Attempting to connect to CN0566 via ip:localhost...
Found CN0566. Connecting to PlutoSDR via default IP address...
PlutoSDR connected.
Traceback (most recent call last):
File "/home/analog/pyadi-iio/examples/phaser/phaser_find_hb100.py", line 98, in <module>
my_sdr.gain_control_mode_chan1 = "manual"
File "/usr/local/lib/python3.9/dist-packages/adi/ad936x.py", line 223, in gain_control_mode_chan1
self._set_iio_attr("voltage1", "gain_control_mode", False, value)
File "/usr/local/lib/python3.9/dist-packages/adi/attribute.py", line 71, in _set_iio_attr
raise ex
File "/usr/local/lib/python3.9/dist-packages/adi/attribute.py", line 69, in _set_iio_attr
channel.attrs[attr_name].value = str(value)
AttributeError: 'NoneType' object has no attribute 'attrs'

Any ideas what's going on? and how to fix? This also occurs when using MATLAB via libiio, see screen capture.

  • Yes, AttributeError: 'NoneType' object has no attribute 'attrs' indicates that the Pluto was somehow reset to 1 Tx/ 1 Rx mode (instead of the dual Rx mode we need for Phaser).  This can sometimes happen when installing the Matlab “Communications Toolbox Support Package for Analog Devices ADALM-Pluto Radio.”  The setup for that Matlab toolbox will prompt you to “update” or reinstall Pluto’s firmware.  But don’t do that!  But if you have already done that, then just download the latest Pluto firmware here:

    https://github.com/analogdevicesinc/plutosdr-fw/releases

     It’ll be the “plutosdr-fw-v0.xx.zip” file.  Right now it is v0.38.   Download and unzip that.  And then copy the entire contents (5 files) to the root directory of Pluto (Pluto will mount as a normal USB drive, so just copy everything to that USB drive).  Then, software eject Pluto by clicking on it and selecting “Eject”.  Do not power it off!  You will see the lights blink rapidly for about 30 sec, and then Pluto will restart. 

     When Pluto restarts, you’ll need to configure it for the 2T/2R mode by following these procedures:

    https://wiki.analog.com/resources/eval/user-guides/circuits-from-the-lab/cn0566/quickstart#appendixpluto_setup

    That should fix this issue.