myriadrf / LimeSuite

Driver and GUI for LMS7002M-based SDR platforms
https://myriadrf.org/projects/lime-suite/
Apache License 2.0
468 stars 185 forks source link

Meaning of SOAPY_SDR_TIME_ERROR in readStreamStatus() #361

Closed schneider42 closed 2 years ago

schneider42 commented 2 years ago

I'm currently working with a LimeSDR and noticed that it is dropping samples, but gr-soapy is not reporting that.

Further investigation showed that in my case it was dropping samples inside the driver where USB transfers are handled. SoapyLMS7 does report that via readStreamStatus(): https://github.com/myriadrf/LimeSuite/blob/master/SoapyLMS7/Streaming.cpp#L503

My goal is to extend gr-soapy to at least print a warning when this happens. Now I'm wondering: what is the exact meaning of SOAPY_SDR_TIME_ERROR?

Is it possible that the SoapyLMS7 makes use of the flag in an unexpected way? Should this flag generally be treated as an indication of "lost samples"?

schneider42 commented 2 years ago

Sorry, wrong repository. This was meant for https://github.com/pothosware/SoapySDR/issues/350