Giter Site home page Giter Site logo

PlutoSDR Rx support about sdrangel HOT 13 CLOSED

f4exb avatar f4exb commented on July 17, 2024
PlutoSDR Rx support

from sdrangel.

Comments (13)

f4exb avatar f4exb commented on July 17, 2024 1

Implemented in v3.7.0

from sdrangel.

f4exb avatar f4exb commented on July 17, 2024

Interfaces with the libiio library: https://github.com/analogdevicesinc/libiio
Udev rules are there: https://raw.githubusercontent.com/analogdevicesinc/plutosdr-fw/master/scripts/53-adi-plutosdr-usb.rules

from sdrangel.

f4exb avatar f4exb commented on July 17, 2024

Got it working on GNUradio so that's a start. There is a hack to fool it to think it has an AD9364 inside: https://wiki.analog.com/university/tools/pluto/users/customizing So there should be a switch to force AD9364 limits (frequency, sample rate, bandwidth) although not guaranteed. Extended frequency range works at least down to 100 MHz.

from sdrangel.

f4exb avatar f4exb commented on July 17, 2024

Had a glance at the AD9363 reference manual. It is quite feature rich and has everything like the LMS7002D but the hardware NCO. That's nice! Hardware decimators/interpolators and FIR filters. Feature rich AGC and gain control. We'll see how this translates with the libiio interface (a bit weird). I think it means that I will base the GUI on the Lime's

Interesting doc on driver hence parameters to be used with libiio (I think...): https://wiki.analog.com/resources/tools-software/linux-drivers/iio-transceiver/ad9361

from sdrangel.

f4exb avatar f4exb commented on July 17, 2024

Got a revelation today about the very painful and badly documented libiio interface for the AD9361/3/4. What is refered as "filename" in libiio actually refers to the virtual file names found in the /sys/bus/iio/... structure when a device is directly attached to the host hardware. This is what they use to set parameters in the gr-iio module. This information can help make the connection between the not so badly documented paramerers here: https://wiki.analog.com/resources/tools-software/linux-drivers/iio-transceiver/ad9361 and the libiio interface.

Link to the GNUradio gr-iio module: https://github.com/analogdevicesinc/gr-iio
Direct link to libiio API documentation: http://analogdevicesinc.github.io/libiio/

from sdrangel.

f4exb avatar f4exb commented on July 17, 2024

Another source of inspiration or verification: https://github.com/jocover/SoapyPlutoSDR
Also there is a forum dedicated to PlutoSDR: https://www.plutosdr.com/viewforum.php?f=5

from sdrangel.

f4exb avatar f4exb commented on July 17, 2024

Modified the libiio ad9361-iiostream example to work with Pluto in a transponder configuration. It works!
Got a similar example working with C++ wrapper classes. Slowly getting to it!

from sdrangel.

f4exb avatar f4exb commented on July 17, 2024

Despite all efforts this still does not work support is dropped
It's a fail.

from sdrangel.

f4exb avatar f4exb commented on July 17, 2024

This post has comments and links about the very unclear sample rate setting:
https://ez.analog.com/thread/98077

from sdrangel.

f4exb avatar f4exb commented on July 17, 2024

Implementation in SDRangel is impossible due to libiio and gr-libiio code obfuscation and lack of documentation.

from sdrangel.

f4exb avatar f4exb commented on July 17, 2024

Examples like this from AD documentation are just plain wrong:

            for (p_dat = iio_buffer_first(rxbuf, rx0_i); p_dat < p_end; p_dat += p_inc, t_dat += p_inc) {
		const int16_t i = ((int16_t*)p_dat)[0]; // Real (I)
		const int16_t q = ((int16_t*)p_dat)[1]; // Imag (Q)

		/* Process here */

	}

I and Q samples are processed one after the other in a loop iteration for each and not as an (I,Q) group.

from sdrangel.

f4exb avatar f4exb commented on July 17, 2024

This last discovery seems to have unlocked the progress on development. So PlutoSDR support at least for Rx should be possible.

from sdrangel.

f4exb avatar f4exb commented on July 17, 2024

A reasonably working version for Rx is now on dev branch.

from sdrangel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.