Phidget Rapidly Connecting and Disconnecting

Comments & issues
djcruz
Fresh meat
Posts: 3
Joined: Sat Oct 27, 2018 8:58 am
Contact:

Phidget Rapidly Connecting and Disconnecting

Postby djcruz » Mon Oct 29, 2018 6:43 pm

Hello, I've been practicing with the python API for a project for my work. I've encountered a strange issue I've been trying to solve for the past couple of days. Randomly when I open the channel for a phidget from software it acts as if the phidget is rapidly connecting and disconnecting. Once it occurs this persists across multiple programs and the only way to stop it is to either physically detach the phidget from the computer or reset the USB port it is connected to. I've tried different USB ports on my computer, different USB cables, and different phidgets. In all cases the error has had a chance of happening. In case it is something to do with my practice code, I'll post that here, although I pretty much just copy and pasted the manager and voltage ratio code. I'm using the interfaceKit 8/8/8 on an ubuntu 18.04 system. I've also tried logging the program, which I will also attach. It seems to be a problem with reading from the USB but I could be wrong. I'll also attach an example of the output I'm getting. Any input would be greatly appreciated, this board would go well with the project I'm currently working on.


CODE:

Code: Select all

from ctypes import *
import sys
import time

from Phidget22.PhidgetException import *
from Phidget22.Devices import *
from Phidget22.Devices.Manager import *
from Phidget22.Phidget import *
from Phidget22.Devices.VoltageRatioInput import *
#for the logger
from Phidget22.Devices.Log import *
from Phidget22.LogLevel import *

#this list will search for voltage ratio and inputs and append them.  at the end of the program they will all close.

class interfaceKit888:
    def __init__(self):
        self.channelList = [VoltageRatioInput(),VoltageRatioInput(),VoltageRatioInput(),VoltageRatioInput(),VoltageRatioInput(),VoltageRatioInput(),VoltageRatioInput(),VoltageRatioInput()]
        i = 0
        for i in range(len(self.channelList)):
            self.channelList[i].setChannel(i)
            i = i+1
           
    def setSerialNumber(self, serialNumber):
        for i in range(len(self.channelList)):
            self.channelList[i].setDeviceSerialNumber(serialNumber)
   
    def getSerialNumber(self):
        return self.channelList[0].getDeviceSerialNumber()
   
    def setOnAttachHandler(self, onAttachHandler):
        for i in range(len(self.channelList)):
            self.channelList[i].setOnAttachHandler(onAttachHandler)
   
    def setOnDetachHandler(self, onDetachHandler):
        for i in range(len(self.channelList)):
            self.channelList[i].setOnDetachHandler(onDetachHandler)
   
    def setOnErrorHandler(self, onErrorHandler):
        for i in range(len(self.channelList)):
            self.channelList[i].setOnErrorHandler(onErrorHandler)
   
    def setOnVoltageRatioChangeHandler(self, onVoltageRatioChangeHandler):
        for i in range(len(self.channelList)):
            self.channelList[i].setOnVoltageRatioChangeHandler(onVoltageRatioChangeHandler)
   
    def setOnSensorChangeHandler(self, onSensorChangeHandler):
        for i in range(len(self.channelList)):
            self.channelList[i].setOnSensorChangeHandler(onSensorChangeHandler)   
   
    def open(self):
       for i in range(len(self.channelList)):
            self.channelList[i].open() 
       
    def openWaitForAttachment(self, period):
       for i in range(len(self.channelList)):
            self.channelList[i].openWaitForAttachment(period) 
           
    def getAttached(self):
        if(self.channelList[0].getAttached() and self.channelList[1].getAttached() and self.channelList[2].getAttached() and self.channelList[3].getAttached() and self.channelList[4].getAttached() and self.channelList[5].getAttached() and self.channelList[6].getAttached() and self.channelList[7].getAttached()):
            return True
        else:
            return False
   
    def close(self):
        for i in range(len(self.channelList)):
            self.channelList[i].close()
 
