1 (edited by cesar__magno 2016-03-10 15:56:44)

Topic: Adafruit PN532 Shield whith SparkFun FTDI FT232RL USB Basic Breakout

i'm using libnfc 1.7.0
when I put nfc-poll -v he tells me:

error libnfc.driver.pn532_uart    invalid serial  port: /dev/ttyUSB0
ERROR: Unable to open NFC device.

/etc/nfc/libnfc.conf

# Allow device auto-detection (default: true)
# Note: if this auto-detection is disabled, user has to set manually a device
# configuration using file or environment variable
allow_autoscan = true

# Allow intrusive auto-detection (default: false)
# Warning: intrusive auto-detection can seriously disturb other devices
# This option is not recommended, user should prefer to add manually his device.
allow_intrusive_scan = true

# Set log level (default: error)
# Valid log levels are (in order of verbosity): 0 (none), 1 (error), 2 (info), 3 (debug)
# Note: if you compiled with --enable-debug option, the default log level is "debug"
log_level = 1

# Manually set default device (no default)
# To set a default device, you must set both name and connstring for your device
# Note: if autoscan is enabled, default device will be the first device available in device list.
#device.name = "microBuilder.eu"
#device.connstring = "pn532_uart:/dev/ttyUSB0"

/etc/nfc/devices.d/pn532_via_uart2usb.conf

##Typical configuration file for PN532 board (ie.microbuilder.eu / Adafruit)device
name= "Adafruit PN532 board via UART"
connstring = pn532_uart
allow_intrusive_scan = true
log_level = 3

when i use:  ubuntu:~$ LIBNFC_LOG_LEVEL=3 nfc-list

debug    libnfc.config    key: [allow_autoscan], value: [true]
debug    libnfc.config    key: [allow_intrusive_scan], value: [true]
debug    libnfc.config    key: [log_level], value: [3]
debug    libnfc.config    key: [device.name], value: [Adafruit PN532 board via UART]
debug    libnfc.config    key: [device.connstring], value: [pn532_uart]
debug    libnfc.config    key: [device.allow_intrusive_scan], value: [true]
info    libnfc.config    Unknown key in config line: device.allow_intrusive_scan = true
debug    libnfc.config    key: [device.log_level], value: [3]
info    libnfc.config    Unknown key in config line: device.log_level = 3
debug    libnfc.general    log_level is set to 3
debug    libnfc.general    allow_autoscan is set to true
debug    libnfc.general    allow_intrusive_scan is set to true
debug    libnfc.general    1 device(s) defined by user
debug    libnfc.general      #0 name: "Adafruit PN532 board via UART", connstring: "pn532_uart"
nfc-list uses libnfc 1.7.0
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyUSB0 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS31 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS30 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS29 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS28 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS27 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS26 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS25 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS24 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS23 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS22 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS21 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS20 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS19 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS18 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS17 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS16 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS15 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS14 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS13 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS12 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS11 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS10 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS9 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS8 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS7 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS6 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS5 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS4 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS3 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS2 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS1 at 115200 bauds.
debug    libnfc.driver.pn532_uart    Trying to find PN532 device on serial port: /dev/ttyS0 at 115200 bauds.
debug    libnfc.general    0 device(s) found using pn532_uart driver
debug    libnfc.general    Unable to open "pn532_uart".
nfc-list: ERROR: Unable to open NFC device: pn532_uart

ubuntu:~$ nfc-scan-device

nfc-scan-device uses libnfc 1.7.0
1 NFC device(s) found:
nfc_open failed for pn532_uart