Once the Tdd engine is initialized on the Pluto there appears to be no way to get anything but zeros out of the receive buffer.
Example case:
In the Phaser-Control-with-MATLAB repo, running fmcwDemo.m. Once the script gets past line 111 (i.e. bf_TDD.Enable=1) the Pluto will not return anything but a zero (either in the script or through IIO oscilloscope until it has been power cycled. The phaser device behaves normally when running the pluto and phaser from the pi.
PlutoSDR Rev.C (Z7010-AD9363)
v0.39
If I power the pluto from both connectors and close MATLAB and disconnect the OTG connector to ensure all the iio streams are closed. and reconnect the OTG connector I still see the same problem where I cannot get any data out of the IIO oscilloscope or the MATLAB scripts. This leads me to believe that the MATLAB scripts are changing some settings which are causing issues.
Hi rsipho,
Does this example work: https://wiki.analog.com/phaser_matlab
Yes. This example runs and gives a reasonable result. Rx buffer contains data and the data appears similar to when running similar scripts from inside the pi.
Ok, then it is something to do with the TDD engine or the ribbon cable that connects the TDD engine pulses between Pluto and RPi. Do you have the gray ribbon cable connected? Can you send a picture of your setup?
This was the issue. I didn't see anywhere in the getting started documentation mention of the ribbon cable. Its connected now and scripts are working