#The gui
sensorOutput = [0,0,0,0,0,0,0,0]
def display():
     global sensorOutPut
     print("ChannelOutPut: \n", end = "\r")
     print("Port 0: " + str(sensorOutput[0]))
     print("Port 1: " + str(sensorOutput[1]))
     print("Port 2: " + str(sensorOutput[2]))
     print("Port 3: "  + str(sensorOutput[3]))
     print("Port 4: " + str(sensorOutput[4]))
     print("Port 5: " + str(sensorOutput[5]))
     print("Port 6: " + str(sensorOutput[6]))
     print("Port 7: " + str(sensorOutput[7]))


#HANDELS FOR PHIDGETS
def onAttachHandler(self):
   
    ph = self
    try:
       
        print("ATTATCHMENT FROM PHIDGET------------------------------------------------------------")
        print("\nAttach Event:")
       
        """
        * Get device information and display it.
        """
        channelClassName = ph.getChannelClassName()
        serialNumber = ph.getDeviceSerialNumber()
        channel = ph.getChannel()
        if(ph.getDeviceClass() == DeviceClass.PHIDCLASS_VINT):
            hubPort = ph.getHubPort()
            print("\n\t-> Channel Class: " + channelClassName + "\n\t-> Serial Number: " + str(serialNumber) +
                "\n\t-> Hub Port: " + str(hubPort) + "\n\t-> Channel:  " + str(channel) + "\n")
        else:
            print("\n\t-> Channel Class: " + channelClassName + "\n\t-> Serial Number: " + str(serialNumber) +
                    "\n\t-> Channel:  " + str(channel) + "\n")
   


       
        print("\n\tSetting DataInterval to 1000ms")
        ph.setDataInterval(1000)


        print("\tSetting Voltage Ratio ChangeTrigger to 0.0")
        ph.setVoltageRatioChangeTrigger(0.0)

        if(ph.getChannelSubclass() == ChannelSubclass.PHIDCHSUBCLASS_VOLTAGERATIOINPUT_SENSOR_PORT):
            print("\tSetting VoltageRatio SensorType")
            ph.setSensorType(VoltageRatioSensorType.SENSOR_TYPE_VOLTAGERATIO)
       
       
    except PhidgetException as e:
        print("\nError in Attach Event:")
        DisplayError(e)
        traceback.print_exc()
        return


def onDetachHandler(self):

    ph = self

    try:
       
        print("\nDetach Event:")
       
        """
        * Get device information and display it.
        """
        channelClassName = ph.getChannelClassName()
        serialNumber = ph.getDeviceSerialNumber()
        channel = ph.getChannel()
        if(ph.getDeviceClass() == DeviceClass.PHIDCLASS_VINT):
            hubPort = ph.getHubPort()
            print("\n\t-> Channel Class: " + channelClassName + "\n\t-> Serial Number: " + str(serialNumber) +
                "\n\t-> Hub Port: " + str(hubPort) + "\n\t-> Channel:  " + str(channel) + "\n")
        else:
            print("\n\t-> Channel Class: " + channelClassName + "\n\t-> Serial Number: " + str(serialNumber) +
                    "\n\t-> Channel:  " + str(channel) + "\n")
       
    except PhidgetException as e:
        print("\nError in Detach Event:")
        DisplayError(e)
        traceback.print_exc()
        return



def onErrorHandler(self, errorCode, errorString):

    sys.stderr.write("[Phidget Error Event] -> " + errorString + " (" + str(errorCode) + ")\n")


def onVoltageRatioChangeHandler(self, voltageRatio):

    ph = self
    global sensorOutPut
    sensorOutput[ph.getChannel()] = voltageRatio
   
   
def onSensorChangeHandler(self, sensorValue, sensorUnit):


    ph = self

    print("@channel " + str(ph.getChannel()) + " Sensor Type: " + str(ph.getSensorType()) + "[Sensor Event] -> Sensor Value: " + str(sensorValue) + sensorUnit.symbol)

#END OF HANDELS FOR PHIDGETS



#so the manager doesn't fire 32 times when an 888 attachment is found.
count888Attaches = 0
connectedInterfaceSerialList = [0]
totalConnectedInterfaces = 0
interface = None


#HANDELS FOR MANAGER
def AttachHandler(self, channel):
    global count888Attaches
    global connectedInterfaceSerialList
    global totalConnectedInterfaces
   
    newDevice = channel

    if(newDevice.getDeviceID() == DeviceID.PHIDID_1010_1013_1018_1019):
       count888Attaches = count888Attaches+1
   
    if((newDevice.getDeviceID() == DeviceID.PHIDID_1010_1013_1018_1019) and (count888Attaches == 32)):
        global interface
        print("new " + str(newDevice.getDeviceName()) + " has been attached.")
        print("Serial number: " + str(newDevice.getDeviceSerialNumber()))
        connectedInterfaceSerialList.append(newDevice.getDeviceSerialNumber())

        totalConnectedInterfaces = totalConnectedInterfaces + 1
        count888Attaches = 0
   
   
def DetachHandler(self, channel):
    detachedDevice = channel
    serialNumber = detachedDevice.getDeviceSerialNumber()
    deviceName = detachedDevice.getDeviceName()
    print("Goodbye Device " + str(deviceName) + ", Serial Number: " + str(serialNumber))
    print("You are Channel " + str(detachedDevice.getChannel()))
    detachedDevice.close()
   
   
def LocalErrorCatcher(e):
    print("Phidget Exception: " + str(e.code) + " - " + str(e.details) + ", Exiting...")
    exit(1)
   
#END OF HANDELS FOR MANAGER
   
   
   
#MAIN   
try: manager = Manager()
except RuntimeError as e:
    print("Runtime Error " + e.details + ", Exiting...\n")
    exit(1)

try:
    #logging example, uncomment to generate a log file
    manager.enableLogging(PhidgetLogLevel.PHIDGET_LOG_VERBOSE, "phidgetlog.log")
    manager.setOnAttachHandler(AttachHandler)
    manager.setOnDetachHandler(DetachHandler)
    print("Enable Logging")
    #Log.enable(LogLevel.PHIDGET_LOG_VERBOSE, "logManagerVerbose.txt")
except PhidgetException as e: LocalErrorCatcher(e)

print("Opening....")
try:
    manager.open()
except PhidgetException as e: LocalErrorCatcher(e)

print("Phidget Simple Playground (plug and unplug devices)");
print("Press Enter to end anytime...");
time.sleep(5)

interface = interfaceKit888()
interface.setSerialNumber(0)
print("setting Handlers")
interface.setOnAttachHandler(onAttachHandler)
interface.setOnDetachHandler(onDetachHandler)
interface.setOnErrorHandler(onErrorHandler)
interface.setOnVoltageRatioChangeHandler(onVoltageRatioChangeHandler)
interface.setOnSensorChangeHandler(onSensorChangeHandler)

userInput = None

print("In connected InterfaceSerial LIST " + str(connectedInterfaceSerialList[1]))
print("In interface: " + str(interface.getSerialNumber()))

while userInput != "close":
    if(interface.getSerialNumber() != connectedInterfaceSerialList[1]):
        print("Setting device to new Serial Number")
        interface.setSerialNumber(connectedInterfaceSerialList[1])
       
    print("wating for input, 'close' will end, 'open' will open a channel")
   
    userInput = input()
   
    if(userInput == "open"):
        print("opening serial number " + str(interface.getSerialNumber()))

        interface.open()
        while(not(interface.getAttached())):
            pass
        time.sleep(2)
        displayCount = 0
        while displayCount < 5:
            display()
            time.sleep(5)
            displayCount = displayCount + 1
        print("closing")
        interface.close()

print(interface)
print("Closing...")
try:

    if(interface.getAttached):
        interface.close()
    while(interface.getAttached()):
        pass
    manager.close()
    #Log.disable()
except PhidgetException as e: LocalErrorCatcher(e)

exit(0)





LOG:

Code: Select all

