Skip to content

INITIALIZE_DEVICE

theficus edited this page Dec 29, 2021 · 3 revisions

INITIALIZE_DEVICE contains initialization instructions for Mousr

INITIALIZE_DEVICE structure

Byte(s) Data Type Value Note
1 Byte Always 0x30
2-5 UInt32 Current MBAPI version (0x0300)
6-10 UInt32 time in ticks See formula below
14 Byte Always 0x1c
15 Byte Always empty

Month/date formula

  • (int)((DateTime.UtcNow.Ticks & 0x3fffffffffffffff - (1970/01/01 00:00:00).Ticks & 0x3fffffffffffffff) * 1e-07)

Example message (MBAPI version 3, 02:43.643 UTC)

0x3003000000bedf8961000000001c00

Clone this wiki locally