SlideShare une entreprise Scribd logo
1  sur  25
NFC

                    Devoxx Paris
                      27 mars 2013



                                     1
samedi 30 mars 13
Bio
                    Romain MENETRIER

                    Web puis JVM dev depuis 14 ans

                    CTO pendant 5 ans de Connecthings, devenu leader
                    européen du NFC

                    Consultant NFC et fondateur de Makala, backend pour
                    applications mobiles (http://makalahq.com)

                    Organisateur @PAUG & Droidcon Paris


                                                                          2
samedi 30 mars 13
SOMMAIRE

                    Usage

                    Norme NFC

                    Implémentation avec Android



                                                  3
samedi 30 mars 13
Usage du NFC



                                   4
samedi 30 mars 13
‣USAGE
 NORME
 ANDROID
                    NFC Qu’est-ce que c’est ?
        Near Field Communication : communication en champ proche (<10cm)


                Sécurité présence
               Contexte localisation
                Intention toucher




                                                                           5
samedi 30 mars 13
‣USAGE
 NORME
 ANDROID
                    Comment ca marche ?




                                          6
samedi 30 mars 13
‣USAGE
 NORME
 ANDROID
                             Pourquoi le NFC ?


                    Geste
                    Pas de logiciel
                    Tag = 0,1 à 1€



                                                 7
samedi 30 mars 13
‣USAGE
 NORME
 ANDROID
                                               Mais...
                                          (parce qu’il y a toujours un «mais»)




                    Le NFC n’est pas adapté pour :

                    ‣ le transfert de fichier
                      (débit 106Kbps)

                    ‣ la mise en réseau
                      (portée 10 cm)




                                                                                 8
samedi 30 mars 13
‣USAGE
 NORME
 ANDROID
                        Pourquoi le NFC ?

             Obtenir une localisation précise < 10 cm

             Sécuriser une transaction (indépendant de l’OS)

             Déclencher une action

             Echanger des données entre différents terminaux



                                                               9
samedi 30 mars 13
‣USAGE
 NORME
 ANDROID
                          Cas d’usages typiques

                    Déclenchement d’action

                    Service d’information

                    Partage de données

                    Authentification

                    Paiement sans contact


                                                  10
samedi 30 mars 13
‣USAGE
 NORME
 ANDROID
                    Où trouver du NFC ?




                                          11
samedi 30 mars 13
‣USAGE
 NORME
 ANDROID
                                   Diffusion
                    Téléphones et tablettes NFC

                    2011                          2013
                    50 millions                   300 millions


                    Google Play Store

                    2011                          2013
                    2 app. NFC                    + de 1000

                                                                 12
samedi 30 mars 13
Norme NFC



                                13
samedi 30 mars 13
Origines
 USAGE

 ‣NORME
 ANDROID




                    RFID Radio Frequency IDentification
                    SmartCard carte à puce




                                                         14
samedi 30 mars 13
NFC Forum
 USAGE

 ‣NORME
 ANDROID




           Création en 2004 du NFC Forum

           NFC = RFID (13,56Mhz) + SmartCard




                                               15
samedi 30 mars 13
Modes de fonctionnement
 USAGE

 ‣NORME
 ANDROID




               Reader/Writer

               Card emulation

               P2P




                                               16
samedi 30 mars 13
Tag NFC
 USAGE

 ‣NORME
 ANDROID




           Le NFC Forum prévoit 4 types de tags
           (gestion des données dans la mémoire et interface de commande)


               Type     Taille mémoire        Type communication                 Exemple tag

               Type 1    96 à 512 octets            ISO 14443 A            Topaz (Innovision/Broadcom)


               Type 2    48 à 192 octets            ISO 14443 A            tags Mifare Ultra Light de NXP


              Type 3    256 octets à 9 Ko   Non ISO 14443 mais semblable        tags FeliCa de Sony


              Type 4       1 à 8 Ko              ISO 14443 A ou B              tags DesFire de NXP




                                                                                                            17
samedi 30 mars 13
Tag NFC
 USAGE

 ‣NORME
 ANDROID




                                                                        Octet 1     Octet 2     Octet 3   Octet 4


                                          block 0     Serial number      UID0        UID1        UID2     Internal0


                                          block 1     Serial number      UID3        UID4        UID5      UID6



                    Exemple de
                                          block 2    Interne /blocage   Internal1   Internal2   Lock0      Lock1

                                                      Capacités du
                                          block 3                         CC0         CC1        CC2        CC3
                    structure mémoire     block 4
                                                       Contenant

                                                        Données          Data0       Data1      Data2      Data3


                                          block 5       Données          Data4       Data5      Data6      Data7


                    (tag type 2)          block 6       Données          Data8       Data9      Data10    Data11


                                             ...        Données            ...         ...        ...        ...


                                          block 15      Données            ...         ...        ...        ...



                                           Identifiant du tag

                                           Blocage en écriture

                                           Données



                                                                                                                      18
samedi 30 mars 13
‣NORME
 USAGE
 ANDROID
                    Format d’échange : NDEF

                                       Bytes                   Explication

                                                    Entête NDEF : TNF = 0x01 (type NFC
                                       0xD1
                                                   Forum), MB=1, ME=1 (1 seul message)

                                        0x02            Longueur du type (2 octets)

                                        0x0E         Longueur des données (14 octets)

                                        «Sp»                type SmartPoster
                                                                                         NDEF
    NFC Data Exchange Format           0xD1         Entête NDEF : TNF = 0x01 (type NFC   Message
                                                   Forum), MB=1, ME=1 (1 seul message)

                                        0x01            Longueur du type (1 octets)
                            NDEF
                                        0x09         Longueur des données (9 octets)
                            Record
                                        «U»                      type Url

                                        0x01              Préfixe «http://www.»

                                     «google.fr»              contenu URL




                                                                                               19
samedi 30 mars 13
Android



                              20
samedi 30 mars 13
USAGE



                                       Lecture de tag
 NORME

 ‣ANDROID




              Ajout de la permission NFC dans le manifest.xml

              Déclaration dans le manifest des types NDEF gérés
              ex: les urls commencant par «http://www.devoxx.com/FR13/»


              Lecture du tag
              Extraction des informations dans la méthode onResume (extras de l’intent)




                                                                                          21
samedi 30 mars 13
USAGE



                                Ecriture de tag
 NORME

 ‣ANDROID




              Préparation des données à écrire

              Enregistrement de la détection de tags NFC

              Détection du tag NFC

              Ecriture du tag




                                                           22
samedi 30 mars 13
USAGE



                              Echange P2P
 NORME

 ‣ANDROID




              Enregistrement du message à envoyer en cas de
              détection de périphérique P2P à proximité




                                                              23
samedi 30 mars 13
Pour aller plus loin
                    NORME & DEVELOPPEMENT
                    NFC Forum http://www.nfc-forum.org/specs
                    Slides @PAUG http://fr.slideshare.net/romemore/near-field-communication-android
                    Thomas de Lazzari http://fr.slideshare.net/tdelazzari/architecture-and-development-of-nfc-applications

                    MOBILE
                    Android NFC http://developer.android.com/guide/topics/connectivity/nfc/nfc.html
                    Windows Phone 8 http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207060(v=vs.105).aspx

                    PROJETS
                    https://code.google.com/p/seek-for-android/

                    https://code.google.com/p/readnfccc/

                    APPLICATIONS
                    https://play.google.com/store/apps/details?id=com.nxp.taginfolite
                    https://play.google.com/store/apps/details?id=com.connecthings.tagwriter




                                                                                                                             24
samedi 30 mars 13
Merci !
                                    Questions ?
                                          Save the date !

                                          Droidcon Paris
                                          17/18 juin
                                          CFP sur fr.droidcon.com

                    Contact
                    romain@makalahq.com
                    @romemore
                    +Romain Menetrier


                                                                    25
samedi 30 mars 13

Contenu connexe

Tendances

QR Code, QR+ et NFC, des raccourcis vers les contenus et service de l’Interne...
QR Code, QR+ et NFC, des raccourcis vers les contenus et service de l’Interne...QR Code, QR+ et NFC, des raccourcis vers les contenus et service de l’Interne...
QR Code, QR+ et NFC, des raccourcis vers les contenus et service de l’Interne...LaFrenchMobile
 
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 ?
Guide du tag NFC : quels usages dans quels contextes ?Olivier Devillers
 
CONTRÔLE D’ACCÈS NFCAUTONOME
CONTRÔLE D’ACCÈS NFCAUTONOMECONTRÔLE D’ACCÈS NFCAUTONOME
CONTRÔLE D’ACCÈS NFCAUTONOMECNRFID
 
L'impact des technologies sans contact RFID NFC pour les distributeurs
L'impact des technologies sans contact RFID NFC pour les distributeursL'impact des technologies sans contact RFID NFC pour les distributeurs
L'impact des technologies sans contact RFID NFC pour les distributeursPierre Metivier
 
technologie NFC-stouchi mobile
technologie NFC-stouchi mobiletechnologie NFC-stouchi mobile
technologie NFC-stouchi mobilemehdi87
 
De la RFID à la NFC par Bernard JEANNE-BEYLOT @JB Thèque
De la RFID à la NFC par Bernard JEANNE-BEYLOT @JB ThèqueDe la RFID à la NFC par Bernard JEANNE-BEYLOT @JB Thèque
De la RFID à la NFC par Bernard JEANNE-BEYLOT @JB ThèqueBernard Jeanne-Beylot
 
Presentation ppt domi_sap_android
Presentation ppt  domi_sap_androidPresentation ppt  domi_sap_android
Presentation ppt domi_sap_androidCNR_Sante
 
CocoaHeads Toulouse - NFC
CocoaHeads Toulouse - NFCCocoaHeads Toulouse - NFC
CocoaHeads Toulouse - NFCthomasnicholls
 
La NFC et la mobilité
La NFC et la mobilité La NFC et la mobilité
La NFC et la mobilité Florian Soleil
 
Slides Serv Mob Sans Contact Fev10
Slides Serv Mob Sans Contact Fev10Slides Serv Mob Sans Contact Fev10
Slides Serv Mob Sans Contact Fev10Nicolas Debock
 
Cours mobiles du Mastère CPM 2011 (Telecom ParisTech/INA)
Cours mobiles du Mastère CPM 2011 (Telecom ParisTech/INA)Cours mobiles du Mastère CPM 2011 (Telecom ParisTech/INA)
Cours mobiles du Mastère CPM 2011 (Telecom ParisTech/INA)Stéphane Rouilly
 
Introduction au Sanscontact NFC Rfid SmartCard
Introduction au Sanscontact NFC Rfid SmartCardIntroduction au Sanscontact NFC Rfid SmartCard
Introduction au Sanscontact NFC Rfid SmartCardPierre Metivier
 
Introduction au NFC et sécurité sans contact dans les mobiles
Introduction au NFC et sécurité sans contact dans les mobilesIntroduction au NFC et sécurité sans contact dans les mobiles
Introduction au NFC et sécurité sans contact dans les mobilesantoine_coutant
 
Introduction NFC - Charles Henry Morin - PAUG
Introduction NFC - Charles Henry Morin - PAUGIntroduction NFC - Charles Henry Morin - PAUG
Introduction NFC - Charles Henry Morin - PAUGParis Android User Group
 
DocDoku - Mobile Monday Toulouse 1ère : la NFC
DocDoku - Mobile Monday Toulouse 1ère : la NFCDocDoku - Mobile Monday Toulouse 1ère : la NFC
DocDoku - Mobile Monday Toulouse 1ère : la NFCDocDoku
 

Tendances (20)

Rfid nfc
Rfid nfcRfid nfc
Rfid nfc
 
QR Code, QR+ et NFC, des raccourcis vers les contenus et service de l’Interne...
QR Code, QR+ et NFC, des raccourcis vers les contenus et service de l’Interne...QR Code, QR+ et NFC, des raccourcis vers les contenus et service de l’Interne...
QR Code, QR+ et NFC, des raccourcis vers les contenus et service de l’Interne...
 
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 ?
Guide du tag NFC : quels usages dans quels contextes ?
 
CONTRÔLE D’ACCÈS NFCAUTONOME
CONTRÔLE D’ACCÈS NFCAUTONOMECONTRÔLE D’ACCÈS NFCAUTONOME
CONTRÔLE D’ACCÈS NFCAUTONOME
 
L'impact des technologies sans contact RFID NFC pour les distributeurs
L'impact des technologies sans contact RFID NFC pour les distributeursL'impact des technologies sans contact RFID NFC pour les distributeurs
L'impact des technologies sans contact RFID NFC pour les distributeurs
 
Intergicielsrfid
IntergicielsrfidIntergicielsrfid
Intergicielsrfid
 
technologie NFC-stouchi mobile
technologie NFC-stouchi mobiletechnologie NFC-stouchi mobile
technologie NFC-stouchi mobile
 
De la RFID à la NFC par Bernard JEANNE-BEYLOT @JB Thèque
De la RFID à la NFC par Bernard JEANNE-BEYLOT @JB ThèqueDe la RFID à la NFC par Bernard JEANNE-BEYLOT @JB Thèque
De la RFID à la NFC par Bernard JEANNE-BEYLOT @JB Thèque
 
Presentation ppt domi_sap_android
Presentation ppt  domi_sap_androidPresentation ppt  domi_sap_android
Presentation ppt domi_sap_android
 
La Saga NFC
La Saga NFCLa Saga NFC
La Saga NFC
 
CocoaHeads Toulouse - NFC
CocoaHeads Toulouse - NFCCocoaHeads Toulouse - NFC
CocoaHeads Toulouse - NFC
 
La NFC et la mobilité
La NFC et la mobilité La NFC et la mobilité
La NFC et la mobilité
 
François LECOMTE, Une vision ouverte des solutions sans contacts (NFC) pour l...
François LECOMTE, Une vision ouverte des solutions sans contacts (NFC) pour l...François LECOMTE, Une vision ouverte des solutions sans contacts (NFC) pour l...
François LECOMTE, Une vision ouverte des solutions sans contacts (NFC) pour l...
 
Slides Serv Mob Sans Contact Fev10
Slides Serv Mob Sans Contact Fev10Slides Serv Mob Sans Contact Fev10
Slides Serv Mob Sans Contact Fev10
 
Cours mobiles du Mastère CPM 2011 (Telecom ParisTech/INA)
Cours mobiles du Mastère CPM 2011 (Telecom ParisTech/INA)Cours mobiles du Mastère CPM 2011 (Telecom ParisTech/INA)
Cours mobiles du Mastère CPM 2011 (Telecom ParisTech/INA)
 
Introduction au Sanscontact NFC Rfid SmartCard
Introduction au Sanscontact NFC Rfid SmartCardIntroduction au Sanscontact NFC Rfid SmartCard
Introduction au Sanscontact NFC Rfid SmartCard
 
Introduction au NFC et sécurité sans contact dans les mobiles
Introduction au NFC et sécurité sans contact dans les mobilesIntroduction au NFC et sécurité sans contact dans les mobiles
Introduction au NFC et sécurité sans contact dans les mobiles
 
Introduction NFC - Charles Henry Morin - PAUG
Introduction NFC - Charles Henry Morin - PAUGIntroduction NFC - Charles Henry Morin - PAUG
Introduction NFC - Charles Henry Morin - PAUG
 
DocDoku - Mobile Monday Toulouse 1ère : la NFC
DocDoku - Mobile Monday Toulouse 1ère : la NFCDocDoku - Mobile Monday Toulouse 1ère : la NFC
DocDoku - Mobile Monday Toulouse 1ère : la NFC
 
Mobile Monday Rennes #5 - NFC : TazTzag
Mobile Monday Rennes #5 - NFC : TazTzagMobile Monday Rennes #5 - NFC : TazTzag
Mobile Monday Rennes #5 - NFC : TazTzag
 

En vedette

droidcon 2012: What's the Hack is NFC .., Hauke Meyn, NXP
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, NXPDroidcon Berlin
 
NFC and the Growth of Connected Consumer Devices
NFC and the Growth of Connected Consumer DevicesNFC and the Growth of Connected Consumer Devices
NFC and the Growth of Connected Consumer DevicesNFC Forum
 
UFF Tech 2013 - NFC e o futuro da convergência - NXP
UFF Tech 2013 - NFC e o futuro da convergência - NXP UFF Tech 2013 - NFC e o futuro da convergência - NXP
UFF Tech 2013 - NFC e o futuro da convergência - NXP Sti Uff
 
Nfc-Full Presentation
Nfc-Full PresentationNfc-Full Presentation
Nfc-Full PresentationDILIN RAJ DS
 
Near field communication
Near field communicationNear field communication
Near field communicationdivyasolanki101
 
Near Field Communication (NFC)
Near Field Communication (NFC)Near Field Communication (NFC)
Near Field Communication (NFC)Seminar Links
 
Architecture and Development of NFC Applications
Architecture and Development of NFC ApplicationsArchitecture and Development of NFC Applications
Architecture and Development of NFC ApplicationsThomas de Lazzari
 
Near field communication (nfc) technology
Near field communication (nfc) technologyNear field communication (nfc) technology
Near field communication (nfc) technologyAnkur Sharma
 
NEAR FIELD COMMUNICATION
NEAR FIELD COMMUNICATIONNEAR FIELD COMMUNICATION
NEAR FIELD COMMUNICATIONHarisankar U K
 
NFC technical presentation
NFC technical presentationNFC technical presentation
NFC technical presentationAkshat Rohatgi
 
Seminar Report on NFC
Seminar Report on NFCSeminar Report on NFC
Seminar Report on NFCTouroxy
 
Near field communication
Near field communicationNear field communication
Near field communicationJwal Dakwala
 
Near field communication new
Near field communication newNear field communication new
Near field communication newSanu Varghese
 
VISIONFC – an NFC Forum event: The future of NFC in Wearables, Health Care & ...
VISIONFC – an NFC Forum event: The future of NFC in Wearables, Health Care & ...VISIONFC – an NFC Forum event: The future of NFC in Wearables, Health Care & ...
VISIONFC – an NFC Forum event: The future of NFC in Wearables, Health Care & ...NFC Forum
 
On Relaying NFC Payment Transactions using Android devices
On Relaying NFC Payment Transactions using Android devicesOn Relaying NFC Payment Transactions using Android devices
On Relaying NFC Payment Transactions using Android devicescgvwzq
 
Near field communication and RFID - opening for new business
Near field communication and RFID - opening for new businessNear field communication and RFID - opening for new business
Near field communication and RFID - opening for new businessJosef Noll
 

En vedette (20)

droidcon 2012: What's the Hack is NFC .., Hauke Meyn, NXP
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
 
NFC and the Growth of Connected Consumer Devices
NFC and the Growth of Connected Consumer DevicesNFC and the Growth of Connected Consumer Devices
NFC and the Growth of Connected Consumer Devices
 
UFF Tech 2013 - NFC e o futuro da convergência - NXP
UFF Tech 2013 - NFC e o futuro da convergência - NXP UFF Tech 2013 - NFC e o futuro da convergência - NXP
UFF Tech 2013 - NFC e o futuro da convergência - NXP
 
Nfc-Full Presentation
Nfc-Full PresentationNfc-Full Presentation
Nfc-Full Presentation
 
Nfc kdr
Nfc kdrNfc kdr
Nfc kdr
 
Nfc
NfcNfc
Nfc
 
Near field communication
Near field communicationNear field communication
Near field communication
 
Near Field Communication (NFC)
Near Field Communication (NFC)Near Field Communication (NFC)
Near Field Communication (NFC)
 
Architecture and Development of NFC Applications
Architecture and Development of NFC ApplicationsArchitecture and Development of NFC Applications
Architecture and Development of NFC Applications
 
Near field communication (nfc) technology
Near field communication (nfc) technologyNear field communication (nfc) technology
Near field communication (nfc) technology
 
NEAR FIELD COMMUNICATION
NEAR FIELD COMMUNICATIONNEAR FIELD COMMUNICATION
NEAR FIELD COMMUNICATION
 
NFC technical presentation
NFC technical presentationNFC technical presentation
NFC technical presentation
 
Seminar Report on NFC
Seminar Report on NFCSeminar Report on NFC
Seminar Report on NFC
 
Near field communication
Near field communicationNear field communication
Near field communication
 
Nfc
Nfc Nfc
Nfc
 
Near field communication new
Near field communication newNear field communication new
Near field communication new
 
VISIONFC – an NFC Forum event: The future of NFC in Wearables, Health Care & ...
VISIONFC – an NFC Forum event: The future of NFC in Wearables, Health Care & ...VISIONFC – an NFC Forum event: The future of NFC in Wearables, Health Care & ...
VISIONFC – an NFC Forum event: The future of NFC in Wearables, Health Care & ...
 
On Relaying NFC Payment Transactions using Android devices
On Relaying NFC Payment Transactions using Android devicesOn Relaying NFC Payment Transactions using Android devices
On Relaying NFC Payment Transactions using Android devices
 
Near field communication and RFID - opening for new business
Near field communication and RFID - opening for new businessNear field communication and RFID - opening for new business
Near field communication and RFID - opening for new business
 
Nfc ppt
Nfc pptNfc ppt
Nfc ppt
 

Similaire à Devoxx 2013 - NFC Tools in Action

Plus près, plus près… NFC et la communication à proximité dans Windows 8 et W...
Plus près, plus près… NFC et la communication à proximité dans Windows 8 et W...Plus près, plus près… NFC et la communication à proximité dans Windows 8 et W...
Plus près, plus près… NFC et la communication à proximité dans Windows 8 et W...Microsoft
 
nfc in 15 min.pdf
nfc in 15 min.pdfnfc in 15 min.pdf
nfc in 15 min.pdfoussmaMadi
 
Gmt anglet 2010
Gmt anglet 2010Gmt anglet 2010
Gmt anglet 2010MONA
 
Rfid basics-RFID universiy 2010
Rfid basics-RFID universiy 2010Rfid basics-RFID universiy 2010
Rfid basics-RFID universiy 2010URBANWAVE
 
IoT et Immobilier : vers plus de digital
IoT et Immobilier : vers plus de digitalIoT et Immobilier : vers plus de digital
IoT et Immobilier : vers plus de digitalBenoit CARAYAN
 
Internet des Objets
Internet des ObjetsInternet des Objets
Internet des ObjetsIEEE 802
 
Orange_Didier Durand_Services mobiles sans contact
Orange_Didier Durand_Services mobiles sans contactOrange_Didier Durand_Services mobiles sans contact
Orange_Didier Durand_Services mobiles sans contactMetro'num 2011
 
Rochnel Ticdo Présentation PPTX PFE.pptx
Rochnel Ticdo Présentation PPTX PFE.pptxRochnel Ticdo Présentation PPTX PFE.pptx
Rochnel Ticdo Présentation PPTX PFE.pptxWAGNEJonathan
 
Rochnel Ticdo Présentation PowerPoint PFE.pptx
Rochnel Ticdo Présentation PowerPoint PFE.pptxRochnel Ticdo Présentation PowerPoint PFE.pptx
Rochnel Ticdo Présentation PowerPoint PFE.pptxWAGNEJonathan
 
Rochnel Ticdo Présentation pptx PFE.pptx
Rochnel Ticdo Présentation pptx PFE.pptxRochnel Ticdo Présentation pptx PFE.pptx
Rochnel Ticdo Présentation pptx PFE.pptxWAGNEJonathan
 
Rochnel Ticdo Présentation PPTX PFE.pptx
Rochnel Ticdo Présentation PPTX PFE.pptxRochnel Ticdo Présentation PPTX PFE.pptx
Rochnel Ticdo Présentation PPTX PFE.pptxWAGNEJonathan
 
Rochnel Ticdo Présentation PPTX PFE.pptx
Rochnel Ticdo Présentation PPTX PFE.pptxRochnel Ticdo Présentation PPTX PFE.pptx
Rochnel Ticdo Présentation PPTX PFE.pptxWAGNEJonathan
 
Nfc en 10 points
Nfc en 10 pointsNfc en 10 points
Nfc en 10 pointsEutech SSII
 

Similaire à Devoxx 2013 - NFC Tools in Action (18)

Plus près, plus près… NFC et la communication à proximité dans Windows 8 et W...
Plus près, plus près… NFC et la communication à proximité dans Windows 8 et W...Plus près, plus près… NFC et la communication à proximité dans Windows 8 et W...
Plus près, plus près… NFC et la communication à proximité dans Windows 8 et W...
 
nfc in 15 min.pdf
nfc in 15 min.pdfnfc in 15 min.pdf
nfc in 15 min.pdf
 
Gmt anglet 2010
Gmt anglet 2010Gmt anglet 2010
Gmt anglet 2010
 
Rfid basics-RFID universiy 2010
Rfid basics-RFID universiy 2010Rfid basics-RFID universiy 2010
Rfid basics-RFID universiy 2010
 
Internet Of Things
Internet Of Things Internet Of Things
Internet Of Things
 
Tezst
Tezst Tezst
Tezst
 
Google wallet
Google walletGoogle wallet
Google wallet
 
IoT et Immobilier : vers plus de digital
IoT et Immobilier : vers plus de digitalIoT et Immobilier : vers plus de digital
IoT et Immobilier : vers plus de digital
 
Internet des Objets
Internet des ObjetsInternet des Objets
Internet des Objets
 
Orange_Didier Durand_Services mobiles sans contact
Orange_Didier Durand_Services mobiles sans contactOrange_Didier Durand_Services mobiles sans contact
Orange_Didier Durand_Services mobiles sans contact
 
Rochnel Ticdo Présentation PPTX PFE.pptx
Rochnel Ticdo Présentation PPTX PFE.pptxRochnel Ticdo Présentation PPTX PFE.pptx
Rochnel Ticdo Présentation PPTX PFE.pptx
 
Rochnel Ticdo Présentation PowerPoint PFE.pptx
Rochnel Ticdo Présentation PowerPoint PFE.pptxRochnel Ticdo Présentation PowerPoint PFE.pptx
Rochnel Ticdo Présentation PowerPoint PFE.pptx
 
Rochnel Ticdo Présentation pptx PFE.pptx
Rochnel Ticdo Présentation pptx PFE.pptxRochnel Ticdo Présentation pptx PFE.pptx
Rochnel Ticdo Présentation pptx PFE.pptx
 
Rochnel Ticdo Présentation PPTX PFE.pptx
Rochnel Ticdo Présentation PPTX PFE.pptxRochnel Ticdo Présentation PPTX PFE.pptx
Rochnel Ticdo Présentation PPTX PFE.pptx
 
Rochnel Ticdo Présentation PPTX PFE.pptx
Rochnel Ticdo Présentation PPTX PFE.pptxRochnel Ticdo Présentation PPTX PFE.pptx
Rochnel Ticdo Présentation PPTX PFE.pptx
 
Zig bee&&uwb
Zig bee&&uwbZig bee&&uwb
Zig bee&&uwb
 
Nfc en 10 points
Nfc en 10 pointsNfc en 10 points
Nfc en 10 points
 
Sécurité des IoT
Sécurité des IoTSécurité des IoT
Sécurité des IoT
 

Devoxx 2013 - NFC Tools in Action

  • 1. NFC Devoxx Paris 27 mars 2013 1 samedi 30 mars 13
  • 2. Bio Romain MENETRIER Web puis JVM dev depuis 14 ans CTO pendant 5 ans de Connecthings, devenu leader européen du NFC Consultant NFC et fondateur de Makala, backend pour applications mobiles (http://makalahq.com) Organisateur @PAUG & Droidcon Paris 2 samedi 30 mars 13
  • 3. SOMMAIRE Usage Norme NFC Implémentation avec Android 3 samedi 30 mars 13
  • 4. Usage du NFC 4 samedi 30 mars 13
  • 5. ‣USAGE NORME ANDROID NFC Qu’est-ce que c’est ? Near Field Communication : communication en champ proche (<10cm) Sécurité présence Contexte localisation Intention toucher 5 samedi 30 mars 13
  • 6. ‣USAGE NORME ANDROID Comment ca marche ? 6 samedi 30 mars 13
  • 7. ‣USAGE NORME ANDROID Pourquoi le NFC ? Geste Pas de logiciel Tag = 0,1 à 1€ 7 samedi 30 mars 13
  • 8. ‣USAGE NORME ANDROID Mais... (parce qu’il y a toujours un «mais») Le NFC n’est pas adapté pour : ‣ le transfert de fichier (débit 106Kbps) ‣ la mise en réseau (portée 10 cm) 8 samedi 30 mars 13
  • 9. ‣USAGE NORME ANDROID Pourquoi le NFC ? Obtenir une localisation précise < 10 cm Sécuriser une transaction (indépendant de l’OS) Déclencher une action Echanger des données entre différents terminaux 9 samedi 30 mars 13
  • 10. ‣USAGE NORME ANDROID Cas d’usages typiques Déclenchement d’action Service d’information Partage de données Authentification Paiement sans contact 10 samedi 30 mars 13
  • 11. ‣USAGE NORME ANDROID Où trouver du NFC ? 11 samedi 30 mars 13
  • 12. ‣USAGE NORME ANDROID Diffusion Téléphones et tablettes NFC 2011 2013 50 millions 300 millions Google Play Store 2011 2013 2 app. NFC + de 1000 12 samedi 30 mars 13
  • 13. Norme NFC 13 samedi 30 mars 13
  • 14. Origines USAGE ‣NORME ANDROID RFID Radio Frequency IDentification SmartCard carte à puce 14 samedi 30 mars 13
  • 15. NFC Forum USAGE ‣NORME ANDROID Création en 2004 du NFC Forum NFC = RFID (13,56Mhz) + SmartCard 15 samedi 30 mars 13
  • 16. Modes de fonctionnement USAGE ‣NORME ANDROID Reader/Writer Card emulation P2P 16 samedi 30 mars 13
  • 17. Tag NFC USAGE ‣NORME ANDROID Le NFC Forum prévoit 4 types de tags (gestion des données dans la mémoire et interface de commande) Type Taille mémoire Type communication Exemple tag Type 1 96 à 512 octets ISO 14443 A Topaz (Innovision/Broadcom) Type 2 48 à 192 octets ISO 14443 A tags Mifare Ultra Light de NXP Type 3 256 octets à 9 Ko Non ISO 14443 mais semblable tags FeliCa de Sony Type 4 1 à 8 Ko ISO 14443 A ou B tags DesFire de NXP 17 samedi 30 mars 13
  • 18. Tag NFC USAGE ‣NORME ANDROID Octet 1 Octet 2 Octet 3 Octet 4 block 0 Serial number UID0 UID1 UID2 Internal0 block 1 Serial number UID3 UID4 UID5 UID6 Exemple de block 2 Interne /blocage Internal1 Internal2 Lock0 Lock1 Capacités du block 3 CC0 CC1 CC2 CC3 structure mémoire block 4 Contenant Données Data0 Data1 Data2 Data3 block 5 Données Data4 Data5 Data6 Data7 (tag type 2) block 6 Données Data8 Data9 Data10 Data11 ... Données ... ... ... ... block 15 Données ... ... ... ... Identifiant du tag Blocage en écriture Données 18 samedi 30 mars 13
  • 19. ‣NORME USAGE ANDROID Format d’échange : NDEF Bytes Explication Entête NDEF : TNF = 0x01 (type NFC 0xD1 Forum), MB=1, ME=1 (1 seul message) 0x02 Longueur du type (2 octets) 0x0E Longueur des données (14 octets) «Sp» type SmartPoster NDEF NFC Data Exchange Format 0xD1 Entête NDEF : TNF = 0x01 (type NFC Message Forum), MB=1, ME=1 (1 seul message) 0x01 Longueur du type (1 octets) NDEF 0x09 Longueur des données (9 octets) Record «U» type Url 0x01 Préfixe «http://www.» «google.fr» contenu URL 19 samedi 30 mars 13
  • 20. Android 20 samedi 30 mars 13
  • 21. USAGE Lecture de tag NORME ‣ANDROID Ajout de la permission NFC dans le manifest.xml Déclaration dans le manifest des types NDEF gérés ex: les urls commencant par «http://www.devoxx.com/FR13/» Lecture du tag Extraction des informations dans la méthode onResume (extras de l’intent) 21 samedi 30 mars 13
  • 22. USAGE Ecriture de tag NORME ‣ANDROID Préparation des données à écrire Enregistrement de la détection de tags NFC Détection du tag NFC Ecriture du tag 22 samedi 30 mars 13
  • 23. USAGE Echange P2P NORME ‣ANDROID Enregistrement du message à envoyer en cas de détection de périphérique P2P à proximité 23 samedi 30 mars 13
  • 24. Pour aller plus loin NORME & DEVELOPPEMENT NFC Forum http://www.nfc-forum.org/specs Slides @PAUG http://fr.slideshare.net/romemore/near-field-communication-android Thomas de Lazzari http://fr.slideshare.net/tdelazzari/architecture-and-development-of-nfc-applications MOBILE Android NFC http://developer.android.com/guide/topics/connectivity/nfc/nfc.html Windows Phone 8 http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207060(v=vs.105).aspx PROJETS https://code.google.com/p/seek-for-android/ https://code.google.com/p/readnfccc/ APPLICATIONS https://play.google.com/store/apps/details?id=com.nxp.taginfolite https://play.google.com/store/apps/details?id=com.connecthings.tagwriter 24 samedi 30 mars 13
  • 25. Merci ! Questions ? Save the date ! Droidcon Paris 17/18 juin CFP sur fr.droidcon.com Contact romain@makalahq.com @romemore +Romain Menetrier 25 samedi 30 mars 13