espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.86k stars 7.32k forks source link

SHT31 I2C communication fails after SNTP gets time (IDFGH-12993) #13944

Open paduc77 opened 5 months ago

paduc77 commented 5 months ago

Answers checklist.

IDF version.

ESP-IDF v5.2.1-dirty

Espressif SoC revision.

ESP32 v3.0

Operating System used.

Windows

How did you build your project?

Eclipse IDE

If you are using Windows, please specify command line type.

CMD

Development Kit.

ESP32 LoLin

Power Supply used.

USB

What is the expected behavior?

SHT31 and SNTP work together without any issue.

What is the actual behavior?

SHT31 measure the temperature and humidity perfectly but when the SNTP time synchronization is finished the I2C communication will be broken and ESP can't communicate with the sensor anymore. The strange thing is that on the same pins there is a OLED display which continoues working.

Steps to reproduce.

Connect SHT31 to ESP32 board. Connect WiFi. Synchronize time.

Debug Logs.

-

More Information.

-

0xjakob commented 5 months ago

@paduc77 If an OLED display is connected to the very same pins as the SHT31, isn't it possible that these two devices interact with each other and cause the issue?

paduc77 commented 5 months ago

@0xjakob Thanks for the hints, but without SNTP or when the SNTP is not synchronized the OLED and SHT31 work together without any issue.

AxelLin commented 3 weeks ago

@paduc77 Does https://github.com/espressif/esp-idf/issues/12860#issuecomment-2413975957 work for you?