I am trying to write a C program in Linux to pull samples continuously from the receive buffer of PlutoSDR using the libiio library. I think the High-speed mmap interface should be utilized in order to move the received samples from the hardware to user space fast enough.
However, the High-speed mmap interface is only supported in local backend and I cannot create the context for my PlutoSDR with the local backend.
pi@pi2:~ $ iio_info -s Library version: 0.23 (git tag: v0.23) 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=10447396599300040f001c009d1128f249 [usb:1.3.5] 1: 192.168.2.1 (Analog Devices PlutoSDR Rev.B (Z7010-AD9363A)), serial=10447396599300040f001c009d1128f249 [ip:pluto.local] |
I also tried to use the iio_create_local_context() function in my code but the return result is "assertion failed".
What should I do to create context for my PllutoSDR with local backend and then check my iio_buffer
is using the high-speed interface?
Thank you.
Toan
Add the information about the programming language and OS.
[edited by: KhanhToan at 12:09 PM (GMT -4) on 25 Apr 2022]