Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[airspy] AGC seems to be not working #390

Open
AlbrechtL opened this issue Aug 24, 2019 · 4 comments
Open

[airspy] AGC seems to be not working #390

AlbrechtL opened this issue Aug 24, 2019 · 4 comments
Labels

Comments

@AlbrechtL
Copy link
Owner

In my setup I need the maximum gain to receive a signal. The airspy AGC doesn't increase the gain in my case, so I need the use the manual gain.

@AlbrechtL AlbrechtL added the bug label Aug 24, 2019
@AlbrechtL
Copy link
Owner Author

I did something in 66832e2. Now the AGC does something but there is still something to do.

@mpbraendli How did you found the value 200? I changed it to 10 to make the AGC faster.

if (sw_agc and (num_frames % 10) == 0) {

Is the value 0.2 found by experiments or is some formula behind?

if (maxampl > 0.2f) {

@mpbraendli
Copy link
Collaborator

On my airspy unit setting maximum gain manually is not optimal, because the constellation becomes more fuzzy. A bit above mid-range is where the optimum is.

Those values were experimentally found, so you can also try different values to see if it is better.

@dwarning
Copy link

dwarning commented Apr 8, 2022

I can confirm the problem with my airspy mini. I get about 8 .. 10dB lower SNR compared to qt-dab. This is for manual gain setting too! Because libairspy functions for gain settings are used I think the problem must have another root cause.
I am worried about the comment inside airspy_sdr.cpp that the sample rate for airspy is 4096ksps. As I know the mini supports standard 3 and 6Msps and 10Msps in a special mode. Airspy-r2 2.5 and 10 MSps.
`dw@modsys:~$ airspy_info
airspy_lib_version: 1.0.11

Found AirSpy board 1
Board ID Number: 0 (AIRSPY)
Firmware Version: AirSpy MINI v1.0.0-rc10-6-g4008185 2020-05-08
Part ID Number: 0x6906002B 0x00000030
Serial Number: 0xXXX
Supported sample rates:
6.000000 MSPS
3.000000 MSPS
Close board 1
`
Perhaps the decimation by 2 follows in wrong amplitudes?

@AlbrechtL
Copy link
Owner Author

@dwarning If you like you can check qt-dabs code to find differences. PRs are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants