diff options
author | JF002 <JF002@users.noreply.github.com> | 2021-01-20 20:07:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 20:07:12 +0000 |
commit | 0e679a02af8155ec3ffb79dab63fda007d9cf81d (patch) | |
tree | 3e5978e7181c6f30050019f13a69db61c4a4b876 /doc | |
parent | f1e7d0b46971c49ea293505425447a8e41547ff3 (diff) | |
parent | ba03372f3b99798de2ce497d34f9ee5697e3be40 (diff) |
Merge pull request #174 from JF002/fixMusicServiceUUID
Fix music service UUID
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ble.md | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -15,6 +15,29 @@ If **CTS** is detected, it'll request the current time to the companion applicat ![BLE connection sequence diagram](ble/connection_sequence.png "BLE connection sequence diagram") +## BLE UUIDs +When possible, InfiniTime tries to implement BLE services defined by the BLE specification. + +When the service does not exist in the BLE specification, InfiniTime implement custom services. As all BLE services, custom services are identified by a UUID. Here is how to define the UUID of custom services in InfiniTime: + +``` + - Base UUID : xxxxxxxx-78fc-48fe-8e23-433b3a1942d0 + - Service UUID : SSSS0000-78fc-48fe-8e23-433b3a1942d0 where SSSS is the service ID + - Characteristic UUID : SSSSCCCC-78fc-48fe-8e23-433b3a1942d0 where CCCC is the characteristic ID for the service SSSS and is different than 0 +``` + +The following custom services are implemented in InfiniTime: + + - Since InfiniTime 0.8: + ``` + * Music Service : 00000000-78fc-48fe-8e23-433b3a1942d0 + ``` + + - Since InfiniTime 0.11: + ``` + * Navigation Service : 00010000-78fc-48fe-8e23-433b3a1942d0 + ``` + ## BLE services [List of standard BLE services](https://www.bluetooth.com/specifications/gatt/services/) |