diff options
| author | JF <JF002@users.noreply.github.com> | 2021-10-24 18:06:52 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-24 18:06:52 (GMT) |
| commit | 82ca526ec2db11d9e4aa2d91cd69ed2394e3a843 (patch) | |
| tree | af91df7395abd8bed0d12c276b3703f46cbfadfd /doc | |
| parent | 9538eb97166410ebc362addfb76ec54895491cd7 (diff) | |
| parent | b3a82288997556b04a64d452ec2067747f1fb706 (diff) | |
Merge pull request #754 from InfiniTimeOrg/add-motion-service
Add motion service
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/MotionService.md | 17 | ||||
| -rw-r--r-- | doc/ble.md | 19 |
2 files changed, 29 insertions, 7 deletions
diff --git a/doc/MotionService.md b/doc/MotionService.md new file mode 100644 index 0000000..0d0a551 --- /dev/null +++ b/doc/MotionService.md @@ -0,0 +1,17 @@ +# Motion Service +## Introduction +The motion service exposes step count and raw X/Y/Z motion value as READ and NOTIFY characteristics. + +## Service +The service UUID is **00020000-78fc-48fe-8e23-433b3a1942d0** + +## Characteristics +### Step count (UUID 00020001-78fc-48fe-8e23-433b3a1942d0) +The current number of steps represented as a single `uint32_t` (4 bytes) value. + +### Raw motion values (UUID 00020002-78fc-48fe-8e23-433b3a1942d0) +The current raw motion values. This is a 3 `int16_t` array: + + - [0] : X + - [1] : Y + - [2] : Z @@ -65,14 +65,19 @@ When the service does not exist in the BLE specification, InfiniTime implements The following custom services are implemented in InfiniTime: - Since InfiniTime 0.8: - ``` - * Music Service : 00000000-78fc-48fe-8e23-433b3a1942d0 - ``` - + * Music Service : 00000000-78fc-48fe-8e23-433b3a1942d0 + + - Since InfiniTime 0.11: - ``` - * Navigation Service : 00010000-78fc-48fe-8e23-433b3a1942d0 - ``` + * [Navigation Service](NavigationService.md) : 00010000-78fc-48fe-8e23-433b3a1942d0 + + + - Since InfiniTime 0.13 + * Call characteristic (extension to the Alert Notification Service): 00020001-78fc-48fe-8e23-433b3a1942d0 + + + - Since InfiniTime 1.7: + * [Motion Service](MotionService.md) : 00030000-78fc-48fe-8e23-433b3a1942d0 --- |
