2025-10-22 8:11 PM - last edited on 2025-10-22 10:15 PM by Peter BENSCH
Hi,
vl53l0x in continue mode ,how to read data_status and in time mode how to set time and read data and data_status?
thanks
Solved! Go to Solution.
2025-10-23 7:24 PM
Hi
About continuous mode, it is same as single short, it needs to use VL53L0X_GetRangingMeasurementData(pDev, &RangingMeasurementData) to read out all the data.
About overall ranging flow, please refer page 12 of the SW UM VL53L0X API User_Manual.fm
Br
Zhiyuan.Han
2025-10-22 9:51 PM
Which function and where to call it, or do you need to check the data correctness for both patterns?
2025-10-23 1:34 AM
Hi
For 53L0X, it can either works in continuous mode or Continuous Timed Ranging mode, you can set the ranging mode by VL53L0X_SetDeviceMode()
and bout timing seting,
once measuring is done and data is ready, you can read out the data by VL53L0X_GetRangingMeasurementData().
for more detail, please visit below two link in www.st.com for more information.
STSW-IMG005 | Product - STMicroelectronics
Br
Zhiyuan.Han
2025-10-23 2:03 AM
Hi,
I only see a single measurement with VL53L0X_GetRangingMeasurementData(),and continue mode not find
2025-10-23 7:24 PM
Hi
About continuous mode, it is same as single short, it needs to use VL53L0X_GetRangingMeasurementData(pDev, &RangingMeasurementData) to read out all the data.
About overall ranging flow, please refer page 12 of the SW UM VL53L0X API User_Manual.fm
Br
Zhiyuan.Han