Skip to content
Snippets Groups Projects

ble: add card10 service with basic function

Merged genofire requested to merge (removed):ble-rocket into master
Compare and
6 files
+ 328
4
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 63
0
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: ``0000f000-2342-2342-2342-234223422342``
- light sensor characteristic:
UUID: ``0000f0f0-2342-2342-2342-234223422342``
read
- Vibra characteristic:
UUID: ``0000f10f-2342-2342-2342-234223422342``
write
- Rockets characteristic:
UUID: ``0000f110-2342-2342-2342-234223422342``
write
light sensor characteristic
---------------------------------
The light sensor characteristic makes it possible to read the current value of the light sensor by receiving a ``uint16``.
The range of this sensor is between 0 (``0x0``) and 400 (``0x9001``).
- reading of ``0x0e00`` means **14**
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``
Loading