Windows Phone 8 NFC Quickstart

Andreas Jakl
Andreas JaklLecturer - Digital Healthcare at St. Pölten University of Applied Sciences #fhstp
Windows Phone 8 NFC
Quickstart – NearSpeak
Andreas Jakl
[@mopius]
nfcinteractor.com
Technology Wizard
Nokia




 1     Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
       NFC Forum and the NFC Forum logo are trademarks of the Near Field Communication Forum.
Near Field
                           Communication                                       NearSpeak




2   Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
Near Field Communication


3   Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
Scenarios




    Connect Devices                           Exchange Digital Objects                          Acquire Content

4     Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
Windows Phone 8 +
                                              Proximity APIs

                                              Windows 8
                                              Documentation
                                          Win8: bit.ly/ProximityAPI
                                         WP8: bit.ly/ProximityAPIwp8




5   Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
NearSpeak
                                                             nearspeak.at


6   Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
NearSpeak



       Record a                                         Write to an                                Tap the tag to
    voice message                                        NFC tag                                 launch the app &
                                                                                                   hear the text!

7      Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
General Project Setup
1 Add Capabilities: Proximity, Microphone, Speech Recognition, Networking
  Requirement: NFC
                                                                                          Connect to HW
2 Initialize ProximityDevice                                                              Detect devices in range
    _device = ProximityDevice.GetDefault();                                               Publish & subscribe to messages

3 Initialize Speech Recognizer & Synthesizer
    _recognizer = new SpeechRecognizer();
    _synthesizer = new SpeechSynthesizer();



8      Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
UI Design




9   Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
Listen
4 Text recognition (Speech-to-Text)
     var recoResult = await _recognizer.RecognizeAsync();

     MessageBox.Show(string.Format("You said "{0}"n
         Please touch a tag to write the message.",
         recoResult.Text));




10      Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
Data on an NFC Tag
       LaunchApp
Arguments
[speech text]

WindowsPhone app ID
{0450eab3-92…}


         Data                            Encapsulated in                             Encoded through                                        Stored on
     NDEF Record(s)                       NDEF Message                                  NFC Forum                                         NFC Forum Tag
                                                                                     Tag Type Platform


11        Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
          NDEF = NFC Data Exchange Format, Container image adapted from s_volenszki (Flickr), released under Creative Commons BY-NC 2.0
NDEF.codeplex.com

           Create NDEF                                        Reusable
                                                                                               Parse information
     messages & records                                         NDEF                           from raw byte arrays
             (standard compliant)                              classes



                                                     Fully documented
                                                  Open Source LGPL license
                                                   (based on Qt Mobility)




12   Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
Supported Record Types
                                                                                                                         Geo tags
                        Smart Poster                                                                                     Social tags
                                  URI                                                                                    SMS tags
                                 Text                                                                                    Telephone call
                          LaunchApp
     Android Application Record (AAR)
            Nokia Accessories Record

13      Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
        Why use the library for “Talking Tags”? Creating LaunchApp records is easier, and you can also send them to other phones and not only write to a tag.
NDEF Library
5 Use NuGet package manager to install NDEF Library for Proximity APIs




14     Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
Write NFC Tags
6 Create LaunchApp Message (in button call-back method)
     var record = new NdefLaunchAppRecord {Arguments = recoResult.Text};
     record.AddPlatformAppId("WindowsPhone", "{...}");

     var msg = new NdefMessage {record};


7 Write to the next tag
     _device.PublishBinaryMessage("NDEF:WriteTag",
               msg.ToByteArray().AsBuffer(), MessageWrittenHandler);



15      Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
Write NFC Tags
8 NFC message written to a tag? Inform user
     private void MessageWrittenHandler(
                  ProximityDevice sender, long messageId)
     {
         Dispatcher.BeginInvoke(() => MessageBox.Show(
                  "Message written"));
     }




16      Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
Speak When Launched
9 App launched from a tag? Speak the stored text!
     protected override async void OnNavigatedTo(
                                       NavigationEventArgs e)
     {
         base.OnNavigatedTo(e);

         if (NavigationContext.QueryString.ContainsKey(
             "ms_nfp_launchargs"))
         {
             await _synthesizer.SpeakTextAsync(
                   NavigationContext.QueryString
                   ["ms_nfp_launchargs"]);
         }
     }

17       Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
Nfc Interactor for
                              Windows Phone 8


18   Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
nfcinteractor.com




19   Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
Near Field
                            Communication                                       NearSpeak




20   Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
Thank You.
                                                                 NFC Introduction
                                                                 bit.ly/NfcIntro
Andreas Jakl


                                         Related Presentations
[@mopius]                                                        Windows (Phone) 8 NFC App Scenarios
                                                                 bit.ly/NFCAppScenarios
nfcinteractor.com
                                                                 NFC Development on the Windows 8 Platform
Technology Wizard
                                                                 bit.ly/Win8NFC
Nokia
                                                                 NFC Development with Qt on Symbian and MeeGo
                                                                 bit.ly/NfcDevelopment


 21    Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
1 of 21

Recommended

Embedded Systems Security News 2011/06 by
Embedded Systems Security News 2011/06Embedded Systems Security News 2011/06
Embedded Systems Security News 2011/06AurMiana
4.4K views4 slides
Near field communication by
Near field communicationNear field communication
Near field communicationNagesh Mishra
13.4K views22 slides
Nfc forum 14_feb07_press_and_analyst_briefing_slides by
Nfc forum 14_feb07_press_and_analyst_briefing_slidesNfc forum 14_feb07_press_and_analyst_briefing_slides
Nfc forum 14_feb07_press_and_analyst_briefing_slidesBabu Kumar
6.6K views49 slides
Windows 8 Platform NFC Development by
Windows 8 Platform NFC DevelopmentWindows 8 Platform NFC Development
Windows 8 Platform NFC DevelopmentAndreas Jakl
7.9K views47 slides
NFC Development with Qt - v2.2.0 (5. November 2012) by
NFC Development with Qt - v2.2.0 (5. November 2012)NFC Development with Qt - v2.2.0 (5. November 2012)
NFC Development with Qt - v2.2.0 (5. November 2012)Andreas Jakl
79.7K views76 slides
NFC Everywhere Brochure 2016 by
NFC Everywhere Brochure 2016NFC Everywhere Brochure 2016
NFC Everywhere Brochure 2016Laurent Dardé
6.3K views36 slides

More Related Content

What's hot

Nfc power point by
Nfc power pointNfc power point
Nfc power pointRajeev Verma
3.4K views34 slides
Ganesh by
GaneshGanesh
GaneshGanesh Deva
1.2K views4 slides
Wireless Patents for Standards & Applications 1Q 2015 by
Wireless Patents for Standards & Applications 1Q 2015Wireless Patents for Standards & Applications 1Q 2015
Wireless Patents for Standards & Applications 1Q 2015Alex G. Lee, Ph.D. Esq. CLP
3.7K views17 slides
Ultrabook Development Using Sensors - Intel AppLab Berlin by
Ultrabook Development Using Sensors - Intel AppLab BerlinUltrabook Development Using Sensors - Intel AppLab Berlin
Ultrabook Development Using Sensors - Intel AppLab BerlinIntel Developer Zone Community
3.3K views40 slides
Nfc technology by
Nfc technologyNfc technology
Nfc technologymanasvi sarkar
5.2K views36 slides
NFC (Windows 8/ Windows Phone 8 ) by
NFC (Windows 8/ Windows Phone 8 )NFC (Windows 8/ Windows Phone 8 )
NFC (Windows 8/ Windows Phone 8 )Bill Chung
5.8K views18 slides

What's hot(20)

