Direction Finding
In the lab
Four Ettus X310 radios listen together, from about 50 MHz to 2 GHz, and estimate the bearing of an emitter from the phase difference across the array. The band this array was aimed at is VHF. Once a second the master sends a short chirp so each receiver can measure its own path before the next capture.
Digital Design, Software & Firmware
The measurement
The same wave reaches each antenna a fraction of a wavelength apart. That path difference is a phase difference, and the phase difference is the bearing. At 100 MHz, one nanosecond of clock skew is 36 degrees of phase.
Two antennas, one meter apart. A 100 MHz source, 10 km away, 30 degrees off broadside. The geometry calls for 60 degrees of phase. Move one receiver's clock ahead by 1 ns and the same wave reads as 24 degrees, which places the emitter near 11.5 degrees. At 10 km that position is about 3 km from the truth. A wider baseline sharpens the angle. It also makes the array larger, and the clocks harder to hold. Matched cables are only the start. The millimeters of trace that carry the clock count too, and temperature moves both.
Calibration
A shared 10 MHz reference and a pulse-per-second edge bring the radios onto one time. Cables, boards, and the room still add a fixed offset, and that offset is measured out. Each cycle the master sends a chirp. On every radio an FFT splits the capture by frequency and a CORDIC reads the phase of each bin. The slaves then capture the antennas at one agreed instant, subtract the calibration phase as the samples arrive, and forward the differences. The master turns those differences into a bearing.
Each result carries the slave's own timestamp. The clocks were started together, and those timestamps stayed in step over runs of several hours. Clock jitter, the receivers themselves, and quantization in the processing are what this calibration leaves in the answer.
Gateware
The X310 ships with an ISE 14.7 design: a ZPU soft core and a Wishbone bus. The running system is a Vivado design. MicroBlaze takes the place of the ZPU, AXI takes the place of Wishbone, and DDR3 is the Vivado memory controller. DMA streams samples into that memory. An Ethernet MAC carries UDP to the host.
Two blocks are specific to this array. One sequences calibration and capture. The other buffers a capture, runs the FFT, and extracts phase. The master image is a variant of the same design. It distributes the 10 MHz reference and tells each slave when to calibrate and when to listen. A front-end controller programs the LMK04828 and lines capture up with the pulse-per-second.
The chain
Each X310 has two Ethernet ports, so the radios sit in a line. The one beside the host is the master. The MicroBlaze application does not fit in flash beside the FPGA bitstream, so a bootloader small enough for internal BRAM is stored with the bitstream and starts on power-up. It waits for an S-record over Ethernet, writes the image into DDR, checks the checksum, and starts the firmware from there.
The host is a Qt program. It sends the master image to the first radio. That radio finds the next one, still waiting in its bootloader, and the slave image is passed down the line. Each radio does the same for the one after it. When the last radio has started, the host has a count of the chain. Setup is the wiring, then the host.
