Code Monkey home page Code Monkey logo

nfc-rw's Introduction

nfc-rw

A simple NFC tag reader/writer in Python.

Tested with the SONY RC-S380 NFC reader/writer.

Requirement

You will need:

  • SONY RC-S380 NFC reader/writer
  • Python 2.7
  • The nfc library
  • The ndef library

Installation

Step one: There are two libraries you'll need to install using pip.

pip install nfcpy
pip install ndeflib

Step Two: Then simply clone the repository.

git clone https://github.com/bill-feng/nfc-rw.git

Run

python nfc-rw.py

Usage

  1. Plug in the RC-S380 into your usb port
  2. Run the script
  3. Place NFC tag on the RC-S380
  4. Choose action by typing a letter and pressing enter
  5. When you're done, eject the tag
  6. Remove tag from the RC-S380
  7. Contorl + c to end script or place another tag on the device to continue

Actions

key name action
d Dump Dumps the raw data stored in the tag to console without any formatting
e Eject Lets the script know you want to remove the tag before doing so
f Format Overwrites all the data stored in the tag with 0s
i Identify Logs the tag type and product name to console
r Read Prints formatted records stored in the tag to console
w Write Writes the text inside payload.txt as a text record to tag

nfc-rw's People

Stargazers

 avatar

Forkers

simrit1 wufdev

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.