TOF L3 Module: Measurement Error (Status 255) with Abnormal Ambient Count During Fast Target Switching
Hi ST team,
We are encountering an intermittent issue while using the TOF L3 module in a mid-range distance measurement setup. Below are the details: TOF frame rate: 30ms. Readout rate: 50ms. Distance mode: Medium range.
Issue Description: When a stable target is present within the TOF field of view, it measures correctly. However, if a hand is moved quickly back and forth between the TOF and the target, an error frame occasionally appears. This frame has:
Distance status: 255
Distance value: 8191mm
The following frame typically reports:Distance status: 12
A valid distance value (matching the original target)
Observations and Questions:
All frames with status 255 appear on odd-numbered frames (i.e., those with smaller pulse intervals);
These frames have abnormally high ambient light count rates (around 6x normal), even though the histogram data appears almost identical to normal frames;
We suspect this high ambient count rate might be causing the signal to be discarded by the internal processing, leading to a missed range result;
The next frame (status 12) often contains two target peaks in the histogram (near and far), where the first peak (closer) has a low amplitude (~200), which seems reasonable given status 12 indicates weak signal;
We are wondering:
Are odd frames used for ambient count estimation?
If so, how is ambient count determined on even frames? We noticed some inconsistencies between odd/even frame ambient values.
Request for Support:
What could be the root cause of the unusually high ambient count during these error frames?
Could this be due to interference, saturation, or some internal processing logic?
Are there any recommended configurations or handling approaches to mitigate this issue?
We have collected both histogram and range data for the failing cases.

We need the distance value when the status is 255 because we want to know whether the TOF failed to detect a target at that moment.
Thank you in advance for your support.
