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

   

I can only receive one Sensor when there are 3

Rank

Total Posts: 2

Joined 2018-10-22

PM

Hello,

So I'm making a program in C# and I'm trying to achieve that it can pick up a BikePower profile and display the info on the screen.

I have been succesful with the Power Sensor but the Speed and Cadence sensors I do not receive in my own program.

I have tested it with different programs, which I haven't made myself and there they do receive the otther sensors. Can anyone help me with this dillemma?

Here is the code that I use to receive the data.

device0 = new ANT_Device(); // Create a device instance using the automatic constructor (automatic detection of USB device number and baud rate)
                
device0.setNetworkKey(USER_NETWORK_NUMUSER_NETWORK_KEY);
                
Channel0 device0.getChannel(0); // Get channel from ANT device
                
Channel1 device0.getChannel(1);
                
Channel2 device0.getChannel(2);
                
Channel3 device0.getChannel(3);
                
Channel4 device0.getChannel(4);
                
Network AntPlusNetwork = new Network(USER_NETWORK_NUMUSER_NETWORK_KEYUSER_RADIOFREQ); //Creates an ANT+ network
  
BikePower = new BikePowerDisplay(Channel1AntPlusNetwork);
                
BikePower.TurnOn(); //turns on the ANT+ Power Bike Device 


Thanks for you help already!      
Rank

Total Posts: 2

Joined 2018-10-22

PM

I fixed the problem!