News and announcements

New stable release of nfcpy - 0.10.0

Written for nfcpy by Stephen Tiedemann on 2015-07-27

The new stable release starts the 0.10 series with increased support for NFC tags and a lot of internal updates geared towards future enhancements. The most visible change is probably that many tags are now known by product and can be formatted (for NDEF), made read-only or protected with a password (for tags that have such functionality). The example supports those new functions from the command line and, for password protection, also does key diversification of a master secret. Other enhancements are that Type 4B Tags are now finally supported, Type 1 Tags can be read with chips that would not normally support it (PN532/533) and the serial connection with a PN532 is run at 921.6 kbaud (Unfortunately the RasPi serial port only goes up to 112.6 unless the serial clock is changed. But with an FTDI it works pretty well).

A major update for nfcpy

Written for nfcpy by Stephen Tiedemann on 2013-07-08

A lot of things have changed and improved with the recent merge of the dev-phdc branch into trunk. Triggered by the wish to support the Sony RC-S380 certified reader and have tag emulation to fully implement NFC Forum PHDC (which is the Personal Health Device Communication specification), this work had the side effect of some general cleanup and improvements. Below is a list of things that have changed along from the new PHDC implementation.

- The driver API needed to change in order to support tag emulation, as possible now with the RC-S380 reader.
- The main application interface is now consolidated into the single method ContactlessFrontend.connect().
- Applications interface with connect through a set of callbacks, rather than combining different calls as before.
- All example programs are now based on the same command line interface code in and share the common options.
- The code in implements a common test framework so applications can concentrate on the test implementation.
- Much of the exception handling up and down the stack is improved and shows more robustness.
- A lot of unittests have been added as well as an NFC Forum DTA for the P2P tests (though still a bit left do)
- The ipsim driver used during the early days of LLCP implementation is replaced by a cleaner and better udp driver.
- Support for libusb-1.0 and pyusb-1.0 finally made it into nfcpy, which can now work with either the old or new version.

As popularized by Google some (late) spring cleaning has also happened:

- Implementation of the Google NDEF Push Protocol (NPP) is gone. Android supports NFC Forum SNEP and it's time to move on.
- The example code for D-Bus integration is gone. There is now official NFC support in Linux and that'll do the job better.

I'm afraid that all existing code built on nfcpy will initially be broken. However it will be fairly easy to adapt to
the new API and mostly be a matter of removing code that has become unnecessary, like running the poll-listen cycle.
Althoug still not complete, the documentation has seen quite a few improvements and especially the "getting started"
tutorial should help the transition.

Connection handover client with test suite

Written for nfcpy by Stephen Tiedemann on 2012-10-12

The examples/ program is a ready-to-use command line program with a current suite of 8 different tests to validate a dynamic connection handover server (selector) implementation. Documentation of the test suite and command line parameters can be found at

Updated on 2012-10-12.

Connection Handover test tool

Written for nfcpy by Stephen Tiedemann on 2012-09-25

The new in the examples section provides an easy way to run a handover server with a highly flexible list of selectable carriers - from the autodiscovered local Bluetooth adapter (only Linux) to whatever selection of crafted valid or invalid carriers. And it's actually also possible to just use to get smartphone images to the laptop/desktop by "simply touch" (tested on Ubuntu with gnome-file-share-properties Bluetooth receive enabled).

New tool for parsing and generating NDEF

Written for nfcpy by Stephen Tiedemann on 2012-09-04

The new examples/ provides a command line interface for dealing with NDEF data. Various NDEF messages can be generated and the list will certainly grow further. Want to pack an image into NDEF format? Just say "ndeftool pack <filename>".

15 of 12 results