OPEnSLab-OSU / Loom-V4

Open Source Internet Of Things Rapid Prototyping Framework For Environmental Sensing Applications
8 stars 1 forks source link

Loom Testing: i2c Need to double check NAK recovery for all sensors #41

Closed udellc closed 2 years ago

udellc commented 2 years ago

If an i2c sensor experiences an outage or malfunction in the field, it could hang the entire system. We need to test commonly used i2c sensors soon, if not all of them on Loom eventually, for recovery if unplugged during operation.

WL-Richards commented 2 years ago

All I2C sensors now have a NAK return built in to the measure function

udellc commented 2 years ago

@jamopopper , can you run a test on a few random i2c sensors to confirm? Initialize and run with a few i2c sensors attached; confirm logging; then remove sensors mid-operation in between sample cycles and see if program hangs.

jamopopper commented 2 years ago

Can confirm it works when using multiple sensors and unplugging wires on either and both sensors.