Skip to content

troubleshooting

Kamil Brylew edited this page Nov 10, 2026 · 3 revisions

Troubleshooting

Start with read-only discovery

iio_info -u "ip:192.168.10.128:30431"

Record the endpoint, board/firmware version, relevant IP version, device names, channel mapping, and advertised geometry. If a transport problem can be reproduced with iio_info or iio_readdev, include that result; it separates a target/libiio failure from the GUI.

Help → About → Copy Digitizer Details provides the cached endpoint, firmware/image metadata when reported, board attributes, per-channel core versions, MCA ABI, list-mode layout/decoder, DAC output, and IIO device list. It does not poll active hardware. Reconnect to refresh the snapshot; an unknown build identity is different from a missing or unsupported hardware IP version.

Connection succeeds but a workspace is missing

The application enables workspaces by detected capability. Check for the expected devices:

  • no vdpp_pulse_processor/vdpp_input_filter: MCA and IIR current are not available on that channel;
  • no vdpp_lm_frame: list-mode, live PSD, and Coincidence are unavailable;
  • incomplete IDS converter/sensor set: Scope/MCA continue, but PSU/HV is disabled;
  • no vdpp_sync_trigger: two-channel synchronized coincidence cannot arm.

Do not map a missing hardware register to an unrelated statistic. A clear unsupported/capability error is preferable to plausible but false data.

A frozen build reports that libiio is unavailable

The packaged application checks the native libiio runtime after Qt starts and before importing hardware modules. Install the pinned Analog Devices libiio v0.26 runtime and restart the application. A Python binding alone is not enough; the platform DLL/shared library must also be loadable.

The direct backend targets the libiio 0.x API. A host runtime reporting major version 1 is rejected because its compatibility layer and DMA behavior have not been qualified for this client. Do not bypass the check for a release build.

Adding or connecting a digitizer fails

The application validates every requested channel before replacing the current workspace. If transport preparation or controller construction fails, the previous offline/live topology is restored; inspect the first connection error rather than the later cleanup messages.

An endpoint already connected by numeric IPv4/IPv6 address cannot be added again through an mDNS/Avahi hostname. This duplicate rejection is intentional. Use Reconnect for an existing board rather than adding an alias.

Configuration fails with EBUSY

An acquisition core or DMA buffer still owns the hardware. Stop the relevant Scope/MCA/Current/Coincidence activity and wait for worker teardown. A previous script may have crashed with enable=1; stop the core from a safe control path before writing configuration.

After MCA list-mode Stop, Start and configuration controls remain disabled until the reader drains, destroys its native buffer, and releases the hardware gate. Do not interpret this short interlock as a frozen GUI or try to rearm from another path.

If cancellation or joining fails, the reader retains its native buffer and connection until it exits. After a failed MCA session, Acknowledge recovery performs a passive ownership/status check after externally validated recovery; it never resets hardware. A poisoned DMA channel requires a target reboot. Persistent measurement_in_progress=1 after STOP blocks configuration and rearm. A cleared progress bit is still not A07’s final completion fence.

Do not force dma_enable or list ownership gates. Buffer setup/teardown owns them, and direct writes can break the required reader-before-enable order.

List-mode buffer allocation returns EINVAL

Superseded firmware exposes five semantic vdpp_lm_frame scan channels. On the target Linux 5.15 IIO stack, buffer allocation fails with EINVAL (often Open unlocked: -22), including through official iio_readdev.

The supported ABI is IP121 with:

  • frame_records=1024;
  • frame_bytes=16384;
  • record_layout=opaque[16];
  • one repeated-u8 scan element carrying each 16-byte record unchanged.

Upgrade the target driver/firmware. Do not change Python frame geometry or use a partial scan mask as a workaround.

Scope DMA stops with EIO, EINVAL, or a latched fault

Sustained capture can expose target-side Xilinx VDMA DMA_INT_ERR or EOF_EARLY_ERR. The client rejects incomplete frames, stops the core, releases buffer gates, and latches the session. It cannot repair a driver/FPGA fault.

  1. Preserve logs and capture metadata.
  2. Stop and let the reader fully tear down.
  3. Check target dmesg and reproduce with an official libiio reader when possible.
  4. Acknowledge the recovery state before another session.

Repeatedly recreating a buffer in the same file would hide a discontinuity and is deliberately not attempted.

Scope file recording is rejected on IP122 periodic mode

The advertised periodic transport can be decimated and alignment-padded. Scope NDMA v1 cannot describe those fields, so online Current DMA supports the layout but file capture rejects it. This is a file-format limit, not a reason to alter the driver scan mask.

Current values look wrong

  • IIR and Scope DMA are different raw signals; do not share calibration without a physical reference measurement.
  • Confirm zero_code, scale_per_code, unit, sign, DAC baseline, and sensor polarity.
  • In DMA mode, the large raw value is the latest word, not a frame average.
  • A requested gap is not guaranteed observed spacing; inspect timestamps, skipped opportunities, and coverage.

Current DMA or Auto Setup appears unavailable after stop

Wait for DMA buffer teardown rather than only the button state. Current clears its temporary Scope DMA selection after the worker finishes. Use Reset Scope defaults while stopped if the optimized Current geometry is no longer wanted.

Histogram or debug data changes during a read

Large MCA attributes are transferred in chunks and are not atomic while the core is accumulating. Stop acquisition before reading a stable final snapshot. If a remote binary attribute is absent from iio_info and libiio attribute enumeration, retries or a larger client buffer cannot make it reachable; check the target driver/iiod exposure.

A capture exists but may be incomplete

Check the format-specific evidence in Capture Files and Integrity:

  • exact frame/record alignment;
  • .run.json continuity state;
  • IIO JSON sidecar and SHA-256;
  • HDF5 committed_events and capture_complete;
  • driver frame count, DMA fault, and list deadtime;
  • common Coincidence session manifest.

A missing run summary after a crash means finalization did not complete. Existing legacy NDMA v1 captures are unverified even when aligned.

Reporting a useful issue

Include:

  • host OS and application revision;
  • endpoint and channel;
  • firmware/Linux and relevant FPGA IP versions;
  • iio_info device/geometry output;
  • exact action and ownership state when the failure occurred;
  • GUI/system logs and target dmesg;
  • whether official libiio tools reproduced it;
  • capture/run/session sidecars, without presenting simulated data as hardware evidence.

Clone this wiki locally