NFCpy: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Bibliothèque Python pour la NFC http://nfcpy.readthedocs.org/en/latest/overview.html ==Exemples== * examples/tagtool.py Read or write or format tags for NDEF use. * exam...") |
No edit summary |
||
| Line 11: | Line 11: | ||
<pre> |
<pre> |
||
~/dev/nfcpy/nfcpy$ lsusb |
|||
Bus 002 Device 003: ID 04e6:5591 SCM Microsystems, Inc. |
|||
~/dev/nfcpy/nfcpy$ python examples/tagtool.py show |
~/dev/nfcpy/nfcpy$ python examples/tagtool.py show |
||
| Line 29: | Line 31: | ||
name = '' |
name = '' |
||
data = '\x03nfc.intel-software-academic-program.com' |
data = '\x03nfc.intel-software-academic-program.com' |
||
~/dev/nfcpy/nfcpy$ python examples/tagtool.py dump |
~/dev/nfcpy/nfcpy$ python examples/tagtool.py dump |
||
Revision as of 00:27, 14 March 2014
Bibliothèque Python pour la NFC
http://nfcpy.readthedocs.org/en/latest/overview.html
Exemples
- examples/tagtool.py Read or write or format tags for NDEF use.
- examples/ndeftool.py Generate or inspect or reorganize NDEF data.
- examples/beam.py Exchange NDEF data with a smartphone.
~/dev/nfcpy/nfcpy$ lsusb Bus 002 Device 003: ID 04e6:5591 SCM Microsystems, Inc. ~/dev/nfcpy/nfcpy$ python examples/tagtool.py show [nfc.clf] searching for reader with path 'usb' [nfc.clf] using SCM Micro SCL3711-NFC&RW at usb:002:003 [main] touch a tag [nfc.dev] Driver.set_communication_mode() should be implemented. Type2Tag ATQ=4400 SAK=00 UID=040a82da4b2881 NDEF capabilities: version = 1.0 readable = yes writeable = yes capacity = 135 byte message = 44 byte NDEF record list: record 1 type = 'urn:nfc:wkt:U' name = '' data = '\x03nfc.intel-software-academic-program.com' ~/dev/nfcpy/nfcpy$ python examples/tagtool.py dump [nfc.clf] searching for reader with path 'usb' [nfc.clf] using SCM Micro SCL3711-NFC&RW at usb:002:003 [main] touch a tag [nfc.dev] Driver.set_communication_mode() should be implemented. d1012855036e66632e696e74656c2d736f6674776172652d61636164656d69632d70726f6772616d2e636f6d