Phidgets Plugin Discussion

Posted on
Sun Mar 10, 2019 10:18 am
midd offline
Posts: 356
Joined: Apr 18, 2010

Re: Phidgets Plugin Discussion

Just finally trying to figure out why Indigo can no longer see my phidget boards. I have two boards and neither f them are connecting in Indigo and yes I have changed the serial number in the configuration setting

It is clearly visible in the Bonjour tab of the preference pane.

Image

I have deleted everything out of indigo. I have even removed the plugin, downgraded the plug in to no avail. I'm back at the most recent version 0.7.4 with the same results. When I attempt to add the interface kit I'm still getting the same errors:

Code: Select all
Phidgets Plugin ifKit           IfKit thread run() opened the Phidget device new device
   Phidgets Plugin                 deviceStartComm: Added type:ifKit, name:new device, serial:407470
   Phidgets Plugin                 exiting deviceStartComm with:[<_MainThread(MainThread, started 140735900545920)>, <ifkit(Thread-2, started 123145324974080)>]
   Phidgets Plugin Error           interfaceKit: Could not attach to device new device. It has been set to offline
   Phidgets Plugin                 Entering didDeviceCommPropertyChange for device: new device (1459536840 - ifKit)
   Phidgets Plugin                 didDeviceCommPropertyChange: No plugin property changes for: ifKit new device


So the phidget board appears as offline in my devices window in indigo. I can go into the setting and when I select ifKit Config I get this:

Code: Select all
  Phidgets Plugin                 readIfKitConfig typeId:
ifKit
   Phidgets Plugin                 readIfKitConfig devId:
1459536840
   Phidgets Plugin                 No existing ifkit found. Creating new ifkit
   Phidgets Plugin                 Opening ifkit....
   Phidgets Plugin                 calling openRemoteIP (ip=127.0.0.1 , port=5001)
   Phidgets Plugin                 calling openRemoteIP completed (ip=127.0.0.1 , port=5001)
   Phidgets                        pre waitForAttach (ip=127.0.0.1 , port=5001)
   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                        Execption raised on waitForAttach (ip=127.0.0.1 , port=5001)
   Phidgets Plugin Error           Phidget Exception b (ip=127.0.0.1 , port=5001) 13: Given timeout has been exceeded.
   Phidgets Plugin Error           Phidget Exception d (ip=127.0.0.1 , port=5001) 5: Phidget not physically attached.
   Phidgets                        Sensors:0, inputs:0, outputs:0
   Phidgets Plugin                 New ifkit closed
   Phidgets Plugin                 ifkit read was successful
   Phidgets Plugin                 readIfKitConfig valuesDict returned: UiValuesDict : (dict)


Just a note that it ran fine on Mac OS 10.8.5 (Mountain Lion). It has not worked since I upgraded to High Sierra,

Indigo 7, High Sierra , on a dedicated 2011 Mac Mini Server.

Posted on
Mon Mar 11, 2019 9:57 am
berkinet offline
User avatar
Posts: 3212
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phidgets Plugin Discussion

midd wrote:
Just finally trying to figure out why Indigo can no longer see my phidget boards. I have two boards and neither f them are connecting in Indigo and yes I have changed the serial number in the configuration setting ...,

First off, I would make sure your Phidgets21 libs and the Preference pane code are up to date. The type of error you report often happens with mismatched client and server versions. Perhaps when you upgraded your MacOS, only one part of the Phidgets release was updated. Also, make sure nothing else has the IfKit open through the USB port. Even having the IfKit pref pane open on IfKit listing in the General tab would block it from Indigo.

If you have another computer you can install the IfKit on, just for test purposes, I would suggest trying that as well.

Posted on
Wed Mar 13, 2019 12:06 pm
midd offline
Posts: 356
Joined: Apr 18, 2010

Re: Phidgets Plugin Discussion

Success!!! Reinstalled Phidgets 2.1.9 Library. Did a reboot and it's back online. Thanks!

Indigo 7, High Sierra , on a dedicated 2011 Mac Mini Server.

Posted on
Sun May 12, 2019 4:52 pm
midd offline
Posts: 356
Joined: Apr 18, 2010

Re: Phidgets Plugin Discussion

well I'm back. So I don't know which event caused the error: I did the latest security update to High Sierra this morning and then I lost power for about 30 minutes around 5:30pm EDST. Once again my phidgets board is not recognized by Indigo (both 7.3 and 7.3.1)

I disabled the plugin.
Reinstalled Phidgets library 2.1.9.
Rebooted.
Reloaded the plugin
Attempted to add the phidgets board (It appears in the system preference pane)
I get the following in my log

