NIA

Aus Schlafhacking
Version vom 20. Juni 2016, 12:20 Uhr von Pat (Diskussion | Beiträge) (Community)

(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Produkt

Klasse
mobiles 1 Kanal-EEG
Subklasse
Stirnband
Connectivity
USB (HID)
beim schlafen tragbar
nein

Hersteller

OCZ, Produkt ist leider end of life

Devloper-Programm

kein offizielles SDK

cooles freies Framework ist pyNIA https://github.com/kevinmershon/pynia

Community

Protokollbeschreibung:

Each packet is a 'Bulk/interrupt' command from the device to the host, and is always 55 bytes long.

Each point of data is a 3-byte chunk, with the least significant byte first (you can tell by the way the last of the  3 bytes changes the slowest)

Where a data point is not sent, a padding chunk of '00 12 7A' is sent in its place.

The very last byte shows the number of data points in the packet - usually 4, but sometimes 3 or 5, and occasionally higher if there is a backlog. There is a maximum of 16 data points per packet.

The two bytes before that count a running total of the number of data points sent since the device was powered on, the least significant byte first as usual.

The byte before that is always 'FF'.

The byte before that seems to be indicating how many data points are in the device's internal buffer, but I'm not certain, and I'm not sure how it represents it. It is nearly always 'EE', but is very occasionally 'EF'. When starting up, it can go as high as 'F1' for a few packets.

The two bytes before that are always '38 BD'.

So in general, each packet is:

[Data : 3 * 16] 38 BD [Unknown : 1] FF [Total points : 2] [Points in packet : 1]

Quelle: http://hammil.blogspot.de/2013/03/ocz-nia-on-linux.html