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

BME280 Error: Could not read from device [0x77 at 0]: 263 #68

Closed
3 tasks done
Djaison opened this issue Feb 25, 2020 · 5 comments
Closed
3 tasks done

BME280 Error: Could not read from device [0x77 at 0]: 263 #68

Djaison opened this issue Feb 25, 2020 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@Djaison
Copy link

Djaison commented Feb 25, 2020

Devcie type

  • ESP32

Framework version

  • ESP-IDF latest master

Using Library

  • bmp280

Hello! I am using a library bmp280, sensor bme280. I compile the program from the examples folder. I use GPIOs 21,22 with 4.7k pull up resistor. After power up, I see in serial monitor the following:

E (4000) I2C_DEV: Could not read from device [0x77 at 0]: 263
E (4000) BMP280: Sensor not found
ESP_ERROR_CHECK failed: esp_err_t 0x107 (ESP_ERR_TIMEOUT) at 0x40086304

This sensor works great with other libraries in the Arduino environment. I compared the signals in both cases with the help of logic analyzer. On this image I see that the sensor responds to the read request BMP280_REG_ID register, but the program does not see this, and driver wait 1000ms timeout.
1

What could cause this problem? Frequency clock I decreased to 100kHz.
Please, help me!

@Djaison
Copy link
Author

Djaison commented Feb 25, 2020

In the picture below, signals received with Arduino library and work fine
2

@UncleRus
Copy link
Owner

This is definitely a bug. Thanks for the report!

@UncleRus UncleRus self-assigned this Feb 26, 2020
@UncleRus UncleRus added the bug Something isn't working label Feb 26, 2020
@UncleRus
Copy link
Owner

Strange, I just tested the BMP280 example and everything worked fine:

BMP280: found BMP280
Pressure: 97365.36 Pa, Temperature: 24.69 C
Pressure: 97365.03 Pa, Temperature: 24.70 C
Pressure: 97367.66 Pa, Temperature: 24.70 C
Pressure: 97364.78 Pa, Temperature: 24.70 C
Pressure: 97367.73 Pa, Temperature: 24.71 C

Unfortunately, I do not have bme280 at hand for the test.

@UncleRus
Copy link
Owner

UncleRus commented Apr 1, 2020

@Djaison Could you test this again with latest esp-idf-lib master? It looks like the 1d8ea2d fixes this bug.

@Djaison
Copy link
Author

Djaison commented Apr 24, 2020

@UncleRus It is working! Thank you!

@Djaison Djaison closed this as completed Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants