Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT Developer’s Forums → ANTWareII → Thread

   

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: 370

Joined 2012-06-27

PM

See https://www.thisisant.com/forum/viewthread/7374/      

Signature

Ian Haigh