nh2 / hemokit

Haskell library for the Emotiv EEG, inspired by the Emokit code
31 stars 13 forks source link

No devices found #11

Closed basophobic closed 8 years ago

basophobic commented 8 years ago

Hello, I have installed hemokit latest version along with hidapi (@chpatrick) with no errorrs on a Linux Ubuntu 16.04 LTS system, but when I try to execute hemokit-dump (or any other programs), it results with the following error:

hemokit-dump: user error (No devices found.)

I have also installed separately on the same machine emokit (@qdot) and my Emotiv Epoc headset is being recognized both using the python scripts, and the executables files. The VID and PID of the headset are inserted in the rules file accordingly (in /etc/udev/rules.d), and the device is recognized under /dev/hidraw1 and 2 (lsusb command also shows the headset correctly). Any hints? I have obviously not looked everywhere, so any help would be appreciated. Thanks in advance

basophobic commented 8 years ago

Coming back to this, I just compiled hidapi using the testgui option. All work well when hidapi-hidraw-testgui runs. Emotiv is seen and can be connected and data come from the electrodes. So it must be something wrong I'm doing on the hemokit side.

nh2 commented 8 years ago

When scanning for devices, Hemokit uses the IDs known to me at the time I wrote them:

https://github.com/nh2/hemokit/blob/b2d78925eca1ed992d9fe43ba50057065c8b8fec/src/Hemokit.hs#L380

https://github.com/nh2/hemokit/blob/b2d78925eca1ed992d9fe43ba50057065c8b8fec/src/Hemokit.hs#L322

If your vendor or device ID are different, you'll beable to use hemokit-dump giving the device explicitly, but not the automatic detection.

nh2 commented 8 years ago

This should be fixed with commit https://github.com/nh2/hemokit/commit/3ca11ae836218f0109eb5b5215c5c1033827de47

basophobic commented 8 years ago

Problem solved! All works as expected! Thanks a lot!