Phidget 1017_2 disconnecting from VINT hub

Comments & issues
Post Reply
ProtonTim
Phidgetly
Posts: 19
Joined: Wed Feb 24, 2021 3:02 pm
Contact:

Phidget 1017_2 disconnecting from VINT hub

Post 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 18722 times
User avatar
Patrick
Lead Developer
Posts: 634
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Phidget 1017_2 disconnecting from VINT hub

Post 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
ProtonTim
Phidgetly
Posts: 19
Joined: Wed Feb 24, 2021 3:02 pm
Contact:

Re: Phidget 1017_2 disconnecting from VINT hub

Post 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 481 times
jdecoux
Labview Developer
Posts: 180
Joined: Mon Nov 13, 2017 10:20 am
Contact:

Re: Phidget 1017_2 disconnecting from VINT hub

Post by jdecoux »

We have replicated the issue and are working on a fix.
ProtonTim
Phidgetly
Posts: 19
Joined: Wed Feb 24, 2021 3:02 pm
Contact:

Re: Phidget 1017_2 disconnecting from VINT hub

Post by ProtonTim »

Can you give me an estimate of when that might be completed?
User avatar
Patrick
Lead Developer
Posts: 634
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Phidget 1017_2 disconnecting from VINT hub

Post 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
User avatar
Patrick
Lead Developer
Posts: 634
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Phidget 1017_2 disconnecting from VINT hub

Post 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
ProtonTim
Phidgetly
Posts: 19
Joined: Wed Feb 24, 2021 3:02 pm
Contact:

Re: Phidget 1017_2 disconnecting from VINT hub

Post 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
User avatar
Patrick
Lead Developer
Posts: 634
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Phidget 1017_2 disconnecting from VINT hub

Post by Patrick »

We are releasing new firmware for 1017 in the next release cycle that addresses the sleep issue.

-Patrick
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests