Skip to content

Commit

Permalink
Added udev rule for the headset.
Browse files Browse the repository at this point in the history
There's an issue with the idProduct/idVendor detection that prevent
for now both the research and the consumer headset to be distinguished...

Can be solved if someone send me the output of:
udevadm info --name=/dev/hidraw2 --attribute-walk for the consumer
headset.
  • Loading branch information
Séverin Lemaignan committed Sep 21, 2010
1 parent 1ac4373 commit 3bd0e52
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions linux/epoc.rules
@@ -0,0 +1,17 @@
#UDEV rule for the Emotiv EPOC headset
#
#Once installed into /etc/udev/rules.d, udev will recognize the headset and
#create a /dev/eeg/encrypted device where you can access the headset encryted
#stream.
#
#It will as well attempt to start a daemon in charge of decrypting the stream.
#If the daemon successfully starts, you will find the data under /dev/eeg/raw

ATTR{manufacturer}=="Emotiv Systems Pty Ltd", ATTRS{product}=="Receiver Dongle L01", NAME="eeg/epoc%2", SYMLINK+="epoc%n"

#Consumer headset
#SUBSYSTEM=="hidraw", ATTRS{idVendor}=="21a1", ATTRS{idProduct}=="0001", ATTRS{interface}=="Emotiv RAW DATA", NAME="eeg/encrypted%n", SYMLINK+="eeg/encrypted", MODE="0444", RUN +="decrypt_emotiv.sh consumer"

#Research headset
SUBSYSTEM=="hidraw", ATTRS{interface}=="Emotiv RAW DATA", NAME="eeg/encrypted%n", SYMLINK+="eeg/encrypted", MODE="0444", RUN +="decrypt_emotiv.sh research"

0 comments on commit 3bd0e52

Please sign in to comment.