@startuml Power_Control participant TD as TD participant SW as SW participant UI as UI actor USER as US 'Possible actions and interaction types ' External on CANBus ' TD -> SW: MSG: Message ' SW -> TD: MSG: Message ' Internal to the application ' XX -> YY: CMD: Command ' XX -> XX: ACT: Action ' External on OS/FS ' SW -> Script: ACT: Command ' Script -> OS: CMD: Command ' Script -> SW: MSG: Message ' OS -> Script: MSG: Message ' US -> UI: User actions are: ' ASK: Display a ' ENT: User enters a value or string ' TCH: User touches a button (RadioButton, CheckBox, ...) ' SCL: User scrolls a flip-able area == Power Off Sequence == US -> TD: TCH: Press Hard Button - Power TD -> SW: MSG: [xB7: #1] Power Off Request \ \n\t(U32) mStatus SW -> UI: ACT: Power Off Request UI -> US: ACT: Display Confirm shutdown dialog US -> UI: TCH: Press Shutdown or Cancel alt shutdown UI -> SW: ACT: Shutdown confirm response SW -> TD: MSG: [xB6: #2] Response \ \n\t(U32) mId=0 \ \n\t(U32) mConfirm=1 TD -> TD: ACT: Shutdown System else #Pink cancel UI -> US: ACT: Close Dialog end @enduml