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

   

Capture and pass through power data

Rank

Total Posts: 6

Joined 2018-04-10

PM

Hi
I am considering trying to write an app that captures the power data from my trainer, process it for stats/graphing etc then pass it on to the training app. Is it possible to both receive and transmit on the same USB device using different channels or will I need to have 2 USB devices?

I am new to the ANT+ library and still trying to figure out how to read the data from the trainer, I seem to be able to connect but not receive any transmissions from the trainer, I am trying to develop using WPF.

Thanks in advance.

Matt      
RankRankRankRank

Total Posts: 120

Joined 2013-05-07

PM

Hi Matt,

Yes, it is possible to receive and then re-transmit using the same USB device.

Your trainer may be transmitting as an ANT+ FE-C device, and not an ANT+ PWR device.

Best,
BK      
Rank

Total Posts: 6

Joined 2018-04-10

PM

Ok, I seem to have this sort of working. I have one device, 0, and I set channel 0 to master and channel 1 to slave. Am I doing this the right way or should I be using 2 devices?

So power comes from my trainer, currently using the simulator on device 1, which comes in on channel 1 device 0, I then process and re-transmit on device 0, channel 0 to another device, say device 2 which would be the training app.

Is this the right approach or is there a better method, I have only just started looking into the ANT+ libraries etc.

Thanks      
Rank

Total Posts: 6

Joined 2018-04-10

PM

BK - 25 March 2019 01:31 PM
Hi Matt,

Yes, it is possible to receive and then re-transmit using the same USB device.

Your trainer may be transmitting as an ANT+ FE-C device, and not an ANT+ PWR device.

Best,
BK


Thanks for your reply BK      
Rank

Total Posts: 6

Joined 2018-04-10

PM

Hi

So I have my app up and running now, I am transmitting on channel 0 and receiving on channel 1. How
can I get the ID of the device I am receiving from on channel 1?

Thanks

Matt      
RankRankRankRank

Total Posts: 120

Joined 2013-05-07

PM

Hi Matt,

One device should be fine. It may actually be better, because with two device, you run the risk of connecting to yourself. With one device, that risk is eliminated.

This approach is fine. That being said, I would highly recommend that you use the relevant ANT+ profile to communicate with your app, and certify your product before launching it.

If you are using a custom ANT profile, do not use the ANT+ network key, or frequency 57 please.

To find the ID of the master device the slave is connected to, request the channel ID, and read the device number from the channel ID, after the slave has paired to the master, and is tracking.

BK.      
Rank

Total Posts: 6

Joined 2018-04-10

PM

BK - 08 April 2019 11:17 AM
Hi Matt,

One device should be fine. It may actually be better, because with two device, you run the risk of connecting to yourself. With one device, that risk is eliminated.

This approach is fine. That being said, I would highly recommend that you use the relevant ANT+ profile to communicate with your app, and certify your product before launching it.

If you are using a custom ANT profile, do not use the ANT+ network key, or frequency 57 please.

To find the ID of the master device the slave is connected to, request the channel ID, and read the device number from the channel ID, after the slave has paired to the master, and is tracking.

BK.


Thanks for the reply and info. The app is just for myself but will look into your suggestions.

Thanks, Matt.