1 (edited by torfun 2014-02-15 18:57:16)

Topic: How to connect a PN532 NFC Modul to an Arduino to use libnfc with it?

Re: How to connect a PN532 NFC Modul to an Arduino to use libnfc with it?

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 false
debug    libnfc.general    1 device(s) defined by user
debug    libnfc.general      #0 name: "NFC Reader", connstring: "pn532_uart:/dev/ttyACM0:921600"
/root/Desktop/nfc/libnfc/utils/.libs/lt-nfc-list uses libnfc libnfc-1.7.0-90-g415ad7c
debug    libnfc.general    0 device(s) found using acr122_usb driver
debug    libnfc.general    0 device(s) found using pn53x_usb driver
debug    libnfc.driver.pn532_uart    Attempt to open: /dev/ttyACM0 at 921600 bauds.
debug    libnfc.bus.uart    Serial port speed requested to be set to 921600 bauds.
debug    libnfc.chip.pn53x    Diagnose
debug    libnfc.chip.pn53x    Timeout value: 500
debug    libnfc.bus.uart    TX: 55 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
debug    libnfc.chip.pn53x    SAMConfiguration
debug    libnfc.chip.pn53x    Timeout value: 1000
debug    libnfc.bus.uart    TX: 00 00 ff 03 fd d4 14 01 17 00 
debug    libnfc.bus.uart    Timeout!
debug    libnfc.driver.pn532_uart    Unable to read ACK
error    libnfc.driver.pn532_uart    pn53x_check_communication error
debug    libnfc.chip.pn53x    InRelease
debug    libnfc.bus.uart    TX: 00 00 ff 03 fd d4 52 00 da 00 
debug    libnfc.bus.uart    Timeout!
debug    libnfc.driver.pn532_uart    Unable to read ACK
debug    libnfc.general    Unable to open "pn532_uart:/dev/ttyACM0:921600".
lt-nfc-list: ERROR: Unable to open NFC device: pn532_uart:/dev/ttyACM0:921600

3 (edited by torfun 2014-02-15 20:30:53)

Re: How to connect a PN532 NFC Modul to an Arduino to use libnfc with it?

int
pn532_uart_wakeup(nfc_device *pnd)
{
  /* High Speed Unit (HSU) wake up consist to send 0x55 and wait a "long" delay for PN532 being wakeup. */
  const uint8_t pn532_wakeup_preamble[] = { 0x55, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  int res = uart_send(DRIVER_DATA(pnd)->port, pn532_wakeup_preamble, sizeof(pn532_wakeup_preamble), 0);
  CHIP_DATA(pnd)->power_mode = NORMAL; // PN532 should now be awake
  sleep(4); // add
  return res;
}

Re: How to connect a PN532 NFC Modul to an Arduino to use libnfc with it?

Re: How to connect a PN532 NFC Modul to an Arduino to use libnfc with it?

hi phil,

the wiki is a nice idea. But first i need a solution for "make install".

Torfun