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

Crash on Fedora with SDRplay #4

Open
fjl82 opened this issue Nov 12, 2021 · 16 comments
Open

Crash on Fedora with SDRplay #4

fjl82 opened this issue Nov 12, 2021 · 16 comments

Comments

@fjl82
Copy link

fjl82 commented Nov 12, 2021

I've just built this project from source using qmake and make on Fedora 34, and it starts up and detects my SDRplay RSP1a fine. But when I hit 'start', the only things that happen is the gain counting down, then the UI freezing up and a few seconds later a crash with message "Illegal instruction (core dumped)". No other output in the terminal whatsoever. Disabling AGC does not help.

Screenshot from 2021-11-12 12-46-46
Screenshot from 2021-11-12 12-47-23

Any way to fix this? Do you need more info?

@Oleg-Malyutin
Copy link
Owner

I do not speak English. I use translator.
Initially, the project was not designed for receiving from an antenna.
Good signal strength and a matched antenna are required.
In practice, the gain reduction is at least 45 (gain:> 45).
It is necessary to improve the algorithm for determining the P1 symbol. This is where a weak signal crashes and a sharp consumption of CPU resources.

@fjl82
Copy link
Author

fjl82 commented Nov 12, 2021

I tried a few different gain values, but this doesn't seem to work at all. At least with autogain, I get a few seconds of constellation diagrams. When I enter gain manually, everything stays empty, and it doesn't seem to make an attempt at receiving.

I don't think it's a problem with bad signal. The signal looks fine to me in GQRX:
Screenshot from 2021-11-12 15-29-24

That's a pity, I was hoping this was going to work. This is the only project so far that seems capable of receiving DVB-T2 from an SDR. The RTL sticks only support DVB-T, which has been replaced in most of Europe years ago by T2, and the Linux DVB kernel stack relies on the hardware doing all the decoding (which an SDR is not going to do). I hope someday you can get this working properly.

@Oleg-Malyutin
Copy link
Owner

I meant 45dB with automatic gain. This is an indication of the signal strength at the antenna.
With a worse signal, the P1 symbol may be incorrectly assigned, and also there may not be enough performance for the LDPC decoder.
There have already been consultations with a similar problem and this was solved by a good antenna.
This is a test project and does not include CPU overload protection.

@Oleg-Malyutin
Copy link
Owner

P.S. SDRPlay no gain in db, it is gain reduction db

@rapbando
Copy link

rapbando commented Mar 5, 2022

@Oleg-Malyutin Hopw difficult would be to add compatibility for Hack-RF SDR?

Cheers

@Oleg-Malyutin
Copy link
Owner

I don't have HackRF.
I think it's not difficult. I tried SdrPlay on 8 bit and it worked.
The condition is an unprocessed signal with HackRF , i.e. without DC offset and IQ imbalance remove.

Regards.

@rapbando
Copy link

rapbando commented Mar 6, 2022

Is possible for you to integrate with Soapy so HackRF and other SDRs can be used?

@Oleg-Malyutin
Copy link
Owner

Unknown.
As I wrote earlier, an unprocessed signal is needed (the driver's own DC offset and IQ imbalance remove functions are not suitable for DVB-T2).
Soapy may not contain any driver settings to disable internal enhancements.

@rapbando
Copy link

rapbando commented Mar 7, 2022

@Oleg-Malyutin

I added the QT modifications nedded for HackRF SDR. Now before compiling I need to create rx_hackrf.hheader and rx_hackrf.cpp source code, could you help me since you already know all the requirements? I would very gladly send you a support donation if you can.
Here and here I link for your reference the osmosdr analogues files for intefacing with hackrf.

Cheers

@Oleg-Malyutin
Copy link
Owner

I'll see. I don't promise a quick answer.
This will be without a sanity check.

@rapbando
Copy link

rapbando commented Mar 7, 2022

@Oleg-Malyutin

Great, no rush whatsoever!
When you will have some progress I can test and debug with my hackrf...
Where can I send a donation?

Lawrence

@andre1968
Copy link

I have the chinese SDRplay (DE BG7YZF) with libmirisdr-4 from f3exv/libmirisdr-4. I made my own rx_sdrplay.cpp and rx_sdrplay.h because the original was not working. This come because mine sdr is not working synchonous. I make it like the rx_airspy manner. My question is about the 8 bit samples. What values expect the software? Is it from 0-225 or from -128-127?
Thank in advance.
Andre

@Oleg-Malyutin
Copy link
Owner

I am writing through a translator.
8-bit -127 128.
I strongly do not advise the driver. Had experience with a similar msi driver on Linux. This is reverse engineering and a lot of mistakes. I did not set the exact frequency.
Chinese SDRPlay should work well with native drivers (I have both the original and from China). I recommend a version no newer than 2.x.
Regards.
Oleg.

@andre1968
Copy link

andre1968 commented May 4, 2023 via email

@andre1968
Copy link

Hello Oleg,
What documents did you use? I'm reading this one: ETSI EN 302 755 V1.3.1 (2012-04). Have you used also other documents?
Andre

@Oleg-Malyutin
Copy link
Owner

Hello.
Yes, this document and more:

  • ETSI TS 102 831

  • "Improved synchronization, channel estimation,
    and simplified LDPC decoding for the physical
    layer of the DVB-T2 receiver"
    Doaa H Sayed 1* , Maha Elsabrouty 2 and Ahmed F Shalash 3

  • "Optimum Receiver Design for Wireless
    Broad-Band Systems Using OFDM—Part I"
    Michael Speth, Student Member, IEEE, Stefan A. Fechtel, Member, IEEE, Gunnar Fock, and Heinrich Meyr, Fellow, IEEE

  • "Optimum Receiver Design for OFDM-Based Broadband
    Transmission—Part II: A Case Study"
    Michael Speth, Stefan Fechtel, Gunnar Fock, and Heinrich Meyr, Fellow, IEEE

  • "A Low-complexity Feed-forward I/Q Imbalance
    Compensation Algorithm"
    Niels A. Moseley and Cornelis H. Slump
    University of Twente
    Signals and Systems Group
    Department of Electrical Engineering
    Mathematics and Computer Sciences (EEMCS)
    Enschede
    The Netherlands

Regards.
Oleg.

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

4 participants