5

I have purchased microsoft band. My scope is to use that device in order to track information such as steps and heart rate real time. I am wandering is there a way to get those data real time without 3rd device directly to a pc, using for example a bluetooth device? Is there a filesystem in order to store data in Band device? How can I store my data when for example I am outside and I dont having a mobile support?

Edit: I downloaded the sample code from the site. Now I am having problems running the project using either the device of the emulator. In both cases I am receiving bootstrapping device failed. Device not found. In case of the emulator I got the following error:

Error   2   Error : DEP6200 : Boostrapping 'Emulator 8.1 U1 qHD 5 inch' failed. Device cannot be found. The configuration data for this product is corrupt. Contact your support personnel.
Personalization.WindowsPhone

How can I pair the device with my app? I have already pair the device with pc using the microsoft sync app.

Edit2: I create a windows runtime app and I followed instruction from the link mentioned. I manage to found the paired device from the code. How can I read heart rate using the paired device?

My code is the following:

     IBandInfo[] bandsPaired = await BandClientManager.Instance.GetBandsAsync();
     IBandClient bandClient = await BandClientManager.Instance.ConnectAsync(bandsPaired[0]);

      if (bandClient.SensorManager.HeartRate.GetCurrentUserConsent() != UserConsent.Granted)
      {

         await bandClient.SensorManager.HeartRate.RequestUserConsentAsync();
      }

What should I do to get the heart rate as a integer value? Is there a way to import the project to unity?

6
  • It looks like you haven't installed the Windows 8.1 SDKs. What version of OS are you using? Can you successfully create a new (empty) Windows 8.1 application? Sep 14, 2015 at 19:00
  • Basically I use the express version of visual studio that was the reason for my problems. Now I am having problems running the project using either the device of the emulator. In both cases I am receiving bootstrapping device failed. Device not found.
    – Jose Ramon
    Sep 15, 2015 at 7:56
  • The phone emulator does not support Bluetooth, so you must run the application on a real (either Windows 8.1 or Windows Phone 8.1) device. You'll need to be more specific about the error your seeing (e.g. actual exception message and callstack) as I don't recognize that as a Band SDK error. Sep 15, 2015 at 22:15
  • I have pair the device with my bluetooth I use the above code in a universal windows store app which track the paired device and I try to return useful information real time. My problem is how to get the information, if I can get it without the use of the mobile devide real time.
    – Jose Ramon
    Sep 16, 2015 at 8:03
  • I'm not sure I'm following; in order to stream data from the Band, you must first Bluetooth pair it to a device, whether a PC or a phone. Once you've done that, then you can use the Band SDK in an application on that PC or phone to retrieve the data. There is no way to stream data from the Band except through a Bluetooth connection from a device. Sep 16, 2015 at 17:48

2 Answers 2

6

For running and workouts you don't need a mobile. But if your ideia is use the Band indefinitely, for days, and then sync with a storage will not work. The Microsoft Band is like a aggregate of sensors, not a device that works alone.

1
  • Basically I want to get real time heart rate data on the spot to a pc via a bluetooth communication without having a mobile device. Can I do such thing?
    – Jose Ramon
    Sep 10, 2015 at 14:00
5

You can pair the Band directly to a Bluetooth-enabled (e.g. Windows) PC, then use the Band SDK to connect to the Band and stream real-time data from a Windows application.

6
  • Is there any tutorial on how to do so?
    – Jose Ramon
    Sep 14, 2015 at 8:20
  • I have installed microsoft band sync application and I pair and sync the device with pc. How can I create a app to get real time data?
    – Jose Ramon
    Sep 14, 2015 at 9:15
  • Start with a new Windows 8.1 (universal) application. Then apply the Band SDK NuGet package to the project. Then follow the instructions/samples from the Band SDK documentation: developer.microsoftband.com/Content/docs/… Sep 14, 2015 at 19:02
  • I start a universal Apps a windows runtime compontent. I follow the instructions add proximity and the specification in the manifest. I tried to add the code mention in the link, however when I run my program it doesnt seem that it finds my device.
    – Jose Ramon
    Sep 15, 2015 at 10:58
  • Do you simply get an empty collection of devices, or does the enumeration itself fail? Make sure that the machine/phone running the application was the most recent device to be paired to the Band. The Band will connect to only the last device it has been paired with. Sep 15, 2015 at 22:18

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.