VERB [phidget22][2018-10-27T18:03:26]:
******************************  Logging Enabled  ******************************
* Phidget22 - Version 1.0.0 - Built Oct 16 2018 14:39:19                      *
*******************************************************************************
DEBUG [phidget22][2018-10-27T18:03:26 dispatch.c+161 entryDispatched()]: creating dispatcher
DEBUG [phidget22][2018-10-27T18:03:26 dispatch.c+163 entryDispatched()]: created dispatcher
VERB [phidget22][2018-10-27T18:03:26 phidget22.c+339 CentralThreadFunction()]: Central Thread running
INFO [phidget22usb][2018-10-27T18:03:26]:Initializing libusb
INFO [phidget22usb][2018-10-27T18:03:26]:New Phidget found in PhidgetUSBBuildList: 2/16
DEBUG [phidget22][2018-10-27T18:03:26 phidget.c+1496 _addDevice()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186)
DEBUG [phidget22][2018-10-27T18:03:26 dispatch.c+161 entryDispatched()]: creating dispatcher
DEBUG [phidget22][2018-10-27T18:03:26 dispatch.c+163 entryDispatched()]: created dispatcher
DEBUG [phidget22][2018-10-27T18:03:26 dispatch.c+161 entryDispatched()]: creating dispatcher
DEBUG [phidget22][2018-10-27T18:03:26 dispatch.c+163 entryDispatched()]: created dispatcher
INFO [phidget22usb][2018-10-27T18:04:15]:Using Control Endpoint for Host->Device communication.
INFO [phidget22][2018-10-27T18:04:15 usb.c+397 PhidgetUSBReadThreadFunction()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186): ReadThread starting
ERR [phidget22usb][2018-10-27T18:04:15]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:15]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:15]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:15]:libusb_interrupt_transfer() returned: -1
last message repeated 20 times
WARN [phidget22][2018-10-27T18:04:16 phidget.c+162 waitForReads()]: Timed out waiting for 4 reads in 500 ms
ERR [phidget22usb][2018-10-27T18:04:16]:libusb_interrupt_transfer() returned: -1
DEBUG [phidget22usb][2018-10-27T18:04:16]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:16]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22][2018-10-27T18:04:16 dispatch.c+161 entryDispatched()]: creating dispatcher
DEBUG [phidget22][2018-10-27T18:04:16 dispatch.c+163 entryDispatched()]: created dispatcher
DEBUG [phidget22usb][2018-10-27T18:04:16]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:16]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22][2018-10-27T18:04:16 dispatch.c+161 entryDispatched()]: creating dispatcher
DEBUG [phidget22][2018-10-27T18:04:16 dispatch.c+163 entryDispatched()]: created dispatcher
DEBUG [phidget22usb][2018-10-27T18:04:16]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22][2018-10-27T18:04:16 dispatch.c+161 entryDispatched()]: creating dispatcher
DEBUG [phidget22][2018-10-27T18:04:16 dispatch.c+163 entryDispatched()]: created dispatcher
DEBUG [phidget22][2018-10-27T18:04:16 dispatch.c+161 entryDispatched()]: creating dispatcher
DEBUG [phidget22][2018-10-27T18:04:16 dispatch.c+163 entryDispatched()]: created dispatcher
DEBUG [phidget22][2018-10-27T18:04:16 dispatch.c+161 entryDispatched()]: creating dispatcher
DEBUG [phidget22usb][2018-10-27T18:04:16]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22][2018-10-27T18:04:16 dispatch.c+163 entryDispatched()]: created dispatcher
DEBUG [phidget22usb][2018-10-27T18:04:16]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:16]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
last message repeated 18 times
ERR [phidget22usb][2018-10-27T18:04:16]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:16]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:16]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:16]:libusb_interrupt_transfer() returned: -1
last message repeated 6 times
DEBUG [phidget22usb][2018-10-27T18:04:16]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:16]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
ERR [phidget22usb][2018-10-27T18:04:16]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:16]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:16]:libusb_interrupt_transfer() returned: -1
last message repeated 5 times
ERR [phidget22usb][2018-10-27T18:04:16]:EPHIDGET_AGAIN returned too many times in a row - reset device.
ERR [phidget22][2018-10-27T18:04:16 usb.c+458 PhidgetUSBReadThreadFunction()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186): ReadThread exiting - PhidgetDevice_read() returned : 0x0000001c
WARN [phidget22][2018-10-27T18:04:16 usb.c+315 PhidgetUSBError()]: Detaching device because of USB error.
DEBUG [phidget22][2018-10-27T18:04:16 manager.c+273 deviceDetach()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186)
DEBUG [phidget22net][2018-10-27T18:04:16 server.c+346 sendNetDeviceDetached()]: 140258800942624 PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186)
INFO [phidget22usb][2018-10-27T18:04:16]:
DEBUG [phidget22][2018-10-27T18:04:16 dispatch.c+161 entryDispatched()]: creating dispatcher
DEBUG [phidget22][2018-10-27T18:04:16 dispatch.c+163 entryDispatched()]: created dispatcher
DEBUG [phidget22][2018-10-27T18:04:16 dispatch.c+161 entryDispatched()]: creating dispatcher
DEBUG [phidget22][2018-10-27T18:04:16 dispatch.c+163 entryDispatched()]: created dispatcher
DEBUG [phidget22][2018-10-27T18:04:16 dispatch.c+161 entryDispatched()]: creating dispatcher
DEBUG [phidget22][2018-10-27T18:04:16 dispatch.c+163 entryDispatched()]: created dispatcher
INFO [phidget22usb][2018-10-27T18:04:16]:New Phidget found in PhidgetUSBBuildList: 2/16
DEBUG [phidget22][2018-10-27T18:04:16 phidget.c+1496 _addDevice()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186)
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
INFO [phidget22usb][2018-10-27T18:04:16]:Using Control Endpoint for Host->Device communication.
INFO [phidget22][2018-10-27T18:04:16 usb.c+397 PhidgetUSBReadThreadFunction()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186): ReadThread starting
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:16]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:16]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:16]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:16]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:16]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:16]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:16 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:16]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:16]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:17 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:17]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:17]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:17 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:17]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:17]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:17]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:17]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:17 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:17]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:17 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:17]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:17 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:17]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:17]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:17 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:17]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:17 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:17]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:17 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:17]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:17]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:17 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:17]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:17 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:17]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:17]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:17 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:17]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:17]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:17 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:17]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:17]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:17 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:17]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:17 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:17]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:17]:libusb_interrupt_transfer() returned: -1
last message repeated 7 times
WARN [phidget22][2018-10-27T18:04:17 phidget.c+162 waitForReads()]: Timed out waiting for 4 reads in 500 ms
DEBUG [phidget22usb][2018-10-27T18:04:17]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:17]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:17]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:17]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
last message repeated 13 times
ERR [phidget22usb][2018-10-27T18:04:17]:libusb_interrupt_transfer() returned: -1
DEBUG [phidget22usb][2018-10-27T18:04:17]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:17]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:17]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
ERR [phidget22usb][2018-10-27T18:04:17]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:17]:libusb_interrupt_transfer() returned: -1
last message repeated 11 times
DEBUG [phidget22usb][2018-10-27T18:04:17]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
ERR [phidget22usb][2018-10-27T18:04:17]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:17]:EPHIDGET_AGAIN returned too many times in a row - reset device.
ERR [phidget22][2018-10-27T18:04:17 usb.c+458 PhidgetUSBReadThreadFunction()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186): ReadThread exiting - PhidgetDevice_read() returned : 0x0000001c
WARN [phidget22][2018-10-27T18:04:17 usb.c+315 PhidgetUSBError()]: Detaching device because of USB error.
DEBUG [phidget22][2018-10-27T18:04:17 manager.c+273 deviceDetach()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186)
DEBUG [phidget22usb][2018-10-27T18:04:17]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:17]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:17]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:17]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
last message repeated 7 times
DEBUG [phidget22net][2018-10-27T18:04:17 server.c+346 sendNetDeviceDetached()]: 140258800833280 PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186)
INFO [phidget22usb][2018-10-27T18:04:17]:
INFO [phidget22usb][2018-10-27T18:04:17]:New Phidget found in PhidgetUSBBuildList: 2/16
DEBUG [phidget22][2018-10-27T18:04:17 phidget.c+1496 _addDevice()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186)
VERB [phidget22][2018-10-27T18:04:17 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:17]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
INFO [phidget22usb][2018-10-27T18:04:18]:Using Control Endpoint for Host->Device communication.
INFO [phidget22][2018-10-27T18:04:18 usb.c+397 PhidgetUSBReadThreadFunction()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186): ReadThread starting
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:18 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:18]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
last message repeated 6 times
WARN [phidget22][2018-10-27T18:04:18 phidget.c+162 waitForReads()]: Timed out waiting for 4 reads in 500 ms
DEBUG [phidget22usb][2018-10-27T18:04:18]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
DEBUG [phidget22usb][2018-10-27T18:04:18]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:18]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:18]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:18]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
last message repeated 15 times
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
last message repeated 9 times
DEBUG [phidget22usb][2018-10-27T18:04:18]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
ERR [phidget22usb][2018-10-27T18:04:18]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:18]:EPHIDGET_AGAIN returned too many times in a row - reset device.
ERR [phidget22][2018-10-27T18:04:18 usb.c+458 PhidgetUSBReadThreadFunction()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186): ReadThread exiting - PhidgetDevice_read() returned : 0x0000001c
WARN [phidget22][2018-10-27T18:04:18 usb.c+315 PhidgetUSBError()]: Detaching device because of USB error.
DEBUG [phidget22][2018-10-27T18:04:18 manager.c+273 deviceDetach()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186)
DEBUG [phidget22usb][2018-10-27T18:04:18]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:18]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:18]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:18]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
last message repeated 7 times
DEBUG [phidget22net][2018-10-27T18:04:19 server.c+346 sendNetDeviceDetached()]: 140258800942544 PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186)
INFO [phidget22usb][2018-10-27T18:04:19]:
INFO [phidget22usb][2018-10-27T18:04:19]:New Phidget found in PhidgetUSBBuildList: 2/16
DEBUG [phidget22][2018-10-27T18:04:19 phidget.c+1496 _addDevice()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186)
INFO [phidget22usb][2018-10-27T18:04:19]:Using Control Endpoint for Host->Device communication.
INFO [phidget22][2018-10-27T18:04:19 usb.c+397 PhidgetUSBReadThreadFunction()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186): ReadThread starting
ERR [phidget22usb][2018-10-27T18:04:19]:libusb_interrupt_transfer() returned: -1
VERB [phidget22][2018-10-27T18:04:19 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:19]:::stacktrace [Phidget already closed]
VERB [phidget22][2018-10-27T18:04:19 phidget.c+2273 Phidget_close()]: Close was called on an already closed Phidget handle.
VERB [phidget22][2018-10-27T18:04:19]:::stacktrace [Phidget already closed]
ERR [phidget22usb][2018-10-27T18:04:19]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:19]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:19]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:19]:libusb_interrupt_transfer() returned: -1
last message repeated 20 times
WARN [phidget22][2018-10-27T18:04:19 phidget.c+162 waitForReads()]: Timed out waiting for 4 reads in 500 ms
DEBUG [phidget22usb][2018-10-27T18:04:19]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:19]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:19]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
DEBUG [phidget22usb][2018-10-27T18:04:19]:Sending USB Packet:
   0x00, 0x77, 0x77, 0x77, 0x77, 0x01, 0x00, 0x00
