Slashdot Mirror


Getting Started With GNU Radio (hackaday.com)

An anonymous reader writes: Software Defined Radio must be hard to create, right? Tools like GNU Radio and GNU Radio Companion make it much easier to build radios that can tune AM, FM, and even many digital modes. Of course, you need some kind of radio hardware, right? Not exactly. Hackaday has one of their video hands on tutorials about how to use GNU Radio with no extra hardware (or, optionally, a sound card that you probably already have). The catch? Well, you can't do real radio that way, but you can learn the basics and do audio DSP. The next installment promises to use some real SDR hardware and build an actual radio. But if you ever wanted to see if it was worth buying SDR hardware, this is a good way to see how you like working with GNU Radio before you spend any money.

42 comments

  1. SDR Hardware by PPH · · Score: 4, Insightful

    Entry level, about $12. I think I'll just go ahead and risk it.

    --
    Have gnu, will travel.
    1. Re:SDR Hardware by drinkypoo · · Score: 4, Interesting

      You piqued my curiosity so I plugged the part numbers for the ICs into eBay and got back the same thing for ten bucks shipped. If I were already doing a newegg order, though, I might well toss one in from them so as to get it this month.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    2. Re:SDR Hardware by Tailhook · · Score: 4, Informative

      If you can add $10 to that rtl-sdr.com sell R820T/RTL2832U dongles (on Amazon) with temperature compensated oscillators, SMA connectors and other nice features for SDR experimentation. Start with that if you imagine using upconverters, front-end filters, etc.

      You'll want a short USB pigtail for these devices, though; they are fairly large.

      --
      Maw! Fire up the karma burner!
    3. Re:SDR Hardware by lkcl · · Score: 4, Interesting

      yeah i got something similar, i researched the chipset a bit in advance, to see what frequencies it could do. i found one that could go from i think it was... like... 100 mhz through to almost 1900mhz, with a bandwidth of something like... 2.8m-samples/sec. it only had an 8-bit ADC resolution but that was ok. i then used it with some software i was working with, at the time (passive GSM scanning software), and actually managed to find a couple of frequencies, which was amazing.

      going beyond that would have been tricky, because at the limit of 2.8 million samples per second of I and Q data @ 8 bit, it was pushing the limit of what the hardware could actually do: there were quite a few drop-outs. i'm sure the proprietary driver could handle that data rate, but the reverse-engineered gnu/linux one simply couldn't.

      anyway yes absolutely! $12 plus shipping for something that will handle a huge range of frequencies, FM radio, TV frequencies, GPS satellites, GSM 850 and 900mhz, and even some of the higher-end GSM frequencies @ 1800mhz... maan, what more could you ask for? :)

    4. Re:SDR Hardware by Anonymous Coward · · Score: 0

      Could I build a portable software-defined metal detector with this and have software-based signal discrimination to tell between mineralized areas and actual finds?

      I know I'd still need the oscillator coils built.

      Captcha: Hoarder. How appropo.

    5. Re:SDR Hardware by Anonymous Coward · · Score: 0

      I could ask for a transmitter, even if it's low power.

    6. Re:SDR Hardware by viking80 · · Score: 2

      Or you can stabilize the temperature of the crystal yourself. We used to build crystal ovens to stabilize crystal oscillators at a constant temperature, and heat it up to 40C (or 50C depending on where you live) with some resistors. Use a thermistor and a regulator to control the temp.

      Even without the oven, the R820 dongles on ebay from china gives you good stability after 10 minutes. You can listen to FM radio, Aircraft radio, old cellphones. I have one set up to receive aircraft tracking info as well as one for ship AIS. This gives me a nice map with view of all crafts in the area, with name, destination speed etc.

      --
      don't cut it off www.mgmbill.org
    7. Re:SDR Hardware by Phreakiture · · Score: 1
      --
      www.wavefront-av.com
    8. Re:SDR Hardware by fuzzyf · · Score: 2

      It's worth mentioning that Michael Ossmann (creator of HackRF) is recording an online course about SDR and digital signal processing. It's ongoing, so there will be more videos as times go by.
      It mentions hackrf but you can do get by just fine with a regulrar cheap dongle.
      https://greatscottgadgets.com/...

      Thank you Michael Ossmann! :)

    9. Re:SDR Hardware by Eythian · · Score: 1

      going beyond that would have been tricky, because at the limit of 2.8 million samples per second of I and Q data @ 8 bit, it was pushing the limit of what the hardware could actually do: there were quite a few drop-outs. i'm sure the proprietary driver could handle that data rate, but the reverse-engineered gnu/linux one simply couldn't.

      2.8msps is a limit of the hardware in the mode that uses them as an SDR. In DVB-T mode, it works somewhat differently and so can do higher bandwidth, but as an SDR it's in a sort of debug mode, which has limitations.

      Really, if you need to go above that your next step is probably a hackrf.

    10. Re:SDR Hardware by Agripa · · Score: 1

      Crystals designed for operation inside of an oven use a different cut, usually SC, to move their zero temperature coefficient point to a higher temperature. Common AT cut crystals are optimized to operate at 25C so they are not ideal for this. It might be fun though to use a peltier element for both heating and cooling to maintain a 25C temperature.

      When I have hacked together this kind of circuit in the past, I used a TO-220 style transistor as both the heater and sense element with an analog sampled control loop.

  2. Thanks a lot, 'progress'... by fuzzyfuzzyfungus · · Score: 2

    Back in the day, I could blame crippling hardware costs for my ignorance of signal processing. Now what am I going to do?

    1. Re:Thanks a lot, 'progress'... by Anonymous Coward · · Score: 0

      Well it was just as invalid an excuse then as it is now, so, keep doing the same thing?

  3. Question: Evading Police radar-detector-detector? by mrops · · Score: 2

    Where I live, radar detectors are illegal.

    Naturally, police have Radar detector-detector built into their radars, and I know of one confirmed case where a friend visiting out of state got caught with his radar detector.

    So, can a radar detector built out of SDR/GNU Radio be detected? Hypothetically of coarse.

  4. She put her video hands on my tutorials... by Anonymous Coward · · Score: 0

    Hackaday has one of their video hands on tutorials...

    In the summary, "hands on" should be hyphenated. Otherwise, the sentence might be about Hackaday's video-hands.

  5. probably, detects superheterodyne stage by raymorris · · Score: 2

    Yes, it probably will detect it, at least for inexpensive SDR hardware. Most modern receivers are the superheterodyne type, in which an oscillator within the receiver is set to a frequency near the frequency you wish to detect. This simplifies the circuitry and software because you're only processing the DIFFERENCE between the received signal and the reference, rather than directly processing the source waveform at some sample-rate multiple of the frequency of interest.

    The detector-detector picks up the oscillation of this reference frequency.

    A non-superheterodyne type could be used, but it would be significantly more expensive.

    Shielding MIGHT be an option, though one would have to be sure that the reference frequency doesn't leak out through the cabling and antenna, while allowing the input signal (at the same frequency) to come in.

    1. Re: probably, detects superheterodyne stage by Anonymous Coward · · Score: 1

      There's no way to shield that form of RF leakage through the antenna without shielding the antenna... which would make it unable to detect anything to begin with. The problem is with the device itself and building a zero-leakage superhet receiver requires quite a better set of components available to consumer electronics makers. Which is exactly why detector-detectors work even against "undetectable" snake-oil devices.

    2. Re: probably, detects superheterodyne stage by gnu-sucks · · Score: 2

      Actually it can be done with a little RF theory.

      The way these things is by multiplying the incoming RF by a carrier of frequency very close to the radar frequency. The result is a lower-frequency product that can be sampled or simply compared in the analog domain to a reference. In this setup, the frequency we are multiplying by (the "LO" or "local oscillator") is what is detected remotely, because, as you point out, it has a very direct connection to the antenna.

      Here's how you get around it:

      Multiply by the expected radar frequency plus, say, 200 MHz. Before the multiplication, near the antenna jack, filter for radar frequency +/- 10 MHz (bandpass). Now the result of the multiplication will be very low-level signal except for a portion around f+/-10 MHz. You then sample this data. As you can see, the bandpass filter doesn't allow the LO to escape through the antenna connection.

      Traditional receivers wouldn't do this because it wastes a lot of potentially useful bandwidth, but you can do this to avoid having the LO detected. Without much background on speed radar, I don't know how much variance there is in radar guns, but you would need to take this into account when designing the input filter and choosing the offset from expected frequency for the LO.

      Not in textbooks, but definitely something that can be done.

    3. Re:probably, detects superheterodyne stage by mrops · · Score: 1

      Hmmm, so no building a stealthy detector this way.

      Is it theoretically possible to capture a larger bandwidth using SDR, with oscillator freq far away so not to be detected, then doing a FFT on it to isolate police radar?

      In my excuse if I make no sense, last I studied radio communication was 2 decades ago in engg, went down to software development and never looked back.

    4. Re:probably, detects superheterodyne stage by Ozoner · · Score: 1

      A simple (well shielded) RF stage is all that's needed to block Local Oscillator radiation from the Antenna.

      Plus the choice of IF stage decides what frequency the L.O. will be on, so false detection's will make any "radar detector, detector" pretty much useless.

      The existing Radar Detectors rely on consumer grade Radar Detectors being very primitive devices with a passive detector (eg no shielding)

    5. Re: probably, detects superheterodyne stage by rfengr · · Score: 1

      Well there are ferrite isolators. https://en.m.wikipedia.org/wik...

    6. Re:probably, detects superheterodyne stage by Man+On+Pink+Corner · · Score: 1

      All you need to do is use a conversion scheme that isn't the same as those used by common radar detectors.

      For instance, it might be common in the detector industry to use a first IF at 7 GHz. This could be convenient because the same 17 GHz LO would be useful for both 24 GHz K band and 10 GHz X band reception. I have no idea if that's what the manufacturers actually do, but if they do, then the "detector detectors" might work by listening for leakage at 17 GHz. Put your first LO in a different part of the microwave spectrum and they will have no way to detect it.

      (Better still, vote for politicians who will implement reasonable speed limits and other traffic laws, rather than treating drivers as rolling cash machines.)

    7. Re:probably, detects superheterodyne stage by Agripa · · Score: 1

      One of the techniques I used when transmitter hunting was to look for the local oscillator frequency when the transmitter was not active. This was especially useful for low duty cycle transmitters but it was tricky because one antenna and receiver usually will not cover both frequencies well and finding the local oscillator frequency may be difficult.

      Superheterodyne receivers usually include an RF amplifier before the first mixer stage just to attenuate leakage of the local oscillator; without it, meeting part 15 regulations is more difficult. For cost reasons in the past, speed radars and radar detectors lack this RF amplifier and exposed the first mixer directly however monolithic microwave integrated circuit amplifiers and transmit/receive switches are cheap enough now to use in these applications.

  6. Re:Question: Evading Police radar-detector-detecto by dpidcoe · · Score: 1

    iirc the lowest band police radar transmit in is 10ghz, with some of the other bands being as high as 24ghz. The SDR dongles generally have a response frequency of around double digit MHZ to a bit over 2.4 ghz. That's almost an order of magnitude lower than what you'd need to detect a radar gun. From what I know of radar detector detectors, they work based on listening for the detector to emit slight echos whenever its oscillator is oscillated by an incoming beam. As such, I doubt there's any interaction between one of these SDRs and a police radar gun since they're not even communicating in the same frequency ranges.

  7. SDR transmitting by Rufty · · Score: 2

    For transmitting there's the HackRF which is a few mW output and is the one I've played with. Also another supplier that has cheaper, transmit only versions; the HackRF Blue
    For quite a bit more, there's MIMO capable devices such as the Ettus USRP that lets you run your own GSM basestation among other things.
    And for a more stand alone device, there's always the PortableSDR
    I've got a HackRF and am having fun with it trying to make a network analyzer. The others, I've just heard about.

    --
    Red to red, black to black. Switch it on, but stand well back.
    1. Re: SDR transmitting by Anonymous Coward · · Score: 1

      Worth noting you need an amateur radio operator license in most countries to transmit on most frequencies. On frequencies for which you don't need a license, it has to be done with a licensed device (so licensed because it's locked to a frequency or range and its transmission power is limited to a very short range).

  8. GNURadio-Companion & Hamlib by FudRucker · · Score: 1

    can GNURadio-companion incorporate hamlib as a library to run the radio and basically use gnuradio-companion to build some simple front ends for hamlib? i have a Ten-Tec RX320 and Grig is not much as a front end, i was hoping to build a nicer front end that was more specific to this HF receiver and include a waterfall feature to get a good look at a few KCs of spectrum, i use Linux exclussively so there is not a windows PC for me to do this in, if i get good and skilled at this i would love to build a FOSS HamRadioDeluxe clone for Linux with ease of use and feature rich to include all the radios both hamlib and gnuradio will run,

    --
    Politics is Treachery, Religion is Brainwashing
  9. Re:Question: Evading Police radar-detector-detecto by sumdumass · · Score: 1

    For the most part, yes, it can be detected.

    That is because when processing the radar signal in order to alert you, it emits another frequency signal and there would be no real way around it without a bunch of larger equipment like antennas and amplifiers or shielding. A radar detector's receiver called a superheterodyne receiver. It emits a frequency that interferes with the radar frequency which in turn allows reception on lower frequencies that are easier amplified.

    To get around this, you would need a large antenna or even a couple of them for the variations of different frequency ranges used as well as large amplifiers and large power requirements and such. It would probably make it too cumbersome and expensive to be practical (although I have never thought it through enough to say for certain)

    Your car radio works similarly although I don't think it is a "super" heterodyne receiver. I remember a while back a friend experimenting with signals detection was able to use a receiver similar to a detector-detector and tell which radio channels someone was listening to in their car. He got the idea from some concept where electronic billboards would change advertisements presented based on the average of stations passing by every 30 minutes due to the demographics who typically listen to them.

  10. GNURadio, SDR#, soundmodem, and fldigi by EmagGeek · · Score: 1

    My favorite SDR platforms. I have a cheap RTL dongle that I use for just about everything outside the ham bands. I use soundmodem along with aprx to run my digipeater/igate. fldigi takes care of PSK and other modes on HF. GNURadio and SDR# for listening to what is going on around town.

    Fun stuff.

  11. Yes. "Can't be done" like cracking encryption by raymorris · · Score: 1

    >There's no way to shield that form of RF leakage through the antenna without shielding the antenna... which would make it unable to detect anything to begin with.

    Yeah I mean to add it would not be easy, if it's possible at all.

    "There's no way" to do it, much like we used to say "there's no way" to alter a file without changing it's MD5 hash, and we said "there's no way" to install 3rd-party software on an iPhone, etc. Impossible, until some clever person figures out how to do it.

    I was a professional magician before I was a locksmith, which was before I was a "vulnerability assessment engineer" (hacker). My my entire career has been doing what can't be done - you -can't- open a good safe without the combination, you -can't- tell which card someone looked at before shuffling it back into the deck, and you -can't- install software on a computer without being logged in to the machine. Of course I do these things all day, every day.

  12. Re:Question: Evading Police radar-detector-detecto by Anonymous Coward · · Score: 0

    So much rubbish being written here about receivers.

    It is perfectly possible to design a super-hets which hardly emit any interfering signals. The front stage LNA can give you 30ish dB of rejection, the mixer another 20dB or so (or more). But that's beside the point. The super-het mixes down to a separate IF frequency, so the locally generated signal is not at the same frequency you are interested in. So you can place a filter on the antenna input which passes the signal you want and reject any leakage you might create. Any leakage will be so small that no police detector would ever see it. Think power emitted by a few hundred human cells as the amount of leakage.

    The reason I suspect most cheap radar detects are easy to detect is that they are probably direct conversion receivers, as these can be made cheaply. Your locally generated signal is therefore in your band of interest, so you cant filter it out and the only thing stopping it radiating is the reverse isolation of your receiver. This is typically crap in cheap and nasty receivers. They might not even have a front end LNA and mix directly with a passive mixer (it is 10GHz after all). If that is the case then the leakage will be terrible.

    It is quite possible to design a radar detector which can't be easily detected, whether they be a super-het or a direct conversion. It just costs more.

  13. Re:Question: Evading Police radar-detector-detecto by Anonymous Coward · · Score: 0

    So, can a radar detector built out of SDR/GNU Radio be detected? Hypothetically of coarse.

    Yes, because the radar-detector detector looks for oscillator leakage at radar frequencies which would be present on the SDR tuned to the radar band.

  14. Re:Question: Evading Police radar-detector-detecto by Anonymous Coward · · Score: 0

    Where I live, radar detectors are illegal.

    Naturally, police have Radar detector-detector built into their radars, and I know of one confirmed case where a friend visiting out of state got caught with his radar detector.

    Yes, but are radar detector-detector-detectors illegal?

  15. Re:Question: Evading Police radar-detector-detecto by sumdumass · · Score: 1

    Well, you certainly sound like you know more about it than I do. The information I have is third hand from someone probably along the same level as you or maybe a little more advanced. The question is, can you do all that with software defined radio?

    I decided to look to see if anyone is offering an undetectable radar detector and it appears Escort is in their redline series and claimed to have patented some "TotalShield Technology". So it is able to be done.

  16. Re:Question: Evading Police radar-detector-detecto by Anonymous Coward · · Score: 0

    Where I live, radar detectors are illegal.

    Naturally, police have Radar detector-detector built into their radars, and I know of one confirmed case where a friend visiting out of state got caught with his radar detector.

    Yes, but are radar detector-detector-detectors illegal?

    Not yet, but I've detected that the idea of making laws to screen radar detector-detector-detectors certainly is on lawmakers' radar screens.

  17. Insert Subject Here by Noble713 · · Score: 1

    I too was attracted by the allure of "approachable" radio communication system design....

    I've been working on my Masters thesis involving GNU Radio. I have an RTL-SDR (a Terratec Elonics E4000) and more importantly 2 bladeRF x40 SDRs. Observing/listening/decoding certain transmissions with pre-existing standards is fairly easy. Building a complete digital data transmitter and receiver in GNURadio Companion has a bit of a learning curve. And by "learning curve" I mean "like free climbing the Dawn Wall".

  18. Re:Question: Evading Police radar-detector-detecto by Ozoner · · Score: 1

    Totally correct

    The cheap radar detectors use a simple Direct Conversion receiver with a primitive diode mixer, so the Local Oscillator is radiated back through the antenna and hence is easily detected.

    Adding an RF stage would fix the L.O. radiation, or by changing to a (slightly more complex) Superhet design.

  19. $0 cost to receive actual RF from RF recordings by fyngyrz · · Score: 1

    You can download my SdrDx for either Windows or OS X, download a saved RF file, and start receiving from a recording of, for instance, a ham band during a contest, or a SW band with some interesting stations on it. No SDR required to fool around, and the software is free.

    You can tune around, play with bandwidths, demodulation modes, noise blanking, peak tracking, notch and other filtering, the analysis scope, etc. WIth a recording, you get the span of the spectrum that was recorded (for instance, 200 khz of spectrum) but within that, you can do pretty much whatever you want.

    screenshot

    Works with OS X 10.6.8 and up, XP and up.

    If you want to use an actual SDR, SdrDx leans decidedly towards the middle and high end, but supports anything using the RFSPACE protocols, so (obviously) pretty much any RFSPACE SDR model, the Andrus MK 1.5, and the AFDRI. Also supports the Funcube. No one has written an RFSPACE compatible server for the RTL sticks, but perhaps someday they will. :)

    --
    I've fallen off your lawn, and I can't get up.
  20. GNU on the Cutting Edge by Anonymous Coward · · Score: 0

    GNU Radio, only 80-some years after radio was new and exciting. I see the blazing relevance of GNU Hurd has struck again! What's next, GNU Black & White TV? GNU Bakelite? GNU Impressionist paintings? GNU Art Deco jewelry?

    No amount of "software defined" pixie dust, or "Open Source" hype can hide the technological and societal irrelevance.

  21. optoscan 456 by Anonymous Coward · · Score: 0

    I am a proud owner of a pro 2006 with a optoscan 456.
    I have no real software for this, though I have reaction tuned this reciever with my scout (also from opto). Now a question to the community if I may, witch interface may be best the civ or rs 232? I don't know if the serial will take a usb dongle or not, the civ will need an adapter also. I still want to keep the reaction tune capability with the scout and do the signal processing on the computer the audio part...
    I also have the detector output witch has better bandwith then the audio out, though I have never used it.
    I have several tv dongles have yet to get any of them working.
    Any help/advice is appreciated...

    Napervillian

  22. Irrelevance based socio-slacker clickbait !!! by TheRealHocusLocus · · Score: 1

    "No amount of _____ pixie dust or _____ hype can hide the technological and societal irrelevance.

    Well done! I'm going to clip this word-puppy and spice a bunch with some ugly Pando type illustrations, where crudely drawn cartoon figures are fondling little blobs of 'techy' things with ludicrous expressions of awe, disgust or blank stares. Then spray the Ad networks with variations of it... selling everything from Cadillacs to Cialis to Catpoop scoops.

    Socio-irrelevance-slackers will click on it expecting to land on some obtusely erudite scathing commentary on how things, especially these things, really really suck, and what's the use anyway. They seek articles that trigger a little endorphin release they get when smarty-people tear a popular or noble idea apart and trash it in front of them --- and due to a bit of faulty brain wiring --- the mere act of reading triggers in them the same wave of satisfaction as a difficult obstacle overcome or job well done. Just as if they had thought of and written it themselves.

    But it is a conditioned response and the mere anticipation of reward begins the endorphin release. So by the time they actually load the sell-page and are staring at the Product the joy juices are already flowing. They'll rationalize away the appearance of simple advertising, thinking that the Author is fronting some edifice by 'reproducing' the object of scorn first on the page. By the time they navigate the spiel and reach the buy/commit links at the bottom, they'll think they're participating in an elaborate multi-page dismemberment of said Product that is so well done, and Author so courageous and hip that the commentary if on... the next page! Or even omitted entirely, since the Point is so Obvious and you are so Clever. In the presence of such greatness, one can only proceed to the end so one can boast about the experience.

    Actually, they'll just keep clicking and agreeing until the endorphins stop.
    Proud owners of a Catpoop scoop to place on their coffee table as a symbol of capatalist-anarchy-agression.
    And I'll be affiliate-rich!

    --
    <blink>down the rabbit hole</blink>