Phidgets 21 in OSX Snow Leopard 64-bit

Supporting 10.7 and up
callumj
Phidgetsian
Posts: 7
Joined: Tue Sep 29, 2009 8:58 am
Contact:

Phidgets 21 in OSX Snow Leopard 64-bit

Postby callumj » Tue Sep 29, 2009 9:08 am

Hi

I can't seem to get my LED Phidgets past the waiting for attachment/open stage regardless of when I do it in the PrefPane section or on my Java application.

I have tried this in 32-bit and 64-bit kernel mode.

Thanks,
Callum

EDIT: I tried with the latest phidget21.jar and I seem to get this on run.
Exception in thread "main" java.lang.NoSuchMethodError: <init>
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1878)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1779)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at com.phidgets.Phidget.<clinit>(Phidget.java:22)
at projecthurricane.Panel.<init>(Panel.java:43)
at hurricanelauncher.Main.main(Main.java:20)

AdamS

Re: Phidgets 21 in OSX Snow Leopard 64-bit

Postby AdamS » Tue Sep 29, 2009 10:20 am

The version for the phidget21.jar you are using is 2.1.6.20090928?

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

Re: Phidgets 21 in OSX Snow Leopard 64-bit

Postby Patrick » Tue Sep 29, 2009 11:48 am

Are you using the latest libraries (released Sept. 28)? Also, make sure that the phidget21.jar version matches the version of the Phidget libraries installed (as shown in the Phidgets preference pane).

-Patrick

callumj
Phidgetsian
Posts: 7
Joined: Tue Sep 29, 2009 8:58 am
Contact:

Re: Phidgets 21 in OSX Snow Leopard 64-bit

Postby callumj » Wed Sep 30, 2009 6:17 am

Hi,

Fixed the Java issue, but we are now at the original problem sadly. Both the PrefPane app and the Java app cannot make a connection to the Phidget, they can read data from it (pull Labels) but cannot Attach the devices.

Thanks!

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

Re: Phidgets 21 in OSX Snow Leopard 64-bit

Postby Patrick » Wed Sep 30, 2009 11:04 am

If you run:

Code: Select all

ioreg -w 0 -r -n PhidgetLED

from the terminal, what does it print under the IOUSBInterface tree?

-Patrick

callumj
Phidgetsian
Posts: 7
Joined: Tue Sep 29, 2009 8:58 am
Contact:

Re: Phidgets 21 in OSX Snow Leopard 64-bit

Postby callumj » Sat Oct 03, 2009 12:43 am

cjmbpro:~ callumj$ ioreg -w 0 -r -n PhidgetLED
+-o PhidgetLED@26231300 <class IOUSBDevice, id 0x10000086f, registered, matched, active, busy 0 (790 ms), retain 10>
| {
| "sessionID" = 5117485934987
| "iManufacturer" = 1
| "bNumConfigurations" = 1
| "idProduct" = 74
| "bcdDevice" = 513
| "Bus Power Available" = 250
| "bMaxPacketSize0" = 8
| "USB Product Name" = "PhidgetLED"
| "iProduct" = 2
| "iSerialNumber" = 3
| "USB Address" = 7
| "bDeviceClass" = 0
| "bDeviceSubClass" = 0
| "locationID" = 639832832
| "IOUserClientClass" = "IOUSBDeviceUserClientV2"
| "PortNum" = 3
| "IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle"}
| "bDeviceProtocol" = 0
| "USB Vendor Name" = "Phidgets Inc."
| "Device Speed" = 0
| "idVendor" = 1730
| "USB Serial Number" = "41297"
| "Requested Power" = 25
| "IOGeneralInterest" = "IOCommand is not serializable"
| "Low Power Displayed" = No
| }
|
+-o IOUSBCompositeDriver <class IOUSBCompositeDriver, id 0x100000874, !registered, !matched, active, busy 0, retain 4>
+-o IOUSBInterface@0 <class IOUSBInterface, id 0x100000878, registered, matched, active, busy 0 (168 ms), retain 12>
+-o IOUSBHIDDriver <class IOUSBHIDDriver, id 0x100000880, registered, matched, active, busy 0 (87 ms), retain 7>
| +-o IOHIDInterface <class IOHIDInterface, id 0x100000885, registered, matched, active, busy 0 (6 ms), retain 5>
+-o IOUSBInterfaceUserClientV2 <class IOUSBInterfaceUserClientV2, id 0x100000891, !registered, !matched, active, busy 0, retain 6>
+-o IOUSBInterfaceUserClientV2 <class IOUSBInterfaceUserClientV2, id 0x1000008d7, !registered, !matched, active, busy 0, retain 6>

