Bridge 1046 disconnecting/Gain going wild
Posted: Thu Mar 22, 2018 2:14 pm
Hi
I have Bridge 1046 disconnecting from USB (Using latest Phidget22 from 7 Mar 2018 and c#). I can't pin why is it disconnecting, I suspect it gets flooded with events and just decide to reset itself.
When it reset itself it goes to gain 128x (I use 1x gain) and reports " OutOfRange Overrange condition detected on input, try lowering the gain." I tried lowering gain in code (ie in the OnError event) the code appears to be doing what it should but then the gain goes back to 128x (and the OnError kicks in again, and the code, etc etc). So it goes into a form of infinite loop.
Any suggestions as to what is happening?
The Phidgets log says is below:
I have Bridge 1046 disconnecting from USB (Using latest Phidget22 from 7 Mar 2018 and c#). I can't pin why is it disconnecting, I suspect it gets flooded with events and just decide to reset itself.
When it reset itself it goes to gain 128x (I use 1x gain) and reports " OutOfRange Overrange condition detected on input, try lowering the gain." I tried lowering gain in code (ie in the OnError event) the code appears to be doing what it should but then the gain goes back to 128x (and the OnError kicks in again, and the code, etc etc). So it goes into a form of infinite loop.
Any suggestions as to what is happening?
The Phidgets log says is below:
Code: Select all
INFO [phidget22usb][2018-03-22T20:19:25]:Opened USB Device: 0xdc4
INFO [phidget22][2018-03-22T20:19:25 usb.c+397 PhidgetUSBReadThreadFunction()]: PhidgetStepper Bipolar HC(1067) (422532) [X]: ReadThread starting
INFO [phidget22usb][2018-03-22T20:19:25]:Opened USB Device: 0x63c
INFO [phidget22][2018-03-22T20:19:25 usb.c+397 PhidgetUSBReadThreadFunction()]: PhidgetStepper Bipolar HC(1067) (423525) [X]: ReadThread starting
INFO [phidget22usb][2018-03-22T20:19:25]:Opened USB Device: 0x8bc
INFO [phidget22][2018-03-22T20:19:25 usb.c+397 PhidgetUSBReadThreadFunction()]: PhidgetMotorControl HC(1064) (393208): ReadThread starting
DEBUG [phidget22][2018-03-22T20:19:45 dispatch.c+161 entryDispatched()]: creating dispatcher
DEBUG [phidget22][2018-03-22T20:19:45 dispatch.c+163 entryDispatched()]: created dispatcher
DEBUG [phidget22][2018-03-22T20:19:45 dispatch.c+161 entryDispatched()]: creating dispatcher
DEBUG [phidget22][2018-03-22T20:19:45 dispatch.c+163 entryDispatched()]: created dispatcher
WARN [phidget22usb][2018-03-22T20:20:41]:GetOverlappedResult() failed with error: ERROR_DEVICE_NOT_CONNECTED
INFO [phidget22][2018-03-22T20:20:41 usb.c+424 PhidgetUSBReadThreadFunction()]: PhidgetBridge 4-Input(1046) (410338): ReadThread exiting normally (Phidget detach detected in PhidgetDevice_read)
DEBUG [phidget22][2018-03-22T20:20:41 manager.c+273 deviceDetach()]: PhidgetBridge 4-Input(1046) (410338)
DEBUG [phidget22net][2018-03-22T20:20:41 server.c+346 sendNetDeviceDetached()]: 0xb40c910 (null)
INFO [phidget22usb][2018-03-22T20:20:41]:Closing USB Device: 0x718
DEBUG [phidget22usb][2018-03-22T20:20:42]:Wait on asyncRead/closeReadEvent timed out.
ERR [phidget22][2018-03-22T20:20:42 usb.c+450 PhidgetUSBReadThreadFunction()]: PhidgetMotorControl HC(1064) (393208): ReadThread exiting - unexpected timeout (could be an ESD event)
WARN [phidget22][2018-03-22T20:20:42 usb.c+315 PhidgetUSBError()]: Detaching device because of USB error.
DEBUG [phidget22][2018-03-22T20:20:42 manager.c+273 deviceDetach()]: PhidgetMotorControl HC(1064) (393208)
DEBUG [phidget22net][2018-03-22T20:20:42 server.c+346 sendNetDeviceDetached()]: 0xb3e0c48 (null)
INFO [phidget22usb][2018-03-22T20:20:42]:Closing USB Device: 0x8bc
DEBUG [phidget22usb][2018-03-22T20:20:42]:Wait on asyncRead/closeReadEvent timed out.
DEBUG [phidget22usb][2018-03-22T20:20:42]:Wait on asyncRead/closeReadEvent timed out.
ERR [phidget22][2018-03-22T20:20:42 usb.c+450 PhidgetUSBReadThreadFunction()]: PhidgetStepper Bipolar HC(1067) (422532) [X]: ReadThread exiting - unexpected timeout (could be an ESD event)
ERR [phidget22][2018-03-22T20:20:42 usb.c+450 PhidgetUSBReadThreadFunction()]: PhidgetStepper Bipolar HC(1067) (423525) [X]: ReadThread exiting - unexpected timeout (could be an ESD event)
WARN [phidget22][2018-03-22T20:20:42 usb.c+315 PhidgetUSBError()]: Detaching device because of USB error.
WARN [phidget22][2018-03-22T20:20:42 usb.c+303 PhidgetUSBError()]: Ignoring USB error because Devices list is locked.
DEBUG [phidget22][2018-03-22T20:20:42 manager.c+273 deviceDetach()]: PhidgetStepper Bipolar HC(1067) (422532) [X]
DEBUG [phidget22net][2018-03-22T20:20:42 server.c+346 sendNetDeviceDetached()]: 0xb3d8420 (null)
INFO [phidget22usb][2018-03-22T20:20:42]:Closing USB Device: 0xdc4
INFO [phidget22usb][2018-03-22T20:20:42]:Attaching Phidget: \\?\hid#vid_06c2&pid_007b#7&19d93ee8&5&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [phidget22usb][2018-03-22T20:20:42]:HidD_GetSerialNumberString failed: 0x00000002
INFO [phidget22usb][2018-03-22T20:20:42]:Attaching Phidget: \\?\hid#vid_06c2&pid_0059#8&20516f5c&6&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [phidget22usb][2018-03-22T20:20:42]:HidD_GetSerialNumberString failed: 0x00000002
INFO [phidget22usb][2018-03-22T20:20:42]:Attaching Phidget: \\?\hid#vid_06c2&pid_007b#7&19d93ee8&5&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [phidget22usb][2018-03-22T20:20:42]:HidD_GetSerialNumberString failed: 0x00000002
INFO [phidget22usb][2018-03-22T20:20:42]:Attaching Phidget: \\?\hid#vid_06c2&pid_0059#8&20516f5c&6&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [phidget22usb][2018-03-22T20:20:42]:HidD_GetSerialNumberString failed: 0x00000002
INFO [phidget22usb][2018-03-22T20:20:42]:Attaching Phidget: \\?\hid#vid_06c2&pid_007b#7&19d93ee8&5&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [phidget22usb][2018-03-22T20:20:42]:HidD_GetSerialNumberString failed: 0x00000002
INFO [phidget22usb][2018-03-22T20:20:42]:Attaching Phidget: \\?\hid#vid_06c2&pid_0059#8&20516f5c&6&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [phidget22usb][2018-03-22T20:20:42]:HidD_GetSerialNumberString failed: 0x00000002
INFO [phidget22usb][2018-03-22T20:20:43]:Attaching Phidget: \\?\hid#vid_06c2&pid_007b#7&19d93ee8&5&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [phidget22usb][2018-03-22T20:20:43]:HidD_GetSerialNumberString failed: 0x00000002
INFO [phidget22usb][2018-03-22T20:20:43]:Attaching Phidget: \\?\hid#vid_06c2&pid_0059#8&20516f5c&6&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [phidget22usb][2018-03-22T20:20:43]:HidD_GetSerialNumberString failed: 0x00000002
INFO [phidget22usb][2018-03-22T20:20:43]:Attaching Phidget: \\?\hid#vid_06c2&pid_007b#7&19d93ee8&5&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [phidget22usb][2018-03-22T20:20:43]:HidD_GetSerialNumberString failed: 0x00000002
INFO [phidget22usb][2018-03-22T20:20:43]:Attaching Phidget: \\?\hid#vid_06c2&pid_0059#8&20516f5c&6&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [phidget22usb][2018-03-22T20:20:43]:HidD_GetSerialNumberString failed: 0x00000002
INFO [phidget22usb][2018-03-22T20:20:43]:Attaching Phidget: \\?\hid#vid_06c2&pid_007b#7&19d93ee8&5&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [phidget22usb][2018-03-22T20:20:43]:HidD_GetSerialNumberString failed: 0x00000002
INFO [phidget22usb][2018-03-22T20:20:43]:Attaching Phidget: \\?\hid#vid_06c2&pid_0059#8&20516f5c&6&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [phidget22usb][2018-03-22T20:20:43]:HidD_GetSerialNumberString failed: 0x00000002
INFO [phidget22usb][2018-03-22T20:20:43]:Attaching Phidget: \\?\hid#vid_06c2&pid_007b#7&19d93ee8&5&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [phidget22usb][2018-03-22T20:20:43]:HidD_GetSerialNumberString failed: 0x00000002
INFO [phidget22usb][2018-03-22T20:20:43]:Attaching Phidget: \\?\hid#vid_06c2&pid_0059#8&20516f5c&6&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [phidget22usb][2018-03-22T20:20:43]:HidD_GetSerialNumberString failed: 0x00000002
INFO [phidget22usb][2018-03-22T20:20:44]:Attaching Phidget: \\?\hid#vid_06c2&pid_007b#7&19d93ee8&5&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [phidget22usb][2018-03-22T20:20:44]:HidD_GetSerialNumberString failed: 0x00000002
INFO [phidget22usb][2018-03-22T20:20:44]:Attaching Phidget: \\?\hid#vid_06c2&pid_0059#8&20516f5c&6&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
ERR [phidget22usb][2018-03-22T20:20:44]:HidD_GetSerialNumberString failed: 0x00000002
DEBUG [phidget22][2018-03-22T20:20:44 manager.c+273 deviceDetach()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (378219)
DEBUG [phidget22net][2018-03-22T20:20:44 server.c+346 sendNetDeviceDetached()]: 0xb40bee0 (null)
DEBUG [phidget22][2018-03-22T20:20:44 manager.c+273 deviceDetach()]: PhidgetStepper Bipolar HC(1067) (423525) [X]
DEBUG [phidget22net][2018-03-22T20:20:44 server.c+346 sendNetDeviceDetached()]: 0xb3c7e58 (null)
INFO [phidget22usb][2018-03-22T20:20:44]:Closing USB Device: 0x63c
INFO [phidget22usb][2018-03-22T20:20:45]:Attaching Phidget: \\?\hid#vid_06c2&pid_007b#7&19d93ee8&5&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
DEBUG [phidget22][2018-03-22T20:20:45 phidget.c+1459 _addDevice()]: PhidgetStepper Bipolar HC(1067) (422532) [X]
INFO [phidget22usb][2018-03-22T20:20:45]:Attaching Phidget: \\?\hid#vid_06c2&pid_007b#7&1842e91&5&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
DEBUG [phidget22][2018-03-22T20:20:45 phidget.c+1459 _addDevice()]: PhidgetStepper Bipolar HC(1067) (423525) [X]
INFO [phidget22usb][2018-03-22T20:20:45]:Opened USB Device: 0x1788
INFO [phidget22][2018-03-22T20:20:45 usb.c+397 PhidgetUSBReadThreadFunction()]: PhidgetStepper Bipolar HC(1067) (423525) [X]: ReadThread starting
INFO [phidget22usb][2018-03-22T20:20:45]:Opened USB Device: 0x1234
INFO [phidget22][2018-03-22T20:20:45 usb.c+397 PhidgetUSBReadThreadFunction()]: PhidgetStepper Bipolar HC(1067) (422532) [X]: ReadThread starting
INFO [phidget22usb][2018-03-22T20:20:45]:Attaching Phidget: \\?\hid#vid_06c2&pid_0045#8&1d5475dc&6&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
DEBUG [phidget22][2018-03-22T20:20:45 phidget.c+1459 _addDevice()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (378219)
INFO [phidget22usb][2018-03-22T20:20:45]:Attaching Phidget: \\?\hid#vid_06c2&pid_003b#8&b83fe0f&6&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
DEBUG [phidget22][2018-03-22T20:20:45 phidget.c+1459 _addDevice()]: PhidgetBridge 4-Input(1046) (410338)
INFO [phidget22usb][2018-03-22T20:20:45]:Opened USB Device: 0x11dc
INFO [phidget22][2018-03-22T20:20:45 usb.c+397 PhidgetUSBReadThreadFunction()]: PhidgetBridge 4-Input(1046) (410338): ReadThread starting
INFO [phidget22usb][2018-03-22T20:20:45]:Attaching Phidget: \\?\hid#vid_06c2&pid_0059#8&20516f5c&6&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
DEBUG [phidget22][2018-03-22T20:20:45 phidget.c+1459 _addDevice()]: PhidgetMotorControl HC(1064) (393208)
INFO [phidget22usb][2018-03-22T20:20:45]:Opened USB Device: 0x7b8
INFO [phidget22][2018-03-22T20:20:45 usb.c+397 PhidgetUSBReadThreadFunction()]: PhidgetMotorControl HC(1064) (393208): ReadThread starting
WARN [phidget22][2018-03-22T20:20:52 dispatch.c+511 insertDispatchEntry()]: Bridge Input (410338/0/3): too many dispatch entries queued (soft):200 dropping entry (type=14)
WARN [phidget22][2018-03-22T20:20:52 dispatch.c+511 insertDispatchEntry()]: Bridge Input (410338/0/3): too many dispatch entries queued (soft):200 dropping entry (type=14)
last message repeated 778 times
WARN [phidget22][2018-03-22T20:21:17 dispatch.c+511 insertDispatchEntry()]: Bridge Input (410338/0/2): too many dispatch entries queued (soft):200 dropping entry (type=14)
WARN [phidget22][2018-03-22T20:21:17 dispatch.c+511 insertDispatchEntry()]: Bridge Input (410338/0/3): too many dispatch entries queued (soft):200 dropping entry (type=14)
WARN [phidget22][2018-03-22T20:21:17 dispatch.c+511 insertDispatchEntry()]: Bridge Input (410338/0/2): too many dispatch entries queued (soft):200 dropping entry (type=14)
WARN [phidget22][2018-03-22T20:21:17 dispatch.c+511 insertDispatchEntry()]: Bridge Input (410338/0/3): too many dispatch entries queued (soft):200 dropping entry (type=14)
WARN [phidget22][2018-03-22T20:21:17 dispatch.c+511 insertDispatchEntry()]: Bridge Input (410338/0/2): too many dispatch entries queued (soft):200 dropping entry (type=14)
WARN [phidget22][2018-03-22T20:21:17 dispatch.c+511 insertDispatchEntry()]: Bridge Input (410338/0/3): too many dispatch entries queued (soft):200 dropping entry (type=14)
WARN [phidget22][2018-03-22T20:21:17 dispatch.c+511 insertDispatchEntry()]: Bridge Input (410338/0/2): too many dispatch entries queued (soft):200 dropping entry (type=14)