NFC (Windows 8/ Windows Phone 8 ) by Bill Chung
NFC (Windows 8/ Windows Phone 8 )NFC (Windows 8/ Windows Phone 8 )
NFC (Windows 8/ Windows Phone 8 )
Bill Chung5.8K views
Near Field Communication (NFC) by Seminar Links
Near Field Communication (NFC)Near Field Communication (NFC)
Near Field Communication (NFC)
Seminar Links34.4K views
Which new scenarios are enabled by Windows 10 for NFC, Bluetooth LE & Beacons? by Andreas Jakl
Which new scenarios are enabled by Windows 10 for NFC, Bluetooth LE & Beacons?Which new scenarios are enabled by Windows 10 for NFC, Bluetooth LE & Beacons?
Which new scenarios are enabled by Windows 10 for NFC, Bluetooth LE & Beacons?
Andreas Jakl6.4K views
Automating Your Life: A look at NFC by Mitchell Muenster
Automating Your Life: A look at NFC Automating Your Life: A look at NFC
Automating Your Life: A look at NFC
Mitchell Muenster3.2K views
Near Field Communication (NFC Architecture and Operating Modes) by Deepak Kl
Near Field Communication (NFC Architecture and Operating Modes)Near Field Communication (NFC Architecture and Operating Modes)
Near Field Communication (NFC Architecture and Operating Modes)
Deepak Kl17.6K views
NFC Bootcamp Seattle Day 2 by traceebeebe
NFC Bootcamp Seattle Day 2 NFC Bootcamp Seattle Day 2
NFC Bootcamp Seattle Day 2
traceebeebe3.3K views
NFC for the Internet of Things by NFC Forum
NFC for the Internet of ThingsNFC for the Internet of Things
NFC for the Internet of Things
NFC Forum2.6K views
Near field communication by Rahul Patil
Near field communicationNear field communication
Near field communication
Rahul Patil2.4K views
NEAR FIELD COMMUNICATION (NFC) by mahima28
NEAR FIELD COMMUNICATION (NFC)NEAR FIELD COMMUNICATION (NFC)
NEAR FIELD COMMUNICATION (NFC)
mahima28220 views
State of the Market by NFC Forum
State of the MarketState of the Market
State of the Market
NFC Forum1K views
NFC Technology by Neha Singh
NFC TechnologyNFC Technology
NFC Technology
Neha Singh38.2K views

Viewers also liked

Windows (Phone) 8 NFC App Scenarios by
Windows (Phone) 8 NFC App ScenariosWindows (Phone) 8 NFC App Scenarios
Windows (Phone) 8 NFC App ScenariosAndreas Jakl
9.1K views48 slides
Near field communication (NFC) in android by
Near field communication (NFC) in androidNear field communication (NFC) in android
Near field communication (NFC) in androidMindfire Solutions
4.9K views23 slides
LUMIA APP LABS: DEVELOPING NFC APPS IN WINDOWS PHONE 8 by
LUMIA APP LABS: DEVELOPING NFC APPS IN WINDOWS PHONE 8LUMIA APP LABS: DEVELOPING NFC APPS IN WINDOWS PHONE 8
LUMIA APP LABS: DEVELOPING NFC APPS IN WINDOWS PHONE 8Microsoft Mobile Developer
7.8K views29 slides
NFC in Direct Mail - the Pros and Cons by
NFC in Direct Mail - the Pros and ConsNFC in Direct Mail - the Pros and Cons
NFC in Direct Mail - the Pros and ConsMarisa Cogan
1.8K views10 slides
Vodafone Cash Service - NFC tag by
Vodafone Cash Service - NFC tagVodafone Cash Service - NFC tag
Vodafone Cash Service - NFC tagDeyaa Ahmed
4.9K views16 slides
Nfc tutorial by
Nfc tutorialNfc tutorial
Nfc tutorialRoy Chen
3.1K views37 slides

Viewers also liked(18)

