kpreid / shinysdr

Software-defined radio receiver application built on GNU Radio with a web-based UI and plugins. In development, usable but incomplete. Compatible with RTL-SDR.
https://shinysdr.switchb.org/
GNU General Public License v3.0
1.07k stars 115 forks source link

Recognize alternate input magnitude from SDRPlay #65

Closed mehdideveloper closed 6 years ago

mehdideveloper commented 7 years ago

Dear @kpreid I have set up a shinysdr on an Ubuntu 16.04 x64 (with 2GB of RAM) and using SDRPlay as the receiver. My client is the latest Chrome on Mac OS X. On "Radio Config" dialog I see "Input amplitude too high. Reduce gain" No matter how low or high I set the gain (or set it to auto), it always shows this. Any ideas?

kpreid commented 7 years ago

ShinySDR displays this message whenever the magnitude of any input sample exceeds 1.0. In most cases, the samples are originally fixed-point values and are rescaled into floats in a ±1 range, so a magnitude between 1.0 and 1.41 (√2, the maximum possible magnitude, the corner of the ±1 square) indicates the signal must be getting clipped.

mehdideveloper commented 7 years ago

The number is not constant. It changes. For example it goes as high as 17.00 Sometimes I see red spikes on the spectrum. Removing the antenna almost fixes the value (around 16.00)

kpreid commented 7 years ago

Okay, so it sounds like the SDRPlay driver is simply generating large numbers and we need to compensate for that. In that case, you can ignore the message for now. You may also go to the Options menu in the spectrum view and change the Lowest value and Highest value for whatever makes for comfortable viewing.

kpreid commented 7 years ago

Possible solutions:

kpreid commented 6 years ago

044a493da593c17bbd78377d25d1e0f9994454f6 implements the third option above: disable the clip warning if a value exceeding (√2 + ε) is ever seen.

I think that is enough for this issue.