I have a 1017_2 connected to a VINT hub through about 6" of cable. It attaches fine, and runs fine at the start, but eventually experiences a 0x34 error indicating that the device is not attached. The relays are switching a resistive load (metal film resistors) for balancing battery cells so the inductance should be minimal. Additionally, other than the relay switching noise, there is no significant EMI present (that I know of). Any troubleshooting advice or suggestions how to remedy this issue would be appreciated. Shown below is the information on the connected device.
2024-03-08_10-04-01.png (16.64 KiB) Viewed 59405 times
Attached is a log file. As you can see the 1017 re-enumerates several times before failing. If I run the code again it will reattach and run without issue (for a while). No power cycling is needed.
It's a bit complex, likely an issue with the hub itself.
Two workarounds in the meantime:
1. EnableFailsafe on one of the 1017 channels, and make sure to refresh the failsafe faster then your failsafe timeout - this will keep the device from going to sleep when the relays are off, as it's the sleep mode that's causing the issue.
2. Connect the 1017 via USB instead of VINT - the issue is specific to VINT comms.
I added your "fix" where I continuously (ever ~1/2 second) reset the failsafe and I have not seen the issue since then. So anecdotally that seems to have fixed the issue.
The hubs are connected to a powered usb hub board.