Skip to content

Commit 3bd0e52

Browse files
author
Séverin Lemaignan
committed
Added udev rule for the headset.
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.
1 parent 1ac4373 commit 3bd0e52

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

linux/epoc.rules

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#UDEV rule for the Emotiv EPOC headset
2+
#
3+
#Once installed into /etc/udev/rules.d, udev will recognize the headset and
4+
#create a /dev/eeg/encrypted device where you can access the headset encryted
5+
#stream.
6+
#
7+
#It will as well attempt to start a daemon in charge of decrypting the stream.
8+
#If the daemon successfully starts, you will find the data under /dev/eeg/raw
9+
10+
ATTR{manufacturer}=="Emotiv Systems Pty Ltd", ATTRS{product}=="Receiver Dongle L01", NAME="eeg/epoc%2", SYMLINK+="epoc%n"
11+
12+
#Consumer headset
13+
#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"
14+
15+
#Research headset
16+
SUBSYSTEM=="hidraw", ATTRS{interface}=="Emotiv RAW DATA", NAME="eeg/encrypted%n", SYMLINK+="eeg/encrypted", MODE="0444", RUN +="decrypt_emotiv.sh research"
17+

0 commit comments

Comments
 (0)