-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Addy Kimball
committed
Jun 25, 2015
1 parent
67a4bdb
commit 594e2e3
Showing
12 changed files
with
30 additions
and
18 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 4 additions & 9 deletions
13
...ence Diagrams/Standard Admin Scenario.txt → ...tion/Sequence Diagrams/admin sequence.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
Title Standard Admin Scenario | ||
Participant RTC | ||
Participant Relay | ||
Participant Equipment | ||
Participant Phone | ||
Participant User | ||
Phone -> Parse: Login, is User Admin? | ||
Parse -> Phone: Is Admin | ||
Phone -> Phone: UI Setting: Admin | ||
Phone -> Parse: Change parse settings (users, equipment name, etc.) | ||
Equipment->Phone: Advertising Packet with Equipment ID & Status, etc. | ||
Phone -> Phone: update UI | ||
User -> Phone: Select GLD | ||
User -> Phone: Activate/Configure | ||
Phone -> Equipment: BLE Connect | ||
Phone -> Equipment: BLE Connect (with timeout) | ||
Equipment -> Phone: BLE Connection Successful | ||
Phone -> Equipment: DateTime | ||
Equipment -> RTC: Update DateTime | ||
Phone -> Equipment: MD5 Hash to Authorize | ||
Equipment -> Equipment: Generate MD5 and Compare | ||
Phone -> Equipment: See authorization sequence | ||
Equipment -> Phone: Authorized (Admin) | ||
Phone -> Equipment: Configure/Activate | ||
Equipment -> Relay: Power On/Off | ||
Phone -> Equipment: Configure/Activate (Device ID, etc.) | ||
Phone -> Equipment: BLE Disconnect | ||
Equipment -> Phone: Advertising Packet with Equipment ID & Status, etc. | ||
Phone -> Parse: Update usage log |
21 changes: 21 additions & 0 deletions
21
Documentation/Sequence Diagrams/authorization sequence.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Title Authorization | ||
Participant RTC | ||
Equipment->Phone: Advertising Packet with Equipment ID & Status | ||
Participant User | ||
Phone -> Parse: isEquipmentAuthorized? | ||
Parse -> Phone: isAuthorized | ||
Phone -> Phone: update UI | ||
User -> Phone: Enable Equipment/Other feature | ||
Phone -> Equipment: BLE Connect | ||
Equipment -> Phone: BLE Connection Successful | ||
Phone -> Equipment: DateTime | ||
Equipment -> RTC: Update DateTime on RTC | ||
RTC -> Equipment: Append UUID with DateTime = MD5 Input | ||
Equipment -> Equipment: Make MD5 Hash | ||
Phone -> Phone: Make MD5 Hash | ||
Phone -> Equipment: Send MD5 Hash | ||
Equipment -> Equipment: Compare MD5 Hashes made with same UUID and same general time | ||
Equipment -> Equipment: Match? Yes = Authorized, No = Force disconnect | ||
Equipment -> Phone: Authorized | ||
Phone -> Equipment: Send plaintext command | ||
Equipment -> Equipment: Execute command, disconnect |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes.
10 changes: 3 additions & 7 deletions
10
...uence Diagrams/Standard User Scenario.txt → ...ation/Sequence Diagrams/user Sequence.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
Title Standard User Scenario | ||
Participant RTC | ||
Participant Relay | ||
Participant Equipment | ||
Participant Phone | ||
Participant User | ||
Phone -> Parse: Login, is User Admin? | ||
Parse -> Phone: No, is not Admin | ||
Phone -> Phone: UI Setting: User | ||
Phone -> Parse: Configure user settings (account settings, etc.) | ||
Equipment->Phone: Advertising Packet with Equipment ID & Status, etc. | ||
Phone -> Parse: isEquipmentAuthorized? | ||
Parse -> Phone: isAuthorized | ||
Phone -> Phone: update UI | ||
User -> Phone: Select/Activate GLD | ||
Phone -> Equipment: BLE Connect | ||
Equipment -> Phone: BLE Connection Successful | ||
Phone -> Equipment: DateTime | ||
Equipment -> RTC: Update DateTime | ||
Phone -> Equipment: MD5 Hash to Authorize | ||
Equipment -> Equipment: Generate MD5 and Compare | ||
Equipment -> Phone: Authorized | ||
Phone -> Equipment: See authorization sequence | ||
Phone -> Equipment: On/Off Command | ||
Equipment -> Relay: Power On/Off | ||
Phone -> Equipment: BLE Disconnect | ||
Phone -> Equipment: BLE Disconnect or receive other command | ||
Equipment -> Phone: Advertising Packet with Equipment ID & Status, etc. | ||
Phone -> Parse: Update usage log |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters