2023-04-23 05:53 PM
I am encountering a strange problem on the VL53L5CX sensor. Here is the rundown of my setup:
The external input is simply an interrupt from a pin (yes I do block interrupt calls while this process is running so theres no overlap). Upon this interrupt being fired the following occurs:
This is where the problem occurs, the first 2 sensors have no problem stopping, then the final sensor seems to timeout during this function call and returns an error 49 (decimal). What would cause the stop_ranging() command to fail? How does it even fail? How is it more complicated than to just stop all ranging processes on the sensor MCU? Even if there was no ranging process running on the sensor, the stop_ranging() command shouldn't fail - because it would simply stop what's already stopped. Is there something I'm missing here?
Now that error code might not be exactly right as it changes when the I2C bus has an error. But I'm inclined to believe the I2C bus is fine due to the fact it gets through the entire process before failing. The final call to stop_ranging() on the 3rd sensor is literally the last step.
Solved! Go to Solution.
2023-06-25 03:55 PM
I have downloaded the latest driver and have not encountered this issue yet. At this stage I can say it is fixed, however I will update this post should it happen again.
2023-04-25 08:46 AM
Hello
The issue has been raised internally. We will shortly upload a new version of the driver.
Thank you for your feedback,
Anne
2023-06-12 09:50 PM
any update on this issue?
2023-06-13 02:06 AM
The new driver is curently under test.
Thank you for your patience
2023-06-25 03:55 PM
I have downloaded the latest driver and have not encountered this issue yet. At this stage I can say it is fixed, however I will update this post should it happen again.