4
we lose ourselves when we move to another country,” says Margalit Rabinovich, an Israeli-born family therapist in Newton, Mass., who specializes in issues of relo- cation and cultural interaction and works extensively with foreign computer engi- neers. “It makes people feel less good about themselves. They start to question their ability to perform their jobs, and it cre- ates a negative loop. If you understand this ahead of time, you can prepare for it.” Engineers do have one advantage, thanks to the nature of their work. “Engineers around the world tend to be like-minded and share the common lan- guage of technology,” says Redha Alhaidar, who noticed this bond while working in his native Saudi Arabia as a liaison to expats. He has since earned a master’s in communications, culture, and tech- nology from Georgetown University, in Washington, D.C. “It’s sometimes easier for them to fit into a different culture, because their exchange is science and math—it’s one plus one equals two. It’s not about different opinions or politics. So they often can come to an agreement or consensus more readily.” What does this all add up to for the peripatetic engineer? Establish work- ing relationships by building from com- mon ground, think before you speak, and remember the old adage, “When in Rome, do as the Romans do.” Try to enjoy, or at least accept, the differences between the local culture and what you’re used to. You could end up having the time of your life—and help your career to boot. n AbOUt tHE AUtHOR SUSAN KARlIN is an award-winning journalist ([email protected]). She has contributed to The New York Times, Forbes, and Discover. tO PRObE FURtHER the University of Washington, in Seattle, maintains a guide to books and Web sites relating to business culture, etiquette, and customs around the world at http:// www.lib.washington.edu/business/guides/ culture.html. A database of sites addressing interna- tional business and culture by topic is avail- able at http://dmoz.org/business/business_ Services/Communications/Crosscultural. What’s going to be the next big thing in wireless technology? My bet is software-defined radio, and thanks to a piece of hardware called the Universal Software Radio Peripheral, or USRP, you can get right to the bleeding edge today. Currently, adding an audio, video, or data stream to a radio signal so it can be broadcast—a process known as modulation—is nearly always done by dedicated electronics. The same is true with the reverse pro- cess—demodulation—required to receive a transmission. Radio waves can be modu- lated in any number of ways, and each way requires different circuitry. This is why you can’t, say, use a TV designed for the U.S. NTSC broadcast standard and expect it to work in Europe, which uses mostly the PAL standard. The idea behind software-defined radio is to do all that modulation and demodu- lation with software instead of with dedi- cated circuitry. The most obvious benefit is that instead of having to build extra cir- cuitry to handle different types of radio signals, you can just load an appropriate program. One moment your computer could be an AM radio, the next a wireless data transceiver—and then perhaps a TV set. Or you could leverage the flexibility of software to do things that are difficult, if not impossible, with traditional radio setups. Want to broadcast an emergency message on every FM band? Scan a dozen walkie-talkie channels at once? Or design and test a new wireless data protocol? No problem with the software radio. Researchers are currently using software radio–based systems to help them work on problems in realms that include radio astronomy, telecommuni- cations, and medical imaging. Already a number of commercial products rely on software radio. Hardware for Your SofTware radio How to get to the cutting edge of radio technology By STepHen caSS ToolS & ToyS www.spectrum.ieee.org R E S O U R C E S

Tools & Toys: Hardware for your Software Radio

  • Upload
    s

  • View
    219

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Tools  & Toys: Hardware for your Software Radio

we lose ourselves when we move to another country,” says Margalit Rabinovich, an Israeli-born family therapist in Newton, Mass., who specializes in issues of relo-cation and cultural interaction and works extensively with foreign computer engi-neers. “It makes people feel less good about themselves. They start to question their ability to perform their jobs, and it cre-ates a negative loop. If you understand this ahead of time, you can prepare for it.”

Engineers do have one advantage, thanks to the nature of their work.

“Engineers around the world tend to be like-minded and share the common lan-guage of technology,” says Redha Alhaidar, who noticed this bond while working in his native Saudi Arabia as a liaison to expats. He has since earned a master’s in communications, culture, and tech-nology from Georgetown University, in Washington, D.C. “It’s sometimes easier for them to fit into a different culture, because their exchange is science and math—it’s one plus one equals two. It’s not about different opinions or politics. So they often can come to an agreement or consensus more readily.”

What does this all add up to for the peripatetic engineer? Establish work-ing relationships by building from com-mon ground, think before you speak, and remember the old adage, “When in Rome, do as the Romans do.” Try to enjoy, or at least accept, the differences between the local culture and what you’re used to. You could end up having the time of your life—and help your career to boot. n

