Home Page Icon
Home Page
Table of Contents for
Dedication
Close
Dedication
by Brian Jepson, Don Coleman, Tom Igoe
Beginning NFC
Dedication
1. Introduction
Who This Book Is For
Recommended Reading
What’s Covered in This Book
What You’ll Need
Hardware
Software
Other Useful NFC Apps
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
Acknowledgments
2. NFC and RFID
What’s RFID?
What’s NFC?
How RFID Operates
RFID Standards
How NFC Operates
NFC Data Exchange Format (NDEF)
The Architecture of NFC
NFC Tag Types
Where to Get Tags
Device-to-Tag Type Matching
What You Can Do with NFC
Conclusion
3. Getting Started with PhoneGap and the PhoneGap-NFC Library
Why Android?
Hello, World! Your First PhoneGap App
Setting Up the Development Environment
Install the Android Platform Tools
Install Node.js and npm
Install Cordova CLI for PhoneGap
Creating a PhoneGap Project
The Important Files
A Simple Locator App
PhoneGap Meets NFC: NFC Reader
Installing the NFC Plug-In
Writing the NFC Reader App
Troubleshooting
Conclusion
4. Introducing NDEF
NDEF Structure
Type Name Format
Payload Type
URIs in NDEF Messaging
Payload Identifier
Payload
Record Layout
Record Header
How Big Can an NDEF Message Be?
Record Chunking
Additional Info
NDEF in Practice
A Tag Writer Application: Foursquare Check-In
Writing an NDEF Record to a Tag
Writing Different Record Types
PhoneGap-NFC NDEF Helper Functions, Summarized
Conclusion
5. Listening for NDEF Messages
PhoneGap-NFC’s Event Listeners
An NDEF Reader Application
Listening for Multiple Events
Reading the NDEF Messages
Filtering Tags Using Record Types
Filtering Using MIME-Types
Android’s Tag Dispatch System
Types of Intents
Android Application Records
Conclusion
6. An NFC Application in Practice
The User Interaction
Getting to Know Hue, Getting to Know All About Hue
The Hue Data Format
The Hue’s REST API
The Android Shell
The PhoneGap Media API
The User Interface
The Application Code
Housekeeping Functions
Global Event Handlers
Hub Communication Functions
Lighting User Interface Event Handlers
Music User Interface Event Handlers
NFC Event Handlers
Enabling Background Dispatch
Conclusion
7. Introduction to Arduino and NFC
Digital Meets Physical: Arduino
The Hardware Heart of NFC
The Arduino Development Environment
Serial Communication
Installing Arduino Libraries
The Arduino NDEF Library
Reading NDEF in Arduino
Writing NDEF in Arduino
A Microcontroller NFC Application: Hotel Key Cards
The Interaction and Data Format
The Arduino NDEF Writer Device
The Arduino NDEF Reader and Door Lock Device
A Browser Interface for the Arduino NDEF Writer Device
Node.js Application Specification: package.json
The Client-Side Code
The Server-Side Code
Conclusion
8. Peer-to-Peer Exchange
Sending Peer-to-Peer Messages in PhoneGap
Receiving Peer-to-Peer Messages in PhoneGap
Handover
Static Handover
Sending Handover Messages in PhoneGap
Peer-to-Peer Using Arduino
Card Emulation
Conclusion
9. NFC on Embedded Systems
Introduction to Embedded Linux Devices and Package Managers
Network, USB, and NFC
NFC on Embedded Linux: The Overview
Housekeeping Details
Get Comfortable with Your Editing Workflow
Know Your Package Manager
Set the Date and Time
Make a Downloads Directory
BeagleBone Peculiarities
Raspberry Pi Peculiarities
Installing Node.js on the Raspberry Pi
Installing the Tools for NFC
Installing the Libusb Compatibility Library
Installing libnfc
Raspberry Pi
BeagleBone Black
Testing the Installation on Raspberry Pi or BeagleBone
Installing libfreefare
Libnfc and Libfreefare Command Line Tools
NDEF Reading and Writing in Node.js
Web Interface for Tag Writer
Tags Controlling Physical Output
BeagleBone Version
Raspberry Pi Version
Conclusion
A. NFC Specification Codes
Index
Colophon
Copyright
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Beginning NFC
Next
Next Chapter
1. Introduction
Dedication
This book is dedicated to Red Burns.
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset