From 3bd0e52c7a406476d6fc7d0e74e64a652a447914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9verin=20Lemaignan?= Date: Tue, 21 Sep 2010 23:07:30 +0200 Subject: [PATCH] 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. --- linux/epoc.rules | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 linux/epoc.rules diff --git a/linux/epoc.rules b/linux/epoc.rules new file mode 100644 index 0000000..87bb1bb --- /dev/null +++ b/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" +