Support · developers
For developers
The cabled Sleep Mask, Mindroid Glasses and the Flex control board communicate over a USB serial port (FTDI). The protocol is simple and open.
Commands
| Command | Meaning |
|---|---|
| c|R|G|B | sets the colour |
| p|p1|p2 | light intensity (PWM 0–1023) |
| k|l1|l2 | sets the flash length |
| m | receives the flash time |
| n | receives the off time |
| s / t | start / stop flashing |
| P / S | pause / end pause (timer) |
| g | returns the current time in 1/10,000 s |
| i / I | version as text (e.g. pcmm v13) / as a number (13) |
| M, N | returns the free bytes in the buffer |
| r | reset |
| u1836 / L | unlock / lock |
| b | starts the bootloader |
Parameters are separated by |. On a PC the device appears as a virtual COM port (FTDI VCP driver), on Android via USB OTG. Port speed and line ending will be added. Mindroid Glasses and the cabled mask are no longer made — see the archive.
Interested in the Bluetooth interface of Sleep Phaser or Sleep Mask V2? Write to us.