I have connected AD7606 to raspberry pi via SPI port and a couple of gpios for CONVSTA/B, BUSY.
I wrote a simple device tree overlay for this device.
Now using iio_info command It can detected the device and all the voltage attributes.
When Using IIO Oscilloscope, I can see waveform of "voltage0". The readings are valid.
My problem is that I want to use this device inside GnuRadio with the block IIO Device Source.
But after filling the fields and run the program, It shows an error:
WARNING:High-speed mode not enabled
Unable to refill buffer: Connection timed out
Here's my settings for IIO Device Source block:
IIO context URI : local:
Device Name/ID: ad7606-8
PHY Device Name/ID: ad7606-8
Buffer size: 0x8000
How do I resolve this error? Does my setup for device source block valid?
We do not usually provide support on any code issues. However, I will move this question to Microcontroller no-OS Drivers community. Someone here might be able to help you.
The default timeout in gnuradio is pretty low (100 ms) https://github.com/analogdevicesinc/gr-iio/blob/master/lib/device_source_impl.cc#L176
That is likely the issue. Try increasing it.