Windows (Phone) 8 NFC App Scenarios by Andreas Jakl
Windows (Phone) 8 NFC App ScenariosWindows (Phone) 8 NFC App Scenarios
Windows (Phone) 8 NFC App Scenarios
Andreas Jakl9.1K views
Near field communication (NFC) in android by Mindfire Solutions
Near field communication (NFC) in androidNear field communication (NFC) in android
Near field communication (NFC) in android
Mindfire Solutions4.9K views
NFC in Direct Mail - the Pros and Cons by Marisa Cogan
NFC in Direct Mail - the Pros and ConsNFC in Direct Mail - the Pros and Cons
NFC in Direct Mail - the Pros and Cons
Marisa Cogan1.8K views
Vodafone Cash Service - NFC tag by Deyaa Ahmed
Vodafone Cash Service - NFC tagVodafone Cash Service - NFC tag
Vodafone Cash Service - NFC tag
Deyaa Ahmed4.9K views
Nfc tutorial by Roy Chen
Nfc tutorialNfc tutorial
Nfc tutorial
Roy Chen3.1K views
Razorfish nfc technologies presentation 2013 by Razorfish
Razorfish nfc technologies presentation 2013Razorfish nfc technologies presentation 2013
Razorfish nfc technologies presentation 2013
Razorfish5.5K views
Track 1 session 6 - st dev con 2016 - smart badge by ST_World
Track 1   session 6 - st dev con 2016 - smart badgeTrack 1   session 6 - st dev con 2016 - smart badge
Track 1 session 6 - st dev con 2016 - smart badge
ST_World 7.9K views
Guide du tag NFC : quels usages dans quels contextes ? by Olivier Devillers
Guide du tag NFC : quels usages dans quels contextes ?Guide du tag NFC : quels usages dans quels contextes ?
Guide du tag NFC : quels usages dans quels contextes ?
Olivier Devillers3.9K views
Near field communication(nfc) by Bhaumik Gagwani
Near field communication(nfc)Near field communication(nfc)
Near field communication(nfc)
Bhaumik Gagwani9.7K views
A Librarian's Field Guide to Near Field Communication by Kristen Yarmey
A Librarian's Field Guide to Near Field CommunicationA Librarian's Field Guide to Near Field Communication
A Librarian's Field Guide to Near Field Communication
Kristen Yarmey20.5K views
Contactless NFC Tags For Mobile Loyalty by Merchant360, Inc.
Contactless NFC Tags For Mobile LoyaltyContactless NFC Tags For Mobile Loyalty
Contactless NFC Tags For Mobile Loyalty
Merchant360, Inc.13.1K views
droidcon 2012: What's the Hack is NFC .., Hauke Meyn, NXP by Droidcon Berlin
droidcon 2012: What's the Hack is NFC .., Hauke Meyn, NXPdroidcon 2012: What's the Hack is NFC .., Hauke Meyn, NXP
droidcon 2012: What's the Hack is NFC .., Hauke Meyn, NXP
Droidcon Berlin10.9K views
Nfc-Full Presentation by DILIN RAJ DS
Nfc-Full PresentationNfc-Full Presentation
Nfc-Full Presentation
DILIN RAJ DS14.4K views
NFC(Near Field Communication) by ADARSH KUMAR
NFC(Near Field Communication)NFC(Near Field Communication)
NFC(Near Field Communication)
ADARSH KUMAR18.5K views
Introduction to nfc by Ray Cheng
Introduction to nfcIntroduction to nfc
Introduction to nfc
Ray Cheng13.2K views

Similar to Windows Phone 8 NFC Quickstart

Windows Phone 8 Dev.KickStart - Sensors and integration by
Windows Phone 8 Dev.KickStart - Sensors and integrationWindows Phone 8 Dev.KickStart - Sensors and integration
Windows Phone 8 Dev.KickStart - Sensors and integrationAndreas Hammar
893 views26 slides
Introduction to NFC by
Introduction to NFCIntroduction to NFC
Introduction to NFCPrateek Aggarwal
968 views15 slides
Windows phone 7 overview by
Windows phone 7 overviewWindows phone 7 overview
Windows phone 7 overviewSoumow Dollon
1.1K views68 slides
Qt App Development for Symbian & MeeGo - v3.4.6 (17. January 2012) by
Qt App Development for Symbian & MeeGo - v3.4.6 (17. January 2012)Qt App Development for Symbian & MeeGo - v3.4.6 (17. January 2012)
Qt App Development for Symbian & MeeGo - v3.4.6 (17. January 2012)Andreas Jakl
5.8K views53 slides
Fernando Kanacri - Nokia by
Fernando Kanacri - NokiaFernando Kanacri - Nokia
Fernando Kanacri - NokiaBarcelona Digital Technology Centre
458 views16 slides
Android and Ice-cream Sandwich by
Android and Ice-cream SandwichAndroid and Ice-cream Sandwich
Android and Ice-cream SandwichNishant Arora
940 views24 slides

