The document provides an overview of how to build an NFC application, including:
- The anatomy of an NFC app and its components like middleware, NFC interface, tags, and application logic.
- Details on NFC technologies, tag types, NDEF formatting, and the Android NFC APIs.
- Examples of writing and reading data from NFC tags using Android apps and demonstrating common NFC use cases.
NFC stands for Near Field Communication.
NFC is an extension of Radio Frequency IDentifier popularly known as RFID.
NFC is a short range high frequency wireless communication technology.
NFC was founded in the year 2004 by NOKIA, SONY and PHILIPS.
A Best Android Introdtuction .
1. Android Introduction (Android components, Android Architecture, Activity life cycle, Activity stack etc.)
2. Near Field Communication (NFC) Overview.
3. Google map and GPS.
4. Push notification and C2DM concept.
Near field communications (or NFC) is the latest buzz word to hit the marketing community. Now it may be a powerful new direct mail tool. Here we'll explore the pros and cons of NFC for direct mail.
Which new scenarios are enabled by Windows 10 for NFC, Bluetooth LE & Beacons?Andreas Jakl
Beacons are one of the hottest topics of mobile development right now. Bluetooth Smart / LE is indispensable for Wearables and the Internet of Things (IoT). NFC is now finally arriving in the mass market.
With Windows 10, Microsoft has significantly expanded the possibilities for proximity technologies. In this overview, you will learn about the new scenarios and see several concrete examples of what is possible and how you can leverage it for your own projects!
Agenda:
NFC
- NFC simulation
- Smart Cards
- Raw NFC tag access
- Host card emulation (HCE)
Bluetooth Smart
- Bluetooth Beacon support
- Beacon specifications (iBeacon, Eddystone & co)
The quick walkthrough will show you how to create your first NFC app for Windows Phone 8.
The NearSpeak app (available soon in the WP Store) writes voice NFC tags - touch the tags again to hear your message! Leave notes for your partner, reminders for yourself, or use them for a fun public social experiment.
This hands-on tutorial will show you how to create this app. You will see how to write a LaunchApp tag using the NDEF Library for Proximity APIs, how to recognize text spoken by the user, and how to use the speech synthesizer to let the phone read the text again.
Note that the instructions require basic knowledge of Windows Phone development.
"Combinando NFC y Datos en la Etiqueta RFID para Apoyar AAL" presentada por D...3JornadasRFID
Combinando NFC y Datos en la Etiqueta RFID para Apoyar AAL
Diego López de Ipiña, Ignacio Díaz-de-Sarralde y José Bravo
Sesión "Aplicaciones médicas y asistivas de RFID"
NFC stands for Near Field Communication.
NFC is an extension of Radio Frequency IDentifier popularly known as RFID.
NFC is a short range high frequency wireless communication technology.
NFC was founded in the year 2004 by NOKIA, SONY and PHILIPS.
A Best Android Introdtuction .
1. Android Introduction (Android components, Android Architecture, Activity life cycle, Activity stack etc.)
2. Near Field Communication (NFC) Overview.
3. Google map and GPS.
4. Push notification and C2DM concept.
Near field communications (or NFC) is the latest buzz word to hit the marketing community. Now it may be a powerful new direct mail tool. Here we'll explore the pros and cons of NFC for direct mail.
Which new scenarios are enabled by Windows 10 for NFC, Bluetooth LE & Beacons?Andreas Jakl
Beacons are one of the hottest topics of mobile development right now. Bluetooth Smart / LE is indispensable for Wearables and the Internet of Things (IoT). NFC is now finally arriving in the mass market.
With Windows 10, Microsoft has significantly expanded the possibilities for proximity technologies. In this overview, you will learn about the new scenarios and see several concrete examples of what is possible and how you can leverage it for your own projects!
Agenda:
NFC
- NFC simulation
- Smart Cards
- Raw NFC tag access
- Host card emulation (HCE)
Bluetooth Smart
- Bluetooth Beacon support
- Beacon specifications (iBeacon, Eddystone & co)
The quick walkthrough will show you how to create your first NFC app for Windows Phone 8.
The NearSpeak app (available soon in the WP Store) writes voice NFC tags - touch the tags again to hear your message! Leave notes for your partner, reminders for yourself, or use them for a fun public social experiment.
This hands-on tutorial will show you how to create this app. You will see how to write a LaunchApp tag using the NDEF Library for Proximity APIs, how to recognize text spoken by the user, and how to use the speech synthesizer to let the phone read the text again.
Note that the instructions require basic knowledge of Windows Phone development.
"Combinando NFC y Datos en la Etiqueta RFID para Apoyar AAL" presentada por D...3JornadasRFID
Combinando NFC y Datos en la Etiqueta RFID para Apoyar AAL
Diego López de Ipiña, Ignacio Díaz-de-Sarralde y José Bravo
Sesión "Aplicaciones médicas y asistivas de RFID"
Presentation from MIT Enterprise Forum of Cambridge NFC Goes Social event on Feb 11.
This panel discussion focused on some recent social applications of NFC – including smart posters and social networking tags - as well as emerging future opportunities.
Discussion topics included
How could NFC-capable mobile devices shape the ways we connect, interact, share content and/or link to social media?
To what extent could NFC improve mobile user access to context-relevant content and facilitate delivery of the right content in the right form at the right time and place?
Could NFC make a difference in connecting businesses with consumers and simplifying B2C interactions and the underlying information transfers?
Introduction to the Windows 8 Platform Proximity APIs for NFC apps.
Create your own Near Field Communication apps to interact with peers as well as NFC tags. Also introduces the open source NDEF Library for Proximity APIs: http://ndef.codeplex.com/
- Subscribe to proximity messages
- Publish messages to peers and tags (WindowsUri and NDEF records)
- Parse & create NDEF messages (including Smart Posters)
- Launching apps on own and peer devices
- Registering for custom URI schemes and protocols
- LaunchApp tags to directly start the app
- Peer to peer: quick data exchange and long term connections with Wi-Fi Direct / Bluetooth
- Establishing peer to peer socket communications simply by tapping two devices
- User Experience Recommendations for peer to peer apps
RFID and NFC Transponder from Global Tag. Here you can find many different type of tag transponder LF, HF, UHF and also BLE
#RFID #NFC #BLE #IoT #TAG #LF #HF #UHF
System Label is a leading European label supplier specialising in self-adhesive labels, decals, membrane switches, overlays, RFID, NFC, EverGlow and point of sale.
Our facility is certified to ISO9001, ISO13485, and is also a UL approved manufacturing facility. We take extreme pride in offering our clients the highest quality product, on-time, with added value and a personalised service.
Our services range from initial design and technical advice, through manufacture to a complete supply management system depending on your needs and requirements.
Hacking Tizen : The OS of Everything - Nullcon Goa 2015Ajin Abraham
Tizen is an operating system which is built to run on various kinds of devices. Tizen OS defines following profiles based on the devices types supported.
Tizen IVI (in-vehicle infotainment)
Tizen Mobile
Tizen TV, and
Tizen Wearable
Samsung's first Tizen-based devices are set to be launched in India in Nov 2014. This paper presents the research outcome on the security analysis of Tizen OS. The paper begins with a quick introduction to Tizen architecture which explains the various components of Tizen OS. This will be followed by Tizen's security model, where Application Sandboxing and Resource Access Control powered by Smack will be explained.
The vulnerabilities in Tizen identified during the research and responsibly disclosed to Tizen community will be discussed. This includes issues like Tizen WebKit2 Address spoofing and content injection, Buffer Overflows, Issues in Memory Protection like ASLR and DEP, Injecting SSL Certificate into Trusted Zone, (Shellshock) CVE-2014-6271 etc. Applications in Tizen can be written in HTML5/JS/CSS or natively using C/C++. Overview of pentesting Tizen application will be presented along with some of the issues impacting the security of Tizen application. There will be comparisons made to Android application, and how these security issues differ with Tizen.
For eg: Security issues with inter application communication with custom URL schemes or intent broadcasting in Android as opposed to using MessagePort API in Tizen. Issues with Webview & JavaScript Bridge in Android compared to how the web to native communication is handled with Tizen etc.
Tizen is late to enter into the market as compared to Android or iOS, which gives it the benefit of learning from the mistakes impacting the security of mobile OS, and fixing these issues right in the Security Architecture. To conclude, a verdict would be provided by the speaker on how much Tizen has achieved with regard to making this mobile OS a secure one.
NFC and consumers - Success factors and limitations in retail business - Flor...Florian Resatsch
Shown at the WIMA 2007 in Monaco, this presentation covers ideas and discussions around frequencies for retail business. Consumer applications with NFC are also discussed.
CONNECTED OBJECTS - how NFC technology enables a more environmentally-friendl...Pierre Metivier
20, 40, 80 billions connected objects in the smart cities of the future by 2020 as foreseen by many large IT companies and consulting firms. But is our planet ready for as many billions Ion-lithium battery equiped objects ? What about the impact on our environment ? Hopefully, there are solutions to reduce the need of batteries in connected objets and energy harvesting is one important field of study. NFC, better known for contactless payment and transportation cards, is one technology that can be used to reduce the needs of batteries in connected objects, allowing a cleaner and greener environment, as this track will present.
Smart Cities and Countries Congress, Sept. 3, Paris
A Librarian's Field Guide to Near Field CommunicationKristen Yarmey
A presentation given by Sheli McHugh and Kristen Yarmey in October 2011 at the Pennsylvania Library Association annual conference in State College, PA.
Near Field Communication (NFC) is a new technology that allows devices such as cell phones to transmit information wirelessly across a small distance. While it has many commercial applications (e.g., using your cell phone as a credit card at the grocery store), NFC could also have future applications for libraries as a new way to link physical materials with digital information. Placing particular attention on cataloging, metadata, and circulation, this presentation will discuss potential strategies for utilizing NFC in libraries, from peer to peer loaning to embedding catalog records in books.
Contactless TAGs for Near Field Communication (NFC). Its here and this is a primer for understanding mobile contactless tags how they can be used for mobile loyalty and couponing with point of sale integration!
The Google Nexus S offers support for Near Field Communication (NFC), an extension to an RFID smart card protocol popularly used for secure access, metro passes (Oyster/Clipper), and electronic money (FeliCa/Octopus). NFC in smartphones promises adding these features to the phone you carry by allowing the it to emulate both RFID tag and reader.
NFC additionally adds new capabilities like exchanging configuration data such as WiFi settings, trading vCard contact information, reading URLs, triggering SMS text messages or initiating calls, and secure bi-directional communication between NFC devices.
This session will cover what NFC and RFID is and is not, what Android on the Nexus S is currently capable of, and some examples of how to add NFC to your apps.
http://where2conf.com/where2011/public/schedule/detail/18443
On Relaying NFC Payment Transactions using Android devicescgvwzq
NFC (Near Field Communication) defines the set of RFID standards designed to bidirectionally communicate via wireless and interchange data point-to-point between devices in proximity, normally a few centimeters (up to 10cm). Services that use NFC communications as contactless payments are exponentially growing: Public transport, parkings, fast supermarket cashers, vending machines and even NFC-capable credit/debit cards.In this talk, we investigate relay attacks in NFC-capable credit/debit cards. This attack exploits the communication proximity principle in NFC, which is shown to be non secure. Although a lot of attack countermeasures exist, they do not face with this attack vector since up to date special hardware was required to perform it. However, the story is rewritten with the NFC-capable mobile devices available in the market.
This work shows how nowadays a relay attack in NFC-capable credit/debit cards is possible using an NFC-capable Android device without further modifications (i.e., no root permissions, custom firmware, or custom OS are required). A PoC app implementing the attack is shown in the talk, as well as distributed relay attack scenarios that might become real before long.
This presentation focuses on exploring what Near Field Communication (NFC) in Android is and how its power can be harnessed through Android. Details of the available classes and interfaces available in Android to use NFC.
The NFC technology evolved from contactless radio frequency identification (RFID). The RFID transmission range can reach several meters or even tens of meters. It can only read and determine information, and NFC technology emphasizes information exchange. Near field, communication is operated at a frequency of 13.56 MHz within a distance of 20 cm, and its transmission speed is 106 Kbit/s, 212 Kbit/s, or 424 Kbit/s.
Disruptive innovations for the RFID technologies. How amplify the reading distance of small NFC antennas. How displace the NFC reading area. How read an UHF tag using the NFC engine of a smartphone.
Near Field Communication (NFC) is an emerging short-range radio technology that is poised to revolutionise how we use mobile phones in everyday interactions. In this webinar, we’ll introduce the basics of NFC and how the technology is implemented in Nokia Lumia phones. We’ll also demonstrate how you can use NFC via Microsoft Windows Phone 8’s Proximity API in your applications to share content, read data from and write data to NFC tags, and create your own application-launch tags. We suggest that you install the Microsoft Windows Phone SDK 8.0 in advance to get the most out of this training lab. While you’ll learn a lot with or without the SDK, you’ll learn even more if you have the SDK installed and can begin using the API as soon as you complete the training. Also, it will be helpful to have a Nokia Lumia phone built on Windows Phone 8 available for testing.
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
PHP Frameworks: I want to break free (IPC Berlin 2024)Ralf Eggert
In this presentation, we examine the challenges and limitations of relying too heavily on PHP frameworks in web development. We discuss the history of PHP and its frameworks to understand how this dependence has evolved. The focus will be on providing concrete tips and strategies to reduce reliance on these frameworks, based on real-world examples and practical considerations. The goal is to equip developers with the skills and knowledge to create more flexible and future-proof web applications. We'll explore the importance of maintaining autonomy in a rapidly changing tech landscape and how to make informed decisions in PHP development.
This talk is aimed at encouraging a more independent approach to using PHP frameworks, moving towards a more flexible and future-proof approach to PHP development.
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
JMeter webinar - integration with InfluxDB and GrafanaRTTS
Watch this recorded webinar about real-time monitoring of application performance. See how to integrate Apache JMeter, the open-source leader in performance testing, with InfluxDB, the open-source time-series database, and Grafana, the open-source analytics and visualization application.
In this webinar, we will review the benefits of leveraging InfluxDB and Grafana when executing load tests and demonstrate how these tools are used to visualize performance metrics.
Length: 30 minutes
Session Overview
-------------------------------------------
During this webinar, we will cover the following topics while demonstrating the integrations of JMeter, InfluxDB and Grafana:
- What out-of-the-box solutions are available for real-time monitoring JMeter tests?
- What are the benefits of integrating InfluxDB and Grafana into the load testing stack?
- Which features are provided by Grafana?
- Demonstration of InfluxDB and Grafana using a practice web application
To view the webinar recording, go to:
https://www.rttsweb.com/jmeter-integration-webinar
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Tobias Schneck
As AI technology is pushing into IT I was wondering myself, as an “infrastructure container kubernetes guy”, how get this fancy AI technology get managed from an infrastructure operational view? Is it possible to apply our lovely cloud native principals as well? What benefit’s both technologies could bring to each other?
Let me take this questions and provide you a short journey through existing deployment models and use cases for AI software. On practical examples, we discuss what cloud/on-premise strategy we may need for applying it to our own infrastructure to get it to work from an enterprise perspective. I want to give an overview about infrastructure requirements and technologies, what could be beneficial or limiting your AI use cases in an enterprise environment. An interactive Demo will give you some insides, what approaches I got already working for real.
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
Let's dive deeper into the world of ODC! Ricardo Alves (OutSystems) will join us to tell all about the new Data Fabric. After that, Sezen de Bruijn (OutSystems) will get into the details on how to best design a sturdy architecture within ODC.
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
In this insightful webinar, Inflectra explores how artificial intelligence (AI) is transforming software development and testing. Discover how AI-powered tools are revolutionizing every stage of the software development lifecycle (SDLC), from design and prototyping to testing, deployment, and monitoring.
Learn about:
• The Future of Testing: How AI is shifting testing towards verification, analysis, and higher-level skills, while reducing repetitive tasks.
• Test Automation: How AI-powered test case generation, optimization, and self-healing tests are making testing more efficient and effective.
• Visual Testing: Explore the emerging capabilities of AI in visual testing and how it's set to revolutionize UI verification.
• Inflectra's AI Solutions: See demonstrations of Inflectra's cutting-edge AI tools like the ChatGPT plugin and Azure Open AI platform, designed to streamline your testing process.
Whether you're a developer, tester, or QA professional, this webinar will give you valuable insights into how AI is shaping the future of software delivery.
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
Neuro-symbolic is not enough, we need neuro-*semantic*
NFC Bootcamp Seattle Day 2
1. How to Build an
NFC
Application
Richard Grundy
@grundyoso
http://flomio.com
How to Build an NFC Application 1
2. Agenda
• Anatomy of an NFC App
• NFC Interface
o Technologies
• Learn the specs
o Tags (Demo 1)
• Learn the types
o NDEC (Demo 2 and 3)
• Learn to format/read/write
o Infrastructure
• There’s a stack for that
o Application
• Give it logic
How to Build an NFC Application 2
3. Anatomy
Web Service Web Service Web Service
Middleware
Reader Reader Reader Reader Reader
NFC App
Tag Tag Tag Tag Tag Tag Tag
Tag Tag Tag Tag Tag Tag Tag
Passive Active
How to Build an NFC Application 3
4. Anatomy
Middleware
NFC Interface
How to Build an NFC Application 4
6. Interface
13.56Mhz
1 wavelength = 7.37e-8secs of
22.1m
Theoretical range = 3.5m
How to Build an NFC Application 6
7. Interface
• NFC International Specifications*
NDEF
TAGS
TECH
*http://www.flomio.com/docs/ > NFC International Standards
How to Build an NFC Application 7
8. Technology
• ISO 14443-3A: NFC-A
• ISO 14443-3B: NFC-B
• JIS 6319-4: NFC-F
• ISO 15693: NFC-V
• Terms
o ASK
o PCD
o PICC
o PDU
o REQ
o ATQ
o UID/UUID
o RFU
• APDU
o CLA, INS, P1, P2, L(c), L(e)
o SW1, SW2, L(e)
• ATR = Answer to Reset
o MFR
• PTS = Protocol Type
Selection
o T=0 Byte level tx
o T=1 Block level tx
How to Build an NFC Application 8
9. Tags
• NFC Forum: Types 1
o Jewel Topaz
• NFC Forum: Types 2
o Mifare Ultralight S,C
• NFC Forum: Types 3
o Felicia
• NFC Forum: Types 4
o Mifare DESfire S, EV1
o Mifare Classic 1k, 4k
o Mifare Plus 1k, 4k
Options:
• ISO 15693 Media
o I-Code SLI Ferrite/Metal Mount
o Tag IT
• Proprietary: Many more
How to Build an NFC Application 9
10. Demo
1. Requirement
1. Android 4.0 NFC-enabled handset
2. Download from Google Play:
1. NFC TagInfo by Michael Roland
3. Enable NFC (phone boots with NFC off):
1. Menu System Settings Wireless & Networks More
2. Check NFC box
4. Scan some tags and study ―Tag Information …‖
1. UID(x)
2. RF Technology
3. Tag Type
4. Manufacturer
5. Target technology classes (Android)
How to Build an NFC Application 10
11. NDEF
• Mifare Memory Structure
o Sectors
o Blocks
o Keys
o Access Bits
How to Build an NFC Application 11
12. NDEF
• Get ATR – Is MiFare 1k
• Set Reader Read Key (FF FF FF
FF FF)
• Authenticate Reader to Tag
Sector 0
o Is NFC Initialized? How do you
know?
• Set write key (FF FF FF FF FF)
• Write MAD
• Write Keys and Access Bits
• Write first empty record
How to Build an NFC Application 12
13. NFC Forum Defined Not NFC Forum Defined
• Text • Payment • Mime Types
o urn:nfc:wkt:T
• URI • Coupon Vendor
o urn:nfc:wkt:U • Start a Car
Application
• Smart Poster • Etc. Etc.
o urn:nfc:wkt:Sp
• Signature
o urn:nfc:wkt:Sig
• Mime Types
• Handover o Vendor
o urn:nfc:wkt:HO o Application
• … o Etc.
How to Build an NFC Application 13
14. Demo
1. Requirement
1. Android 4.0 NFC-enabled handset
2. Download from Google Play:
1. NXP TagWriter Lite Edition
3. Enable NFC (phone boots with NFC off):
1. Menu System Settings Wireless & Networks More
2. Check NFC box
4. Create and Write some tags with NDEF Records
1. Contact — Add a vcard: Richard @ 305-982-7424
2. URL — Enter a web address: http://www.flomio.com
3. Plain Text — Add this text ―Hello World!‖
4. SMS — Prepare message: 305-982-7424 — ―Sup Flomio!‖
5. Now TAP-TO-X!
How to Build an NFC Application 14
16. General Credit Card (CC) Approval/Payment Process using NFC
How to Build an NFC Application 16
17. Application
• Android offers comprehensive NFC support:
o 2.3.2 API 10 Gingerbread
o 2.3.3
o 2.3.4
o 4.0 Ice Cream Sandwitch
• Beam
o Available
• Tag Read/Write
• Tag Emulate
• P2P with another Android
o Not Available
• Smart Card Emulation
• P2P Generalized
How to Build an NFC Application 17
20. Android Setup
• Register a detailed intent filter in the app’s
AndroidManifest.xml
• Get Adapter Handle and Set Listen Filters
mAdapter = NfcAdapter.getDefaultAdapter(this);
mOutPendingIntent = PendingIntent.getActivity(this, 0, new Intent(this,
getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0);
IntentFilter ndef = new IntentFilter(NfcAdapter.ACTION_TECH_DISCOVERED);
// ndef.addAction(NfcAdapter.ACTION_TAG_DISCOVERED);
mFilters = new IntentFilter[] { ndef, };
mTechLists = new String[][] {new String[] { android.nfc.tech.NfcV.class.getName() },
new String[] { android.nfc.tech.IsoDep.class.getName()
}, new String[] { NfcF.class.getName() } };
How to Build an NFC Application 20
21. Android Intents
public void onResume() {
super.onResume();
if (isSending) {
if (mAdapter != null) Send P2P NDEF Message
mAdapter.enableForegroundNdefPush(this, mMessage);
} else {
mAdapter.enableForegroundDispatch(this,
mOutPendingIntent,
mFilters, mTechLists);
if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(getIntent()
.getAction())) {
NDEF Received
processIntent(getIntent());
} else if
(NfcAdapter.ACTION_TAG_DISCOVERED.equals(getIntent()
.getAction())); {
processTagIntent(getIntent());
} Tag no NDEF
}
}
How to Build an NFC Application 21
22. Android Process Info
/** * Parses the NDEF Message from the intent and prints to the TextView */
void processIntent(Intent intent) {
mText = (TextView) findViewById(R.id.textInfo);
// get the data
Parcelable[] rawMsgs = intent
.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);
// only one message sent during the beam
NdefMessage msg = (NdefMessage) rawMsgs[0];
// record 0 contains the MIME type, record 1 is the AAR, if present
mText.setText(new String(msg.getRecords()[0].getPayload()));
}
/** Show tag found **/
void processTagIntent(Intent intent) {
mText = (TextView) findViewById(R.id.textInfo);
// get the tag handle and data
Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
if (tag != null) {
// tell me about the tag found
mText.setText(new String("Tag discovered:" + tag.toString()));
} else {
// lost tag or not finished
Log.i(APPTAG, "Tag not ready or no longer there");
};
}
How to Build an NFC Application 22
23. Android Make NDEF
public static NdefRecord newTextRecord(String text, Locale
locale,boolean encodeInUtf8) {
byte[] langBytes = locale.getLanguage().getBytes(Charset.forName("US-ASCII"));
Charset utfEncoding = encodeInUtf8 ? Charset.forName("UTF-8") : Charset.forName("UTF-16");
byte[] textBytes = text.getBytes(utfEncoding);
int utfBit = encodeInUtf8 ? 0 : (1 << 7);
char status = (char) (utfBit + langBytes.length);
byte[] data = new byte[1 + langBytes.length + textBytes.length];
data[0] = (byte) status;
System.arraycopy(langBytes, 0, data, 1, langBytes.length);
System.arraycopy(textBytes, 0, data, 1 + langBytes.length,textBytes.length);
return new NdefRecord(NdefRecord.TNF_WELL_KNOWN, NdefRecord.RTD_TEXT, new byte[0], data);
}
String mTextPayload = "JOHN A. DOE,YBC99999999" + mSequence;
mMessage = new NdefMessage(new NdefRecord[] {
newTextRecord(mTextPayload, Locale.ENGLISH, true) });
How to Build an NFC Application 23
25. How to – Construct NDEF
Header Location
7
Abbrev
MB
Name
Message Begin
FALSE
0
TRUE
1
6ME Message End 0 1
5CF Chunk Flag 0 1
4SR Short Record 0 1
3IL ID Length 0 1
2 0 1
1 TNF Type Name Format 0 1
0 0 1
d1 1 1 0 1 0 0 0 1 c9 1 1 0 0 1 0 0 1
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
MB ME CF SR IL TNF MB ME CF SR IL TNF
Type Length Type Length
Payload Length Payload Length 3
Payload Length 2
Type
Payload Length 1
ID
Payload Length 0
Payload
ID Length
Type
ID
How to Build an NFC Application Payload 25
26. Type Name Format TNF
Well Known Record Types
urn:nfc:wkt:T T 0x54
Type Name Format (TNF) urn:nfc:wkt:U U 0x55
Empty 0x00
Well Known Type 0x01
urn:nfc:wkt:Sp Sp 0x53 0x70
Media 0x02 urn:nfc:wkt:Sig Sig 0x53 0x69 0x67
Absolute URI 0x03
External 0x04
Unk 0x05 Language
Unchanged 0x06 en 0x65 0x6E
Reserved 0x07 Urn:nfc:mime/vnd.m360.id fr 0x66 0x72
sp 0x73 0x70
de 0x64 0x65
urn:nfc:ext:M360:id
Uri Identifier Codes
None 0x00
http://www. 0x01
https://www. 0x02
http:// 0x03
https:// 0x04
tel: 0x05
mailto: 0x06
How to Build an NFC Application 26
27. Smart Poster NDEF Message
0 &HD1 209 0xD1 record header 12 17 &H77 119 0x77 w 29 34 &H54 84 0x54 T
1 &H2 2 0x02 type length 13 18 &H77 119 0x77 w 30 35 &H2 2 0x02 language lnght
2 &H28 40 0x28 length 14 19 &H77 119 0x77 w 31 36 &H65 101 0x65 e
3 &H53 83 0x53 S 15 20 &H2E 46 0x2E . 32 37 &H6E 110 0x6E n
4 &H70 112 0x70 p 16 21 &H6D 109 0x6D m 33 38 &H4D 77 0x4D M
0 5 &HD1 209 0xD1 record header 17 22 &H6F 111 0x6F o 34 39 &H6F 111 0x6F o
1 6 &H1 1 0x01 type length 18 23 &H62 98 0x62 b 35 40 &H62 98 0x62 b
2 7 &H16 22 0x16 length 19 24 &H69 105 0x69 i 36 41 &H69 105 0x69 i
3 8 &H55 85 0x55 U 20 25 &H74 116 0x74 t 37 42 &H74 116 0x74 t
4 9 &H0 0 0x00 prefix 21 26 &H61 97 0x61 a 38 43 &H61 97 0x61 a
5 10 &H68 104 0x68 h 22 27 &H6F 111 0x70 p 39 44 &H70 112 0x70 p
6 11 &H74 116 0x74 t 23 28 &H2E 46 0x2E . 40 45 &HFE 254 0xFE end
7 12 &H74 116 0x74 t 24 29 &H6D 109 0x6D m
8 13 &H70 112 0x70 p 25 30 &H65 101 0x65 e
9 14 &H3A 58 0x3A : 26 31 &HD1 209 0xD1 record header
10 15 &H2F 47 0x2F / 27 32 &H1 1 0x01 type length
11 16 &H2F 47 0x2F / 28 33 &HA 10 0x0A length
How to Build an NFC Application 27