2025-02-08 02:38 AM
We found a problem with VL53L1CB, After VL53L1_GetMeasurementDataReady returns 0, VL53L1_GetMultiRangingData returns VL53L1_ERROR_ZONE_GPH_ID_CHECK_FAIL. What causes this problem?
Thank anyone for a little help
2025-02-10 07:40 AM
I think you want VL53L1_GetMeasurementDataReady to return a 1 to indicated that a measurement was ready.
I believe that error will go away once the measurement is actually ready. Although I did not find any useful references to it in the code. (There is just the function that translates the error to a string - which is not really helpful.)
Try starting the sensor and waiting a good long (At least whatever you have set for Timing Budget) time before calling VL53L1_GetMeasurementDataReady. You will know the sensor has finished, and you will know what VL53L1_GetMeasurementDataReady is supposed to return when done.
- john
2025-02-10 05:38 PM
Thank you very much for your response.
VL53L1_GetMultiRangingData(VL53L1_DEV Dev, VL53L1_MultiRangingData_t *pMultiRangingData) *pMultiRangingData in this function returns 1, I also waited until *pMultiRangingData was 1 before executing VL53L1_GetMultiRangingData. So I don't know why this result is returned.
In addition, I want to determine whether the ranging performance under the drive of STSW-IMG019 is LONG>MEDIUM>SHORT. I see MEDIUM>LONG>SHORT in um2133, and the actual test is LONG>MEDIUM>SHORT.
Thank anyone for a little help