AbOUt tHE AUtHORSUSAN KARlIN is an award-winning journalist ([email protected]). She has contributed to The New York Times, Forbes, and Discover.

tO PRObE FURtHERthe University of Washington, in Seattle, maintains a guide to books and Web sites relating to business culture, etiquette, and customs around the world at http://www.lib.washington.edu/business/guides/culture.html.

A database of sites addressing interna-tional business and culture by topic is avail-able at http://dmoz.org/business/business_Services/Communications/Crosscultural.

What’s going to be the next big thing in wireless technology? My bet is software-defined radio, and thanks to a piece of hardware called the Universal Software Radio Peripheral, or USRP, you can get right to the bleeding edge today.

Currently, adding an audio, video, or data stream to a radio signal so it can be broadcast—a

process known as modulation—is nearly always done by dedicated electronics. The same is true with the reverse pro-cess—demodulation—required to receive a transmission. Radio waves can be modu-lated in any number of ways, and each way requires different circuitry. This is why you can’t, say, use a TV designed for the U.S. NTSC broadcast standard and expect it to work in Europe, which uses mostly the PAL standard.

The idea behind software-defined radio is to do all that modulation and demodu-

lation with software instead of with dedi-cated circuitry. The most obvious benefit is that instead of having to build extra cir-cuitry to handle different types of radio signals, you can just load an appropriate program. One moment your computer could be an AM radio, the next a wireless data transceiver—and then perhaps a TV set. Or you could leverage the flexibility of software to do things that are difficult, if not impossible, with traditional radio setups. Want to broadcast an emergency message on every FM band? Scan a dozen walkie-talkie channels at once? Or design and test a new wireless data protocol? No problem with the software radio.

Researchers are currently using software radio–based systems to help them work on problems in realms that include radio astronomy, telecommuni-cations, and medical imaging. Already a number of commercial products rely on software radio.

Hardware for Your SofTware radioHow to get to the cutting edge of radio technologyBy STepHen caSS

To

ol

S &

To

yS

www.spectrum.ieee.org

RESOURCES

Page 2: Tools  & Toys: Hardware for your Software Radio

QU

INN

NO

Rt

ON

wHile SofTware radio is still very much a work in progress, and general-purpose processors still lack the computing power to fulfill all the dreams of enthusiasts, you can get a taste of the future with the USRP. The hardware works in concert with free software developed by the GNU Radio project, an international collaboration of programmers who donate their time and skills.

The USRP acts as an RF front end for a computer running the GNU Radio soft-ware, converting radio waves picked up by an antenna into digital copies that the computer software can handle or, con-versely, converting a wave synthesized by the computer into a radio transmis-sion. I tested GNU Radio and the USRP together on both Linux and Mac OS X computers, but the GNU Radio software will also work with other RF front ends, and it can be used with prerecorded sig-nal samples in the absence of any radio hardware. Likewise, the USRP can be used with proprietary software such as Matlab and LabView, or with home-brewed code.

The USRP is made by Ettus Research, in Mountain View, Calif., and costs US $550 for the basic motherboard. This square motherboard, 16 centimeters on a side, houses a field-programmable gate array (FPGA) to do heavy-duty signal pro-cessing, as well as the circuitry required for talking with a Mac or PC via a USB 2.0 connection.

The motherboard has four expansion

ports—two for receiving radio signals and two for transmitting signals. Various daughterboards sold separately by Ettus Research are plugged into these ports; different daughterboards handle differ-ent frequency ranges, giving the USRP an overall potential range of 0 hertz to 2.9 gigahertz, which covers everything from AM radio, through FM and televi-sion, to beyond Wi-Fi.

Daughterboards sell for $75 to $275 each; a typical example would be the TVRX, which can receive signals in the 50- to 870-megahertz range and sells for $100. The USRP is not restricted to tuning in one frequency at a time, because it can handle signals as wide as 16 MHz. The architecture also supports MIMO—multiple input, multiple output of simultaneous radio signals—which is the underlying technical approach behind next-generation wireless data and cell-phone standards.

The USRP is clearly a labor of love for Matt Ettus, the man behind Ettus Research, and the motherboard and daughterboards are an engineer’s delight. Plenty of interconnects for hardware hackers are provided, and detailed sche-matics, along with the Verilog code that configures the FPGA, can be downloaded from the Ettus Research Web site at http://www.ettus.com.

Ettus also sells a number of anten-nas and cables, and the company sup-plied me with a general-purpose antenna optimized for 900 MHz to 2.6 GHz. And maybe it’s just me, but make sure you

www.spectrum.ieee.org

