Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

set Bike Power

Rank

Total Posts: 4

Joined 2020-03-31

PM

Using this ressource : https://github.com/dhague/vpower/tree/acab2ec78e15851ba5a3a9176ff2177f02ed36fc (PowerMEterTx.py) I am trying to set the power with my Rpi on my Power Meter Bike using Ant+. I think I am doing something wrong with the python and there is probably something I do not get.

If I want to set the power to 300W I need to send this command in hex : 31-FF-FF-FF-FF-FF-B4-04 if I refere to the doc.

Also Power Meter is device type 11. So using the code below I'd like to send my Hex code, but there is something I do not get with
update 
function. It looks like the payload is used to set the 8 values of my hex code, but I do not get how to change the code to set this 8 values. (31-FF-, etc...).If someone could enlighten me it would be great.

Someone know how to send this command using python code ?

Thanks      
RankRankRankRank

Total Posts: 139

Joined 2012-06-27

PM

A power meter reports the power measured, but cannot be controlled. Page 0x31 is used in the FE-C profile to set target power for a bike trainer. You must connect using the FE-C profile channel parameters instead of those for the Bike Power profile to use 0x31 to control resistance. See the FE-C profile document in the downloads section of the web page.      

Signature

Ian Haigh