Go Down

Topic: I2C timeout? (Read 335 times) previous topic - next topic

Oscar Sarabando

Hi!

I'm using an I2C network to connect a couple of Arduclemas (an Arduino derivative with screw terminals on all pins, and I2C pullUp resistors).

My problem is this: if one node card (microcontroller) fails or leaves the network, the Master seems to block indefinitely while doing Wire.endTransmission(). I can't seem to find a way to check if the node is alive before talking to it, or recover gracefully (and quickly) when the communication fails. The ideia is to have a timeout when communicating; if it takes more than a few ms just return in error and keep going.

Has anyone found a way to deal with this?
Thanks!
--
Óscar

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy