locked
Why Bluetooth Ble sample code(Heart Rate Service) can not work with between windows8.1 PC RRS feed

  • Question

  •  I follow the sample code and compile to run with IDE vs2013(update 2):
     http://code.msdn.microsoft.com/windowsapps/Bluetooth-Generic-5a99ef95/view/Discussions#content
     
     My two laptops are Lenovo X1 Carbon, and I can see Bluetooth device in the Device Manager,
     Bluetooth device include a Microsoft Bluetooth LE Enumerator, a Microsoft Bluetooth Enumerator, and an Intel(R) Wireless Bluetooth 4.0 + High Speed Adapter. 
     
     Before I run sample code (Bluetooth Generic Attribute Profile - Heart Rate Service), I have paired my machine and other one.
     But when I click button 'Run', it always show:
     Could not find any Heart Rate devices. Please make sure your device is paired and powered on!
     
     My question:
     1. Does Intel(R) Wireless Bluetooth 4.0+ build in Heart Rate devices? 
     2. Could I use my laptop machine to test Bluetooth ble sample code ?
     
     Any Suggestions are very grateful, thanks first.
     
    Thursday, June 19, 2014 2:27 AM

Answers

  • Hi SamComing,

    First thing you have to confirm if your Bluetooth device contains Heart Rate Service, otherwise you cannot successfuly run the app. As you can also see from the message, it seems your Bluetooth device does not have Heart Rate Service integrate.

    I'm not sure if Intel(R) Wireless Bluetooth 4.0+ build in Heart Rate devices, but you can read your instruction book or ask Lenovo (http://support.lenovo.com/en_US/feedback/contactsupport.page?) if this feature enabled.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by SamComing Monday, June 23, 2014 1:23 AM
    Friday, June 20, 2014 6:04 AM
    Moderator

All replies

  • Hi SamComing,

    First thing you have to confirm if your Bluetooth device contains Heart Rate Service, otherwise you cannot successfuly run the app. As you can also see from the message, it seems your Bluetooth device does not have Heart Rate Service integrate.

    I'm not sure if Intel(R) Wireless Bluetooth 4.0+ build in Heart Rate devices, but you can read your instruction book or ask Lenovo (http://support.lenovo.com/en_US/feedback/contactsupport.page?) if this feature enabled.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by SamComing Monday, June 23, 2014 1:23 AM
    Friday, June 20, 2014 6:04 AM
    Moderator
  • I got it.

    BTW, Intel(R) Wireless Bluetooth 4.0+ do not build in Heart Rate devices.

    Thank you James.

    Monday, June 23, 2014 1:25 AM
  • Are you pairing the two laptops together, and now want to know why you can't run the  Heart Rate sample?

    The answer is: that's not how Bluetooth is supposed to work.  You can think of Bluetooth as being designed to connect small devices (like fitbits, or little toy robots, or sensors) to a bigger computer.  The "little device" advertises it's capabilities.  For example, at home I've got a Bluetooth speaker that claims to be a speaker, a little TI SensorTag that claims to be GATT, and a little toy robot that claims to be an SPP (serial port profile == stream socket). 

    When you write your app, you look for matching devices.  My toy robot app looks for serial port devices; my TI SensorTag app looks for GATT devices.  And you can't write an app for the speakers because it's built into the OS :-) .  This is actually a big convenience: I don't want my toy robot app users to get a big list of Bluetooth devices where most of them aren't the toy robot.

    The heart rate sample only works with devices that claim to be a heart rate device.

    When you paired the two laptops together and ran the app on one of the laptops, it looked for heart rate devices.  But the other laptop is exposing a different set of capabilities -- probably PAN (personal area networking), SPP (stream socket), file transfer, and some others.  But it's not a heart rate monitor, so it doesn't advertise that.

    (Disclaimer: I'm not really a Bluetooth expert; I just like playing around with them)

    Monday, June 23, 2014 6:29 PM