-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect to multiple HR devices #3
Comments
Hi, I have not worked on this project for quite a while. However I can reproduce your problem and I might have an idea what is wrong here. I will get back to you after some further investigation. |
I updated the ant-net library with a qiuck fix. I wrongfully hard coded the channel ID for the request message to 0. However I only have one heart rate sensor right now so I was able to connect it to channel 1, but I am not able to test multiple sensors at once. |
Thanks! Also for the fast reply and the quick fix! :-) |
With the current implementation a wildcard connect is executed that connects to the first device that is available. There are multiple strategies on finding ANT devices, however none of them are implemented in my ant-net library. You can find various application notes regarding the pairing and search techniques available on the ant website, however you would have to implement them yourself. Also, depending on your USB device, not all of those might be available to you. You need to check the capabilities of the device first to select the proper strategy available to you. |
Hi, i am really happy i found your code and that it is working :-) But i need it to collect the data from multiple devices.
Since i lack the skills to easily create that, i was hoping you can give me some pointers...
i know i will need to open other channels but simply changing the channel
heartRateMonitor = new Ant.Device.HeartRateMonitor(antDongle.Channels[1]);
will throw System.TimeoutException: 'The operation has timed out.' (when i search for devices). this only seems to work for channel 0. why is that?
So var i have introduced a new class HR which holds a HeartRateMonitor object. And MainWindow has a list of HR objects... but when i try to use multiple HeartRateMonitors the application crashes as the 'Device is currently active' :-(
according to some documentation you should be able to connect to multiple devices on 1 channel. (i think the max is 8).
i did get it to work where i initiate 8 open channels and each channel connects to 1 device ... but then the limit is 8 devices
i hope you can help me with this. i am willing to donate to any given help :-)
The text was updated successfully, but these errors were encountered: