iio-oscilloscope icon indicating copy to clipboard operation
iio-oscilloscope copied to clipboard

Sending Captured data by (iio-oscilloscope/plugins/spectrum_analyzer.c ) on AD9361 DAC

Open waseem-arshad94 opened this issue 2 years ago • 13 comments

I checked iio-oscilloscope/plugins/spectrum_analyzer.c plugin by injecting RF signal on RX1 of the ADRV9361-z7035 . I want to see this peak on AD9361 DAC by enabling RF LOOP BACK by setting ADC path register 0x418 to 0x0 and DAC path register 0x418 to 0x8 .

waseem-arshad94 avatar Mar 05 '22 13:03 waseem-arshad94

There are loopback register in the AXI_AD9361 interface HDL core.

But not use the AD9361 loopback modes? https://wiki.analog.com/resources/tools-software/linux-drivers/iio-transceiver/ad9361#bist_loopback

mhennerich avatar Mar 07 '22 08:03 mhennerich

Thank you for your reply . My problem statement is exactly the same . That it is possible to use loopback as mentioned by you (https://wiki.analog.com/resources/tools-software/linux-drivers/iio-transceiver/ad9361#bist_loopback) while using spectrum analyser . Let me rephrase my statement 1- If enable loopback modes (RF RX---->RF TX) using this link https://wiki.analog.com/resources/tools-software/linux-drivers/iio-transceiver/ad9361#bist_loopback
2- Then I start /click iio-oscilloscope/plugins/spectrum_analyzer . Will the capture peak /signal be shown on DAC ?

BR

waseem-arshad94 avatar Mar 07 '22 08:03 waseem-arshad94

This plugin only sweeps the RX LO. But yes you will see whatever is on the RX loopbacked to the TX.

mhennerich avatar Mar 07 '22 09:03 mhennerich

Thanks for your valuable response! Actually I want to sweep the RX LO from 70 MHz to 6 GHz in loopback, and want to see the result on spectrum analyzer. I will put Signal generator in sweep mode from 70 MHz to 6 GHz and want to see the result on Spectrum Analyzer. I go through these (https://wiki.analog.com/resources/tools-software/linux-drivers/iio-transceiver/ad9361#bist_loopback) but not reach the end result. Can you give me little bit explanation how I can done this job in loopback mode? thanks

waseem-arshad94 avatar Mar 07 '22 09:03 waseem-arshad94

500mhz

scopeeee

Now I injected RF 507 MHz that is captured by spectrum analyzer iio oscilloscope but at there is no output on the external spectrum analyzer connected to TX1 port . noted: RF RX- RF TX loopback is enabled

waseem-arshad94 avatar Mar 07 '22 12:03 waseem-arshad94

What is the TX LO frequency?

mhennerich avatar Mar 07 '22 12:03 mhennerich

TX LO is 2400MHz by default I understand that loop back will work for 1x RX LO & TX LO ( with RF bandwidth 56 MHz ) but is it possible that i do loopback for whole range 70MHz-6GHz

waseem-arshad94 avatar Mar 07 '22 12:03 waseem-arshad94

The peak is captured when I clicked start sweep button on iio oscilloscope

waseem-arshad94 avatar Mar 07 '22 12:03 waseem-arshad94

I understand that loop back will work for 1x RX LO & TX LO ( with RF bandwidth 56 MHz ) but is it possible that i do loopback for whole range 70MHz-6GHz

No - The device has max RF bandwidth of 56 MHz

mhennerich avatar Mar 07 '22 12:03 mhennerich

But in loopback it works for iio-oscilloscope for entire range 70 MHz to 6 GHz. But its not displaying on spectrum analyzer how its different from iio-oscilloscope. Any setting I am missing?

waseem-arshad94 avatar Mar 08 '22 04:03 waseem-arshad94

But in loopback it works for iio-oscilloscope for entire range 70 MHz to 6 GHz. But its not displaying on spectrum analyzer how its different from iio-oscilloscope. Any setting I am missing?

It's not a single capture. It captures some bandwidth, computes the FFT, updates the LO and starts to capture the next buffer. The FFTs are then concatenated.

mhennerich avatar Mar 08 '22 06:03 mhennerich

More details: https://wiki.analog.com/resources/tools-software/linux-software/spectrum_analyzer_plugin

tfcollins avatar Mar 08 '22 15:03 tfcollins

Thank you Sir @tfcollins and Sir @mhennerich . My objective is that combine spectrum analyzer fuction ( peak search , peak detector ) and DDS/DAC . I think I have alot of work to do but this will help me alot

waseem-arshad94 avatar Mar 22 '22 13:03 waseem-arshad94