locked
Windows Metro style apps and Bluetooth

    Question

  • I'd like to understand how to write a Metro style app which can talk to bluetooth devices.  Is there a sample app out there that I can reference?  How else can I get started?

    Wednesday, February 8, 2012 1:48 AM

Answers

All replies

  • Here is a sample on how to control bluetooth in Win8. You can reference it:

    http://code.msdn.microsoft.com/windowsapps/Call-Control-b52ad696

    Best Regards,

    Han Xia

    • Marked as answer by Bob_Bao Tuesday, February 21, 2012 5:12 AM
    Wednesday, February 8, 2012 2:52 AM
  • I tried the sample and connect my phone with computer properly, but app failed to recognize my phone. 

    How could I fix it?

    Thanks.


    Jerry

    Monday, May 28, 2012 9:34 AM
  • It's not so obvious from the various bits of documentation, but what's supported with this sample is using a Bluetooth Headset/Handsfree device.  The sample looks for button presses from the headet and plays audio to the device.  I've used this sample successfully with my Bluetooth Headset.

    In the Handsfree and Headset Bluetooth profiles there are obviously two components: the AudioGateway which is the phone, and the Headset/Handsfree device itself. Windows apparently implements the AudioGateway profile and thus can talk to Headset/Handsfree.  I've seen no information that it has built-in support for being the Headset/Handsfree component, and thus it can't talk to a Bluetooth phone (AudioGateway).


    http://www.alanjmcf.me.uk/ Please follow-up in the newsgroup. If I help, please vote and/or mark the question answered. Available for contract programming.

    • Proposed as answer by Jerrywu12 Tuesday, May 29, 2012 1:25 AM
    Monday, May 28, 2012 9:48 AM
  • I have encountered the same issue: I already have a Bluetooth doogle on my computer, but when run this sample, it display "Call Controls Initialization failed". Why? How can i fix this problem? 

    • Proposed as answer by dongfangbt Friday, June 8, 2012 8:03 AM
    • Unproposed as answer by dongfangbt Friday, June 8, 2012 8:03 AM
    Friday, June 8, 2012 8:02 AM
  • Hello,I tried the sample and I have a Bluetooth doogle on my computer, but when run this sample, it display "Call Controls Initialization failed". Why? How can i fix this problem? 

    Best Regards,

    dongfang

    Friday, June 8, 2012 8:05 AM
  • See my answer above: "[...] what's supported with this sample is using a Bluetooth Headset/Handsfree device."  Do you have a Headset/Handsfree device paired with the PC?

    http://www.alanjmcf.me.uk/ Please follow-up in the newsgroup. If I help, please vote and/or mark the question answered. Available for contract programming.

    Friday, June 8, 2012 9:31 AM
  • Thank you for answer my question , I have solve the problem with your help... cool
    Friday, June 8, 2012 10:14 AM
  • Hi Friends,

    I have a Bluetooth device (Health meter). I want to create Windows/Metro app for this device. The Windows/Metro app should control my Bluetooth device. I should able to fire some command from the app and device should react accordingly and vice versa. This is not a Microsoft LE (Low Energy) device. Whatever examples I got from internet, are either related to Bluetooth mobile app or Windows/Metro app which are connected to my machine manually.

    Please suggest me what all thing I need to do. Or tell me how should I proceed. How to connect/find bluetooth device from windows/Metro app.

    Regards,
    Vishal
    Monday, September 24, 2012 4:39 PM
  • i want to know the answer too.

    Thanks.


    windows phone & iPhone developer 我更喜欢Windows phone http://www.lizhecome.com

    Thursday, April 25, 2013 2:44 PM
  • Now there's a nice example up for how to create a Windows 8 app that connects to a Bluetooth LE heart monitor at http://code.msdn.microsoft.com/windowsapps/Bluetooth-Generic-5a99ef95/

    Thursday, September 19, 2013 8:26 AM