GOFINISHED, return to Main Screen

Post questions and issues with Concept2 PM3 SDK

GOFINISHED, return to Main Screen

Postby dxpack » 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:
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)

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.
dxpack
Paddler
 
Posts: 13
Joined: July 5th, 2015, 1:59 am

Re: GOFINISHED, return to Main Screen

Postby dxpack » July 5th, 2015, 9:31 pm

To add:

Concept2's ErgData iPhone app has a feature where it recognizes when rowing activity has stopped, displays a "Are you finished" prompt. Pressing "Yes" at that prompt does successfully cause the current activity to end, with the PM5 UI returning to the Main screen.

So, unless ErgData is using undocumented PM5 API's, it does appear that it is possible to cause a current activity to end via a Bluetooth connected device.
dxpack
Paddler
 
Posts: 13
Joined: July 5th, 2015, 1:59 am

Re: GOFINISHED, return to Main Screen

Postby rmueller83 » September 12th, 2015, 1:13 pm

Where did you get the rev 0.15 document? The SDK only contains rev 0.14.
rmueller83
Paddler
 
Posts: 3
Joined: September 12th, 2015, 1:05 pm


Return to SDK Questions

Who is online

Users browsing this forum: No registered users and 1 guest