Issues with phidgets solid state relay (timeouts)
Posted: Mon Nov 23, 2020 12:24 pm
I am using python to control a phidgets 4x solid state relay, via VINT Hub Phidget. My program performs some measurements using thermocouples attached to the same VINT Hub. Based on these data, it sets a new duty cycle for each of the relays.
This seems to work for a number of iterations. However, eventually, my program always crashes. It seems an issue with controlling the relays. I have enabled logging and the output is shown below. It seems that a crash always starts with a timeout. This seems to trigger subsequent errors.
I have updated the firmware of the relay box.
This happens on two computers, with different OS's.
I have multiple relay boxes and VINT phidgets. The issue occurs with all combinations of hardware.
I am trying to set the relays as often/fast as I can. I wonder whether that might be an issue. Does the relay box have a maximum update rate? I have tried to see whether there is a reset command for the Relays I could call when an exception occurs. But I could not find one.
This seems to work for a number of iterations. However, eventually, my program always crashes. It seems an issue with controlling the relays. I have enabled logging and the output is shown below. It seems that a crash always starts with a timeout. This seems to trigger subsequent errors.
I have updated the firmware of the relay box.
This happens on two computers, with different OS's.
I have multiple relay boxes and VINT phidgets. The issue occurs with all combinations of hardware.
I am trying to set the relays as often/fast as I can. I wonder whether that might be an issue. Does the relay box have a maximum update rate? I have tried to see whether there is a reset command for the Relays I could call when an exception occurs. But I could not find one.
Code: Select all
2020-11-23T13:04:00 <Info> phidget22 :
****************************** Logging Enabled ******************************
* Phidget22 - Version 1.5 - Built Nov 23 2020 11:54:24 *
*******************************************************************************
2020-11-23T13:04:00 <Info> phidget22usb[PhidgetUSBScanDevices()] : Initializing libusb
2020-11-23T13:04:00 <Info> phidget22usb[PhidgetUSBScanDevices()] : New Phidget found in PhidgetUSBBuildList: 3/19
2020-11-23T13:04:00 <Info> phidget22[deviceAttach()] : HUB0000 (6-Port USB VINT Hub Phidget) v119 S/N:561064
2020-11-23T13:04:00 <Info> phidget22[deviceAttach()] : REL1100 (4x Isolated Solid State Relay Phidget) v110 -> HUB0000 Port:0 S/N:561064
2020-11-23T13:04:00 <Info> phidget22[deviceAttach()] : TMP1101 (4x Thermocouple Phidget) v107 -> HUB0000 Port:1 S/N:561064
2020-11-23T13:04:00 <Info> phidget22usb[getReportLengths()] : Using Control Endpoint for Host->Device communication.
2020-11-23T13:04:00 <Info> phidget22[HandleEventsThreadFunction()] : Failed to increase priority of USB Handle Events thread: 0x01 - Operation not permitted
2020-11-23T13:04:00 <Info> phidget22[PhidgetUSBReadThreadFunction()] : HUB0000 (6-Port USB VINT Hub Phidget) v119 S/N:561064: USB read thread started: 0xe4680700
2020-11-23T13:04:06 <Info> phidget22[deviceDetach()] : REL1100 (4x Isolated Solid State Relay Phidget) v110 -> HUB0000 Port:0 S/N:561064
2020-11-23T13:04:06 <Info> phidget22[deviceAttach()] : REL1100 (4x Isolated Solid State Relay Phidget) v110 -> HUB0000 Port:0 S/N:561064
2020-11-23T13:04:06 <Info> phidget22[processPacketReturnCodes()] : Got a NOTATTACHED response from a VINT device, Port 0
2020-11-23T13:04:06 <ERROR> phidget22[PhidgetVINTDevice_bridgeInput()] : Failed to send VINT_PACKET_TYPE_PHIDGET_RESET message: 0x34 - Device not Attached
2020-11-23T13:04:06 <Info> phidget22[processPacketReturnCodes()] : Got a NOTATTACHED response from a VINT device, Port 0
2020-11-23T13:04:06 <ERROR> phidget22[dispatchEntry()] : Failed to send BP_OPENRESET to device for Digital Output Isolated Ch:0 -> REL1100 -> HUB0000 Port:0 S/N:561064: 0x34 - Device not Attached
2020-11-23T13:04:06 <ERROR> phidget22[PhidgetVINTDevice_bridgeInput()] : Failed to send VINT_PACKET_TYPE_PHIDGET_RESET message: 0x34 - Device not Attached
2020-11-23T13:04:06 <ERROR> phidget22[dispatchEntry()] : Failed to send BP_OPENRESET to device for Digital Output Isolated Ch:1 -> REL1100 -> HUB0000 Port:0 S/N:561064: 0x34 - Device not Attached
2020-11-23T13:04:07 <Warn> phidget22[waitForPendingPacket()] : Packet tracker 0 waitForPendingPacket timeout (1000ms).
2020-11-23T13:04:07 <Warn> phidget22[waitForPendingPacket()] : Packet tracker 0 waitForPendingPacket timeout (1000ms).
2020-11-23T13:04:07 <ERROR> phidget22[PhidgetVINTDevice_bridgeInput()] : Failed to send VINT_PACKET_TYPE_PHIDGET_RESET message: 0x03 - Timed Out
2020-11-23T13:04:07 <ERROR> phidget22[PhidgetVINTDevice_bridgeInput()] : Failed to send VINT_PACKET_TYPE_PHIDGET_RESET message: 0x03 - Timed Out
2020-11-23T13:04:07 <ERROR> phidget22[dispatchEntry()] : Failed to send BP_OPENRESET to device for Digital Output Isolated Ch:2 -> REL1100 -> HUB0000 Port:0 S/N:561064: 0x03 - Timed Out
2020-11-23T13:04:07 <ERROR> phidget22[dispatchEntry()] : Failed to send BP_OPENRESET to device for Digital Output Isolated Ch:3 -> REL1100 -> HUB0000 Port:0 S/N:561064: 0x03 - Timed Out
2020-11-23T13:04:07 <Info> phidget22[deviceDetach()] : REL1100 (4x Isolated Solid State Relay Phidget) v110 -> HUB0000 Port:0 S/N:561064