def setUpClass(cls):
     payload = [0x80, 0x02, 0x60, 0x0]  # first raw value
     payload.extend([0x80, 0x02, 0x13, 0x12])  # second raw value
     payload.extend([0x2, 0x55])  # poor signal level value
     payload.extend([0x4, 0x25])  # attention level value
     payload.extend([0x5, 0x35])  # meditation level value
     payload.extend([0x16, 0x15])  # blink level value
     payload.extend(
         [0x83, 0x18, 0x15, 0x13, 0x17, 0x12, 0x11, 0x10, 0x9, 0x8,
          0x7])  # 3 eeg powers
     payload.extend([0x14, 0x13, 0x17, 0x12, 0x11, 0x10, 0x9, 0x8,
                     0x5])  # 3 more eeg powers
     payload.extend([0xaf, 0x13, 0xbf, 0x0, 0x1, 0x0])  # 2 more eeg powers
     cls._payloadParser = MindwavePacketPayloadParser(payload)
     cls._dataPoints = cls._payloadParser.parseDataPoints()
 def _readDataPointsFromPayload(self, payloadBytes):
     payloadParser = MindwavePacketPayloadParser(payloadBytes)
     return payloadParser.parseDataPoints()
Example #3
0
 def _readDataPointsFromPayload(self, payloadBytes):
     payloadParser = MindwavePacketPayloadParser(payloadBytes)
     return payloadParser.parseDataPoints();