When dozens of students share a bank of over-the-air software-defined radios in the same room, following a few simple operational habits keeps co-channel interference low and prevents common student debugging pitfalls.
Managing Co-Channel Interference
When multiple over-the-air (OTA) SDRs are located in the same room, simultaneous transmissions can overlap if students use the exact same carrier frequency or leave cyclic transmit buffers running. Three best practices keep interference minimal:
- Halt Transmissions Upon Script Completion: Instruct students (and provide starter code templates) to always call
sdr.tx_destroy_buffer()andsdr.rx_destroy_buffer()at the end of their Python scripts so a radio does not continue transmitting after their experiment finishes. - Distribute Carrier Frequencies: Rather than having every student transmit at exactly
915.0 MHz, either assign a distinct default carrier frequency to each OTA SDR or instruct students to select a carrier frequency across the filter passband (for example, between905 MHzand925 MHzwithin the 902–928 MHz ISM band). - Combine Hardware Filters with Software Lockouts: Keep 30 dB SMA attenuators on all loopback SDRs, place inline attenuation and band-pass filters before OTA transmit antennas, and configure software frequency and gain bounds on the server so out-of-band transmissions are rejected automatically.
ADALM-PLUTO Tips for Student Labs
If your course uses the ADALM-PLUTO, sharing the following hardware nuances in your lab handouts will save students hours of debugging:
1. Always Transmit Complex Baseband Signals
The Pluto SDR expects transmitted baseband arrays to have a complex data type (np.complex64 or np.complex128) and can behave unexpectedly if passed purely real 1D arrays. Even when transmitting BPSK, M-PAM, or a real sinusoid, cast the baseband array to complex (e.g., tx_signal = tx_bits.astype(np.complex64)) or use 2D constellations such as QPSK.
2. Scale Transmit Waveforms to 14-Bit DAC Range
The Pluto DAC expects the real (I) and imaginary (Q) components of transmitted samples to span [-2^14, +2^14-1] ([-16384, +16383]). Passing normalized unit-amplitude floats ([-1.0, +1.0]) without scaling results in virtually zero transmitted power. Instruct students to normalize and scale their waveform before calling sdr.tx():
tx_signal_scaled = (tx_signal / np.max([np.abs(np.real(tx_signal)), np.abs(np.imag(tx_signal))])) * (2**14 - 1)
sdr.tx(tx_signal_scaled)3. Watch for Receiver ADC Clipping
Received I and Q samples from the Pluto’s 12-bit ADC range from -2048 to +2047. If students observe flat-topped waveforms clipping near -2048 or +2047, the received signal is saturating the ADC front-end and they should reduce rx_hardwaregain_chan0 or tx_hardwaregain_chan0.
4. Use Manual Receive Gain Control
The Pluto supports three receive gain modes: 'manual', 'slow_attack', and 'fast_attack'. For communications labs (especially when measuring SNR or sweeping transmit power for BER curves), automatic gain control (AGC) will rescale the signal dynamically and distort power measurements. Recommend setting sdr.gain_control_mode_chan0 = 'manual' and choosing a fixed sdr.rx_hardwaregain_chan0 (e.g., 20 to 40 dB) that avoids clipping.
5. Clear Stale Receive Buffers After Changing Settings
Before capturing a newly transmitted signal or after changing settings on an ADALM-PLUTO, call sdr.rx_destroy_buffer() so stale samples from an earlier buffer are cleared:
sdr.rx_destroy_buffer()
rx_data = sdr.rx()Connecting to Multiple SDRs at Once
In early labs, a single SDR (transmitting and receiving to itself in loopback or OTA) is sufficient. For synchronization and full link labs where students transmit from one SDR to a second independent SDR, students simply reserve two radios in the CLI and instantiate two adi.Pluto() objects in the same Python script:
from remoterf.drivers.adalm_pluto import adi
sdr_tx = adi.Pluto(token="Pluto_00@ucla") # Transmitter SDR handle or token
sdr_rx = adi.Pluto(token="Pluto_01@ucla") # Receiver SDR handle or token
# Configure and run cross-device experiment
...
sdr_tx.tx_destroy_buffer()
sdr_tx.rx_destroy_buffer()
sdr_rx.tx_destroy_buffer()
sdr_rx.rx_destroy_buffer()Managing Lab Deadlines
- Encourage offline/loopback development first: Remind students that they can write and debug 90% of their Python DSP pipeline offline (or on a simulated/loopback waveform) before reserving OTA radio time.
- Remind students to cancel unused slots (
cancelres): If a student reserves three consecutive 30-minute slots and finishes in the first 20 minutes, canceling the remaining slots in the CLI frees the radio immediately for classmates. - Keep 30-minute slots with a 3-slot concurrent cap: This prevents any single student from monopolizing hardware on the night an assignment is due while still allowing back-to-back reservations when radios are free.