Page 1 of 1

Phidget 1017_2 disconnecting from VINT hub

Posted: Fri Mar 08, 2024 9:24 am
by ProtonTim
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
2024-03-08_10-04-01.png (16.64 KiB) Viewed 5700 times

Re: Phidget 1017_2 disconnecting from VINT hub

Posted: Fri Mar 08, 2024 10:13 am
by Patrick
Can you enable library logging in your application and send an INFO level log covering the detach event?

Does the 1017_2 recover and reattach, or does it need a power cycle to come back?

-Patrick

Re: Phidget 1017_2 disconnecting from VINT hub

Posted: Fri Mar 08, 2024 1:44 pm
by ProtonTim
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.
phidgetlog.log
(7.73 KiB) Downloaded 43 times

Re: Phidget 1017_2 disconnecting from VINT hub

Posted: Fri Mar 08, 2024 4:03 pm
by jdecoux
We have replicated the issue and are working on a fix.

Re: Phidget 1017_2 disconnecting from VINT hub

Posted: Tue Mar 12, 2024 9:15 am
by ProtonTim
Can you give me an estimate of when that might be completed?

Re: Phidget 1017_2 disconnecting from VINT hub

Posted: Tue Mar 12, 2024 9:24 am
by Patrick
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.

-Patrick

Re: Phidget 1017_2 disconnecting from VINT hub

Posted: Thu Mar 14, 2024 5:04 pm
by Patrick
Further investigation shows that the issue we found only affects HUB0000_1 and not HUB0002_0.

I wonder if it could be a power issue. I see that you have two VINT hubs - I'd recommend putting the 1017 on a different hub than the two OUT1100.

How much USB power is available to the VINT Hubs? Are they attached to the computer directly, through a powered hub, or through an unpowered hub?

-Patrick

Re: Phidget 1017_2 disconnecting from VINT hub

Posted: Wed Mar 20, 2024 2:56 pm
by ProtonTim
Patrick,

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.

Tim

Re: Phidget 1017_2 disconnecting from VINT hub

Posted: Thu Mar 21, 2024 10:20 am
by Patrick
We are releasing new firmware for 1017 in the next release cycle that addresses the sleep issue.

-Patrick