Stroke Length

Post questions and issues with Concept2 PM3 SDK
Post Reply
kingpeterking
Paddler
Posts: 13
Joined: September 11th, 2022, 10:07 am

Stroke Length

Post by kingpeterking » October 8th, 2022, 1:29 am

I can't see a CSafe command for sroke length - but it is shown on the Erg Data App.
There is mention of it in the docs in the multiplex and BTS tables - but how do I access this data?

Thanks

tussocky
Paddler
Posts: 6
Joined: December 4th, 2021, 5:14 am

Re: Stroke Length

Post by tussocky » October 16th, 2022, 7:09 pm

Stroke distance is a collection of bytes broadcast under BLE characteristic 0x0035. Most apps don't command the PM to return this data, instead they subscribe to updates for this characteristic (and pretty much all the characteristics). In this case, the PM sends updates after every stroke and the app updates as soon as this data is received. Very easy to manage updates that way.

In any case, the command you are looking for is CSAFE_PM_GET_STROKESTATS, the identifier is 0x6E, and the bytes for
stroke distance are 0 (MSB) and 1 (LSB). Page 63 of the newest Concept2 Bluetooth Definition.

kingpeterking
Paddler
Posts: 13
Joined: September 11th, 2022, 10:07 am

Re: Stroke Length

Post by kingpeterking » October 20th, 2022, 6:36 am

Super thanks

Post Reply