Code: Select all
 Phidgets Plugin                 deviceStartComm: Found ifKit device Interface Kit
   Phidgets Plugin ifKit           Thread starting for: Interface Kit
   Phidgets Plugin ifKit           Thread init finished for: Interface Kit
   Phidgets Plugin ifKit           Thread run() called
   Phidgets Plugin ifKit           ifKit thread run() finished error handler declaration
   Phidgets Plugin ifKit           ifKit thread run() finished sensor change handler declaration
   Phidgets Plugin ifKit           ifKit thread run() finished input change handler declaration
   Phidgets Plugin ifKit           ifKit thread run() finished output change handler declaration
   Phidgets Plugin ifKit           ifKit thread run() finished handler declarations
   Phidgets Plugin ifKit           Start attach for device: Interface Kit
   Phidgets Plugin                 deviceStartComm: Created ifKit thread: device: 1783143746, serial:407470
   Phidgets                        Low level phidgets libs logging started for device Interface Kit at level 6 to file /var/tmp/phidgetlibs.log
   Phidgets Plugin ifKit           Creating interfacekit for serial: 407470
   Phidgets Plugin ifKit           IfKit thread run() Created the IfKit object
   Phidgets Plugin ifKit           IfKit thread run() set all the handlers
   Phidgets Plugin Debug           Opening phidget object....
   Phidgets Plugin ifKit           IfKit thread run() opened the Phidget device Interface Kit
   Phidgets Plugin                 deviceStartComm: Added type:ifKit, name:Interface Kit, serial:407470
   Phidgets Plugin                 exiting deviceStartComm with:[<_MainThread(MainThread, started 140736265417600)>, <ifkit(Thread-1, started 123145473765376)>]
   Phidgets Plugin                 Entering runConcurrentThread
   Schedule                        solar power
   Phidgets Plugin Error           interfaceKit: Could not attach to device Interface Kit. It has been set to offline
   Phidgets Plugin                 Entering getDeviceStateList for device: new device (1647623507 - phDiIfKit)
   Phidgets Plugin                 getDeviceStateList: Found TYPE ID:phDiIfKit in DICT:


When I select the Read IfKit Config button I get a Communication with the plugin timed out error and this in the log:

Code: Select all
  Phidgets Plugin                 readIfKitConfig typeId:
ifKit
   Phidgets Plugin                 readIfKitConfig devId:
1783143746
   Phidgets Plugin                 No existing ifkit found. Creating new ifkit
   Phidgets Plugin                 Opening ifkit....
   Phidgets Plugin                 calling openRemoteIP (ip=127.0.0.1 , port=5001)
   Phidgets Plugin                 calling openRemoteIP completed (ip=127.0.0.1 , port=5001)
   Phidgets                        pre waitForAttach (ip=127.0.0.1 , port=5001)
   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                        Execption raised on waitForAttach (ip=127.0.0.1 , port=5001)
   Phidgets Plugin Error           Phidget Exception b (ip=127.0.0.1 , port=5001) 13: Given timeout has been exceeded.
   Phidgets Plugin Error           Phidget Exception d (ip=127.0.0.1 , port=5001) 5: Phidget not physically attached.
   Phidgets                        Sensors:0, inputs:0, outputs:0
   Phidgets Plugin                 New ifkit closed
   Phidgets Plugin                 ifkit read was successful
   Phidgets Plugin                 readIfKitConfig valuesDict returned: UiValuesDict : (dict)




I don't know if it's High Sierra but I never had this many reoccurring issues with Mountain Lion 10.8.5.

Indigo 7, High Sierra , on a dedicated 2011 Mac Mini Server.

Posted on
Wed May 15, 2019 2:04 am
berkinet offline
User avatar
Posts: 3212
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phidgets Plugin Discussion

midd wrote:
well I'm back. So I don't know which event caused the error: I did the latest security update to High Sierra this morning and then I lost power for about 30 minutes around 5:30pm EDST. Once again my phidgets board is not recognized by Indigo (both 7.3 and 7.3.1)....
\
Sorry for the delay in responding. I really do not know what is happening in your installation. But, I seriously doubt it is the plugin that is causing the problem. Notice in particular the following errors that were thrown by the Phidgets libs...
Code: Select all
Phidgets Plugin Error           Phidget Exception b (ip=127.0.0.1 , port=5001) 13: Given timeout has been exceeded.
Phidgets Plugin Error           Phidget Exception d (ip=127.0.0.1 , port=5001) 5: Phidget not physically attached.
I suspect you are either running the Phidgets Webservice AND connecting to the ifKit locally, or have somehow misconfigured the Webservice. If you cannot resolve the problem, I suggest contacting Phidgets tech support.

Posted on
Sat May 18, 2019 6:50 pm
jlenigas offline
Posts: 1
Joined: Sep 28, 2017

Re: Phidgets Plugin Discussion

Hi,

I have just purchased a Phidget SCB4 and cannot get it to connect. I can see it in the phidget control panel, have the 2.1 libs loaded, plugin loaded and the it will not communicate with the device.

Is there a guide as to what settings are expected in the plugin setup? IS the IP address the IP address of the phidget or the localhost?

Any help would be much appreciated.

Many thanks.

John

Posted on
Sun May 19, 2019 8:32 am
berkinet offline
User avatar
Posts: 3212
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phidgets Plugin Discussion

