Page 1 of 1

Reset I2C Bus | ESP32

Posted: Thu Jan 06, 2022 8:31 am
by Yuvaraj1867
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.

Re: Reset I2C Bus | ESP32

Posted: Fri Jan 07, 2022 8:29 am
by Yuvaraj1867
Any update?

Re: Reset I2C Bus | ESP32

Posted: Sat Jan 08, 2022 9:22 am
by ullixesp
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.