Home

What is Linux - MobileKnowledge

image

Contents

1. send raw command to tag 22 e ini Mobile i gt LTranng Krowiedge Some types gt typedef struct unsigned int technology the technology of tag unsigned int handle the handle of tag nfc_tag_info_t NFC tag information structure definition gt typedef struct int is_ndef the flag to indicate if it contains NDEF record unsigned int current_ndef_length existing NDEF message length ndef_info_t NFC NDEF message Information structure definition gt typedef struct void onTagArrival nfc_tag_info_t pTagInfo NFC tag callback function when tag is detected void onTagDeparture void NFC tag callback function when tag is removed nfcTagCallback_t NFC tag callback function structure definition 12 The Linux libnfc nci stack The API writing tag 1 Initialize the Linux libnfc nci library 2 Register for tag discovery 3 Start NFC discovery This example depicts the steps to follow from SW perspective to be able to write NDEF content e g web address or business card to an NFC Tag ME Mobile f 3 EEA Knowledge 4 Tag discovery is notified 5 Write NDEF message to the Tag The Linux libnfc nci stack The API WiFi pairing start broadcasting WiFi 1 Initialize the Linux libnfc nci library 2 Register for device discovery 3 Start NFC discovery Tap the NFC enabled smartphone
2. ME Mobile X Knowledge NFC Everywhere Further Information Overview Usecases Products Technology NFC News NFC support gt NFC Everywhere How can we help you http Awww nxp com nfc EN gt NFC Everywhere support page http Awww nxp com techzones nfc zone community html A Check out our Frequently Asked If you couldn t fingin answer to your Brochure gt Here you can check out the community for FAQs or post your Guts FAO aeron archon aunt Apoyo e question into the discussion forum for NFC Readers cen sanyo aoe ai gt PN7 120 product support information ISONEC 14443A a Ge licensing information http www nxp com products identification and security nfc_and read EET EATR er ics nfc_controller_ solutions PN7120AOEV html iach Seana gt PN7120 controller board support information areas meen fn ce R n http www nxp com demoboard OM5577 html gt NXP Linux libnfc nci stack httpos github com NXPNFCLinux linux _libnfc nci gt NXP PN5xx I2C driver Check our FAQ https github com NXPNFCLinux nxp pn5xx and community for latest posts on PN7120 E ile i 3 4 Training KGewiedge MobileKnowledge ai Thank you for your attention MobileKnowledge www themobileknowledge com gt We are a global competence team of hardware and software technical experts in all areas related to contactless technologies and applications gt Our services include Application and system
3. identification_and PN532 Ce Linux NFC libnfc nfcpy Securitynfc and reader ics nfc_controller soluti ons PN5321A3HN html http www nxp com products identification and PN533 USB NFC controller with integrated firmware Linux NFC libnfc nfcpy security nfc_and_ reader _ics nfc_controller_soluti ons PN5331B3HN html Full NFC Forum compliant NFC controller with integrated Linux libnfc nei Linux _ tewww nxp com products identification and security nfc_ and reader_ics nfc controller soluti firmware and NCI interface NFC ons PN7120A0EV html PN7120 nee http www nxp com products identification and PR533 ae ces a A RAR Supple We PCSC Lite security nfc and reader ics nfc controller soluti protocol over the USB link ons PR5331C3HN html NXP NEC Reader http www nxp com products identification and security nfc_ and reader ics nfc frontend soluti PN512 Full NFC Forum compliant NFC frontend Library ons series PN512 html AN as 19 PN7120 controller SBC Kit OM5577 PN7120S gt Demoboard for the PN7120 NFC controller gt Designed to work with Raspberry Pi or BeagleBone Can be adapted to other systems gt Drivers available for Linux and Android gt Linux images available for Raspberry Pi and BeagleBone They come with the full Linux lionfc nci stack installed They integrate the PN7120 drivers They include demo software Board available at NXP distributors ee ini Mobil
4. nxp pn5xx Kconfig sudo reboot cd etc udev rules d sudo gedit pn5xx_i2c rules add ACTION ada KERNEL pn544 MODE 0666 4 Indicate to the kernel where and how to access the new hardware cd linux rpi 3 18 y arch arm boot dts Installing the library cat proc cpuinfo vi bcm2708 rpi b dts add include tocm270x pn7120 dtsi git clone https github com NXPNFCLinux linux_libnfc nci git Cd linux_linfc nci cp linux rpi 3 18 y drivers misc nxp pnd5xx sample_devicetree txt ocm2 0x on 120 dtsi vi bem270x pn7120 dtsi modify according to your platform bootstrap configure sysconfdir etc make sudo make install ee NO a 26 Wrap up gt There are several tools to work with NFC devices in Linux environments gt The recommended stack to develop software for the PN7120 NFC controller is the Linux libnfc nci stack from NXP gt The Linux libnfc nci stack Is derived from the available and proven Android stack Supports the implementation of a broad range of use cases in a Linux environment NFC tags P2P handover HCE Works over the PN5xx I2C driver from NXP Provides an API based on callback functions gt NXP supports the development of NFC applications in Linux environments through Drivers for its NFC controllers Demoboards gt The PN7120 NFC controller board is a great tool for getting started with the Linux libnfc nci stack and with the PN7120 NFC controller
5. the callback returns a handle to the tag that allows the application to interact with it in other modes it is not necessary gt Functions and types declared in the documents linux_nfc_api h the main document It exposes the NFC features that will be used by the end application linux_nfc_factory_api h dedicated to end device production It can be used to check the antenna connection for CE FCC certification gt More information in the Linux_NFC_APL Guide htm document inside the doc sub folder of the stack delivery IN INNNINGGT 4 The Linux libnfc nci stack The API linux_nfc_api h Some functions gt extern void nfeManager_register agCallback nfcTagCallback_t callback register a tag callback functions gt extern void nfcfManager_enableDiscovery int technologies_masks int reader_only_mode int enable_host_routing int restart start nfc discovery gt extern int ndef_readText unsigned char ndef_buff unsigned int ndef_buff_length char out_text unsigned int out_text_length read text message from NDEF data gt extern int nfeTag_readNdef unsigned int handle unsigned char ndef_buffer unsigned int ndef_buffer_length nfc_friendly_type_t friendly_ndef_type read NDEF message from tag gt extern int nfcTag_transceive unsigned int handle unsigned char tx_buffer int tx_buffer_length unsigned char rx_buffer int rx_buffer_length unsigned int timeout
6. the initialization of the stack gt Two files libnfc brcm conf allows the user to configure Log levels Host listening enabled Polling technologies P2P listening technologies libnfc nxp conf allows the user to configure Log levels MIFARE Classic reading enabled System clock Polling profile Other NXP NFC controller settings gt Both files are self explanatory oe ME Mobile D EL Krowiedge Example polling technologies HS EE EE fe Force tag polling for the following technology s The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api h Default is NFA_LTECHNOLOGY_MASK_A NFA_TECHNOLOGY_MASK_B NFA_TECHNOLOGY_MASK_F NFA_TECHNOLOGY_MASK_ISO15693 NFA_TECHNOLOGY_MASK_B_PRIME NFA_LTECHNOLOGY_MASK_KOVIO NFA_TECHNOLOGY_MASK_A_ACTIVE NFA_LTECHNOLOGY_MASK_F_ACTIVE Notable bits NFA_TECHNOLOGY_MASK_A 0x01 NFC Technology A a NFA_TECHNOLOGY_MASK_B 0x02 NFC Technology B i NFA_TECHNOLOGY_MASK_F 0x04 NFC Technology F u NFA_TECHNOLOGY_MASK_ISO15693 0x08 Proprietary Technology ui NFA_TECHNOLOGY_MASK_KOVIO 0x20 Proprietary Technology a NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40 NFC Technology A active mode NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80 NFC Technology F active mode This flag when set to zero will disable Reader mode POLLING_TECH_MASK 0xEF 17 NXP solutions for Linux NXP NFC readers supported in Linux http www nxp com products
7. Design Engineering support Project Management Technological Consulting Advanced Technical Training services gt We address all the exploding identification technologies that include NFC secure micro controllers for smart cards and mobile applications reader ICs smart tags and labels MIFARE family and authentication devices For more information Eric Leroux eric leroux themobileknowledge com 34 629 54 45 52 DE ni 2o NFC in Linux Franz Van Horenbeke Speaker Eric Leroux Host Thank you for your kind attention Please remember to fill out our evaluation survey pop up gt Check your email for material download and on demand video addresses gt Please check NXP and MobileKnowledge websites for upcoming webinars and training sessions Ba l p Knowledge mg Mobile EGILA Knowledge Thank you
8. Se eee i i ee M This example depicts the steps to follow from SW perspective to be able to send WiFi credentials to an NFC phone ee Mobile Knowledge 4 Phone discovery is notified 5 Send WiFi credentials to the phone 6 Pop up is raised on the phone proposing to connect to the WiFi network Phone connects to the WiFi network Starting from Android 5 0 LolliPop WIFI configuration NDEF record as defined by WiFi alliance is natively supported The Linux libnfc nci stack The API BT handover Start BT OOB server 1 Initialize the Linux libnfc nci library 2 Register for device discovery 3 Start NFC discovery eee A ea select a picture 5 tap the smartphone and beam it py This example depicts the steps to follow from SW perspective in order to receive a picture over Bluetooth from an NFC phone ee Mobile Knowledge 4 Device discovery is notified 5 Handover Request message is received from the phone 6 Send Handover Select record to the phone Starting from Android 4 0 IceCreamSandwich Bluetooth handover as defined by NFC Forum is natively supported for large files exchange The Linux libnfc nci stack The API an example application include lt stdio h gt include lt string h gt include lt semaphore h gt include lt linux_nfc_api h gt static sem_t sem static int mTagHandle Callback f
9. e f D lt EEA krowiedge Demoboard website PN7120S OM5577 www nxp com demoboard OM5577 html Package ID Package details 0OT334610 Hardware design files for OM5577 PN7120S Demonstration image for quick start in Raspberry Pi Linux environment OM5577_Rbi Demonstration image for quick start in BeagleBone Linux OM5577_BBB_Linux environment Demonstration image for quick start in BeagleBone Android OM5577_BBB _Kitkat environment Documentation UM10878 PN7120 NFC Controller SBC Kit user manual AN11646 PN7120 NFC Controller SBC Kit quick start guide PN7120 SBC Kit PN7120 NFC Controller SBC Kit OM5577 PN7120S leaflet 20 Quick start guides Getting started with the PN7120 controller board What you need Samisk SDHC Card ay 4cB Raspberry Pi PN7120 Raspberry Pi SD card controller board interface board at least 4GB Power supply HDMI screen USB mouse Internet and keyboard RX connection veilis 22 Getting started with the PN7120 controller board Hands on video http youtu be e1 KhQPxNU4 23 Integrating the Linux libnfc nci stack into a Linux system gt Integration described in the application note AN11697 PN7120 Linux Software Stack Integration Guidelines gt It consists of 2 main steps Installing the PN5xx I2C driver as part of the kernel Installing the Linux libnfc nci stack in user mode gt Steps to install the driver 1 Download t
10. he Linux kernel source code 2 Download the driver source code 3 Include the driver in the kernel compilation 4 Indicate to the kernel where and how to access the new hardware 5 Build the kernel 6 Install the new kernel Steps to install the library 1 BFE 1 Download the library source code am s es 2 Build the library T Te 9 TA 7 4 i PS Y 3 Install the library Integrating the Linux libnfc nci stack into a Linux system Hands on video http youtu be TCqCRi tKxM Integrating the Linux libnfc nci stack into a Linux system Summary Integrating the stack into a Raspbian system Installing the driver 5 Build the kernel cd linux rpi 3 18 y 1 Download the Linux kernel source code make bcmrpi_defconfig uname wget https github com raspberrypi linux archive rpi 3 18 y tar gz make menuconfig include the driver tar xvfz rpi 3 18 y tar gz make zlmage modules dtbs 2 Download the driver source code 6 Install the new kernel cd linux rpi 3 18 y drivers misc sudo make modules_install git clone https github com NXPNFCLinux nxp pn5xx git sudo cp arch arm boot dts dtb boot 3 Include the driver in the kernel compilation sudo cp arch arm boot dts overlays dtb boot overlays vi Makefile add obj y nxp pn5xx sudo scripts mkknlimg arch arm boot zImage boot kernel img vi Kconfig add source drivers misc
11. mg Mobile EGLA Knowledge NFC in Linux How to get started with the PN7120S controller board Public MobileKnowledge July 2015 Agenda Session 15 July NFC in Linux How to get started with the PN7120S controller board gt NFC tools for Linux gt NXP solutions for Linux gt How to get started with Raspberry Pi and PN710S gt How to integrate Linux libnfc nci SW stack into a Linux system Pe J Mobile Knowledge What is Linux gt An operating system gt Free and open source software development and distribution Great community support gt Usually packaged in the form of Linux distributions They include The Linux kernel Other software components libraries tools depending on the intended use of the distribution Examples Debian Ubuntu Red Hat gt Due to its license policy and its great flexibility gt ported to more computer hardware platforms than any other operating system Used in PCs servers smart devices embedded systems gt Example of operating system based on the Linux kernel Android ee ini Mobile f 3 EEA Krowiedge Slackware te Ou D untu Mandriva debian openSUSE Live GNU Unux System archiinux rediat KNOPPIX NFC in Linux Some NFC tools 1 Px Linux NFC Linux libnfc nci Linux NFC Open NFC e Developed by NXP e Development led by Intel e Mainly developed by Inside
12. or the tag arrival event void onTagArrival nfc_tag_info_t pTag mTagHandle plag gt handle sem_post amp sem Callback for the tag departure event void onTagDeparture void ee ini Mobile i D ov as Main function waits for an NFC tag and shows if it contains an NDEF message int main int argc char argv printf nHHHHHHHHHH Our first Linux libnfc nci application HHHHHHHHHHA n n Initialize variables sem_init amp sem 0 0 nfcTagCallback_t tagCb tagCb onTagArrival onTagArrival tagCb onTagDepature onTagDeparture Initialize stack nfcManager_dolnitialize nfcManager_registerlagCallback amp tagCb nfcManager_enableDiscovery DEFAULT_NFA_TECH_MASKk 1 0 0 Wait for tag orintf Waiting for an NFC tag n n sem_wait amp sem Check if the tag contains an NDEF message printf Tag found n ndef_info_t info memset amp info 0 sizeof ndef_info_t nfcTag_isNdef mTagHandle amp info if info is_ndef orintf The tag contains an NDEF message n n else printf The tag does not contain an NDEF message n n Deinitialize stack sem_destroy amp sem nfcManager_disableDiscovery nfcManager_deregisterlagCallback nfcManager_doDeinitialize return 0 16 The Linux libnfc nci stack The configuration files gt Allow developers to configure several parameters of the stack gt Read during
13. pport Linux libnfc nci The recommended stack for the PN7120 gt Documentation about the integration of the PN7120 and the Linux libnfc nci stack into a Linux environment is available at the NXP website htto www nxp com products identification and security nfc and reader i cs nfc_ controller solutions PN7120A0EV html documentation oe MMM Mobile f D ELL Krowiedge NFC Application Neard AL Interface Layer libnfc nci Core libnfc nci NFC Daemon User space Hardware Abstraction Layer a plkn ocke PN5xx I2C Driver Hard iiaii NXP NCI NFC Controller ardware User space NFC Core Kernel space Linux libnfc nci stack Linux NFC stack UM10819 PN7120 User Manual AN11697 PN7120 Linux SW stack integration guidelines Linux NFC API Guide Linux libnfc nci stack APIs description for the PN7120 The Linux libnfc nci stack gt The NXP NFC stack for Linux systems gt Derived from the available and proven Android stack Very robust and complete due to its maturity gt Supports the implementation of a broad range of use cases in a Linux environment NFC Forum tag types P2P handover HCE raw commands gt Works together with the PN5xx I2C driver from NXP which offers communication with NXP NFC controllers through an I2C interface gt It is the recommended stack for the brand new PN7120 NFC controller gt Both the Linux libnfc nci stack and the PN5xx 12C d
14. river are distributed by GitHub Linux libnfc nci stack PN5xx 12C driver 22 e ME Mobile x Knowledge The Linux libnfc nci stack Features gt NDEF tag support gt MIFARE Classic tag support gt P2P LLCP SNEP gt WiFi amp BT handover gt Raw tag command support gt Proprietary NCI command support gt Host Card Emulation support It is planned that NXP PN7120 successors will also be supported by this stack The Linux libnfc nci stack The architecture NFC Application Interface Layer libnfc nci Core libnfc nci Hardware Abstraction Layer User space Hardware NXP NCI NFC Controller NO az Interface Layer exposes the library API to the user application Libnfc nci Core implements the NFC functionality NCI NDEF LLCP and SNEP protocols tag operations Host Card Emulation Hardware Abstraction Layer provides connection to the kernel driver as well as basic functionalities like self test or firmware update PN5xx I2C Driver offers communication to the NFC controller connected over the I2C physical interface The Linux libnfc nci stack The API gt C API exposed by the Interface Layer of the Linux libnfc nci stack gt Based on callback functions that are executed when an event occurs Different possible events e g tag arrival tag departure handover request received command received for an emulated card In read write mode
15. secure e Derived from the available e Aims and proven Android stack e Complete e Designed to be portable to Open source different operating The recommended stack Hardware systems for the PN7120 NFC Independent controller stt a Mobile f D EEA Ci NFC in Linux Some NFC tools 2 N MUSC LE ossa RN libnfc nfcpy PCSC Lite e Academic project e Sponsored by Sony e Developed inside the M U S C L E project e Open source and e Python module for NFC community support e Open source e Considered as the NFC implementation of e Supports various Forum reference PC SC operating systems implementation e Aim interact with smart cards e NFC in Linux Some NEC tools Features Host Interfaces Tag R W LLCP Handover Card Emulation Linux libnfc nci NCI Yes NEI NEL Bluetooth WiFi Yes Handover i NPP SNEP n Linux NFC HCI NCI USB Yes Handover PHDC Bluetooth WiFi Yes Open NFC HCI Yes SNEP Handover Bluetooth WiFi Yes libnfc USB UART Yes No No Yes nfcpy USB Yes SE andover Bluetooth WiFi No PHDC PN7120 in Linux gt PN7120 is the brand new full NFC Forum compliant controller from NXP Supports CE R W and P2P modes Compatible with ISO IEC 14443 A amp B FeliCa and ISO IEC 15693 card Integrated firmware with NCI interface gt PN7120 is supported by the Linux libnfc nci and Linux NFC stacks Linux NFC Maintained by the community NXP does not provide su

Download Pdf Manuals

image

Related Search

Related Contents

Samsung SyncMaster    Guide Utilisateur Zero Forfait  平成25年3月19日薬食安発0319第3号薬食機発0319第1号(PDF  MANUEL JCM Série K F  UH 700 - Hilti  User Manual  ガビオス 取扱説明書  HB3324-04 dBadge Field Guide SP  Memento Securite des manifestations publiques  

Copyright © All rights reserved.
Failed to retrieve file