last message repeated 16 times
ERR [phidget22usb][2018-10-27T18:04:19]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:19]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:19]:libusb_interrupt_transfer() returned: -1
ERR [phidget22usb][2018-10-27T18:04:19]:libusb_interrupt_transfer() returned: -1
last message repeated 10 times
ERR [phidget22usb][2018-10-27T18:04:20]:EPHIDGET_AGAIN returned too many times in a row - reset device.
ERR [phidget22][2018-10-27T18:04:20 usb.c+458 PhidgetUSBReadThreadFunction()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186): ReadThread exiting - PhidgetDevice_read() returned : 0x0000001c
WARN [phidget22][2018-10-27T18:04:20 usb.c+315 PhidgetUSBError()]: Detaching device because of USB error.
DEBUG [phidget22][2018-10-27T18:04:20 manager.c+273 deviceDetach()]: PhidgetInterfaceKit 8/8/8(1010/1018/1019) (172186)





OUTPUT:

Code: Select all

Enable Logging
Opening....
Phidget Simple Playground (plug and unplug devices)
Press Enter to end anytime...
new PhidgetInterfaceKit 8/8/8 has been attached.
Serial number: 173553
setting Handlers
In connected InterfaceSerial LIST 173553
In interface: 0
Setting device to new Serial Number
wating for input, 'close' will end, 'open' will open a channel
open
opening serial number 173553
ATTATCHMENT FROM PHIDGET------------------------------------------------------------

