Git Product home page Git Product logo

nfctools-examples's Introduction

== Examples for the NFC Tools for Java ==

This repository contains some examples for the NFCTools for Java:
https://github.com/grundid/nfctools

== Download compiled JAR file ==

Your can download all examples together with the dependencies as a JAR file from this URL:
https://github.com/grundid/nfctools-examples/releases

To launch the demos execute the following commands. To end a demo press CTRL-C at any time.

Host-based Card Emulation demo:

java -cp nfctools-examples.jar org.nfctools.examples.hce.HceDemo

SnepDemo demo:

java -cp nfctools-examples.jar org.nfctools.examples.snep.SnepDemo -url <url-to-send> -target -terminal <terminalname>

-target : activates target mode, please use it with Android 4.1
-terminal : pass a string as terminal name if you have several NFC devices connected

LlcpDemo demo:

java -cp nfctools-examples.jar org.nfctools.examples.llcp.LlcpDemo


LlcpService demo (old):

java -cp nfctools-examples.jar org.nfctools.examples.llcp.LlcpService

NdefReaderDemo:
java -cp nfctools-examples.jar org.nfctools.examples.ndefreader.NdefReaderDemo

ClearCardDemo:

java -cp nfctools-examples.jar org.nfctools.examples.clearcard.ClearCardDemo

ScanWholeCardDemo

java -cp nfctools-examples.jar org.nfctools.examples.scancard.ScanWholeCardDemo

== Demo descriptions ==

ClearCardDemo will try to delete all data on a Mifare Classic card and put the card back into transport mode. It will
use some known keys to access the sectors.

NdefReaderDemo reads an NDEF message from a Mifare Classic card and shows it in the log.

NdefWriterDemo writes an NDEF message on a Mifare Classic card.

ScanWholeCardDemo scans the whole Mifare Classic card and shows the contents in the log.

LlcpService demonstrates a P2P connection with an Android phone. It will receive any Android Beam and NDEF Push
messages and show them in the log.
With Android 2.3 and 4.1 please set initiatorMode to false, with Android 4.0 it works best in initiatorMode set to true.


nfctools-examples's People

Contributors

grundid avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.