Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Simulation Tools → Thread

   

AntPlus.Profiles in combination with RXscanMode

Rank

Total Posts: 3

Joined 2014-01-02

PM

I'm building a C# program using the RXscanMode to receive multiple ANT+ devices over multiple ANT USB sticks. So far no problems and all seems to work smooth.

But I also like to use the AntPlus.Profiles lib to decode standard ANT+ devices.
And this is my challenge, the constructor of the i.e. BikePowerDisplay likes to receive a AntChannel.
I can refer to CH0 where the RXscanMode(with devicenumber set to wildcard) puts it's data but the BikePowerDisplay will decode all data of all received devices because there is no ability to set the ExtDeviceNumber.

I haven't figured out a way to filter out the right device and use the BikePowerDisplay at the same time.

(The alternative is to manual filter out the right device type ,ExtDeviceNumber ,page number and decode the data but then I'm basically building another AntPlus.Profiles lib.)

     
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

It is not possible to use the profile classes in the Profiles lib together with scanning mode. The profile implementation in SimulANT+ is tightly coupled with the use of an underlying independent AntChannel, specially in profiles that make use of bidirectional communication like bike power. Modifying the profile implementation to work with scanning mode would require significant effort on our end, and this is not something that is in our roadmap at this time.

The DataPage objects that are used to decode received messages are available within each profile namespace, so you may be able to make use of them when implementing your own application.