-
Hauke Mehrtens authored
This adds BLE a characteristic which allows to set the current time. The time is set in milliseconds since 1.1.1970 as 64 bit value. Signed-off-by:
Hauke Mehrtens <hauke@hauke-m.de>
Hauke Mehrtens authoredThis adds BLE a characteristic which allows to set the current time. The time is set in milliseconds since 1.1.1970 as 64 bit value. Signed-off-by:
Hauke Mehrtens <hauke@hauke-m.de>
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
-
light sensor characteristic:
UUID:
422302f0-2342-2342-2342-234223422342
read -
Vibra characteristic:
UUID:
4223020f-2342-2342-2342-234223422342
write -
Rockets characteristic:
UUID:
42230210-2342-2342-2342-234223422342
write -
Time update characteristic:
UUID:
42230201-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
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