I have tried every possible network connection, or just leaving this field blank, as adi.ad9081() to get the ZCU102 + AD9081 combination connected using PyADI. Pretty much no matter what I have tried, either leaving it blank, local, putting in the IP address that seems correct, I get this error.
# Import the library
import adi
# Create a device interface
sdr = adi.ad9081(uri="ip:192.168.2.1")
# Read back properties from hardware
print(sdr.rx_hardwaregain0)
This seems like it should be simple, and yet it is not. I can ssh to the board and get root@analog to populate correctly but it won't let me assign a static IP address or anything either. I don't know what to do. Has anyone seen something like this before?
--------------------------------------------------------------------------- ConnectionRefusedError Traceback (most recent call last) File ~/anaconda3/envs/test-ad9081/lib/python3.11/site-packages/adi/context_manager.py:36, in context_manager.__init__(self, uri, _device_name) 35 else: ---> 36 self._ctx = iio.Context(self.uri) 37 except BaseException: File ~/anaconda3/envs/test-ad9081/lib/python3.11/site-packages/iio.py:1328, in Context.__init__(self, _context) 1327 elif _isstring(_context): -> 1328 self._context = _new_uri(_context.encode("ascii")) 1329 else: File ~/anaconda3/envs/test-ad9081/lib/python3.11/site-packages/iio.py:56, in _check_null(result, func, arguments) 55 err = get_last_error() if "Windows" in _system() else get_errno() ---> 56 raise OSError(err, _strerror(err)) ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Exception Traceback (most recent call last) Cell In[2], line 5 2 import adi 4 # Create a device interface ----> 5 sdr = adi.ad9081(uri="ip:192.168.2.1") 6 # Read back properties from hardware 7 print(sdr.rx_hardwaregain0) File ~/anaconda3/envs/test-ad9081/lib/python3.11/site-packages/adi/ad9081.py:74, in ad9081.__init__(self, uri) 72 def __init__(self, uri=""): ---> 74 context_manager.__init__(self, uri, self._device_name) 75 # Default device for attribute writes 76 self._ctrl = self._ctx.find_device("axi-ad9081-rx-hpc") File ~/anaconda3/envs/test-ad9081/lib/python3.11/site-packages/adi/context_manager.py:38, in context_manager.__init__(self, uri, _device_name) 36 self._ctx = iio.Context(self.uri) 37 except BaseException: ---> 38 raise Exception("No device found") Exception: No device found