Integrating Heart Rate Monitor Data
Hi! I'm trying to develop a game which takes live data from a heart rate monitor attached to the player. The device (Mio bracelet) supports Bluetooth 4.0 and ANT+. Any ideas on how I can fetch the data and, for starters, just display it on the screen? I'm not using the Pro version of Unity, so can't build my own plug-in, and I'm developing on Mac OS X.
Answer by Statement · Nov 01, 2015 at 12:47 PM
See if there is any SDK that comes with the device. If it's native dll/bundle (whatever its called on Mac) with exposed C functions you can pinvoke the dll as a plugin.
I found one post from nov 2014 where someone appear to have made Unity integration.
I doubt you need to write code to mess directly with bluetooth.
I'm not using the Pro version of Unity, so can't build my own plug-in
Are you using Unity 3 or 4? Unity 5 includes all features both for Personal and Professional editions.
https://unity3d.com/get-unity
https://unity3d.com/unity/engine-features
yeah you're right, that one is sorted now. :)
Answer by lorenabalan · Nov 03, 2015 at 10:19 AM
Thank you for the hint @Statement ! I looked into it and they haven't released their own SDK to the public and there's no date for it in the future. I've been looking into things like LightBlue (a Python module that is apparently cross-platform, but can't make the framework work on my computer) or Core Bluetooth, but I seem to always run into a dead end. If you have any more ideas or suggestions, let me know. Thanks again!
No, I have no experience with the device or the SD$$anonymous$$.
Answer by 05cordie · Nov 03, 2015 at 09:17 PM
Hello,
I'm trying to do nearly the same as You... It is possible to register as an adopter on thisisant.com and get ANT Library package. (Windows for me) Then you can use a managed library which calls unmanaged dll's. For me, I am able to get some results in Editor but not in Standalone. I will try further and post again if I'm not able to get ride of it ! I hope this will help you a little.
++
Answer by jemunozc · Aug 18, 2016 at 10:55 AM
We developed PhysioVR https://www.youtube.com/watch?v=ukEmghTImBU