Closed pat1 closed 2 years ago
it's no solved twi_readFrom sometime with bus activity return 0
statistically on ~10.000 sample (12 hours, one sample every 4 sec ) we have 10 Wire.requestFrom failed:
# 45137 : E: hyt_read 0 < 4
# 45520 : E: hyt_read 0 < 4
# 49557 : E: hyt_read 0 < 4
# 102592 : E: hyt_read 0 < 4
# 236445 : E: hyt_read 0 < 4
# 709492 : E: hyt_read 0 < 4
# 1061230 : E: hyt_read 0 < 4
# 1930067 : E: hyt_read 0 < 4
# 1930452 : E: hyt_read 0 < 4
# 3347920 : E: hyt_read 0 < 4
and 4 sample are lost:
# 45553 : E: Sensor is getted... [ FAIL ]
# 1930485 : E: Sensor is getted... [ FAIL ]
# 2154668 : E: Sensor is getted... [ FAIL ]
# 3055751 : E: Sensor is getted... [ FAIL ]
i2c-th disconnected from master have no error. when connected to the master sometime happen:
debugging Wire library seems that in TwoWire::requestFrom the address transmission terminate without error but twi_readFrom return 0