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

Recording via URH creates mirror image of signal #517

Closed
vsboost opened this issue Jul 29, 2018 · 3 comments
Closed

Recording via URH creates mirror image of signal #517

vsboost opened this issue Jul 29, 2018 · 3 comments

Comments

@vsboost
Copy link

vsboost commented Jul 29, 2018

I have noticed this before but never reported it, what i find is recording a signal from URH seems to create a mirror of the signal not too far off the original, the picture below is of an ASK signal from a weather sensor.

image

Here is the same signal but recorded using SDR-Console
image

This is using the sdrplay, haven't tested with other sdr's - i notice the same behavior when using the spectrum analyzer feature, you see two peaks at opposite ends of each other.

@jopohl
Copy link
Owner

jopohl commented Jul 29, 2018

The mirroring is part of the nature of FFT, see e.g. here for a more detailed explanation. So what URH shows is the result of an FFT for spectrum analyzer and STFT for spectrogram, respectively.

So why does a SDR-Console captured signal does not show the negative side of the spectrum? I am not sure, maybe they perform a filter on the received data to eliminate negative sides of the spectrum.

@vsboost
Copy link
Author

vsboost commented Jul 29, 2018

All good then, i'm just not used to seeing it.
Ill close this one off.

@vsboost vsboost closed this as completed Jul 29, 2018
@transcats
Copy link

transcats commented Jun 1, 2019

The mirroring is part of the nature of FFT, see e.g. here for a more detailed explanation. So what URH shows is the result of an FFT for spectrum analyzer and STFT for spectrogram, respectively.

So why does a SDR-Console captured signal does not show the negative side of the spectrum? I am not sure, maybe they perform a filter on the received data to eliminate negative sides of the spectrum.

You're thinking of the DFT (or FFT) of a real-only input. DFT of complex I/Q samples at n samples/s gives you an n Hz spectrum with no mirroring (at least in theory; you can get some mirroring due to imperfections in the radio).

This is a bug which appears to have existed since native SDRPlay support was added and still exists in the current 2.6.0 release, and was inadvertently fixed by recent commits addressing #652, which seems to have corrected the interpretation of the I/Q samples for SDRPlay.

@vsboost, if you still care, try again either running from source (a bit annoying to set up) or wait for the next release.

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

No branches or pull requests

3 participants