Escolar Documentos
Profissional Documentos
Cultura Documentos
Main Menu
Welcome
SDR Radio
Gnuradio
Gnuradio part 1
Upcoming Projects
Guestbook
Links
finger
Hits: 5038
Gnuradio ? Where to begin ? Trying to understand the basics to begin making a software radio ?
Perhaps I can help you with the very basics, as I've searched the internet for the basic knowlegde to set
up something that would actually produce some sound, and get some signals through. I wouldn't say that I
wasn't able to find anything on the internet, but the websitesI found,was just over my initially state of
understanding of gnu radio. Thatis why I write this small toturial to try and help you to get a basic
understanding of how to set up your first radio. After that,if you got the idea, then you have the
basicradio to continue to build on.
I will in this example use a simple setup using the rtl2832u as the hardware.
The beginning.
We need to know where to find our blocks in Gnuradio Companion, or GRC. They are placed to theright on
your screen and are expanding menues with a lot to get lost in at first.
And it looks like this :
To begin with, we needan input source block, thisis the block that control
our hardware device, or audio inputfrom the soundcard.
There are different parameters tobe set. And all of these settings are
depending on your hardware or soundcard.
Let's take a look at one of these blocks.
The OSMOSDR SourceBlock
The OsmoSDR SourceBlock is foundunderSources. Itdoes control the
rtl2832u chipsset along with others.
Most of the rtl2832u can operate at a sample rate of 2.8MHz and at VHF, 145
MHz thisgivesall of the bandwidth of the band.
The source block looks like this :
Sample Rate (sps): 2.8M specifies the bandwith that the hardware, in this
case the rtl2832u can handle. 2.8MHz can be put in the field as 2800000 or in
math terms 2.8e6.
Ch0: Frequency(Hz):145M does here mean that we will center the band at
145MHz, nothing special or even surpricing in that.
Ch0: Freq. Corr. (ppm):-70 here we will set the difference from the actual
hardware frequency to the frequency that we do see in our gnuradio. The reason for this is, that the
Gnuradio part 1
hardware isn't always spot-on the frequence. Small differences in the components may differ a little,
making the frequency a little off. This is corrected here.In this case my rtl2832u is a little high in
frequency andI have to pull itback a littleto make it fit the actual "real life" frequency.
Ch0: Gain Mode: Auto can be set to Auto or Manual, by manual we do configurethe gain in our
hardware our self, and then the next two inputs has to be set by us. Usingthe Auto mode the block does
the job for us.
Ch0: Gain (dB):0 since I use Auto it doesn't matter, but ifyou want to control it yourself by choosing
manual in the last step, then you need to know what your hardware devicecan handle. This can inLinux
Terminal be concluded by using the command: rtl_test, this will bringyou a list of what frequencies that
are available.
Ch0: IF Gain (dB): 15 are the same as the last step, except that this controls the IF gain.
Next Block
Since you probably doesn't have a soundcard that are happy about working with 35kHz audio, we
somehow have to get the demodulated signal up to a frequency that your soundcard will accept. Most
soundcards will accept without problems 48 kHz.
Gnuradio part 1
The Last Block in this puzzle is the audio sink. This is what makes you frequency move to the soundcard,
where you will be able to hear sound. The block looks like this and are found under Sinks.
You set your Sample Rate to 48 KHz since it's what your soundcard can
accept and play.
Device Name: is dependent on which Linux version you use. If you use the
latest Linux you have to set the device name to pulse since this is what
your driver for your soundcard will be named.
I've now tried to tell you how to make the beginning of a very simple narrow band fm receiver in gnuradio.
I will ofcourse show you how it will look put together as a last picture in this perhaps part 1 out of many.
The whole sequence of blocks looks like this :