Back Homeland

Read Homeland PDF Online - Page 165

Chapters (26)
  1. Titlepage
  2. Title Page
  3. Copyright Notice
  4. Dedication
  5. Chapter 1
  6. Chapter 2
  7. Chapter 3
  8. Chapter 4
  9. Chapter 5
  10. Chapter 6
  11. Chapter 7
  12. Chapter 8
  13. Chapter 9
  14. Chapter 10
  15. Chapter 11
  16. Chapter 12
  17. Chapter 13
  18. Chapter 14
  19. Chapter 15
  20. Epilogue
  21. Afterword by Jacob Appelbaum
  22. Afterword by Aaron Swartz
  23. Acknowledgments
  24. Bibliography
  25. Also by Cory Doctorow
  26. About the Author

Software-defined radio is hot stuff, and it’s kind of snuck up on the world without us noticing much. Old-fashioned radios work with a little quartz crystal, like the one in an electrical watch. Quartz vibrates, buzzing back and forth at a rate that’s determined at the time that it’s manufactured. You choose a crystal, build a circuit around it, and the radio is done—it can tune in to any signals that are inside the vibrational frequency of the crystal. One radio works for tuning in to GPS satellites, another to CDMA cellular phone signals, another for FM radio, and so on.

But SDR is programmable radio. Instead of a crystal, it uses a fast analog-to-digital converter, a little electronic gizmo that takes any analog signal off a sensor (say, light patterns off an electric eye, or sound patterns off a microphone) and turns it into ones and zeros. You connect the converter to a radio antenna and tell it what band to listen in on, and then you use standard software to make sense of what it receives.

What this means is that the same box can be used to read air-traffic signals, police band, CB radio, analog TV, digital TV, AM radio, FM radio, satellite radio, GPS, baby monitors, eleven flavors of WiFi, and every cellular phone standard ever invented, all at once, provided the converter is fast enough, the antenna is big enough, and the software is smart enough. It’s the radio-wave equivalent of inventing a car that can turn itself into a bicycle, a jumbo jet, a zeppelin, an ocean liner, or a performance motorcycle just by loading different code into its computer. It’s badass.

Lemmy’s UAVs had some off-the-shelf SDRs he’d bought from an open-source hardware company called Adafruit in New York. Adafruit sells electronics that come with full source code and schematics, complete road maps for remaking them to do your bidding. Everyone at Noisebridge loved their SDRs and other gear. And since there were thousands of hackers and tinkerers around the world who worked with the Adafruit SDRs (and all the other versions that Adafruit’s competition made from the same plans), there was a lot of very clean, very well-documented code for talking to them.

I dove into this in the passenger seat, vaguely aware that the car was lurching from stop to start, turning corner after corner, as Lemmy sought out a spot close to the protest.

“What’s the verdict, doc?” he said, as he engaged the parking brake. “Is my code going to live?”

I shrugged. “Looks about right to me. Am I right in thinking you’ve just pasted in the code examples from the tutorials with a couple of lines tying each module in with the last?”

He grinned. “Yup. I treat writing code like making a cake from a cake mix: pour it into a bowl, add an egg and a cup of water, stir, and throw it in the oven. It’s not always pretty, but it’s always a cake.”