Similar to Windows Phone 8 NFC Quickstart(20)

Windows Phone 8 Dev.KickStart - Sensors and integration by Andreas Hammar
Windows Phone 8 Dev.KickStart - Sensors and integrationWindows Phone 8 Dev.KickStart - Sensors and integration
Windows Phone 8 Dev.KickStart - Sensors and integration
Andreas Hammar893 views
Windows phone 7 overview by Soumow Dollon
Windows phone 7 overviewWindows phone 7 overview
Windows phone 7 overview
Soumow Dollon1.1K views
Qt App Development for Symbian & MeeGo - v3.4.6 (17. January 2012) by Andreas Jakl
Qt App Development for Symbian & MeeGo - v3.4.6 (17. January 2012)Qt App Development for Symbian & MeeGo - v3.4.6 (17. January 2012)
Qt App Development for Symbian & MeeGo - v3.4.6 (17. January 2012)
Andreas Jakl5.8K views
Android and Ice-cream Sandwich by Nishant Arora
Android and Ice-cream SandwichAndroid and Ice-cream Sandwich
Android and Ice-cream Sandwich
Nishant Arora940 views
Nokia NFC Presentation by momobeijing
Nokia NFC PresentationNokia NFC Presentation
Nokia NFC Presentation
momobeijing3K views
Owasp App Sec Ireland Windows Phone 7 Security by Security Ninja
Owasp App Sec Ireland Windows Phone 7 SecurityOwasp App Sec Ireland Windows Phone 7 Security
Owasp App Sec Ireland Windows Phone 7 Security
Security Ninja1.1K views
Android Basic Presentation (Introduction) by RAHUL TRIPATHI
Android Basic Presentation (Introduction)Android Basic Presentation (Introduction)
Android Basic Presentation (Introduction)
RAHUL TRIPATHI1.3K views
2011 android by vpedapolu
2011 android2011 android
2011 android
vpedapolu2.4K views
My presentation on Android in my college by Sneha Lata
My presentation on Android in my collegeMy presentation on Android in my college
My presentation on Android in my college
Sneha Lata32.2K views
Mobile Devolpment Slides by Luke Angel
Mobile Devolpment SlidesMobile Devolpment Slides
Mobile Devolpment Slides
Luke Angel688 views
Mobile Operating System by Sonal Poddar
Mobile Operating SystemMobile Operating System
Mobile Operating System
Sonal Poddar1.2K views
Near field communication by Siddharth Dc
Near field communication Near field communication
Near field communication
Siddharth Dc7.2K views
Windows phone 7 application development by Mannu Malhotra
Windows phone 7 application developmentWindows phone 7 application development
Windows phone 7 application development
Mannu Malhotra280 views
Android.... (4.4 included) by ashish0019
Android.... (4.4 included)Android.... (4.4 included)
Android.... (4.4 included)
ashish00191.5K views
Introduction to Android App Development by Andri Yadi
Introduction to Android App DevelopmentIntroduction to Android App Development
Introduction to Android App Development
Andri Yadi2.5K views

More from Andreas Jakl

Create Engaging Healthcare Experiences with Augmented Reality by
Create Engaging Healthcare Experiences with Augmented RealityCreate Engaging Healthcare Experiences with Augmented Reality
Create Engaging Healthcare Experiences with Augmented RealityAndreas Jakl
760 views37 slides
AR / VR Interaction Development with Unity by
AR / VR Interaction Development with UnityAR / VR Interaction Development with Unity
AR / VR Interaction Development with UnityAndreas Jakl
1.1K views69 slides
Android Development with Kotlin, Part 3 - Code and App Management by
Android Development with Kotlin, Part 3 - Code and App ManagementAndroid Development with Kotlin, Part 3 - Code and App Management
Android Development with Kotlin, Part 3 - Code and App ManagementAndreas Jakl
625 views59 slides
Android Development with Kotlin, Part 2 - Internet Services and JSON by
Android Development with Kotlin, Part 2 - Internet Services and JSONAndroid Development with Kotlin, Part 2 - Internet Services and JSON
Android Development with Kotlin, Part 2 - Internet Services and JSONAndreas Jakl
735 views71 slides
Android Development with Kotlin, Part 1 - Introduction by
Android Development with Kotlin, Part 1 - IntroductionAndroid Development with Kotlin, Part 1 - Introduction
Android Development with Kotlin, Part 1 - IntroductionAndreas Jakl
2.4K views90 slides
Android and NFC / NDEF (with Kotlin) by
Android and NFC / NDEF (with Kotlin)Android and NFC / NDEF (with Kotlin)
Android and NFC / NDEF (with Kotlin)Andreas Jakl
2.4K views38 slides

More from Andreas Jakl(20)

Create Engaging Healthcare Experiences with Augmented Reality by Andreas Jakl
Create Engaging Healthcare Experiences with Augmented RealityCreate Engaging Healthcare Experiences with Augmented Reality
Create Engaging Healthcare Experiences with Augmented Reality
Andreas Jakl760 views
AR / VR Interaction Development with Unity by Andreas Jakl
AR / VR Interaction Development with UnityAR / VR Interaction Development with Unity
AR / VR Interaction Development with Unity
Andreas Jakl1.1K views
Android Development with Kotlin, Part 3 - Code and App Management by Andreas Jakl
Android Development with Kotlin, Part 3 - Code and App ManagementAndroid Development with Kotlin, Part 3 - Code and App Management
Android Development with Kotlin, Part 3 - Code and App Management
Andreas Jakl625 views
Android Development with Kotlin, Part 2 - Internet Services and JSON by Andreas Jakl
Android Development with Kotlin, Part 2 - Internet Services and JSONAndroid Development with Kotlin, Part 2 - Internet Services and JSON
Android Development with Kotlin, Part 2 - Internet Services and JSON
Andreas Jakl735 views
Android Development with Kotlin, Part 1 - Introduction by Andreas Jakl
Android Development with Kotlin, Part 1 - IntroductionAndroid Development with Kotlin, Part 1 - Introduction
Android Development with Kotlin, Part 1 - Introduction
Andreas Jakl2.4K views
Android and NFC / NDEF (with Kotlin) by Andreas Jakl
Android and NFC / NDEF (with Kotlin)Android and NFC / NDEF (with Kotlin)
Android and NFC / NDEF (with Kotlin)
Andreas Jakl2.4K views
Basics of Web Technologies by Andreas Jakl
Basics of Web TechnologiesBasics of Web Technologies
Basics of Web Technologies
Andreas Jakl631 views
Bluetooth Beacons - Bluetooth 5, iBeacon, Eddystone, Arduino, Windows 10 & More by Andreas Jakl
Bluetooth Beacons - Bluetooth 5, iBeacon, Eddystone, Arduino, Windows 10 & MoreBluetooth Beacons - Bluetooth 5, iBeacon, Eddystone, Arduino, Windows 10 & More
Bluetooth Beacons - Bluetooth 5, iBeacon, Eddystone, Arduino, Windows 10 & More
Andreas Jakl2.9K views
Mobile Test Automation by Andreas Jakl
Mobile Test AutomationMobile Test Automation
Mobile Test Automation
Andreas Jakl2.1K views
Qt App Development - Cross-Platform Development for Android, iOS, Windows Pho... by Andreas Jakl
Qt App Development - Cross-Platform Development for Android, iOS, Windows Pho...Qt App Development - Cross-Platform Development for Android, iOS, Windows Pho...
Qt App Development - Cross-Platform Development for Android, iOS, Windows Pho...
Andreas Jakl14.5K views
WinJS, Apache Cordova & NFC - HTML5 apps for Android and Windows Phone by Andreas Jakl
WinJS, Apache Cordova & NFC - HTML5 apps for Android and Windows PhoneWinJS, Apache Cordova & NFC - HTML5 apps for Android and Windows Phone
WinJS, Apache Cordova & NFC - HTML5 apps for Android and Windows Phone
Andreas Jakl12.7K views
Nokia New Asha Platform Developer Training by Andreas Jakl
Nokia New Asha Platform Developer TrainingNokia New Asha Platform Developer Training
Nokia New Asha Platform Developer Training
Andreas Jakl9.1K views
06 - Qt Communication by Andreas Jakl
06 - Qt Communication06 - Qt Communication
06 - Qt Communication
Andreas Jakl2.2K views
05 - Qt External Interaction and Graphics by Andreas Jakl
05 - Qt External Interaction and Graphics05 - Qt External Interaction and Graphics
05 - Qt External Interaction and Graphics
Andreas Jakl4K views
03 - Qt UI Development by Andreas Jakl
03 - Qt UI Development03 - Qt UI Development
03 - Qt UI Development
Andreas Jakl2.8K views
02 - Basics of Qt by Andreas Jakl
02 - Basics of Qt02 - Basics of Qt
02 - Basics of Qt
Andreas Jakl4.6K views
Basics of WRT (Web Runtime) by Andreas Jakl
Basics of WRT (Web Runtime)Basics of WRT (Web Runtime)
Basics of WRT (Web Runtime)
Andreas Jakl2.5K views
Java ME - Introduction by Andreas Jakl
Java ME - IntroductionJava ME - Introduction
Java ME - Introduction
Andreas Jakl1.4K views
Intro - Forum Nokia & Mobile User Experience by Andreas Jakl
Intro - Forum Nokia & Mobile User ExperienceIntro - Forum Nokia & Mobile User Experience
Intro - Forum Nokia & Mobile User Experience
Andreas Jakl741 views