+-o PhidgetLED@26231200 <class IOUSBDevice, id 0x100000870, registered, matched, active, busy 0 (676 ms), retain 10>
| {
| "sessionID" = 5117610931182
| "iManufacturer" = 1
| "bNumConfigurations" = 1
| "idProduct" = 74
| "bcdDevice" = 513
| "Bus Power Available" = 250
| "bMaxPacketSize0" = 8
| "USB Product Name" = "PhidgetLED"
| "iProduct" = 2
| "iSerialNumber" = 3
| "USB Address" = 8
| "bDeviceClass" = 0
| "bDeviceSubClass" = 0
| "locationID" = 639832576
| "IOUserClientClass" = "IOUSBDeviceUserClientV2"
| "PortNum" = 2
| "IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle"}
| "bDeviceProtocol" = 0
| "USB Vendor Name" = "Phidgets Inc."
| "Device Speed" = 0
| "idVendor" = 1730
| "USB Serial Number" = "40885"
| "Requested Power" = 25
| "IOGeneralInterest" = "IOCommand is not serializable"
| "Low Power Displayed" = No
| }
|
+-o IOUSBCompositeDriver <class IOUSBCompositeDriver, id 0x10000087b, !registered, !matched, active, busy 0, retain 4>
+-o IOUSBInterface@0 <class IOUSBInterface, id 0x10000087d, registered, matched, active, busy 0 (172 ms), retain 12>
+-o IOUSBHIDDriver <class IOUSBHIDDriver, id 0x100000889, registered, matched, active, busy 0 (11 ms), retain 7>
| +-o IOHIDInterface <class IOHIDInterface, id 0x10000088e, registered, matched, active, busy 0 (5 ms), retain 5>
+-o IOUSBInterfaceUserClientV2 <class IOUSBInterfaceUserClientV2, id 0x100000893, !registered, !matched, active, busy 0, retain 6>
+-o IOUSBInterfaceUserClientV2 <class IOUSBInterfaceUserClientV2, id 0x1000008d5, !registered, !matched, active, busy 0, retain 6>

+-o PhidgetLED@26231100 <class IOUSBDevice, id 0x100000871, registered, matched, active, busy 0 (557 ms), retain 10>
| {
| "sessionID" = 5117721173302
| "iManufacturer" = 1
| "bNumConfigurations" = 1
| "idProduct" = 74
| "bcdDevice" = 513
| "Bus Power Available" = 250
| "bMaxPacketSize0" = 8
| "USB Product Name" = "PhidgetLED"
| "iProduct" = 2
| "iSerialNumber" = 3
| "USB Address" = 9
| "bDeviceClass" = 0
| "bDeviceSubClass" = 0
| "locationID" = 639832320
| "IOUserClientClass" = "IOUSBDeviceUserClientV2"
| "PortNum" = 1
| "IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle"}
| "bDeviceProtocol" = 0
| "USB Vendor Name" = "Phidgets Inc."
| "Device Speed" = 0
| "idVendor" = 1730
| "USB Serial Number" = "40862"
| "Requested Power" = 25
| "IOGeneralInterest" = "IOCommand is not serializable"
| "Low Power Displayed" = No
| }
|
+-o IOUSBCompositeDriver <class IOUSBCompositeDriver, id 0x100000877, !registered, !matched, active, busy 0, retain 4>
+-o IOUSBInterface@0 <class IOUSBInterface, id 0x10000087c, registered, matched, active, busy 0 (155 ms), retain 12>
+-o IOUSBHIDDriver <class IOUSBHIDDriver, id 0x100000883, registered, matched, active, busy 0 (49 ms), retain 7>
| +-o IOHIDInterface <class IOHIDInterface, id 0x10000088b, registered, matched, active, busy 0 (2 ms), retain 5>
+-o IOUSBInterfaceUserClientV2 <class IOUSBInterfaceUserClientV2, id 0x100000895, !registered, !matched, active, busy 0, retain 6>
+-o IOUSBInterfaceUserClientV2 <class IOUSBInterfaceUserClientV2, id 0x1000008d2, !registered, !matched, active, busy 0, retain 6>

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

Re: Phidgets 21 in OSX Snow Leopard 64-bit

Postby Patrick » Mon Oct 05, 2009 10:55 am

It's not matching the Phidgets driver properly, are you running 64-bit or 32-bit Kernel?

-Patrick

callumj
Phidgetsian
Posts: 7
Joined: Tue Sep 29, 2009 8:58 am
Contact:

Re: Phidgets 21 in OSX Snow Leopard 64-bit

Postby callumj » Tue Oct 06, 2009 7:05 am

64-bit kernel.

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

Re: Phidgets 21 in OSX Snow Leopard 64-bit

Postby Patrick » Tue Oct 06, 2009 9:51 am

Does it work under the 32-bit kernel? The output should report:

Code: Select all

    +-o com_phidgets_Phidget  <class com_phidgets_Phidget, id 0x10000042a, !registered, !matched, active, busy 0, retain 4>

instead of:

Code: Select all

    +-o IOUSBHIDDriver <class IOUSBHIDDriver, id 0x100000889, registered, matched, active, busy 0 (11 ms), retain 7>


Also, what output do you get from trying to manually load the Kext?:

Code: Select all

sudo kextload -v /System/Library/Extensions/Phidget.kext


Unfortunately we don't have a machine here that can boot into the 64-bit kernel so I have only been able to do limited testing.

-Patrick

callumj
Phidgetsian
Posts: 7
Joined: Tue Sep 29, 2009 8:58 am
Contact:

Re: Phidgets 21 in OSX Snow Leopard 64-bit

Postby callumj » Wed Oct 07, 2009 7:12 am

Looks like a 64-bit issue:

sh-3.2# kextutil /System/Library/Extensions/Phidget.kext
/System/Library/Extensions/Phidget.kext has problems:
Dependency Resolution Failures:
64-bit kexts must use com.apple.kpi.* libraries, not com.apple.kernel* libraries.

sh-3.2#


Return to “macOS”

Who is online

Users browsing this forum: No registered users and 0 guests