HAPPY ELECTRONICS E-shop

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

Serial protocol commands
CommandMeaning
c|R|G|Bsets the colour
p|p1|p2light intensity (PWM 0–1023)
k|l1|l2sets the flash length
mreceives the flash time
nreceives the off time
s / tstart / stop flashing
P / Spause / end pause (timer)
greturns the current time in 1/10,000 s
i / Iversion as text (e.g. pcmm v13) / as a number (13)
M, Nreturns the free bytes in the buffer
rreset
u1836 / Lunlock / lock
bstarts 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.