Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Bike Power → Thread

   

Data Reading from ANT+ Device (Demo DLL)

Rank

Total Posts: 4

Joined 2019-05-16

PM

as I open channel, my program starts to receive data in ChannelCalback: with Channel-ID and Event-ID
mostly received event is: EVENT_RX_BROADCAST
and i have to extract data from Bytes Array : aucChannelBuffer [ ]
but given example is using data-offset, to start reading from 2nd byte of array. why we have to skip 1st Byte?
as it is not mentioned in official document of Bicycle Power: https://www.thisisant.com/resources/bicycle-power/
example is reading 0-index Byte like this: aucChannelBuffer [ ucDataOffset + 0 ] ?      
RankRankRankRank

Total Posts: 370

Joined 2012-06-27

PM

Section 9.5.5.1 of document "ANT Message Protocol and Usage" shows that the first byte is the channel number. If you are only using one channel you just skip reading the channel number.

ANT+ profile pages define Data 0 .... Data 7      

Signature

Ian Haigh