Hello,
Mac OS X 10.9.1
I got my Bluefruit EZ-Key and I'm loving it so far, I've paired it with my Mac, and it flawlessly recognizes the keypresses I've been able to send (just 1 and 2 right now)
Now for my issue.
I run GUI_EZKey_remapper with Processing 2.1, i see the GUI of the board, but when I go to send the information to the device to remap the buttons, I get the following:
ControlP5 2.0.4 infos, comments, questions at http://www.sojamo.de/libraries/controlP5
Using library: hidapi-mac.so
Dec 17, 2013 9:10:44 PM controlP5.ControlBroadcaster printMethodError
SEVERE: An error occured while forwarding a Controller event, please check your code at send_map
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at controlP5.ControlBroadcaster.invokeMethod(Unknown Source)
at controlP5.ControlBroadcaster.callTarget(Unknown Source)
at controlP5.ControlBroadcaster.broadcast(Unknown Source)
at controlP5.Controller.broadcast(Unknown Source)
at controlP5.Button.setValue(Unknown Source)
at controlP5.Button.activate(Unknown Source)
at controlP5.Button.mouseReleased(Unknown Source)
at controlP5.Controller.setMousePressed(Unknown Source)
at controlP5.ControllerGroup.setMousePressed(Unknown Source)
at controlP5.ControlWindow.mouseReleasedEvent(Unknown Source)
at controlP5.ControlWindow.mouseEvent(Unknown Source)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1160)
at processing.core.PApplet.handleMethods(PApplet.java:1355)
at processing.core.PApplet.handleMouseEvent(PApplet.java:2740)
at processing.core.PApplet.dequeueEvents(PApplet.java:2643)
at processing.core.PApplet.handleDraw(PApplet.java:2317)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
at processing.core.PApplet.run(PApplet.java:2177)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.UnsatisfiedLinkError: /Users/mapple/Desktop/GUI_EZKey_remapper/code/native/mac/libhidapi-jni-32.jnilib: dlopen(/Users/mapple/Desktop/GUI_EZKey_remapper/code/native/mac/libhidapi-jni-32.jnilib, 1): no suitable image found. Did find:
/Users/mapple/Desktop/GUI_EZKey_remapper/code/native/mac/libhidapi-jni-32.jnilib: mach-o, but wrong architecture
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1851)
at java.lang.Runtime.load0(Runtime.java:795)
at java.lang.System.load(System.java:1062)
at GUI_EZKey_remapper.start_HID_transfer(GUI_EZKey_remapper.java:743)
at GUI_EZKey_remapper.send_map(GUI_EZKey_remapper.java:373)
... 26 more
Any ideas?
UPDATE:
I went through the code and replaced the 32 in the following with 64
else if (os.indexOf("mac") != -1)
{
library = "hidapi-mac.so";
library_file = sketchPath("")+"code/native/mac/libhidapi-jni-32.jnilib";
}
Now, when I run the app I get
ControlP5 2.0.4 infos, comments, questions at http://www.sojamo.de/libraries/controlP5
Using library: hidapi-mac.so
Native library loaded
Listing HID devices
Adafruit EZ-Key 07fa
Apple Mikey HID Driver
Mapple’s Mouse
Apple Keyboard
Apple Keyboard
Apple IR
Could not find Bluefruit
So then i changed the Code saying:
if (info.getProduct_string()!=null && info.getProduct_string().contains("Bluefruit") && (target_device==null)) {
to
if (info.getProduct_string()!=null && info.getProduct_string().contains("Adafruit") && (target_device==null)) {
Now it works.
Bluefruit EZ-Key HID and Mac OS 10.9
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- garble7
- Posts: 9
- Joined: Wed Dec 18, 2013 1:15 am
Bluefruit EZ-Key HID and Mac OS 10.9
Last edited by garble7 on Wed Dec 18, 2013 1:31 am, edited 1 time in total.
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Bluefruit EZ-Key HID and Mac OS 10.9
Nice job of tracking down the problem!
I'll check with the people who created the remapper to see if they know of any 32/64 bit issues. If so, we'll tweak things so they Just Work.
I'll check with the people who created the remapper to see if they know of any 32/64 bit issues. If so, we'll tweak things so they Just Work.
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: Bluefruit EZ-Key HID and Mac OS 10.9
Try the new 12/20 download
http://learn.adafruit.com/introducing-b ... s-wireless
let us know if it *doesnt* work
http://learn.adafruit.com/introducing-b ... s-wireless
let us know if it *doesnt* work
Please be positive and constructive with your questions and comments.