(self)
Setup for headset on a non-windows platform.
        Receives packets from headset and sends them to a Queue to be processed
        by the crypto thread.
Setup for headset on a non-windows platform.
        Receives packets from headset and sends them to a Queue to be processed
        by the crypto thread.
Setup for headset on a non - windows platform . Receives packets from headset and sends them to a Queue to be processed by the crypto thread .
def setup_not_windows(self):
        """
        Setup for headset on a non-windows platform.
        Receives packets from headset and sends them to a Queue to be processed
        by the crypto thread.
        """
        if os.path.exists('/dev/eeg/raw'):
            self.hid = open("/dev/eeg/raw")
        if self.hid is not None:
            # The decryption is handled by the Linux epoc daemon. We don't need to handle it.
            self.platform += " raw_eeg"
        else:
            path, serial_number = hid_enumerate(hidapi, self.platform)
            if len(path) == 0:
                print_hid_enumerate(system_platform, hidapi)
                raise Exception("Device not found")
            self.serial_number = serial_number
            self.hid = hidapi.hid_open_path(path)
def setup_not_windows ( self ) : if os . path . exists ( '/dev/eeg/raw' ) : self . hid = open ( "/dev/eeg/raw" ) if self . hid is not None : # The decryption is handled by the Linux epoc daemon. We don't need to handle it. self . platform += " raw_eeg" else : path , serial_number = hid_enumerate ( hidapi , self . platform ) if len ( path ) == 0 : print_hid_enumerate ( system_platform , hidapi ) raise Exception ( "Device not found" ) self . serial_number = serial_number self . hid = hidapi . hid_open_path ( path )