Attach Event:

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  0


        Setting DataInterval to 1000ms
        Setting Voltage Ratio ChangeTrigger to 0.0
ATTATCHMENT FROM PHIDGET------------------------------------------------------------

Attach Event:

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  1


        Setting DataInterval to 1000ms
        Setting VoltageRatio SensorType
ATTATCHMENT FROM PHIDGET------------------------------------------------------------

Attach Event:ATTATCHMENT FROM PHIDGET------------------------------------------------------------

Attach Event:   Setting Voltage Ratio ChangeTrigger to 0.0
ATTATCHMENT FROM PHIDGET------------------------------------------------------------
ATTATCHMENT FROM PHIDGET------------------------------------------------------------

ATTATCHMENT FROM PHIDGET------------------------------------------------------------

Attach Event:ATTATCHMENT FROM PHIDGET------------------------------------------------------------

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  2

Attach Event:

Attach Event:   Setting VoltageRatio SensorType




Attach Event:
        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  6

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  7



        Setting DataInterval to 1000ms
        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  4



        Setting DataInterval to 1000ms
        Setting DataInterval to 1000ms


        Setting DataInterval to 1000ms

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  3

        Setting Voltage Ratio ChangeTrigger to 0.0

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  5

        Setting Voltage Ratio ChangeTrigger to 0.0

        Setting Voltage Ratio ChangeTrigger to 0.0
        Setting VoltageRatio SensorType
        Setting VoltageRatio SensorType
        Setting Voltage Ratio ChangeTrigger to 0.0

        Setting VoltageRatio SensorType

        Setting DataInterval to 1000ms
        Setting VoltageRatio SensorType

        Setting DataInterval to 1000ms  Setting Voltage Ratio ChangeTrigger to 0.0

