nfc-toolsのlibnfc-llcpを試しているのだが、うまくいかん。
とりあえずログを出したい。
いろいろと参考にしながら、まずはlibnfcのデバッグ出力を。
の前に、log4cのインストール。
$ sudo apt-get install liblog4c-dev
libnfcのデバッグ出力
$ ./configure --with-drivers='pn532_uart,pn53x_usb' --enable-serial-autoprobe --enable-debug
$ make clean all
$ sudo make install
libnfc-llcpの方も同じく
$ ./configure --enable-debug
log4crc(CRC、ではなく、log4cのRC)を準備。
libnfcのtrunkに入っているものを使う。
$ cp log4crc ~/.log4crc
この設定でいけると思ったのだが・・・。
[stdout] ERROR libnfc.driver.pn53x_usb - Application level error detected
こんな感じで、libnfcの方しか出てこん。
config.hを見ても、LOG4Cは有効になってるんだけどなあ。