cancel
Showing results for 
Search instead for 
Did you mean: 

VL53L8CX vl53l8cx_get_power_mode returning 0x05

MSkrt
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
MSkrt
Associate

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

View solution in original post

1 REPLY 1
MSkrt
Associate

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