antsdr-fw icon indicating copy to clipboard operation
antsdr-fw copied to clipboard

limited sample rate when using gnuradio with Pluto and Fmcomss firmwares.

Open zhouzhiwen2000 opened this issue 3 years ago • 9 comments

When using gnuradio, the sample rate cannot be set above 5MSPS, otherwise the waveform is not right.

Screenshot from 2021-11-21 10-22-32

corresponding diagram:

Screenshot from 2021-11-21 10-24-00

When the sample rate is lowered to 5M, no problem.

I've narrowed it down to a potential problem with the iiod.

When using sample rate greater than 5M, the cpu usage of iiod is over 100%, that might be causing the problem.

Screenshot from 2021-11-21 10-26-58

Is there a solution to that?

zhouzhiwen2000 avatar Nov 21 '21 02:11 zhouzhiwen2000

With the pluto SDR, the CPU usage tops at about 60%, with rates around 5MSPS too.

zhouzhiwen2000 avatar Nov 21 '21 11:11 zhouzhiwen2000

I've checked, the Gigabit Ethernet is not 100% occupied.

zhouzhiwen2000 avatar Nov 21 '21 11:11 zhouzhiwen2000

Hello, While using the plutosdr firmware, the enternet is acting more like a usb ethernet.

black-pigeon avatar Nov 21 '21 11:11 black-pigeon

Hello, While using the plutosdr firmware, the enternet is acting more like a usb ethernet.

Well, not only the plutosdr firmware, but also the FMCOMSS firmware. They are all limited to a rather low sample rate.

zhouzhiwen2000 avatar Nov 21 '21 12:11 zhouzhiwen2000

we will try to use fmcomms-x image for a test, for the plutosdr firmware maybe you can try to set the maximum cpu core number.

MicroPhase avatar Nov 22 '21 01:11 MicroPhase

we will try to use fmcomms-x image for a test, for the plutosdr firmware maybe you can try to set the maximum cpu core number.

How to set maximum cpu core number? In /etc/security/limits.conf ?

zhouzhiwen2000 avatar Nov 22 '21 01:11 zhouzhiwen2000

I found that if you just using rx module in the gnuradio with fmcomms-x firmware, the sample rate could go up to 10MHz, while using both rx and tx module, the problem you mentioned above will occur.

However, there is a options for tx module could set to solve this issue, you can enable the "Cyclic" option for better performance.

图片

MicroPhase avatar Nov 22 '21 02:11 MicroPhase

I found that if you just using rx module in the gnuradio with fmcomms-x firmware, the sample rate could go up to 10MHz, while using both rx and tx module, the problem you mentioned above will occur.

However, there is a options for tx module could set to solve this issue, you can enable the "Cyclic" option for better performance.

图片

That's hardly a solution. The option Cyclic means that the transmitter will repeat the first frame over and over again. No subsequent data will be sent.

zhouzhiwen2000 avatar Nov 22 '21 03:11 zhouzhiwen2000

There is a bottleneck, but the bottleneck seems to be on the software side. The iiod can be optimized to reduce CPU usage.

zhouzhiwen2000 avatar Nov 22 '21 06:11 zhouzhiwen2000