NFC/en: различия между версиями

Новая страница: «====C/C++==== Examples of working with libnfc in utilities provided with libnfc: http://code.google.com/p/libnfc/source/browse/#git%2Fexamples»
(Новая страница: «== Software == The chip is supported by the library [http://nfc-tools.org/index.php?title=Libnfc libnfc], starting with release 1.7.0. Backport to Debian Wheezy:…»)
(Новая страница: «====C/C++==== Examples of working with libnfc in utilities provided with libnfc: http://code.google.com/p/libnfc/source/browse/#git%2Fexamples»)
 
(не показано 5 промежуточных версий этого же участника)
Строка 9: Строка 9:
Backport to Debian Wheezy: [https://github.com/contactless/wirenboard/tree/master/contrib/libnfc], by default in a standard way.
Backport to Debian Wheezy: [https://github.com/contactless/wirenboard/tree/master/contrib/libnfc], by default in a standard way.


Работа производится через spidev в userspace. По-умолчанию при использовании стандартного dts файла используется устройство /dev/spidev1.4.
Work is done in userspace using spidev. By default when using the default dts file using device /dev/spidev1.4.
Конфиг по-умолчанию: [https://github.com/contactless/wirenboard/blob/master/rootfs/configs/etc/nfc/libnfc.conf].
Default config: [https://github.com/contactless/wirenboard/blob/master/rootfs/configs/etc/nfc/libnfc.conf].






===Примеры===
=== Examples ===


====Список карточек в области видимости====
====The list of cards in the scope area====
<pre>
<pre>
root@wirenboard:~# nfc-list  
root@wirenboard:~# nfc-list  
Строка 29: Строка 29:
</pre>
</pre>


====Чтение Mifare Ultralight====
====Reading Mifare Ultralight====
Одноразовые билеты московского метро - карточки Mifare UL.
One-time tickets of the Moscow metro -Mifare UL cards.
<pre>
<pre>
root@wirenboard:~# nfc-mfultralight r dump.mfd
root@wirenboard:~# nfc-mfultralight r dump.mfd
Строка 41: Строка 41:


====Python====
====Python====
Для работы с NFC из Python необходимо использовать биндинги для libnfc. См. пример https://github.com/contactless/wirenboard/tree/master/examples/nfc/python на гитхабе.
To work with NFC from Python, you need to use bindings for libnfc. See example https://github.com/contactless/wirenboard/tree/master/examples/nfc/python on github.


====C/C++====
====C/C++====
Примеры работы с libnfc в утилитах, поставляемых с libnfc: http://code.google.com/p/libnfc/source/browse/#git%2Fexamples
Examples of working with libnfc in utilities provided with libnfc: http://code.google.com/p/libnfc/source/browse/#git%2Fexamples
12 063

правки