- Posted on
Mon Mar 11, 2013 7:54 am
-
Otis
offline
-
- Posts: 210
- Joined: Jan 24, 2006
First, a quick update on the kernel panics that I mentioned on another thread: when I removed the Phidgets drivers, the Phidgets plugin, and disabled the EasyDAQ plugin, the kernel panics all stopped. Might there be a conflict? I'm keeping an eye on it.
I'm running OS X 10.6.8, Indigo 6.0.0.b5, Phidgets Plugin 0.5.4, and the current Phidgets drivers and SBC software.
Now, the current problem: I did get my 1017 working successfully connected directly to a USB port, although it would disconnect periodically at the end of a 15-foot active USB cable.
So, I finally bought a Phidgets SBC2 and re-installed the Phidgets drivers and updated the SBC2 to current software. I now have the SBC2 connected to my network, and two 1017 modules connected to the SBC2.
I'm guessing I don't have to define the SBC2 itself in Indigo— it operates transparently. Right?
I can control the 1017's relays and the SBC's internal 1018 from the Phidgets preference pane. But when I try to define either of the two 1017s, or the 1018, in Indigo, the devices appear not to be attached to the SBC. The "State" displays in Indigo's Home window as "online" for all three devices.
I defined the boards as Phidget Interface kits. In the Configure Phidget Interface Kit panes, I set the connection as IP Network, the IP address as 127.0.0.1, and the Port as 5001.
If I click on Read IfKit Config, the following is displayed for about 10 seconds: Waiting for button reply …
and in the log:
Phidgets No existing ifkit found. Creating new ifkit
Phidgets Opening ifkit....
Error (client) timeout waiting for plugin response from com.perceptiveautomation.indigoplugin.Phidgets for request UiAction
Error (client) received unexpected packet response UiAction (waiting for GetUiDynamicList)
Phidgets Error Phidget Exception b 13: Given timeout has been exceeded.
Phidgets Error Error in plugin execution UiAction:
Traceback (most recent call last):
File "plugin.py", line 963, in readIfKitConfig
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Phidgets.indigoPlugin/Contents/Server Plugin/Phidgets/Devices/InterfaceKit.py", line 179, in getSensorCount
<class 'Phidgets.PhidgetException.PhidgetException'>:
This error does not occur if the 1017 is plugged into a USB port, but does for both the 1017 and the 1018 plugged into the SBC.
I'm guessing the following error messages are caused by the above; they're included here in case they might be helpful.
If I ignore the above error and "Edit" the Phidget device, and click on Edit Device Settings, after a few seconds the following is displayed at the end of the log:
version : 0
Phidgets Found ifkit device: Phidget1 - speaker control
Phidgets ifKit Thread starting for: Phidget1 - speaker control
Phidgets ifKit Thread init finished for: Phidget1 - speaker control
Phidgets ifKit Thread run() called
Phidgets ifKit ifKit thread run() finished error handler declaration
Phidgets ifKit ifKit thread run() finished sensor change handler declaration
Phidgets ifKit ifKit thread run() finished input change handler declaration
Phidgets ifKit ifKit thread run() finished input change handler declaration
Phidgets ifKit ifKit thread run() finished handler declarations
Phidgets ifKit Start attach for device: Phidget1 - speaker control
Phidgets ifKit Creating interfacekit for serial: 367350
Phidgets ifKit IfKit thread run() Created the IfKit object
Phidgets ifKit IfKit thread run() set all the handlers
Phidgets Debug Opening phidget object....
Phidgets ifKit IfKit thread run() opened the Phidget device
Phidgets Added ifKit: Phidget1 - speaker control
Phidgets Created ifKit thread: serial:1719644183, phidget Is:367350
Phidgets exiting deviceStartComm -->>
Phidgets Error IfKit Exception (Wait for Attach) from serial 367350, 13: Given timeout has been exceeded.
Phidgets ifKit IfKit thread run() phidget device attached
The if I try to define a relay as a device, the following excerpts appear in the log (clicking on Edit Device Settings and Save).(I think this verifies that the device is not attached):
Phidgets Dictionary exists
Phidgets Error IfKit Exception (Wait for Attach) from serial 367751, 13: Given timeout has been exceeded.
Phidgets ifKit IfKit thread run() phidget device attached
And sometimes the following:
Phidgets Entering didDeviceCommPropertyChange for device: Phidget2 R0 Damper1 test (1524413457 - phDoIfKit)
Phidgets Digital Input on dev num: 1324554797
Phidgets ifKit Entered readDigitalOutput for device Phidget2 - damper control , index 3
Phidgets Error Error in plugin execution ServerReplacedElem:
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 6/IndigoPluginHost.app/Contents/PlugIns/plugin_base.py", line 800, in deviceUpdated
File "plugin.py", line 326, in didDeviceCommPropertyChange
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Phidgets.indigoPlugin/Contents/Server Plugin/ifkit.py", line 224, in readDigitalOutput
<type 'exceptions.UnboundLocalError'>: local variable 'inValue' referenced before assignment
When I reload the Phidgets Plugin, the following is displayed:
Phidgets Error IfKit Exception (Wait for Attach) from serial 331344, 13: Given timeout has been exceeded.
Phidgets ifKit IfKit thread run() phidget device attached
Phidgets Error IfKit Exception (Wait for Attach) from serial 367751, 13: Given timeout has been exceeded.
Phidgets ifKit IfKit thread run() phidget device attached
(One 1017 was not plugged in during that reload)
I get the same messages regardless of whether or not the 1017s are plugged into the SBC.
Am I missing a step to connect the InterfaceKits to the SBC board??