GOFINISHED, return to Main Screen
Posted: July 5th, 2015, 2:19 am
In Figure 7, CSAFE State Machine Diagram, of the PM Communication Interface Definition revision 0.15, a note states:
1. If Finished state entered via Master command or timeout, terminate the current workout and return to Main screen
However, that does not occur when sending the CSAFE_GOFINISHED_CMD. The CSAFE response arrives, but the PM5 interface does not change (still showing the active workout). Alternatives, such as CSAFE_GOREADY_CMD or CSAFE_GOIDLE_CMD and various combinations of these 3 commands, while in an active workout, also have no effect.
Example communication flow:
At that point, if I press the physical Menu button on the PM5, the workout ends and the PM5 Bluetooth characteristics for end of session data are updated/sent. I'd like to be able to cause that to occur via CSAFE commands.
How can I get an active workout to end using CSAFE/Bluetooth?
What am I missing?
Note: my PM5 is using firmware rev. 19.
1. If Finished state entered via Master command or timeout, terminate the current workout and return to Main screen
However, that does not occur when sending the CSAFE_GOFINISHED_CMD. The CSAFE response arrives, but the PM5 interface does not change (still showing the active workout). Alternatives, such as CSAFE_GOREADY_CMD or CSAFE_GOIDLE_CMD and various combinations of these 3 commands, while in an active workout, also have no effect.
Example communication flow:
Code: Select all
(initiate start of workout)
--> send CSAFE_RESET_CMD: [0xF1, 0x81, 0x81, 0xF2]
<-- response [0xF1, 0x81, 0x81, 0xF2]
--> send: CSAFE_SETPROGRAM_CMD for Standard Workout #1: [0xF1, 0x24, 0x02, 0x01, 0x00, 0xF2]
<-- response [0xF1, 0x01, 0x01, 0xF2]
--> send CSAFE_GOINUSE_CMD: [0xF1, 0x85, 0x85, 0xF2]
<-- response [0xF1, 0x85, 0x85, 0xF2]
(PM5 interface now shows UI for Standard Workout 1)
(... row some ...)
(initiate end of workout)
--> send CSAFE_GOFINISHED_CMD: [0xF1, 0x86, 0x86, 0xF2]
<-- response [0xF1, 0x86, 0x86, 0xF2]
(.... nothing happens nor are the PM5 Bluetooth characteristics for end of session updated/sent)
How can I get an active workout to end using CSAFE/Bluetooth?
What am I missing?
Note: my PM5 is using firmware rev. 19.