Skip to main content
Associate
June 13, 2024
Solved

VL53L8CX vl53l8cx_get_power_mode returning 0x05

  • June 13, 2024
  • 1 reply
  • 782 views

Hi I have 4 sensors in configuration all have separate address and initialize ok. when first sensor start ranging I check the state vl53l8cx_get_power_mode wake it up and it ganges with no errors. but then I want to put it to sleep, so I again check the state  vl53l8cx_get_power_mode and sensor gives me 0x05 value instead of 0x04 expecting for wakeup state. Any reason for that behaviour or what does state 0x05 mean?

This topic has been closed for replies.
Best answer by MSkrt

Hi, I solved the issue!

The hint is in the -a-guide-for-using-the-vl53l8cx-...

Before you do anything with the sensor (even ask for status) you need to stop ranging by calling vl53l8cx_Stop_ranging(); function. After that, you can set parameters with no problem.

By

1 reply

MSkrtAuthorBest answer
Associate
June 17, 2024

Hi, I solved the issue!

The hint is in the -a-guide-for-using-the-vl53l8cx-...

Before you do anything with the sensor (even ask for status) you need to stop ranging by calling vl53l8cx_Stop_ranging(); function. After that, you can set parameters with no problem.

By