jocover / SoapyPlutoSDR

this repository move to pothosware/SoapyPlutoSDR
https://github.com/pothosware/SoapyPlutoSDR/wiki
GNU Lesser General Public License v2.1
25 stars 15 forks source link

Fixed TX gain setting and adjusted IIO buffer to stop samples being lost before TX #4

Open kantooon opened 6 years ago

kantooon commented 6 years ago

Pluto transmit gain setting expects a negative number (attenuation in dB) so the sent value is now negative. The code which destroys the IIO buffer every time new samples are sent can stop the transmission with GNU radio from time to time. To avoid this, the buffer is created once at startup and never destroyed until shutdown. This method works fine with GNU radio, gr-osmosdr sinks and SoapySDR.

Let me know what you think.