r4d10n / retrogram-plutosdr

Wideband Spectrum analyzer on your terminal/ssh console with ASCII art.
GNU General Public License v3.0
77 stars 14 forks source link

Unable to create IIO context #4

Open shaynem opened 3 years ago

shaynem commented 3 years ago

Thanks for your work on this, having trouble trying to run from the connected device and also natively.

On Device

./retrogram-plutosdr.arm --rate 5e6 --bw 5e6 --freq 100e6 --step 1e6 --uri ip=192.168.6.1

retrogram~plutosdr - ASCII Art Spectrum Analysis for PlutoSDR

Creating the pluto device with options: ip=192.168.6.1...

Unable to create IIO context

Same error either running arm, or running via the connected VM

from VM

iio_info -s

Library version: 0.23 (git tag: 00d9621) Compiled with backends: local xml ip usb Unable to create Local IIO context : No such file or directory (2) Available contexts: 0: 0456:b673 (Analog Devices Inc. PlutoSDR (ADALM-PLUTO)), serial= [usb:1.3.5] 1: 192.168.6.1 (Analog Devices PlutoSDR Rev.C (Z7010-AD9364)), serial= [ip:pluto.local]

shaynem commented 3 years ago

Just in case anyone else comes across this, the issue was with the --uri command.

--uri ip:pluto.local

incorrectly I was using

--uri ip=pluto.local

I would suggest changing the output of the connection Creating the pluto device with options: ip=123..

with some validation around the options input

i.e we know that ip= is incorrect ? and usb:* ip:* etc are correct.