Slashdot Mirror


GNU Radio

Max Hyre writes "Apropos (!= man -k :-) RIAA, web radio, and other such data-dispersal disagreements, here's a new way to do it your way: a fully software-driven radio receiver; just strap some off-the-shelf DAC hardware into a generic computer, and let the software do the rest. While I can just barely spell `sideband', this looks like it could be more fun than any set you ever had before, especially after those in the know build up some kewl apps for the great unwashed like me. They're also dreaming of GPS, cellular phones, &c.. My only gripe is that the web pages proper don't seem to have any cookbook recipes for the hardware; maybe that's in the docs with the source, or maybe this is strictly for the experienced, for now."

33 of 134 comments (clear)

  1. Sounds interesting, there is a similar project out by rickthewizkid · · Score: 5, Informative

    Check out tapr.org and the DSP-10 project. It's a 2 meter ham radio that is defined in software, using the DSP board to handle modulation. I am saving my nickels and dimes to buy a kit, and it seems interesting. Also, since it's all defined in software, it can be connected to a transverter and the output can be SSB, FM, etc and the software for the PC can be programmed to take into account that the transverter is making the 2 meter rig into say a 10 meter or microwave rig.

    -RickTheWizKid

  2. 20M samples/s ADC to receive 95MHz FM? by r6144 · · Score: 2, Interesting

    Does the ADC mix down the frequency prior to A/D conversion?

  3. Re:Cool, but pointless by Lumpy · · Score: 4, Informative

    Great! you are right on....

    so where do you get DSP's that are field programmable in C?
    and connect easily to a computer costing less than $200.00 in parts to cover from DC to 10Ghz?

    DSP's are good for end products that are to be released to the sheep. This is better than any DSP ever created and will do it better than any DSP ever created for research and expierimentation. doing that with a DSP is near impossible for the amateur and is 100% impossible without breaking the law for poor expierimenters.

    DSP's suck for research by the hobbiest..This process is best.

    be sure to include the entire costs of development before offering your opinion as to weither an expensive alternative is better. (DSP's are ungodly expensive after you factor in the programming software,devkit, and required hardware all purchased legally... TI's devkit costs over $20KUSD that has all the tools available (the student kit doesnt do 1/2 of the pro devkit.)

    --
    Do not look at laser with remaining good eye.
  4. $1299 and no guarantees by Anonymous Coward · · Score: 2, Informative

    This page has the details. Too pricey for a tinkertoy.

  5. Re:Sounds interesting, there is a similar project by Nate+B. · · Score: 2, Informative

    While TAPR has tried a lot of things, unfortunately not many of their projects have gotten off the ground since the TNC II (A packet radio modem (Terminal Node Controller) for amateur radio use.) Whatever their development process is, I think it could use an infusion of bazaar style development. They've worked on a spread spectrum radio since the early '90s. Each time they're "just a few months" from releasing a working model something changes and the project disappears again. I ended my membership after a couple of years as I just didn't see the project progressing. To be fair, it's a volunteer/hobbyist organization. Perhaps some friendly competition from GNU will spur both to release a usable product by the end of the year.

    The past few years the major advancements in amateur radio digital technology have come from Europe. i.e. PacTOR, PSK31, and now MFSK. Clover was developed in the States, but being patented and other issues (leading to high prices) kept it from becoming a mainstream technology.

    --

    "Insanity is doing the same thing over again expecting a different result."
  6. The Hardware by ch-chuck · · Score: 2

    appearantly is the PCI-DAS4020/12 - that's what the alpha driver posted is for, specs cached here. Described as "low cost" (from a lab gear point of view) but is GBP 1200 or so.

    I've always wondered what generic CPU's could do in the HF (3-30Mhz) radio spectrum since CPU speeds passed 120Mhz long ago.

    --
    try { do() || do_not(); } catch (JediException err) { yoda(err); }
  7. ADC sampling rate? by Quixote · · Score: 2

    The MC DAC supported has a sampling rate of 20MHz. Does that limit the range of possible frequencies to 20MHz ? Are there any ADCs out there that can sample upto, say, 500MHz ?

  8. Re:Cool, but pointless by TooTallFourThinking · · Score: 2, Interesting

    I don't think they are marketing it as a replacement for a DSP. Clearly if you wanted to do something like this as efficient as possible, a DSP is the way to go. You don't slow do your computer with all this additional processing - unless you've got a disgustingly fact computer ;).

    But at the same time, those who can't afford the $500+ DSP kits to start playing around with, or those who want to see what are the limits they can push with their computer, this sort of stuff it probably right up their alley. I kind of dig it.

    As long as everyone understands the differences between the two approaches, everything is cool. This gives more people the opportunity to play and I am all for that.

    -Greg

  9. .. but software modems are evil? by Anonymous Coward · · Score: 2, Insightful

    so why is a software radio getting the geek seal of approval?

  10. I see some potential here. by Innominate+Recreant · · Score: 2, Insightful

    If the software is digitally creating the waveforms before conversion to analog and transmission, then encryption could be applied to the waveform, and decrypted with the appropriate key by the receiver (a radio version of PGP, anyone?). This could prove to be a very cool method of secure communication.

  11. Great! by epsalon · · Score: 2, Funny

    Now I can try out tempest for eliza without need to actually use a radio!

  12. Hardware Geeks by Alien54 · · Score: 3, Insightful
    This looks like it very much as hardware geek think. very cool, very esoteric.

    It is not pointless, however, but it is very bleeding edge. I can see this being more practical as processor speed improves.

    Maybe eventually there will be something like a box with a firewire connection or something.

    You know some companies will freak if people start producing software to receive HDTV, Satellite Radio, etc. HDTV is supposed to be the standard nation wide by 2006(??). This ties in with the ability in HDTV to block recording of certain programs, etc. if you have a digital recorder. This will also tie into that bill Sen Hollings introduced.

    So this is all part of a somewhat larger picture.

    --
    "It is a greater offense to steal men's labor, than their clothes"
  13. Fully software by MobyDisk · · Score: 2
    ...A fully software-driven radio receiver; just strap some off-the-shelf DAC hardware...
    That makes a whole lot of sense. :-) The article says it more accurately:
    ...GNU Radio is a collection of software that when combined with minimal hardware...
  14. Re:The forbidden fruits of radio by gbnewby · · Score: 3, Interesting

    In the US, radio receivers and scanners are forbidden from receiving in the cellular phone bands (not that hard to get around by buying a radio elsewhere or modifying your own).

    Spread-spectrum technology, as used in wireless phones, especially 3G wireless and other communication, is generally inaccessible to your generic home scanner or ham setup. Also, it's often digital, which again means a home scanner or ham is out of luck.

    Enter GNU radio. This sounds like it will easily enable receiving the "forbidden" bands, and give a lot of computer power to re-assemble the spread-spectrum signals. I don't know if this is the intent of the developers, but the potential for bypassing existing radio "security" (really, security through obscurity & legalese) seems strong.

  15. This won't let you listen to cellular. by wowbagger · · Score: 5, Informative

    I do this for a living, and I can tell you this won't help you listen to cellular.

    First, all they are doing is taking the 455kHz IF from an existing radio, digitizing it, and using the computer to do the demodulation. Thus, if your radio won't receive the cellular band, your computer won't either. And if your radio can tune into the cell band, you can listen to AMPS without a computer - it's just narrowband FM.

    Now, if you are talking about GSM, PCS, CDMA, or anything other than AMPS, then you will need more than just a receiver that can tune those bands. CDMA is spread over 1.5MHz of spectrum - unless your radio has an IF that wide you are out of luck.

    GSM and PCS (which is just GSM at a different frequency) is narrowband, but it's still more complicated than FM- you need to be able to receive the complex (in the a + (srqt(-1))w sense of the word) waveform, and pull the bits out of the air. Then, you need to decode the protocol, run the vocoder algorithm, and generate the audio. We use TI C6X DSPs capable of 1.6BOPS, with special opcodes to help the decoding, and Special chips to do the grunt work and it still takes a lot of work to get it to run in real time.

    Now, if you are a ham, and you want to do sideband, PSK31, or other modes, this is a great thing. But don't expect to be able to monitor your neighbor's phone with it.

    Besides, if you ever HAD monitored cellular, you't realize it's about as interesting as watching grass grow.

    1. Re:This won't let you listen to cellular. by wowbagger · · Score: 2

      Depends upon whether you want to do phase 1 or phase 2 - phase 1 is plain old FM, at 4800 baud, 2 bits per symbol. You could do pretty well oversampling by 10, or 48000 ksample/sec, and then picking the sample with the lowest intersymbol interference (that's basically what we do, although we do it at a much higher sample rate.) Then you slice the data to get the symbols and process them.

      Phase 2 is QPSK - phase shifted carrier, although you are *supposed* to be able to receive it with a normal FM detector, for backwards compatibility.

      The only real problem would be, once you've recovered the frames, you'd need an implementation of the DVSI IMBE vocoder to recover the audio, and if the channel is doing DES, you'd need to crack the DES key on the audio.

      Why would you want to look at these signals, except to eavesdrop on the police? Just curiosity - I know why I want to do it (cause that's what I get paid to do), but why do you want to?

    2. Re:This won't let you listen to cellular. by wowbagger · · Score: 2

      I stand corrected - it's just that I didn't see the specs for the hardware, and so I assumed you were pulling the IF out of a normal scanner.

      Also, do remember I tend to think not just in terms of decoding a signal, but in terms of performing parameterics on it, and generating the other side of the signal at the same time. Measuring takes more work than just decoding, and I tend to forget that not everybody is building test equipment - you don't have to worry about syncing your transmitter to the TDMA timeslots since you are receive only, you don't have to worry about measuring modulation accuracy, audio distortion, frequency error, burst power, all the while adjusting your own signal parms, running the simulation scenario, and keeping the hardware in cal over temperature. Especially since people seem to think a $20,000 service monitor ought to outperform a $20,000 measuring receiver, $50,000 spectrum analzyer, $5,000 audio analzyer, $10,000 RF signal generator, $5,000 microwattmeter, etc., and do all of the above at the same time.

      And as for downloading the code - while I love the GPL, and would dearly love to release the code I do under it, I have to link to things like the DVSI codec - and somehow I don't think DVSI is going to GPL that. So I get a bit cagey about downloading code in that area - that way I cannot violate the GPL unintentionally.

      And actually, what you describe is EXACTLY what you do with the Intersil parts - you filter and decimate like a big dog, you just do so with the chip, and save your DSP MIPS for the other stuff.

      However, do you REALLY have the CPU to do CDMA at the 1.5 MChip/sec rate? Even with a Athlon 2000, that's not much more than 2000 cycles/chip to do the correlation.

    3. Re:This won't let you listen to cellular. by wowbagger · · Score: 2

      Bzzt! No, this is what I do.

      Data packets? You wanting to look at trunking, or mobile term stuff?

  16. Heh. by Chris+Johnson · · Score: 4, Informative
    I'm sorry, but this is real wimpy for GNU.

    My notion of GNU Radio would be simple and inexpensive free FM BROADCASTING. Of course, the FCC has issues with that... if you pay attention to the micropower FM scene, it's actually quite similar to what GNU stands for. It's about empowering people.

    The catch is, it's pretty easy to screw up an adjacent station if your signal is screwy and out of spec.

    The low-power FM movement is worth your attention- if you're even reading this article you probably 'get' the importance of micro/local broadcasting. It should come as no surprise that corporate radio has been using Congress and the government to try to stamp out even the possibility of people using local FM broadcasting to provide alternatives- it mirrors what other content industries have been doing with more Slashdot attention. In December 2000 Congress passed an appropriations bill with a rider that was snuck in to halve the number of low power FM licenses the FCC could legally issue. Not only was corporate radio behind this- NPR also supported the illegalization of low power FM broadcasting. McCain (R-AZ) has introduced a bill to counter this and support low power FM again. Furthermore, on February 8, 2002, the Court Of Appeals struck down language in this anti-LPFM act which had prohibited the FCC from issuing a license to anyone who had ever previously been involved with pirate radio. The court held that this was unconstitutional. (funny how both in the judiciary and Congress, these guys are forced to deal with all types of injustice and power grabs, not just the sorts that are close to the hearts of Slashdotters ;) )

    These people are the other side of the coin: transmitters from microwatt to 500 watts and kits for all kinds of nifty things like subcarrier decoders, shortwave, the aviation band etc. I don't know anything about them but their catalog but it would make any true geek absolutely drool, with all the build-it-yourself devices to do arcane and amusing things, and the flashy computerised rackmountable transmitters. Too cool.

    1. Re:Heh. by Chris+Johnson · · Score: 2
      Acknowledged. The trouble with empowering people is that a lot of people are idiots :)

      It's a balance that has to be struck between acknowledging people are idiots- and treating them like it, notably by completely depriving them of the ability to communicate and do this kind of thing. Since radio has been consolidated into small numbers of corporate stations controlling entire radio markets, to some extent it forces idiots to nevertheless try to assert their perceived right to their own radio community, to local independent radio.

      If they could do this WITHOUT being technical idiots, it would be terrific...

  17. DRM Digital Shortwave by Aztech · · Score: 2

    Some guys in Germany are working on a software decoder for DRM, this is basically a new digital radio service for SW/LW/MW radio, there's a few test transmitters running in Europe. The transmissions consist of a COFDM modulated channel and a 20-30kbps AAC stream within, doesn't sound like much but when you can get flawless delivery from Finland to Portugal and farther afield it's not bad and makes old SW look very poor indeed.

  18. Multiple channels by Animats · · Score: 3, Interesting
    Software radios can receive multiple channels at once, provided enough compute power is available. Cell sites use this to receive hundreds of channels without having hundreds of separate receivers.

    This has some possibilities. One is a radio that listens to the entire FM band and, quickly and automatically, builds an MP3 music library of popular music. Legal, too. (Audio Home Recording Act)

    Add-ons to this project could include automatic song identification (there are song-signature databases for this), use of multiple copies to recognize and remove announcer blithering, and intelligent audio cleanup from multiple copies.

    Great open-source project for audio people. Nice device for cars, too.

    1. Re:Multiple channels by Animats · · Score: 2
      You don't have to digitize the raw RF. It's sufficient to digitize the IF, provided that the passband of the IF filters is wide enough to encompass the range of channels you want to receive.

      The hardware device the GNU Radio people are using can digitize a 5.5MHz passband, which is one TV channel. (It's a TV tuner card.) That's about a quarter of the FM broadcast band. Within that passband, the software can extract multiple signals, up to the limits of the compute power available. A two-channel demo is available.

      Receiving two signals of significantly different signal strength may not work, depending on where and how automatic gain control is applied.

  19. how would you even go about implementing the gps? by pangloss · · Score: 2

    also, in the interim, anyone know about how to hook up a gps receiver to a laptop a la cryptonomicon?

    that is, without having to resort to windows-only software that the gps mfr supplies, but rather have programmatic access to the receiver's info via serial/usb/etc?

    even better, a gps receiver that allows all that and is tiny enough that it could actually be used regularly and unobtrusively w/ a laptop.

  20. Re:Sounds interesting, there is a similar project by gnuradio · · Score: 2, Informative

    The DSP-10 is a cool project. Some of the things that distinguish GNU Radio from it is our preference for a *much* wider IF bandwidth, and our use of conventional CPUs instead of DSPs. The vast majority of our code is in C++, versus Analog Devices 21xx DSP assembler.

  21. Watching grass, er, multiply by leonbrooks · · Score: 3, Funny
    Besides, if you ever HAD monitored cellular, you't realize it's about as interesting as watching grass grow.

    That depends on whether you've got a `transmit' button or not.

    One place I worked at left a scanner running in the main office (the boss was more than a bit weird), and one day we got an entire 20-minute conversation between husband (on mobile) and wife (on land-line) discussing the previous weekend's partner-swapping exercise, ratings and so on, exploring the prospects for a repeat and so on.

    Towards the end wife asked if it was wise to discuss this on the 'phone and husband returned copious assurances that since he was on a mobile (but evidently sitting still) the conversation would be chopped up across channels and nobody could make head or tail of it.

    And me with no transmit button. Sigh.
    --
    Got time? Spend some of it coding or testing
  22. Celphone privacy laws? by autopr0n · · Score: 2

    Hrm, I wonder what interaction these types of things are going to have with 'privacy' laws for cellphones. It used to be that you could get radio recivers that could listen to any freqency out there, but today they are restricted from listening in on cellphone conversations.

    Would the advent of software radio bring that to an end, or cause DMCA style restrictions on radio-capable software?

    --
    autopr0n is like, down and stuff.
  23. CDMA is very hard to hack by Frank+T.+Lofaro+Jr. · · Score: 2

    Descrambling CDMA is likely even outside of the abilities of much local law enforcement, and it probably still very difficult even for the Feds.
    They'd probably get access to the base switching stations rather than bother with trying to intercept the radio link.

    CDMA looks like noise - without having the right information about where the various parts of each bit are - you aren't going to even get your hands on the data.

    You need to know the right "chipping" functions and also time synchronize yourself to the network and mobile unit. This is really, REALLY, *REALLY* hard. Probably costs many many thousands of dollars to get equipment that can do it.

    CDMA is spread spectrum - which at one time was classified and only used by the military.

    Sometimes I think declassifying it wasn't a very good idea from a national security perspective...

    --
    Just because it CAN be done, doesn't mean it should!
    1. Re:CDMA is very hard to hack by wowbagger · · Score: 2

      Not with the right equipment, like the stuff I help design. Of course, if you buy a $80,000 1900BSA you rather expect that sort of thing....

  24. Re:how would you even go about implementing the gp by topham · · Score: 2

    Buy any PCCard based GPS (virtually any) and use the text based information they spit out. NMEA-0183.

  25. gps output standard format on serial link by billstewart · · Score: 2
    gps devices generally output standard data formats on a serial link. (Perhaps the manufacturers each put some proprietary data in the stream as well?) (Some GPS devices are PCMCIA cards instead of serial-port, and it wouldn't surprise me if somebody does USB, which may also help with power consumption issues.) Look around for software - somebody's almost certainly done something programmatic for Linux.

    What I want is software that pulls timestamps out of the data stream so it can set a PC clock - either Windoze or Linux is fine, given the limited accuracy I need. (Actually, I've found that GPS reception inside buildings, at least for older handheld and wristwatch units, is bad enough that it's probably not going to be useful unless your lab has windows.)

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  26. Please mod up by billstewart · · Score: 2

    Please mod Eric's article up if you're a moderator this week - he's the authoritative person to be writing about this stuff...

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  27. Re:Digital is *NOT* the way... by Gordonjcp · · Score: 2

    Yeah, I'm still up for giving it a go, but it's not like they've just discovered fire or anything.