Detach Event:
Detach Event:


Detach Event:
        Setting VoltageRatio SensorType

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  2


        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  1

        Setting Voltage Ratio ChangeTrigger to 0.0


Detach Event:
Detach Event:   Setting VoltageRatio SensorType

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  0



Detach Event:
Detach Event:
Detach Event:
        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  4

Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  3


You are Channel 0



        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  6
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553


You are Channel 1

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  7
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553

You are Channel 2

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  5
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553

You are Channel 3
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 4
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 5
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 6
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 7
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 0
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 1
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 2
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 3
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 4
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 5
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 6
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 7
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 0
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 1
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 2
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 3
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 4
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 5
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 6
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 7
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 0
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 1
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 2
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 3
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 4
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 5
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 6
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 7
ATTATCHMENT FROM PHIDGET------------------------------------------------------------

Attach Event:
ATTATCHMENT FROM PHIDGET------------------------------------------------------------

Attach Event:
ATTATCHMENT FROM PHIDGET------------------------------------------------------------
ATTATCHMENT FROM PHIDGET------------------------------------------------------------

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  1
ATTATCHMENT FROM PHIDGET------------------------------------------------------------

Attach Event:
ATTATCHMENT FROM PHIDGET------------------------------------------------------------

ATTATCHMENT FROM PHIDGET------------------------------------------------------------

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  2
ATTATCHMENT FROM PHIDGET------------------------------------------------------------

        Setting DataInterval to 1000ms
