Index: SDDs/Power_Control.png =================================================================== diff -u -r631dac140450713da60cf5bb938768382fbe2c44 -r27d80f36e863ae58963420607cf6e23c0318ccb1 Binary files differ Index: SDDs/Power_Control.puml =================================================================== diff -u -r631dac140450713da60cf5bb938768382fbe2c44 -r27d80f36e863ae58963420607cf6e23c0318ccb1 --- SDDs/Power_Control.puml (.../Power_Control.puml) (revision 631dac140450713da60cf5bb938768382fbe2c44) +++ SDDs/Power_Control.puml (.../Power_Control.puml) (revision 27d80f36e863ae58963420607cf6e23c0318ccb1) @@ -27,20 +27,49 @@ == Power Off Sequence == US -> TD: TCH: Press Hard Button - Power - TD -> SW: MSG: [xB7: #1] Power Off Request \ - \n\t(U32) mStatus + TD -> SW: MSG: [xB5: #3] Confirm Request \ + \n\t(U32) mId=0 (Shutdown) \ + \n\t(U32) mCommand=0 (GENERIC_CONFIRM_CMD_REQUEST_OPEN) \ + \n\t(U32) mReason 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 + \n\t(U32) mId=0 (Shutdown) \ + \n\t(U32) mConfirm=0(cancel)/1 (shutdown) + + alt mConfirm=1 (shutdown) + TD -> TD: ACT: Shutdown System ⟲ (May take a few seconds) + TD -> SW: MSG: [x22: #0] Power Off Warning + SW -> UI: ACT: Power Off Warning + UI -> US: ACT: Display auto-close dialog (5 seconds)\ + \n\tNotiy user system is shutting down + else #Pink mConfirm=0(cancel) + TD -> SW: MSG: [xB5: #3] Confirm Request \ + \n\t(U32) mId=0 (Shutdown) \ + \n\t(U32) mCommand=0 (GENERIC_CONFIRM_CMD_ACCEPT_CLOSE) \ + \n\t(U32) mReason + SW -> UI: ACT: Confirm Request close dialog UI -> US: ACT: Close Dialog end + == Power Off Sequence Timeout == + US -> TD: TCH: Press Hard Button - Power + TD -> SW: MSG: [xB5: #3] Confirm Request \ + \n\t(U32) mId=0 (Shutdown) \ + \n\t(U32) mCommand=0 (GENERIC_CONFIRM_CMD_REQUEST_OPEN) \ + \n\t(U32) mReason + SW -> UI: ACT: Power Off Request + UI -> US: ACT: Display Confirm shutdown dialog + ... Time passes ... + loop Timeout + US -> US: ACT: User idle for timeout limit + end + TD -> SW: MSG: [xB5: #3] Confirm Request \ + \n\t(U32) mId=0 (Shutdown) \ + \n\t(U32) mCommand=1 (GENERIC_CONFIRM_CMD_TIMEOUT_CLOSE) \ + \n\t(U32) mReason + SW -> UI: ACT: Confirm Request timeout close + UI -> US: ACT: Close Dialog @enduml