Reset I2C Bus | ESP32

Yuvaraj1867
Posts: 63
Joined: Wed Mar 06, 2019 4:39 am
Contact:

Reset I2C Bus | ESP32

Postby Yuvaraj1867 » Thu Jan 06, 2022 8:31 am

Hi,

Do we have any function to Reset the I2C bus only?

There are four different sensors are connected to my ESP32 I2C line. If any one of the sensors not working then to read the other sensor's value I need to reset the I2C bus. Now I'm resetting the complete module by calling the software reset function(esp. reset()).
Instead of resting ESP, I want to reset only the I2C bus line.

Yuvaraj1867
Posts: 63
Joined: Wed Mar 06, 2019 4:39 am
Contact:

Re: Reset I2C Bus | ESP32

Postby Yuvaraj1867 » Fri Jan 07, 2022 8:29 am

Any update?

ullixesp
Posts: 83
Joined: Wed Oct 16, 2019 9:34 am
Location: Germany

Re: Reset I2C Bus | ESP32

Postby ullixesp » Sat Jan 08, 2022 9:22 am

Are you even talking about the ESP32? You say to have used an ESP.reset() in the ESP32; but this exists only in the ESP8266. The ESP32 only has a ESP.restart(), which may also give problems, see this posting: viewtopic.php?f=19&t=25324

Re the I2C - Reset: AFAIK there is no command to do that. Cycling the SCL clock 9 times is one frequent suggestion, but I have no idea how to do that within the ESP32 Wire environment.

Who is online

Users browsing this forum: No registered users and 90 guests