Proper CSAFE sequence for initiating a fixed time workout

Post questions and issues with Concept2 PM3 SDK
Post Reply
buevest
Paddler
Posts: 2
Joined: January 11th, 2007, 10:45 am
Location: Copenhagen, denmark

Proper CSAFE sequence for initiating a fixed time workout

Post by buevest » January 11th, 2007, 8:03 pm

Hi,

I am trying to initiate a fixed time workout. It looks like I can easily initiate a fixed distance workout using the SetHorisontal command, but when I try using the SetWork command instead, I get a FrameRejected when issuing the SetProgram command.

I have pasted some console output from my program with comments. I hope someone can help me get the command sequence right.

Bue

Code:
Command: 81 ;Reset
Response:
Status: Ok, state: Ready

Command: 21 03 02 00 21 ;SetHorisontal 2 km
Response:
Status: Ok, state: Ready

Command: 24 02 00 00 ;SetProgram
Response:
Status: Ok, state: Ready

Command: 85 ;GoInUse
Response:
Status: Ok, state: InUse

...
Command: 86 81
Response:
Status: Ok, state: Ready

;So far, so good

Command: 21 03 00 00 24 ;Make sure we don't have a set distance
Response:
Status: Ok, state: Ready

Command: 20 03 00 05 00 ;SetWork 5 min
Response:
Status: Ok, state: Ready

Command: 24 02 00 00 ;SetProgram
Response:
Status: PrevRejected, state: Ready ;Oops!

haboustak
500m Poster
Posts: 77
Joined: March 17th, 2006, 3:02 pm
Location: Cincinnati

Post by haboustak » January 11th, 2007, 9:35 pm

Your order of operations and logged CSAFE look good to me.

I believe the PM3/4 validates your workout parameters when you call SetProgram. That validation may be failing and hence the rejection. I'm assuming that a GoIdle following SetProgram doesn't actually start the timed workout.

Try setting the workout to a longer time (e.g. 10 minutes, 30 minutes). A 5 minute workout should be longer than any minimum, but it doesn't hurt to try.

Are you running v97 of the Firmware (or is it v11 for a PM4)? You may be hitting an old validation bug or you may have found a new bug. You might want to drop an email/PM to c2scott with a link to your message, I'm not sure how often he checks the forum.

Mike

EDIT
Actually, I think it's the SETHORIZONTAL_CMD before SETTWORK that's failing. You don't need to do a SETHORIZONTAL to 0. The PM3/4 is going to think you want a 0m 5:00 workout, it's going to compare 0m to some minimum distance (250m?) and it's going to fail.

buevest
Paddler
Posts: 2
Joined: January 11th, 2007, 10:45 am
Location: Copenhagen, denmark

Post by buevest » January 12th, 2007, 6:00 pm

Thanks for the advice. Yes, I am running version 97 on a pm3.

It looks as if any workout under 6 min or 400 meter will generate a frame rejected error. when you issue the setProgram command. I think it is odd that these limits should be imposed, since, aparrently, they don't apply when you make the workout from the screen. Sorry, but I am quite new to this forum. Can anybody tell me where to post these observations, so we might get the thing fixed?

Also, I would have thought that issuing a GoInUse command would make the clock start counting immediately and not wait for the rower to start rowing, but subsequent calls to GetWork still show 00:00:00. Could anybody, please, tell me how to make the clock start streight away, like in a race.

Best regards
Bue Vester-Andersen

haboustak
500m Poster
Posts: 77
Joined: March 17th, 2006, 3:02 pm
Location: Cincinnati

Post by haboustak » January 12th, 2007, 9:56 pm

You're in the right place to post questions, get help, and identify bugs with the SDK. But it might help if you also send a message to c2scott. He's the man at C2 that can validate your bug and get it fixed.

The SDK is designed to set up a workout with the PM3, not a race. The racing start display is NOT available to the general public, only Concept2 and Digital Rowing (and maybe other friends of Concept2).


Mike

DavidA
10k Poster
Posts: 1477
Joined: March 16th, 2006, 4:35 pm
Location: Amberley Village, OH
Contact:

Post by DavidA » January 15th, 2007, 5:57 pm

Mike,
Not on the topic at all, but are you going to be at the Cincinnati Indoor Sprints? You should be.

David
63 y / 70 kg / 172 cm / 5 kids / 17 grandkids :)
Received my model C erg 18-Dec-1994
my log

haboustak
500m Poster
Posts: 77
Joined: March 17th, 2006, 3:02 pm
Location: Cincinnati

Post by haboustak » January 15th, 2007, 9:18 pm

David,

I made it to the sprints last year and lent a hand getting the computers set up. They were a lot of fun. I hope to make it back this year, but my weekends tend to be farily busy these days.

Mike

User avatar
kdahlhaus
500m Poster
Posts: 95
Joined: September 17th, 2006, 2:13 pm
Contact:

Post by kdahlhaus » February 12th, 2008, 8:20 am

Did anyone get short (<6:00) workouts to work from the API? I'm seeing the exact same thing.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://powertwenty.com
'Do' or 'Do not', there is no 'Try' -Yoda

Post Reply