Bluetooth Data Transfer APIs
Please provide developer platform support for bluetooth data transfer via SSP (Serial Port Profile). There are many bluetooth devices (e.g., medical devices, automotive, etc.) that we need to connect to.
With Windows Phone 8.0 developer platform, apps that utilize SPP (Serial Port Profile) can now be implemented on Windows Phone 8, although it requires use of RFCOMM.
Using RFCOMM, a developer should be able to get a socket via peerfinder and build an SPP implementation on top of that. This was done for a couple demos (e.g., Tim Laverty built an SPP implementation in his Build 2012 networking talk).
Moving forward, (a) the WP team is planning on providing some deeper sample code, and (b) there are a couple community projects that are implementing SPP on top of the platform and publishing it.
So while there isn’t a native SPP API set on the developer platform, WP8 makes it possible for a developer to implement take advantage of Serial Port Profiles on WP. As such, I’m marking this as ‘Started’ with WP8, and we’ll revisit the status with a future release.
As such, download the WPSDK and give it a try. :)
196 comments
-
Anonymous
commented
I'm hoping this covers BLE . I'm trying to write some apps which integrate to ANT+ and BLE and I'm waiting on the BLE (BT 4.0 )aspect.
-
Daniel
commented
What about support for HID support? Think about the following scenarios:
- WP as a remote/Presenter without needing a "server application" on the Windows PC -
For those interested in sample code to use SPP, it's been pointed out to me that you can use the NXTCar Solution code as a starting point at http://code.msdn.microsoft.com/wpapps/Windows-Phone-8-Networking-835239c1
Line 78 in the file MainPage.xaml.cs is
await s.ConnectAsync(peerInfo.HostName, "1");
the 2nd parameter is the RFCOMM Server Channel.
Instead of specifying the server channel, you can also specify the Service UUID:
await s.ConnectAsync(peerInfo.HostName, "{00001101-0000-1000-8000-00805F9B34FB}" /* This is the UUID for SPP. Please specify the UUID of the Service you would like to connect to. */); -
As a side note, it was raised that I typo'd in my response using 'SSP' (which indicates Secure Simple Printing) instead of 'SPP' (Serial Port Profile). My apologies; I corrected the response to be less confusing.
I also added a link to the RFCOMM sample.
-
Anonymous
commented
I was planning to change from an HTC Android to a Nokia 920, but as my Pebble watch will not work as things are currently, I am changing my mind.
-
Eliseo
commented
Kiero el programa d bluetooth
-
bondo76
commented
May we have an update as to the current status and/or progressing relationships in relation to current or future smart watch compatibility? I own a lumia 920 and am very interested in the coming smart watch tech as I am sure most of the current WP8 users are as well. mywatch, metawatch, pebble etc.
-
William
commented
This is a bummer. Especially since I was one of the backers for the 'Pebble' watch on Kickstater, needs SSP specifically to operate correctly.
A switch to BACK Android may be on the horizon if basic needs cannot be fulfilled.
-
amir
commented
Please provide developer platform support for bluetooth data transfer via SSP (Serial Port Profile). There are many bluetooth devices (e.g., medical devices, automotive, etc.) that we need to connect to
-
clody
commented
Too bad that there are no more samples out there in the wild.
But finally,
Yes! I succeed at last to read GPS coordinates from an external GPS via bluetooth with Lumia 820!
Awesome! If no one will come with a sample.. perhaps I will post one on my blog.Cheers,
Claudiu -
DirtyHand me
commented
@David Lorenzin: That is not true.
One of my apps I have in both stores.
In the Windows store it brings even nothing.
In the Android Store 80 Euro/month: -
Anastasia
commented
Why do I have ti buy a new phone to get a basic feature?!
Is it so difficult for genious MS personell to add NORMAL bluetooth to WP 7.8?!
When I bought my WP 7.5 less than a year ago, I really thought, I was investing money in innovation, in a trustable product of a trustable company. And now, my 500 USD turned into garbage, that is not supported even by it's developer?
MS!!! Would you please return loyalty and trust of your customers. -
David Lorenzin
commented
@DirtyHand: Android Store is useless for developers, WP Store is FAR more $$$, and you develop QUALITY Apps in 1/4 of time, nothing on eartch beats Visual Studio 2012 and Microsoft/Nokia developer support :)
-
DirtyHand me
commented
I fled with my development to Android.
https://play.google.com/store/apps/details?id=me.kyberback.steeringwheeldemo
Thank God
-
Michele
commented
I've windows phone 7.5 (Nokia Lumia 800) and I've buy it 1 year ago for 450 euro and I don't want buy a new phone now. I prefer have Bluetooth in this phone with update at 7.8. Thanks
-
Michele
commented
I've windows phone 7.5 (Nokia Lumia 800) and I've buy it 1 year ago for 450 euro and I don't want buy a new phone now. I prefer have Bluetooth in this phone with update at 7.8. Thanks
-
Anonymous
commented
De want this for Windows phone 7.8. I dont want to buy a new phone for that. This is a basic smartphone feature. Else I've been cheated.
-
Lewis Benge
commented
Is there any plans to extend this to BT4 LE and GATT support for fitness/health based accessories or just I raise a separate request for this?
-
Gilhern04
commented
I gave up on windows when windows 8 came out and us early adopters got shafted, I just bought an iPhone 5 and I love it
-
Eric Renken
commented
I was at Tim Laverty's talk at build and I have gotten this to work with our RFCOMM hardware. I did have some initial problems but with a few quick emails with Tim and other MS engineer I was up and running. The only next thing I am looking for was a way to programmatically pair a device. Like if I see our hardware I want to set the PIN and pair to it and then when I am done disconnect. I guess that is kind of what NFC could help with if we added that to our hardware.
