CymatiCorp / CyKit

Python 3x server to deliver neural EEG data to browser and generic clients via TCP stream.
https://github.com/CymatiCorp/CyKit/wiki/EEG-CyKit-1.0-updates
Other
139 stars 48 forks source link

emotiv epoc flex #24

Open sal7g86 opened 4 years ago

sal7g86 commented 4 years ago

Hi! Is it possible to use the Emotiv Epoc Flex?

From the code (eeg.py) I see that only these devices are supported: epoc, epoc + and insight:

` # --- Model 1 > [Epoc::Premium] if model == 1: k = [sn[-1],00,sn[-2],72,sn[-1],00,sn[-2],84,sn[-3],16,sn[-4],66,sn[-3],00,sn[-4],80] self.samplingRate = 128 self.channels = 40

    # --- Model 2 > [Epoc::Consumer]
    if model == 2:   
        k = [sn[-1],00,sn[-2],84,sn[-3],16,sn[-4],66,sn[-1],00,sn[-2],72,sn[-3],00,sn[-4],80]
        self.samplingRate = 128
        self.channels = 40

    # --- Model 3 >  [Insight::Premium]
    if model == 3:
        k = [sn[-2],00,sn[-1],68,sn[-2],00,sn[-1],12,sn[-4],00,sn[-3],21,sn[-4],00,sn[-3],88]
        self.samplingRate = 128
        self.channels = 20

    # --- Model 4 > [Insight::Consumer]
    if model == 4: 
        k = [sn[-1],00,sn[-2],21,sn[-3],00,sn[-4],12,sn[-3],00,sn[-2],68,sn[-1],00,sn[-2],88]
        self.samplingRate = 128
        self.channels = 20

    # --- Model 5 > [Epoc+::Premium]
    if model == 5:
        k = [sn[-2],sn[-1],sn[-2],sn[-1],sn[-3],sn[-4],sn[-3],sn[-4],sn[-4],sn[-3],sn[-4],sn[-3],sn[-1],sn[-2],sn[-1],sn[-2]]
        self.samplingRate = 256
        self.channels = 40

    # --- Model 6 >  [Epoc+::Consumer]
    if model == 6:
        k = [sn[-1],sn[-2],sn[-2],sn[-3],sn[-3],sn[-3],sn[-2],sn[-4],sn[-1],sn[-4],sn[-2],sn[-2],sn[-4],sn[-4],sn[-2],sn[-1]]
        self.samplingRate = 256
        self.channels = 40

    # --- Model 7 > [EPOC+::Standard]-(14-bit mode)
    if model == 7: 
        k = [sn[-1],00,sn[-2],21,sn[-3],00,sn[-4],12,sn[-3],00,sn[-2],68,sn[-1],00,sn[-2],88]
        self.samplingRate = 128
        self.channels = 40 `
warrenarea commented 4 years ago

in theory, yes. the model encryption key is 4 i just haven't quite figured out the format that the data is in. i don't think it would be terribly difficult though.

most of the Emotiv products are encrypted with AES, and then after that it is just a matter of finding out what format they put the data in. i think we generally just assume its more difficult than it actually is.