Skip to content
Snippets Groups Projects

ble: add card10 service with basic function

Merged genofire requested to merge (removed):ble-rocket into master
All threads resolved!
Compare and
4 files
+ 329
1
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 74
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``
 
 
- Vibra characteristic:
 
 
UUID: ``0000f10f-2342-2342-2342-234223422342``
 
write
 
 
- Rockets characteristic:
 
 
UUID: ``0000f110-2342-2342-2342-234223422342``
 
write
 
 
- Single led characteristic:
 
 
UUID: ``0000f111-2342-2342-2342-234223422342``
 
write
 
 
vibra characteristic
 
---------------------------------
 
 
The vibra characteristic makes it possible to let the card10 for given ms in a ``uint16`` vibrate.
 
 
- One secound: ``0xe803``
 
 
Rockets characteristic
 
---------------------------------
 
 
The Rockets characteristic makes it possible to address every (three) rockets.
 
Just write there two byte array.
 
 
Dataformat:
 
 
====== =========
 
0 1
 
------ ---------
 
rocket lightness
 
====== =========
 
 
- Enable Rocket 1: ``0x00ff``
 
- Disable Rocket 2: ``0x0100``
 
- Enable Rocket 3 with 50% lightness: ``0x027f``
 
 
Single led characteristic
 
---------------------------------
 
 
This characteristic makes it possible to address every single led.
 
Just write a byte array ``uint18`` address of led and three ``uint8`` for the rgb color.
 
 
Dataformat:
 
 
====== ===== ===== =====
 
0-1 2 3 4
 
------ ----- ----- -----
 
led nr red green blue
 
====== ===== ===== =====
 
 
- set led 14 red: ``0x0d00ff0000``
 
- set led 14 blue: ``0x0d000000ff``
 
- disable led 14: ``0x0d00000000``
Loading