· 3 min read · Gaia Lab

An SDR that is already inside the phone

Final instalment: we are taking everything we learned to the extreme of exposing the modem's transceiver as a SoapySDR device.

A lab SDR is a board with a converter and a clock, and the computer provides everything else. A phone is the same, but with the computer inside: transceiver, front-end and a complete physical layer implemented in the modem’s DSPs. The difference is that the phone is not designed for you to ask it for samples.

That is exactly what we are trying to change.

The idea #

To implement a SoapySDR driver that exposes the modem’s transceiver as one more device. SoapySDR is the common interface spoken by GNU Radio, the analysers and half a dozen tools: if the driver works, the handset shows up in the device list as a USB board would.

The first objective is reception. Transmitting is another problem, and not the most urgent one.

What we already have in our favour #

  • We know how to control the modem: our own commands, states and channels documented by analysing drivers and firmware.
  • We know how to read what it does inside: the DSP traces, the physical-layer chains and their entry points.
  • We know how to disassemble its processor, so an unknown function is no longer a wall.

What is missing #

And here it is worth not overselling:

  • The modem is not a general-purpose SDR. It is not designed to deliver a continuous stream of samples to a host; that path has to be built, not configured.
  • Clock and tuning are not free. Frequency and bandwidth are dictated by the cell: you do not tune anything at any time.
  • The format matters. Samples, scales and timestamps have to be consistent, or the digital receiver will not lock.

Why it is worth it #

Because it changes the question. Until now we used the phone to study the network; with an SDR inside, the phone also becomes a measuring instrument of the air: one more receiver, in your pocket, with the advantage that its physical layer has already been tested against real networks.

And because it closes the arc of the series: we started looking at a location message and ended up building the tools to read, emit and receive. All of it by analysing drivers and firmware, with no manual other than the one we kept writing.

Glossary #

  • SDR (Software Defined Radio): a radio in which modulation and processing are done in software over digital samples.
  • GNU Radio : a free environment for building receivers and transmitters out of blocks.
  • PHY (Physical Layer): the physical layer: modulation, coding and synchronisation, what turns bits into a signal.
  • front-end : the analogue part of the radio: amplifiers, filters and converters.