Attach Event:
        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  0

Attach Event:
Attach Event:

Attach Event:new PhidgetInterfaceKit 8/8/8 has been attached.

Attach Event:





        Setting DataInterval to 1000ms
Serial number: 173553

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  4

        Setting Voltage Ratio ChangeTrigger to 0.0

        Setting DataInterval to 1000ms


        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  3
        Setting VoltageRatio SensorType

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  5

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  7


        Setting DataInterval to 1000ms


        Setting Voltage Ratio ChangeTrigger to 0.0

        Setting DataInterval to 1000ms

        Setting DataInterval to 1000ms
        Setting DataInterval to 1000ms  Setting VoltageRatio SensorType
        Setting Voltage Ratio ChangeTrigger to 0.0


        Setting VoltageRatio SensorType
        Setting Voltage Ratio ChangeTrigger to 0.0


        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  6

Detach Event:   Setting Voltage Ratio ChangeTrigger to 0.0
        Setting Voltage Ratio ChangeTrigger to 0.0


        Setting DataInterval to 1000ms  Setting VoltageRatio SensorType
        Setting VoltageRatio SensorType
        Setting Voltage Ratio ChangeTrigger to 0.0


Detach Event:
        Setting VoltageRatio SensorType

Detach Event:

Detach Event:
Detach Event:
        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  0


        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  1


        Setting Voltage Ratio ChangeTrigger to 0.0


Detach Event:   Setting VoltageRatio SensorType

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  5


        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  4

        Setting VoltageRatio SensorType

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  3




        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  2


Detach Event:
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 0

Detach Event:

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  6

Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 1

        -> Channel Class: PhidgetVoltageRatioInput
        -> Serial Number: 173553
        -> Channel:  7

Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 2
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 3
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 4
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 5
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 6
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 7
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 0
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 1
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 2
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 3
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 4
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 5
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 6
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 7
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 0
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 1
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 2
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 3
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 4
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 5
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 6
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 7
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 0
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 1
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 2
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 3
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 4
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 5
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
You are Channel 6
^CTraceback (most recent call last):
Goodbye Device PhidgetInterfaceKit 8/8/8, Serial Number: 173553
  File "phidgetAttachWManager.py", line 328, in <module>
You are Channel 7
    while(not(interface.getAttached())):
  File "phidgetAttachWManager.py", line 68, in getAttached
    if(self.channelList[0].getAttached() and self.channelList[1].getAttached() and self.channelList[2].getAttached() and self.channelList[3].getAttached() and self.channelList[4].getAttached() and self.channelList[5].getAttached() and self.channelList[6].getAttached() and self.channelList[7].getAttached()):
  File "/usr/local/lib/python3.6/dist-packages/Phidget22/Phidget.py", line 185, in getAttached
    result = __func(self.handle, ctypes.byref(_Attached))
KeyboardInterrupt

User avatar
Patrick
Lead Developer
Posts: 3064
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Phidget Rapidly Connecting and Disconnecting

Postby Patrick » Wed Oct 31, 2018 10:42 am

Are you able to try a different computer - preferably with a different motherboard/USB controller? You could also try adding a powered hub in front of the Phidget. Errors like this usually indicate hardware or power issues.

-Patrick

djcruz
Fresh meat
Posts: 3
Joined: Sat Oct 27, 2018 8:58 am
Contact:

Re: Phidget Rapidly Connecting and Disconnecting

Postby djcruz » Thu Nov 01, 2018 10:56 am

Thank you for the quick response, I'll try it out on different systems and report back.

djcruz
Fresh meat
Posts: 3
Joined: Sat Oct 27, 2018 8:58 am
Contact:

Re: Phidget Rapidly Connecting and Disconnecting

Postby djcruz » Tue Nov 06, 2018 1:26 pm

Just a quick update on my issue, I tried switching to different USB ports before which made no difference. I noticed yesterday that the USB ports I tried are all connected to the same USB controller on the desktop. Switched to a completely different one and I've yet to see the problem occur again. Thank you!


Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest