Answered by:
How to write and verify Pairing:Bluetooth tag in a proximity device.

Question
-
I want to create a program to write the Pairing:Bluetooth tag on a Bluetooth device then read that tag data to verify the process success . Where i can find the sample code or API could use? Thanks!
Simon
Corrected the question title.- Edited by ccmsc Thursday, June 28, 2012 8:24 AM
Thursday, June 28, 2012 4:02 AM
Answers
-
This is possible but not easy. Start with the this spec:
http://www.nfc-forum.org/resources/AppDocs/NFCForum_AD_BTSSP_1_0.pdf
Then formulate the correct OOB pairing data for whatever device you are trying to pair with, then you'll need to write a tag using NDEF:WriteTag.
Best Wishes - Eric
- Marked as answer by Eric Hanson-MSFTModerator Thursday, June 28, 2012 11:23 PM
Thursday, June 28, 2012 11:23 PMModerator
All replies
-
Simon,
Are sample is here:
http://code.msdn.microsoft.com/windowsapps/Proximity-Sample-88129731
And guides here:
- Quickstart: Connecting applications using tapping or browsing (JavaScript)
- Quickstart: Connecting applications using tapping or browsing (C#)
- Quickstart: Publishing and subscribing to messages using tapping (JavaScript)
- Quickstart: Publishing and subscribing to messages using tapping (C#)
- Guidelines and checklist for proximity
- Best Wishes - Eric
- Marked as answer by Eric Hanson-MSFTModerator Thursday, June 28, 2012 4:10 AM
- Unmarked as answer by Eric Hanson-MSFTModerator Thursday, June 28, 2012 6:56 PM
Thursday, June 28, 2012 4:10 AMModerator -
Hi Eric, Thanks for your information.
I think i need to describe my question more specifically. I use the sample code and subscribe the message type "Pairing:Bluetooth" in the apps. When the BT device tap with the system and trigger the pairing process, my apps also can received the message. I try to decode the message to get the device information (ex the BDA, Mac address or device name) but I don't know how to do that. Reading from the document, it say "Pairing:Bluetooth" protocol is not intended to be use in apps. So i am looking for the solution for this approach.
Pairing:Bluetooth Windows subscribes to this message type to complete a Bluetooth pairing using proximity. This protocol is not intended to be uses in apps. On the other hand, this should be the question first, if I want to make my BT device have tap and pairing capability, how and what data format need to write to the proximity tag?
Thanks!
Simon
Thursday, June 28, 2012 8:22 AM -
This is possible but not easy. Start with the this spec:
http://www.nfc-forum.org/resources/AppDocs/NFCForum_AD_BTSSP_1_0.pdf
Then formulate the correct OOB pairing data for whatever device you are trying to pair with, then you'll need to write a tag using NDEF:WriteTag.
Best Wishes - Eric
- Marked as answer by Eric Hanson-MSFTModerator Thursday, June 28, 2012 11:23 PM
Thursday, June 28, 2012 11:23 PMModerator -
I am starting with this spec. Thanks a lots...
Simon
Friday, June 29, 2012 6:25 PM -
Simon,
You are very welcome.
Best Wishes - Eric
Friday, June 29, 2012 9:34 PMModerator -
You are very welcome Simon!
Best Wishes - Eric
Friday, June 29, 2012 9:37 PMModerator