jlenigas wrote:
...I have just purchased a Phidget SCB4 and cannot get it to connect. I can see it in the phidget control panel, have the 2.1 libs loaded, plugin loaded and the it will not communicate with the device.
Is there a guide as to what settings are expected in the plugin setup? IS the IP address the IP address of the phidget or the localhost?

There are two important parts here.
  1. ThePhidgets plugin does not support the SBC directly. This is because the SBC is not actually a Phidget, it is just a single board Debian computer. What the plugin supports is an InterfaceKit, like the 1018 8/8/8. The SBC, SBC2 and SBC3 had an onboard 8/8/8 InterfaceKit, and it was that element which is supported in the plugin. ThePhidget21 web-service is used to connect to the InterfaceKit in exactly the same manner it would be used if a 1018 InterfaceKit were connected to another PCc, Raspberry-Pi, or even your local Indigo Mac.
  2. The SBC4 contains a VINT hub instead of an InterfaceKit and the VINT hub is not supported in the Phidget21 lib and, therefore, it is not supported in the plugin.. However, you could connect a 1018 to the SBC4 and that would work with the plugin.

Posted on
Sun May 19, 2019 11:59 am
midd offline
Posts: 356
Joined: Apr 18, 2010

Re: Phidgets Plugin Discussion

I'm really regretting updating to High Sierra. I should have stayed with Mountain Lion. That being said I had a breakthrough. High Sierra blocked a few system extensions from loading and guess what was included? Yep Phidgets.kext! I use Remote Desktop to access my mini. But after many hours, I figured out that the only way to grant permission to allow those extensions to load is directly; meaning you can't use remote desktop.

So the good news is Phidgets is loaded and my phidgets board is recognized by Indigo. The bad news is I'm trying to reinstall my rain gauge and when I select "Click to Continue" I now get this error

Code: Select all
  Phidgets Plugin Error           Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
  File "plugin.py", line 958, in getIfKitIOList
NameError: global name 'dev' is not defined


And while I connected my mini to a keyboard and monitor, my zwave controller took a dump on me!! UGHHH!!!!

Indigo 7, High Sierra , on a dedicated 2011 Mac Mini Server.

Posted on
Sun May 19, 2019 12:09 pm
berkinet offline
User avatar
Posts: 3212
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phidgets Plugin Discussion

midd wrote:
I'm really regretting updating to High Sierra. ... ...so the good news is Phidgets is loaded and my phidgets board is recognized by Indigo. The bad news is I'm trying to reinstall my rain gauge and when I select "Click to Continue" I now get this error

Code: Select all
  Phidgets Plugin Error           Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
  File "plugin.py", line 958, in getIfKitIOList
NameError: global name 'dev' is not defined

Glad you resolved the problem. As to the new error, it looks like a device description somehow got corrupted. Try deleting the device and adding it back again.

Posted on
Sun May 19, 2019 3:04 pm
midd offline
Posts: 356
Joined: Apr 18, 2010

Re: Phidgets Plugin Discussion

Now I'm wondering if it's a power issue with the mini. My zwave is back but my interface kit is offline again. I am using a powered usb hub but I'm still having issues.

Indigo 7, High Sierra , on a dedicated 2011 Mac Mini Server.

Posted on
Wed May 22, 2019 8:13 pm
midd offline
Posts: 356
Joined: Apr 18, 2010

Re: Phidgets Plugin Discussion

No luck. Still getting the same error after disabling, removing the plugin and phidgets preference file in the Indigo folder and then reinstalling.

Is there any other file associated with the plugin?


berkinet wrote:
midd wrote:
I'm really regretting updating to High Sierra. ... ...so the good news is Phidgets is loaded and my phidgets board is recognized by Indigo. The bad news is I'm trying to reinstall my rain gauge and when I select "Click to Continue" I now get this error

Code: Select all
  Phidgets Plugin Error           Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
  File "plugin.py", line 958, in getIfKitIOList
NameError: global name 'dev' is not defined

Glad you resolved the problem. As to the new error, it looks like a device description somehow got corrupted. Try deleting the device and adding it back again.

Indigo 7, High Sierra , on a dedicated 2011 Mac Mini Server.

Posted on
Thu May 23, 2019 5:05 am
berkinet offline
User avatar
Posts: 3212
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phidgets Plugin Discussion

midd wrote:
No luck. Still getting the same error after disabling, removing the plugin and phidgets preference file in the Indigo folder and then reinstalling.
Is there any other file associated with the plugin?...

The error you are seeing would be caused if you tried to create an Indigo device for a sensor attached to an interfaceKit device that had not yet been created in Indigo. Delete the plugin and the saved plugin preference file ( /Library/Application Support/Perceptive Automation/Indigo 7.3/Preferences/Indigo Server Prefs.indiPref ).

Then create an Indigo interfaceKit device and once you see that is online (it will show online in there State column), then create your sensor device.

Who is online

Users browsing this forum: No registered users and 3 guests