Recently uploaded

How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ... by
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...ShapeBlue
166 views28 slides
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O... by
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...ShapeBlue
132 views13 slides
Kyo - Functional Scala 2023.pdf by
Kyo - Functional Scala 2023.pdfKyo - Functional Scala 2023.pdf
Kyo - Functional Scala 2023.pdfFlavio W. Brasil
457 views92 slides
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool by
Extending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPoolExtending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPool
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPoolShapeBlue
123 views10 slides
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And... by
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...ShapeBlue
106 views12 slides
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT by
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBITUpdates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBITShapeBlue
206 views8 slides

Recently uploaded(20)

How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ... by ShapeBlue
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
ShapeBlue166 views
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O... by ShapeBlue
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
ShapeBlue132 views
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool by ShapeBlue
Extending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPoolExtending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPool
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool
ShapeBlue123 views
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And... by ShapeBlue
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
ShapeBlue106 views
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT by ShapeBlue
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBITUpdates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
ShapeBlue206 views
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... by Bernd Ruecker
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker54 views
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue by ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueCloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
ShapeBlue135 views
Digital Personal Data Protection (DPDP) Practical Approach For CISOs by Priyanka Aash
Digital Personal Data Protection (DPDP) Practical Approach For CISOsDigital Personal Data Protection (DPDP) Practical Approach For CISOs
Digital Personal Data Protection (DPDP) Practical Approach For CISOs
Priyanka Aash158 views
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue by ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlueCloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
ShapeBlue138 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson160 views
The Role of Patterns in the Era of Large Language Models by Yunyao Li
The Role of Patterns in the Era of Large Language ModelsThe Role of Patterns in the Era of Large Language Models
The Role of Patterns in the Era of Large Language Models
Yunyao Li85 views
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ... by ShapeBlue
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...
ShapeBlue186 views
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... by TrustArc
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc170 views
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ by ShapeBlue
Confidence in CloudStack - Aron Wagner, Nathan Gleason - AmericConfidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
ShapeBlue130 views
"Surviving highload with Node.js", Andrii Shumada by Fwdays
"Surviving highload with Node.js", Andrii Shumada "Surviving highload with Node.js", Andrii Shumada
"Surviving highload with Node.js", Andrii Shumada
Fwdays56 views
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha... by ShapeBlue
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
ShapeBlue180 views
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ... by ShapeBlue
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...
ShapeBlue184 views
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit... by ShapeBlue
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
ShapeBlue159 views

