From 932c0479ee7c501bc224435943c73a368001845e Mon Sep 17 00:00:00 2001 From: JF Date: Sun, 5 Apr 2020 17:03:06 +0200 Subject: Add documentation about BLE connection and services. --- doc/ble/ans_sequence.puml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 doc/ble/ans_sequence.puml (limited to 'doc/ble/ans_sequence.puml') diff --git a/doc/ble/ans_sequence.puml b/doc/ble/ans_sequence.puml new file mode 100644 index 00000000..c3819059 --- /dev/null +++ b/doc/ble/ans_sequence.puml @@ -0,0 +1,29 @@ +@startuml +group Get configuration from server +Pinetime -> CompanionApp : Read request (Supported 'new' notification categories - 0x2A47) +CompanionApp --> Pinetime: Response (0xff = all categories) + +Pinetime -> CompanionApp : Read request (Supported 'unread' notification categories - 0x2A48) +CompanionApp --> Pinetime: Response (0xff = all categories) +end + +group Configure the server +Pinetime -> CompanionApp : Configure 'new' notifications categories : Accept all (Write [0, 0xFF] to Control Point - 0x2A44) +activate CompanionApp +deactivate CompanionApp +Pinetime -> CompanionApp : Configure 'unread' notifications categories : Accept all (Write [1, 0xFF] to Control Point - 0x2A44) +activate CompanionApp +deactivate CompanionApp +end + +group Server sends a notification +CompanionApp -> Pinetime : Notify new_alert (0x2A46) +activate Pinetime +note over Pinetime + Pinetime FW handles the + notification (display on UI) +end note +deactivate Pinetime +end + +@enduml \ No newline at end of file -- cgit v1.2.3-70-g09d2