Skip to content

B210/AD9361 - Hidden DC offset degrades reception on first tunes #892

@gibbi

Description

@gibbi

Issue Description

When initializing a B210, the DC offset is calibrated before the streamer is started. While additional DC compensation can seemingly reduce the offset, the physical offset at the ADC is persisting unless further tuning operations with more than a 200 MHz frequency change trigger an internal recalibration.

This effect can be severe at higher frequencies and gain settings. Offsets of up to 0.7 full scale have been observed. This significantly limits ADC headroom and dynamic range in cases where the initial tune persists for the lifetime of the application.

Setup Details

This issue can be reproduced with UHD versions from 4.9 down to 3.10 (likely all previous releases). The host OS appears to be irrelevant (Ubuntu 24.04 was used).

Only a B210 with terminated ports is required. A signal generator is used for further verification.

Steps to Reproduce the Problem

  • Attach a signal generator and inject a CW signal at 5.801 GHz that is close to clipping on channel A.
  • Record using rx_samples_to_file at 5.8 GHz with maximum gain:
    • with DC compensation enabled (File A)
    • without DC compensation (File B)

Workaround

  • Modify rx_samples_to_file to tune from 5.8 GHz to 5.0 GHz and back after get_streamer() is called (this forces an internal recalibration).
  • Record using mod_rx_samples_to_file at 5.8 GHz with maximum gain and DC compensation disabled (File C).

Expected Behavior

  • File A should exhibit no DC spike after a few milliseconds.
  • File B should exhibit a reasonably small DC offset (e.g., < 0.1 FS), and the CW signal should not clip.

Actual Behavior

  • File A exhibits severe artifacts (see attached plot) when the initial DC offset exceeds 0.5 FS. This appears to be hardware-dependent, so on most B210 units File A may not appear suspicious.
  • File B consistently exhibits a high DC offset on channel A (0.3–0.7 FS), and the CW signal is clipping.
  • In File C, the forced recalibration consistently reduces the DC offset to a reasonable level (< 0.1 FS), and the CW signal is not clipping.

Additional Information

I can provide multiple B210 units with severe initial DC offset; all are brand new. The offset appears to decrease with each successive tune, but remains persistent if no retuning is performed.

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions