Sign inSign up

warapy/nfcpy-tagtool

By warapy

•Updated over 8 years ago

run tagtool.py

Image
0

286

warapy/nfcpy-tagtool repository overview

tagtool.py⁠ is a example program for nfcpy⁠

⁠manually add NFC device

find NFC device by using lsusb and add that device to the container with --device= option:

$ lsusb

...
Bus 001 Device 010: ID 054c:06c3 Sony Corp. 
...

$ docker run --device=/dev/bus/usb/001/010 --rm warapy/nfcpy-tagtool show
[nfc.clf] searching for reader on path usb
[nfc.clf] using SONY RC-S380/P NFC Port-100 v1.11 at usb:001:010
** waiting for a tag **

⁠use script to automatically find a NFC device

next script automatically finds the NFC device SONY RC-S380/P and runs container:

#!/bin/bash
vendor=054c:06c3
devices=$(lsusb -d $vendor | sed -e 's|Bus \(...\) Device \(...\).*|--device=/dev/bus/usb/\1/\2|')

docker run $devices --rm warapy/nfcpy-tagtool $@

save that script as taglool.bash and run as

$ ./tagtool.bash show

Tag summary

Content type

Image

Digest

Size

30.5 MB

Last updated

over 8 years ago

docker pull warapy/nfcpy-tagtool