Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during interrupt clear #17

Open
Fantantonio opened this issue Nov 7, 2019 · 2 comments
Open

Error during interrupt clear #17

Fantantonio opened this issue Nov 7, 2019 · 2 comments

Comments

@Fantantonio
Copy link

From two VL53L0X sensors connected to pins GPIO 23 & 24 of a Raspberry pi zero w, running VL53L0X_multi_example.py file, I'm having this output:

VL53L0X Start Ranging Address 0x2B

Setting I2C Address to 0x2B
Call of VL53L0X_SetAddress
API Status: -20 : Control Interface Error
VL53L0X Start Ranging Address 0x2D

Setting I2C Address to 0x2D
Call of VL53L0X_SetAddress
API Status: -20 : Control Interface Error
VL53L0X_BETTER_ACCURACY_MODE
Set Accuracy
API Status: -20 : Control Interface Error
VL53L0X_BETTER_ACCURACY_MODE
Set Accuracy
API Status: -20 : Control Interface Error
Timing 20 ms
1 - Error
2 - Error
...
Call of VL53L0X_StopMeasurement
API Status: -20 : Control Interface Error
Call of VL53L0X_StopMeasurement
API Status: -20 : Control Interface Error

I can't understand why this error (API Status: -20 : Control Interface Error), commented as Error during interrupt clear in the Api/core/inc/vl53l0x_def.h, is triggered.
What is going wrong?

@H-Kz
Copy link

H-Kz commented Oct 26, 2020

Hi
Now I'm stucking at the same probrem.
Do you hacve any solution?

pi@raspberrypi4:~/VL53L0X_rasp $ ./bin/vl53l0x_ContinuousRanging_Example VL53L0X PAL Continuous Ranging example Failed to open the i2c bus: No such file or directory Failed to init API Status: -20 : Control Interface Error Close Comms VL53L0X_i2c_close API Status: -20 : Control Interface Error

@Fantantonio
Copy link
Author

No software solution unfortunately! I used a TCA9548A multiplexer and other libraries to get data from two VL53L0X!
I suggest you to get a look on:
adafruit-circuitpython-tca9548a
adafruit-circuitpython-vl53l0x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants