Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HID device on Mac OS X Lion 10.7.3 #13

Closed
xlr-8 opened this issue Mar 29, 2012 · 2 comments
Closed

HID device on Mac OS X Lion 10.7.3 #13

xlr-8 opened this issue Mar 29, 2012 · 2 comments

Comments

@xlr-8
Copy link

xlr-8 commented Mar 29, 2012

Hello,

I am currently testing the Emokit on OS X 10.7.3,
However the problem is that no hid devices (named /dev/hidraw5 or else) is listed in the /dev directory.

The following command gives no result:
$ ls -l /dev | grep -i raw
$

I tried to figured it out why, ran an hidapi (https://github.com/signal11/hidapi/downloads) to see what it detects and apparently it detect the usb device, as you can see:

Device Found
type: 1234 ed02
path: USB_1234_ed02_0x7f9c985020e0
serial_number: SN20110525001425
Manufacturer: Emotiv Systems Pty Ltd
Product: Receiver Dongle L01
Release: 3
Interface: -1

But I cannot manage to access it, I have no clue of its path... And without it, I cannot obviously read the raw data from the device.

Finally here is the output of the render.py script:

$ ./render.py
No psyco. Expect poor performance.
Fine, connected to the Emotiv EPOC receiver
Exception in thread Thread-1:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 530, in __bootstrap_inner
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 483, in run
self.__target(_self.__args, *_self.__kwargs)
File "/path/to/the/qdot-emokit-5ee6d54/python/emotiv.py", line 99, in reader
self.hidraw = open("/dev/hidraw5")
IOError: [Errno 2] No such file or directory: '/dev/hidraw5'

Fun fact: So far, I understand that the "setupPosix" function in emotiv.py always return True (no matter if the device has been found or not), which makes the script display: "Fine, connected to the Emotiv EPOC receiver" :D

Note: I have pyusb (1.0.0a2) and libusb (1.0) installed on my machine.

Please let me know, if I forgot to mention any other important information.

Thank you,

@qdot
Copy link
Member

qdot commented Mar 29, 2012

The python module doesn't work on OS X, period. hidraw is a linux construct, and as far as I remember I never wrote a pyusb based python module. You're stuck with the C version of the moment. I'll try to update the readme to reflect this soon.

@qdot qdot closed this as completed Mar 29, 2012
@xlr-8
Copy link
Author

xlr-8 commented Mar 29, 2012

Alright, thanks for the quick answer!
I'll give a try on Linux then ;)

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants