Post Go back to editing

PHASER_GUI. PY does not start - Connection refused

Thread Summary

The user encountered a 'No device found' error when trying to run Phaser_GUI on a Raspberry Pi connected to an AD9361 (PlutoSDR) for an HB100 radar setup. The final solution suggested changing the RPi IP address in phaser_gui.py from 'ip:localhost' to 'ip:phaser.local'. The user confirmed the PlutoSDR icon was visible on the desktop and successfully ran the find_HB100 and calibration scripts, but the GUI still failed to open, displaying only a gray window in Thonny.
AI Generated Content
Category: Software
Product Number: EVAL-CN0566
Software Version: Mar2025

With CN0566 I can find the HB100. So the first test and calibration have been accomplished.

When I try to pen Phaser_Gui, Kuiper terminal comes till " Hostname is phaser........ and ip :192.168.2.1" and then starts "exceptions".
There are further exceptions and at the end " device not found".. So GUI opens never.


Can you help please?

Thanks and regards

analog@phaser:~/pyadi-iio/examples/phaser $ python phaser_gui.py
file not found, loading default (all gain at maximum)
file not found, loading default (no phase shift)
Gain cal: [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
Phase cal: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
file not found, loading default (no channel gain shift)
Didn't find custom config, looking for default.
file not found, loading default 10.5GHz
No signal freq found, keeping at 10525000000.0
Hostname is phaser, connecting to ip:localhost and ip:192.168.2.1
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/adi/context_manager.py", line 36, in __init__
self._ctx = iio.Context(self.uri)
File "/usr/local/lib/python3.9/dist-packages/iio.py", line 1328, in __init__
self._context = _new_uri(_context.encode("ascii"))
File "/usr/local/lib/python3.9/dist-packages/iio.py", line 56, in _check_null
raise OSError(err, _strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/analog/pyadi-iio/examples/phaser/phaser_gui.py", line 2520, in <module>
app = App(root)
File "/home/analog/pyadi-iio/examples/phaser/phaser_gui.py", line 161, in __init__
self.sdr = SDR_init(
File "/home/analog/pyadi-iio/examples/phaser/SDR_functions.py", line 44, in SDR_init
sdr = adi.ad9361(uri=sdr_address)
File "/usr/local/lib/python3.9/dist-packages/adi/rx_tx.py", line 734, in __init__
rx_def.__init__(self, *args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/adi/rx_tx.py", line 653, in __init__
shared_def.__init__(self, *args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/adi/rx_tx.py", line 603, in __init__
context_manager.__init__(self, uri_ctx, self._device_name)
File "/usr/local/lib/python3.9/dist-packages/adi/context_manager.py", line 38, in __init__
raise Exception("No device found")
Exception: No device found

Thread Notes

Parents
  • It should work.  it looks like its not finding the Pluto.  Check a couple of things:

    1.  On the Rpi desktop, you should see a "PlutoSDR" icon.  Do you see it?  

    2.  Try running find HB100 and the cal script again.  Save that data.  Can you share a screenshot of that command window?

    3.  Open up Thonny (File -> Programming --> Thonny) and open up the GUI from within Thonny.  It may give you some additional messages.

    4.  Review the getting started guide here, perhaps there is some step you missed:  wiki.analog.com/.../quickstart

  • 1) Yes, I see Pluto SDR on Kuiper Desktop.

    2) Find_HB100 and calibration (saved with yes).




    3) I opened phaser_gui.py through Thonny. I get just a gray window. Below. The shell of Thonny is also below.

    4) I reviewed the guide. I had forgotten to downgrade to Numpy 1.22, I did it now. But I do not think it was the reason.

    I also re-run the inital calibration. 

    Nothing changed. I can run the find_HB100, seeing the peak, and confirmed the calibration. 
    Still I get the error like in #3 when I run the gui. 

  • I'm not sure, that is very odd.  Let's try this:  in phaser_gui.py, line 84 is rpi_ip = "ip:localhost".   Change that to:

    rpi_ip = "ip:phaser.local"

    And then leave sdr_ip as
    sdr_ip = "ip:192.168.2.1"

    Let me know if that works.  

Reply Children
No Data

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.