Recent

Author Topic: Somebody interested by RTL/SDR ?  (Read 2229 times)

Dzandaa

  • Sr. Member
  • ****
  • Posts: 452
  • From C# to Lazarus
Somebody interested by RTL/SDR ?
« on: May 23, 2025, 04:47:58 pm »
Hi,

Somebody interested by RTL/SDR in Pascal?

https://www.rtl-sdr.com/about-rtl-sdr/

I have a skeleton program with RTL/SDR wrapping in Windows and Linux.

If somebody is interested to continue the development, I can share it.

B->




Regards,
Dzandaa

Gigatron

  • Sr. Member
  • ****
  • Posts: 282
  • Amiga Rulez !!
Re: Somebody interested by RTL/SDR ?
« Reply #1 on: May 23, 2025, 05:17:56 pm »
Hi

It looks very interesting, you do a good job, perfect.
Sub Quantum Technology ! Pascal - C - C# - Java - Javascript - Glsl - Lua - Html5 - CSS - Amiga Rules !

BlueIcaro

  • Hero Member
  • *****
  • Posts: 820
    • Blog personal
Re: Somebody interested by RTL/SDR ?
« Reply #2 on: May 23, 2025, 05:46:17 pm »
Hello, I'm have interest as HamRadio Amateur.
But May be you can upload to a Github o Gitlab, and someone can fork it and continue you proyect
/BlueIcaro
P.D I have one sdr unit

Dzandaa

  • Sr. Member
  • ****
  • Posts: 452
  • From C# to Lazarus
Re: Somebody interested by RTL/SDR ?
« Reply #3 on: May 23, 2025, 07:00:54 pm »
Hi,

I'm not in Github (Microsoft) nor Gitlab, but here is the code:

I'm confused with the Central Frequency and how to use it correctly with a FFT.

I can capture a buffer, set different parameters, do FFT, but I don't what to do with the position of the frequencies from related to central frequency.

Simple project for the fun.

B->

« Last Edit: May 23, 2025, 07:05:11 pm by Dzandaa »
Regards,
Dzandaa

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 615
Re: Somebody interested by RTL/SDR ?
« Reply #4 on: May 23, 2025, 08:19:06 pm »
It's been a few years since I was involved with learning about SDR, but one of the best and most educational ways I found to do it was using GNU Radio, web site here:  https://www.gnuradio.org/
« Last Edit: May 24, 2025, 05:59:00 pm by Curt Carpenter »

Dzandaa

  • Sr. Member
  • ****
  • Posts: 452
  • From C# to Lazarus
Re: Somebody interested by RTL/SDR ?
« Reply #5 on: May 24, 2025, 11:35:10 am »
Hi,

Yes, I know GNU Radio, Gqrx, etc...

The idea was to have a Lazarus interface.

B->

P.S.: that version is Windows only.

Regards,
Dzandaa

ALLIGATOR

  • Full Member
  • ***
  • Posts: 181
Re: Somebody interested by RTL/SDR ?
« Reply #6 on: May 28, 2025, 07:52:23 am »
Hi, I've reworked your program a little bit, it's mainly to speed up the rendering/work done in the timer handler.
I also formatted the source code to my taste.
Also, it can now run under Linux

Dzandaa

  • Sr. Member
  • ****
  • Posts: 452
  • From C# to Lazarus
Re: Somebody interested by RTL/SDR ?
« Reply #7 on: May 28, 2025, 09:58:35 am »
Hi,

@ALLIGATOR:

Thank you very much, for the optimization and the porting to Linux.
My problem is to show the central frequency in the middle of the chart in relation to the buffer.

...And then to decode the data :)

To be continued...

B->



Regards,
Dzandaa

ALLIGATOR

  • Full Member
  • ***
  • Posts: 181
Re: Somebody interested by RTL/SDR ?
« Reply #8 on: May 28, 2025, 01:11:33 pm »
Quote from: Dzandaa
My problem is to show the central frequency in the middle of the chart in relation to the buffer.
Please explain in more detail. Perhaps it would be easier to show with a picture?

Quote from: Dzandaa
...And then to decode the data :)
Do you have any ideas on how to do this?

Laksen

  • Hero Member
  • *****
  • Posts: 797
    • J-Software
Re: Somebody interested by RTL/SDR ?
« Reply #9 on: May 28, 2025, 01:54:25 pm »
When you do a normal forward FFT the output will be an array of frequency bins.

E.g for a 1024 point FFT at a samplerate of Fs, index 0 will be 0 Hz, index 511 will be 511*Fs/1024, index 512 will be -512*Fs/1024, index 1023 will be -1*Fs/1024. Of course ignoring the center frequency that the RF transceiver LO is tuned to

So to fix it you essentially just switch the two halves of the FFT result (0..511 <-> 512..1023). Now index 0 will be -512*Fs/1024+Fcenter and index 1023 will be +511*Fs/1024+Fcenter

Dzandaa

  • Sr. Member
  • ****
  • Posts: 452
  • From C# to Lazarus
Re: Somebody interested by RTL/SDR ?
« Reply #10 on: May 28, 2025, 07:05:09 pm »
Hi,

@Laksen:

Done :)

Thank you.

B->
Regards,
Dzandaa

Laksen

  • Hero Member
  • *****
  • Posts: 797
    • J-Software
Re: Somebody interested by RTL/SDR ?
« Reply #11 on: May 28, 2025, 09:42:55 pm »
No problem

To demodulate it.. That's a big topic. What modulation is your signal using?

Dzandaa

  • Sr. Member
  • ****
  • Posts: 452
  • From C# to Lazarus
Re: Somebody interested by RTL/SDR ?
« Reply #12 on: May 29, 2025, 12:00:53 pm »
Hi,
@Laksen:

Just FM Radio for the moment :)

B->
Regards,
Dzandaa

Laksen

  • Hero Member
  • *****
  • Posts: 797
    • J-Software
Re: Somebody interested by RTL/SDR ?
« Reply #13 on: May 29, 2025, 03:36:19 pm »
Okay, that's a fun one. Lots of ways to do that

 

TinyPortal © 2005-2018