In dieser Präsentation werden die Hintergründe zu Bluetooth in Windows Phone 8 erklärt. Dazu wird eine einfache Bluetooth Chat App gezeigt. Auch das Fernsteuern eines Bluetooth Autos ist damit möglich.
2. Über Peter Nowak
IT Architekt im S.T.A.R.T.-Team bei der
Hönigsberg & Düvel Datentechnik GmbH
Microsoft MVP für Windows Phone Development
Nokia Dev. Champion seit 1. April 2013
Peter.Nowak@Hotmail.
de
@PeNoWiMo
http://winphonedev.de
4. Bluetooth unter Windows Phone 8
Warum Bluetooth?
Was ist so besonderes dran?
Unterstützte Bluetooth Profile
App To App Kommunikation
App To Device Kommunikation
8. Bluetooth in Windows Phone 8
Unterstützte Protokolle:
Advanced Audio Distribution Profile (A2DP 1.2)
Audio/Video Remote Control Profile (AVRCP 1.4)
Hands Free Profile (HFP 1.5)
Phone Book Access Profile (PBAP 1.1)
Object Push Profile (OPP 1.1)
Out of Band (OOB) und NFC
11. Bluetooth in Windows Phone 8 (Ein
einfacherChat)
Suchen von Geräten zum Chat
Verbinden mit den Chat-Geräten
Kommunikationskanal öffnen / akzeptieren
Daten verschicken / empfangen und darstellen
12. Bluetooth in Windows Phone 8
Capability setzen!
Windows.Phone.Proximity
PeerFinder
Windows.Storage.Streams
DataReader / DataWriter
Windows.Networking.Sockets
StreamSocket
13. Bluetooth in Windows Phone 8
• Demo eines Chats
Quelle: http://code.msdn.microsoft.com/wpapps/Bluetooth-app-to-app-sample-890f8303
22. Bluetooth in Windows Phone 8
Kommunikation via Bluetooth ist simpel
Gleiche API für Windows 8 Apps nutzbar!
Windows Phone 8 mit Windows 8 App nicht kompatibel.
WP8: Kommunikation via Bluetooth
Windows 8: Kommunikation via WiFi-Direct
23. Bluetooth in Windows Phone 8
Man benötigt PeerFinder und StreamSocket
DataReader und DataWriter nehmen einem ein wenig
Arbeit ab
App To Device sind Protokolle sind wichtig
OBEX: http://geoffwebbercross.blogspot.de/2012/12/pushing-file-from-wp8-using-bluetooth.html
24. Bluetooth in Windows Phone 8
Ressourcen:
Bluetooth for Windows Phone 8
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207007(v=vs.105).aspx
Networking mit WP8 (Channel 9)
http://channel9.msdn.com/Events/Build/2012/3-047