hedrinbc@flickr
https://www.flickr.com/photos/24842634@N04/

[M2M]Raspberry PiでNFCを試してみる

[M2M]Raspberry PiでNFCを試してみるBazaarからPythonベースのNFCモジュールnfcpyをインストールする。Bazaarはじめてつかってみる (๑˃̵ᴗ˂̵)و ヨシ!

用意したもの

yum info bzr
Loaded plugins: langpacks, refresh-packagekit
Installed Packages
Name        : bzr
Arch        : armv6hl
Version     : 2.6.0
Release     : 2.fc20
Size        : 29 M
Repo        : installed
From repo   : pidora
Summary     : Friendly distributed version control system
URL         : http://www.bazaar-vcs.org/
License     : GPLv2+
Description : Bazaar is a distributed revision control system that is powerful, friendly,
            : and scalable.  It is the successor of Baz-1.x which, in turn, was
            : a user-friendly reimplementation of GNU Arch.

yum info pyusb    
Loaded plugins: langpacks, refresh-packagekit
Installed Packages
Name        : pyusb
Arch        : noarch
Version     : 1.0.0
Release     : 0.7.a3.fc20
Size        : 311 k
Repo        : installed
From repo   : pidora
Summary     : Python bindings for libusb
URL         : http://pyusb.sourceforge.net/
License     : BSD
Description : PyUSB provides easy USB access to python. The module contains classes and
            : methods to support most USB operations.

sudo yum install -y bzr pyusb
mkdir Documents/nfc
cd Documents/nfc
bzr branch lp:nfcpy
sudo python nfcpy/examples/tagtool.py show
[nfc.clf] searching for reader with path 'usb'
[nfc.clf] using SONY RC-S380/P at usb:001:009
[main] touch a tag
// NFCリーダーにスイカをタッチする
Type3Tag IDm=010104xxxxxxxxxx PMm=04014bxxxxxxxxxx SYS=000x

参考サイトさま:

 

About the author
  • コメントを残す