<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ANT+ example code bike power from DK version 10 transmits no power, just RPM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10240/ant-example-code-bike-power-from-dk-version-10-transmits-no-power-just-rpm</link><description>Equipment: 
 
 PCA10028, latest Segger FW flashed. 
 Keil uVision MDK-Lite Version 5.17. 
 Toolchain V5.06 update 1 (build 61), all ARM (Armcc, Armasm..) 
 NRF DK Version 10, Zip file version, no Keil packs used. 
 Demo code from \examples\ant\ant_plus</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Nov 2015 16:25:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10240/ant-example-code-bike-power-from-dk-version-10-transmits-no-power-just-rpm" /><item><title>RE: ANT+ example code bike power from DK version 10 transmits no power, just RPM</title><link>https://devzone.nordicsemi.com/thread/38016?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2015 16:25:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed9e8881-3958-40f2-8d22-7beeda9abea9</guid><dc:creator>WolfgangEbersbach</dc:creator><description>&lt;p&gt;Dear Petter,&lt;/p&gt;
&lt;p&gt;thanks for the answer. I did notice the preprocessor option as mentioned:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;quot;... which seems to be not necessary as it
is also defined in the project
options.&amp;quot;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I also now found the documentation and am now able to &amp;quot;decode&amp;quot; the data. So, from the raw data there seems to be power values :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; :: 4e, 00-10-72-22-22-9C-7A-54-01
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Bytes 4 &amp;amp; 5 are PedalPower and InstantCadence which are 0x22 = 34 which matches the debug output and the display on connected bike computers, as expected. The last two bytes are instant_power and 0154 ( MSB first ? ) is 340 which matches the debug output. Just, still connected bike computers show &amp;quot;0&amp;quot; as wattage.&lt;/p&gt;
&lt;p&gt;There seems to be some other hicckup in the ANT data stream..&lt;/p&gt;
&lt;p&gt;Debug output:
&amp;lt;\n&amp;gt;B-PWR tx page: 16&amp;lt;\r&amp;gt;
&amp;lt;\n&amp;gt;event count:                      45&amp;lt;\n&amp;gt;&amp;lt;\r&amp;gt;
pedal power:                      34 %&amp;lt;\n&amp;gt;&amp;lt;\r&amp;gt;
accumulated power:                7928 W&amp;lt;\n&amp;gt;&amp;lt;\r&amp;gt;
instantaneous power:              340 W&amp;lt;\n&amp;gt;&amp;lt;\r&amp;gt;
instantaneous cadence:            34 rpm&amp;lt;\n&amp;gt;&amp;lt;\r&amp;gt;
&amp;lt;\r&amp;gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try something else than &amp;quot;wheel torque&amp;quot; tomorrow and see what&amp;#39;s happening.&lt;/p&gt;
&lt;p&gt;Update: Done now. With &lt;code&gt;SENSOR_TYPE=0&lt;/code&gt; , in the preprocessor symbols, I get power readings on connected bike computers. As expected I now only get page 16 back.&lt;/p&gt;
&lt;p&gt;Just for the records:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The reason connected bike computers do not show power is, that in &lt;code&gt;ant_bpwr_simulator.c&lt;/code&gt; the ACCUMULATED power value is kept constant ( instead of incremented) and therefore connected computers rate that as no power. See bike power page 17 description for the &amp;quot;accumulated&amp;quot; idea. IMHO this is a small bug in the nrf example code.&lt;/li&gt;
&lt;li&gt;If you want to see DECODED ANT+ data on your PC ( to not need the bike computer all the time ) : GoldenCheetah ( [http://www.goldencheetah.org/] )  can do that in conjunction with an ANT+ USB stick. The usability of that software is - well - not optimized but it is for free and it works. There are some other training SW that claim to be able to do that but all of them seem to require that you open a user account at their website which I do not want to do.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ANT+ example code bike power from DK version 10 transmits no power, just RPM</title><link>https://devzone.nordicsemi.com/thread/38015?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2015 15:39:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bcdbcde-357d-49c4-9db3-2cbb08f93f21</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You don&amp;#39;t need to add #define SENSOR_TYPE (TORQUE_WHEEL), the sensor type is defined as a preprocessor symbol, see Options for Target-&amp;gt;C/C++-&amp;gt;Preprocessor Symbols:&lt;/p&gt;
&lt;p&gt;SENSOR_TYPE=1&lt;/p&gt;
&lt;p&gt;1 is TORQUE_WHEEL&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not aware of any tool to decode the data, I think you need to have a look at Section 7 and 8 in the ANT+ Device Profile Bicycle Power specification, available &lt;a href="https://www.thisisant.com/developer/resources/downloads#documents"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I tried unmodifed example now, and a simulated power is included:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Received BROADCAST_DATA_0x4E
  :: 4e, 00-11-15-B7-03-06-03-D2-0A
Received BROADCAST_DATA_0x4E
  :: 4e, 00-11-16-B7-03-06-03-DC-0A
Received BROADCAST_DATA_0x4E
  :: 4e, 00-11-17-B8-03-06-03-E6-0A
Received BROADCAST_DATA_0x4E
  :: 4e, 00-10-46-03-03-9E-07-1E-00
Received BROADCAST_DATA_0x4E
  :: 4e, 00-11-18-B8-03-06-03-F0-0A
Received BROADCAST_DATA_0x4E
  :: 4e, 00-11-19-B9-03-06-03-FA-0A
Received BROADCAST_DATA_0x4E
  :: 4e, 00-11-1A-BA-03-06-03-04-0B
Received BROADCAST_DATA_0x4E
  :: 4e, 00-11-1B-BA-03-06-03-0E-0B
Received BROADCAST_DATA_0x4E
  :: 4e, 00-10-47-03-03-BC-07-1E-00
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;0x10 - standard Power-Only message
0x47 - Power event count
0x03 - Pedal Power&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>