RESOURCESRADIO STAR: Univeral Software Radio Peripheral designer Matt Ettus poses with his invention and some of the daughterboards used to operate in different frequency ranges.

Page 3: Tools  & Toys: Hardware for your Software Radio

www.spectrum.ieee.org October 2006 | IEEE Spectrum | NA 55

add cables to your purchase: Most of the USRP daughterboards use SMA-F con-nectors for hooking up antennas, and it turned out to be surprisingly difficult to find a local retailer who could sell me a suitable cable [see “The Back Story” in this issue].

Aside from the cable woes, setting up the hardware was easy. Unfortunately, the software side didn’t go as smoothly.

The GNU Radio software, in addition to its own code, relies on a lot of third-party software from other free and open-source projects. Getting all this additional software up and running is actually the trickiest part of setting up GNU Radio, and the difficulty was compounded by both a lack of reliable documentation and out-of-date software.

In the end it took many frustrating hours, lots of Googling, a phone call to Matt Ettus (who is also a contributor to the GNU Radio project), and several false starts to get my Linux-based system up and running properly.

The root of my problem was two-fold. First, the official release of the GNU Radio software provided on the project’s Web site (http://www.gnu.org/software/gnuradio) was obsolete, as was the installation tutorial the site linked to—which led to my second problem. Following these instructions, I had tried to install all the supporting software by compiling it from source code: a long, difficult process that I never got to work quite right.

Finally, following tips from Ettus, along with parts of the available docu-mentation that still seemed to make sense, I started over with a blank slate, using a fresh install of Linux Mandriva 2006 Free Edition as my operating system. My plan was to download the support-ing infrastructure in the form of prebuilt binaries that didn’t have to be compiled, and then download and compile the lat-est version of the GNU Radio software directly from the developers’ own source code repository.

Two and a half fairly pain-free hours later, I had a local FM station blaring from my computer’s speakers. [For a step-by-step description of what worked for me, see “Installing the USRP and GNU Radio” at http://spectrum.ieee.org/oct06/swradioinstall.] As a more advanced exercise to make sure everything was working, I downloaded and installed additional code for viewing analog TV

signals; while I was able to get it to run pretty easily, I still couldn’t produce a watchable picture, because this feature is so new that no one’s yet written the code to de-interlace the raw TV trans-mission! (There is code available for watching HDTV digital transmissions, but because of the performance limits of current processors, the signal can’t be decoded in real time.)

Incidentally, I had first installed the USRP and GNU Radio system on my OS X system fairly easily, mainly thanks to a good installation guide (http://staff.washington.edu/jon/gr-osx/gr-osx.html). Unfortunately, I’d used the official release of the GNU Radio software, which did not include sound support for OS X at that time.

To be fair, problems with third-party

Page 4: Tools  & Toys: Hardware for your Software Radio

56 IEEE Spectrum | October 2006 | NA www.spectrum.ieee.org

SOUL OF THE MACHINE: The Universal Software Radio Peripheral motherboard provides slots into which daughterboards, such as the one in the upper left cor-ner, can be inserted. Different daughterboards handle various frequency ranges.

code, rapidly evolving soft-ware, and documentation are endemic to free and open-source software proj-ects. Still, there is no get-ting around the fact that installing GNU Radio is a particularly difficult pro-cess for those new to it. Ettus says the GNU Radio project hopes to establish a stable working official release before too long, and the project will soon replace, or at least remove, the dead-end software and documentation that’s on the home page.

once you Have the soft-ware up and running, you’ll need to know that programs for GNU Radio are written using the C++ and Python languages. The conceptual approach is to treat the various parts of the sys-tem as modules that send information to one another, allowing programmers to concentrate on whatever piece they are interested in, while treating the other modules as black boxes.

Routing between modules is done with Python, so that

a developer might write a Python program that uses an off-the-shelf “source” mod-ule, which grabs a chunk of radio spectrum from the hardware, and a similar “sink” module, which sends the output of the program to, say, a set of speakers or a radio transmitter. In between the source and sink modules the developer could put a custom signal-processing module, which itself would be writ-ten in C++ (signal process-ing is not done with Python for performance reasons). This gives developers the abil ity to assemble work-ing systems rapidly. Plenty of sample programs are included with the software to give new developers a head start.

Ultimately, despite the instal lation headaches I encountered, it is clear that the USRP and GNU Radio have immense potential, and the full range of possible applications is not yet fore-seeable. For those who have the technical chops and want a sneak preview of things to come, the USRP and GNU Radio deserve attention. n

RESOURCES

RA

Nd

I SIl

bER

mA

N