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.
Identifying physical device type as Rower/Bike/Ski
-
- Paddler
- Posts: 2
- Joined: April 28th, 2022, 7:23 am
- 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
Can you get the product ID, hardware ID or firmware version?
Paste the frame you get from "GetVersion()" here.
Paste the frame you get from "GetVersion()" here.
-
- Paddler
- Posts: 2
- Joined: April 28th, 2022, 7:23 am
Re: Identifying physical device type as Rower/Bike/Ski
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
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
- 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
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.
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.