~aleteoryx/muditaos

muditaos/module-bluetooth/flowchart.puml -rw-r--r-- 1.4 KiB
a405cad6Aleteoryx trim readme 5 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@startuml
skinparam BackgroundColor F0F0F0
== Vol Change - from BT ==
BT ->  EVM: Vol Change request (same key symualtion)
EVM -> App: Vol Change request process Audio
== Vol Up/Down - to BT ==
EVM ->  App: process Up/Down key (popup)
        App -> Audio: request Vol Up/Down (finally)
        hnote over Audio
            Software codec applies gain
        endhnote
        EVM <- Audio: Notify sound change
        EVM -> App: show sound change
== BT device registration - audio ==
BT ->   EVM: Event: BTA2DPOn (connection established)
EVM -> Audio: Event: BTA2DPOn
hnote over Audio
            Audio notified about new BT A2DP device
        endhnote
BT <- Audio: BluetoothStreamRequestMessage (requesting metadata & queue handles)
BT -> Audio: BluetoothStreamRequestMessageResult (metadata & queue handles)
hnote over Audio
            BT A2DP setup done,
            ready to playback
        endhnote
== BT device registration - COM:WIP ==
BT -> EVM: notify new device
hnote over EVM
    do whatever whoever wants with COM port
    same as with audio device (open handles...)
endhnote
== BT device - close ==
BT -> EVM: Event: BTA2DPOff
EVM -> Audio: Event: BTA2DPOff
      EVM <- Audio: Inform that bt audio ended (?)
      EVM -> App: Show bt change (?)
hnote over BT
    BT closes handles to streams ( i.e. pipes)
    and closes it's device handling
    don't pass callback : pass handle
endhnote
@enduml