Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.
/ nfc-rw Public archive

A simple NFC tag reader/writer in Python.

Notifications You must be signed in to change notification settings

billfeng/nfc-rw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages