From 3c3f3a4657efd49033e4dc67e83705f077718473 Mon Sep 17 00:00:00 2001 From: Ghassan Yusuf Date: Mon, 25 May 2020 13:51:57 +0300 Subject: [PATCH] Update SIGNALS.md --- SIGNALS.md | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/SIGNALS.md b/SIGNALS.md index 86d2057..11c987f 100644 --- a/SIGNALS.md +++ b/SIGNALS.md @@ -16,24 +16,28 @@ in order to connect to kicker, you need to enable ***Bluetooth*** connection. an Here we will discuss all sorts of fixed commands, messages, responses - what do they do and what do they mean, and how to use them in our firmware. Ghassan Yusuf built this protocol carefully for high accuracy data arbitration. #### Game Selection Indicators -When the user selects a game and the data is being sent to the kicker, the kicker responses back with a message to indicate the game type selected +When the user selects a game and the data is being sent to the kicker, the kicker confirms the selection and responses back with a message to indicate the game type selected. *When counter game is selected* ``` {"gm":"COUNTER"} ``` + *When time attack game is selected* ``` {"gm":"TIME ATTACK"} ``` + *When reaction game is selected* ``` {"gm":"REACTION"} ``` + *When decision game is selected* ``` {"gm":"DECISION"} ``` + *When stamina game is selected* ``` {"gm":"STAMINA"} @@ -57,19 +61,12 @@ These messages are for notifying the mobile device with the status of the events {"status":"ERROR JSON"} ``` - -``` -{"status":"TARGET MEET"} -``` - +*When the user playes a game and the game ends because the user didnt cach up with the limits he set or the user send a quit command {"cm":"STOP"}, Then it send the following command - it means you quit the game or you could not keep up with the game and ended in loss* ``` {"status":"GAME OVER"} ``` -``` -{"status":"TIME OVER"} -``` - +*When the user sends a JSON formated signal in game selection routine, if the signal was not recognized or not understood by the firmware it send back the following response* ``` {"status":"UNKNOWN GAME"} ``` @@ -88,10 +85,6 @@ These messages are for notifying the mobile device with the status of the events {"cm":"STOP"} ``` -``` -{"cm":"EXIT"} -``` -
## Games Selection @@ -123,7 +116,7 @@ st : Time Of The Kick In Milliseconds #### Result Calculations ``` -number of kicks = (max⁡ct) = kicks +number of kicks = maximum number of kicks the user made on the target ```