Identifying physical device type as Rower/Bike/Ski

Post questions and issues with Concept2 PM3 SDK
Post Reply
Jens Jensen
Paddler
Posts: 2
Joined: April 28th, 2022, 7:23 am

Identifying physical device type as Rower/Bike/Ski

Post by Jens Jensen » April 28th, 2022, 7:42 am

The GetVersion() function implemented in the SDK (Connecting to PM via USB) seems to reveal the type of the PM (3 for PM3, 4 for PM4 and 5 for PM5).
But is it also possible to obtain the Type of the physical device (Rower/Bike/Ski) to which the Performance Monitor is connected/configured?
It would be valuable information in order to use the unit (RPM for a bike) og (SPM for a Rower) and probably also for tweeking other parts of UI.

User avatar
Citroen
SpamTeam
Posts: 7574
Joined: March 16th, 2006, 3:28 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: Identifying physical device type as Rower/Bike/Ski

Post by Citroen » April 28th, 2022, 10:34 am

Can you get the product ID, hardware ID or firmware version?

Paste the frame you get from "GetVersion()" here.

Jens Jensen
Paddler
Posts: 2
Joined: April 28th, 2022, 7:23 am

Re: Identifying physical device type as Rower/Bike/Ski

Post by Jens Jensen » April 28th, 2022, 11:46 am

On a PM4 on a rower I get:
13:32:20.120 PM3.GetVersion: Rsp: Length=9: 0x91 0x7 0x16 0x2 0x4 0xF2 0x0 0xDA 0x2
This I interpret as
ID=22="Concept2"
CID=2
Model=4="PM4"
HwVWesion=242
SwVersion=730

On a PM5 on a bike I get:
13:17:20.891 PM3.GetVersion: Rsp: Length=9: 0x91 0x7 0x16 0x2 0x5 0x6D 0x2 0x40 0x1
This I interpret as
ID=22="Concept2"
CID=2
Model=5="PM5"
HwVersion=621
SwVersion=320

User avatar
Citroen
SpamTeam
Posts: 7574
Joined: March 16th, 2006, 3:28 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: Identifying physical device type as Rower/Bike/Ski

Post by Citroen » April 28th, 2022, 2:39 pm

I know it's crude (and not the ideal programming technique), but a look-up table where you select based on PM type (3, 4 or 5), swversion and hwversion may be your best option.

I guess you could fire an email at info@concept2.com and ask them how they're doing it and whether they have a published list of plausible values.

Post Reply