Windows Phone 8 NFC Quickstart

  • 1. Windows Phone 8 NFC Quickstart – NearSpeak Andreas Jakl [@mopius] nfcinteractor.com Technology Wizard Nokia 1 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl NFC Forum and the NFC Forum logo are trademarks of the Near Field Communication Forum.
  • 2. Near Field Communication NearSpeak 2 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 3. Near Field Communication 3 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 4. Scenarios Connect Devices Exchange Digital Objects Acquire Content 4 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 5. Windows Phone 8 + Proximity APIs Windows 8 Documentation Win8: bit.ly/ProximityAPI WP8: bit.ly/ProximityAPIwp8 5 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 6. NearSpeak nearspeak.at 6 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 7. NearSpeak Record a Write to an Tap the tag to voice message NFC tag launch the app & hear the text! 7 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 8. General Project Setup 1 Add Capabilities: Proximity, Microphone, Speech Recognition, Networking Requirement: NFC Connect to HW 2 Initialize ProximityDevice Detect devices in range _device = ProximityDevice.GetDefault(); Publish & subscribe to messages 3 Initialize Speech Recognizer & Synthesizer _recognizer = new SpeechRecognizer(); _synthesizer = new SpeechSynthesizer(); 8 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 9. UI Design 9 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 10. Listen 4 Text recognition (Speech-to-Text) var recoResult = await _recognizer.RecognizeAsync(); MessageBox.Show(string.Format("You said "{0}"n Please touch a tag to write the message.", recoResult.Text)); 10 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 11. Data on an NFC Tag LaunchApp Arguments [speech text] WindowsPhone app ID {0450eab3-92…} Data Encapsulated in Encoded through Stored on NDEF Record(s) NDEF Message NFC Forum NFC Forum Tag Tag Type Platform 11 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl NDEF = NFC Data Exchange Format, Container image adapted from s_volenszki (Flickr), released under Creative Commons BY-NC 2.0
  • 12. NDEF.codeplex.com Create NDEF Reusable Parse information messages & records NDEF from raw byte arrays (standard compliant) classes Fully documented Open Source LGPL license (based on Qt Mobility) 12 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 13. Supported Record Types Geo tags Smart Poster Social tags URI SMS tags Text Telephone call LaunchApp Android Application Record (AAR) Nokia Accessories Record 13 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl Why use the library for “Talking Tags”? Creating LaunchApp records is easier, and you can also send them to other phones and not only write to a tag.
  • 14. NDEF Library 5 Use NuGet package manager to install NDEF Library for Proximity APIs 14 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 15. Write NFC Tags 6 Create LaunchApp Message (in button call-back method) var record = new NdefLaunchAppRecord {Arguments = recoResult.Text}; record.AddPlatformAppId("WindowsPhone", "{...}"); var msg = new NdefMessage {record}; 7 Write to the next tag _device.PublishBinaryMessage("NDEF:WriteTag", msg.ToByteArray().AsBuffer(), MessageWrittenHandler); 15 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 16. Write NFC Tags 8 NFC message written to a tag? Inform user private void MessageWrittenHandler( ProximityDevice sender, long messageId) { Dispatcher.BeginInvoke(() => MessageBox.Show( "Message written")); } 16 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 17. Speak When Launched 9 App launched from a tag? Speak the stored text! protected override async void OnNavigatedTo( NavigationEventArgs e) { base.OnNavigatedTo(e); if (NavigationContext.QueryString.ContainsKey( "ms_nfp_launchargs")) { await _synthesizer.SpeakTextAsync( NavigationContext.QueryString ["ms_nfp_launchargs"]); } } 17 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 18. Nfc Interactor for Windows Phone 8 18 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 19. nfcinteractor.com 19 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 20. Near Field Communication NearSpeak 20 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl
  • 21. Thank You. NFC Introduction bit.ly/NfcIntro Andreas Jakl Related Presentations [@mopius] Windows (Phone) 8 NFC App Scenarios bit.ly/NFCAppScenarios nfcinteractor.com NFC Development on the Windows 8 Platform Technology Wizard bit.ly/Win8NFC Nokia NFC Development with Qt on Symbian and MeeGo bit.ly/NfcDevelopment 21 Windows Phone 8 NFC Quickstart - NearSpeak v1.1.0 November 20, 2012 © 2012 Andreas Jakl