Skip to content
Snippets Groups Projects
Forked from card10 / firmware
1340 commits behind the upstream repository.
card10.rst 2.38 KiB

Bluetooth Card10 Service

Warning

The specification is still work in progress

The Card10 Service implemented a direct Hardware access of the card10.

BLE Service

The current draft uses following service specification:

  • Service

    UUID: 42230200-2342-2342-2342-234223422342

  • Time update characteristic:

    UUID: 42230201-2342-2342-2342-234223422342 write

  • Vibra characteristic:

    UUID: 4223020f-2342-2342-2342-234223422342 write

  • Rockets characteristic:

    UUID: 42230210-2342-2342-2342-234223422342 write

  • Single rgb led characteristic:

    UUID: 422302ef-2342-2342-2342-234223422342 write

  • Light sensor characteristic:

    UUID: 422302f0-2342-2342-2342-234223422342 read

Time update characteristic

The time update characteristic makes it possible to set the current time given in milliseconds after 1.1.1970 in the UTC timezone. The value is represented as a big endian uint64

  • Thu Aug 15 19:40:45 UTC 2019 : 0x0 0x0 0x1 0x6c 0x96 0xcb 0xf8 0xcc

Vibra characteristic

The vibra characteristic makes it possible to let the card10 for given millisecound in a uint16 vibrate.

  • One secound: 0xe803

Rockets characteristic

The Rockets characteristic makes it possible to address every three rockets. Just write there three byte array, one for evey rocket.

Dataformat:

0 1 2
Rocket0 Rocket1 Rocket2
  • Enable only Rocket0: 0xff0000
  • Enable all rockets with 50% brightness: 0x7f7f7f

Single rgb led characteristic

This characteristic makes it possible to address every single rgb led. Just write a byte array uint18 address of led and three uint8 for the rgb color.

Dataformat: