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

   

CycleOps Power Meter Integration

Rank

Total Posts: 2

Joined 0

PM

We are trying to integrate CycleOps Pro Series IC Power sensor into our custom app built on .NET and C#.

We used all the settings in ANT+ Power Profile PDF document and network key defined in Device Profiles. But channel just times out without finding any power meter device. While using Garmin computer device is found in about 2secs. The code from the test application is given below. What do we miss in the channel configuration? Any help would be very much appreciated!

static readonly byte USER_ANT_CHANNEL = 0x0; // ANT Channel to use
static readonly ushort USER_DEVICENUM = 0; // Device number
static readonly byte USER_DEVICETYPE = 0x0B; // Device type
static readonly byte USER_TRANSTYPE = 0x0; // Transmission type

static readonly byte USER_RADIOFREQ = 0x39;//0x41;; // RF Frequency + 2400 MHz
static readonly byte[] USER_NETWORK_KEY = { 0xB9, 0xA5, 0x21, 0xFB, 0xBD, 0x72, 0xC3, 0x45 };
static readonly byte USER_NETWORK_NUM = 0; // The network key is assigned to this network number

...

if (channel0.assignChannel(channelType, USER_NETWORK_NUM, 500))
Console.WriteLine("Channel Assigned");
else
throw new Exception("Channel assignment operation failed.");
Console.WriteLine("Assigning channel...");


Console.WriteLine("Setting Channel ID...");
if (channel0.setChannelID(USER_DEVICENUM, false, USER_DEVICETYPE, USER_TRANSTYPE, 500)) // Not using pairing bit
Console.WriteLine("Channel ID Set");
else
throw new Exception("Set Channel ID operation failed.");



if (device0.setNetworkKey(USER_NETWORK_NUM, USER_NETWORK_KEY, 500))
Console.WriteLine("Network Key Set");
else
throw new Exception("Set Network Key operation failed");
Console.WriteLine("Setting Channel Period...");
channel0.setChannelPeriod(8182);

Console.WriteLine("Setting RF Frequency...");
if (channel0.setChannelFreq(USER_RADIOFREQ, 500))
Console.WriteLine("Radio Frequency set");
else
throw new Exception("Set RF Frequency operation failed.");

Console.WriteLine("Opening channel...");
if (channel0.openChannel(500))
Console.WriteLine("Channel opened");
else
throw new Exception("Open Channel operation failed.");      
Avatar
RankRankRankRank

Total Posts: 296

Joined 0

PM

1. Do you have a Garmin edge or similar device that can act as an ANT+ power meter display? If yes, try this. Does this pick up the power values from your Cycelops trainer?
2. You can download the ANT+ display simulator exe and sources in the ANT adopter zone. Try out the display simulator and see if this picks up the values. If not, either that Cycleops device doesn't follow the "Bike power" profile or your ANT stick doesn't work properly (2nd option noted for completeness smile ).

If the ANT+ display simulator works with your device, you can have a look at its source code and compare yours against this.

OMB      
Rank

Total Posts: 2

Joined 0

PM

old_man_biking, thank you for your message!

Strange things are that:

1. We have Garmin edge 800 and it detects and receives data from the power meter.
2. ANT Stick works, as it gets data from Garmin HR belt either through our application or simulator app.
3. Simulator app times out too when trying to use it as Power Display. Even works perfectly with HR belt as Heart Rate Display.

So we are still without any clue on what is happening.      
Rank

Total Posts: 2

Joined 0

PM

Correction: the computer we used was not Garmin, but CycleOps one. Garmin one does not detect the power meter. So it seems like CycleOps is not using Standard Power profile...      
RankRankRankRank

Total Posts: 116

Joined 2008-11-21

PM

I believe that the CycleOps IC power bike transmits power values using Saris’s private ANT network and proprietary protocol. If you want to receive this data from the IC bike, you would have to get the information from CycleOps directly since that information is not ours to share.