Error accessing Xadow Nfc Tag - "Didn't find PN53x board"

Xadow series products.

Moderators: lily.li, violet, jessie, nosk

Post Reply
vanblerks
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Tue Dec 22, 2015 11:30 am

Error accessing Xadow Nfc Tag - "Didn't find PN53x board"

Post by vanblerks » Tue Dec 22, 2015 11:49 am

I'm trying to connect up xadow BLE and xadow NFC Tag module to my xadow main board. I'm able to view and read the BLE without issues, but cannot get the NFC Tag to function.

The Code I'm using is a modified version of the standard NDEF ReadTag with additional call to serial1 for BLE.
Config is arduino1.6.6, using seeeduino xadow board and USBtinyISP programmer.
NDEF, PN532 etc libraries are installed and the sketch compiles correctly and uploads to board.

#if 0
#include <SPI.h>
#include <PN532_SPI.h>
#include <PN532.h>
#include <NfcAdapter.h>

PN532_SPI pn532spi(SPI, 10);
NfcAdapter nfc = NfcAdapter(pn532spi);
#else

#include <Wire.h>
#include <PN532_I2C.h>
#include <PN532.h>
#include <NFCAdapter.h>

PN532_I2C pn532_i2c(Wire);
NfcAdapter nfc = NfcAdapter(pn532_i2c);
#endif



void setup(void) {

Serial.begin(9600);
Serial1.begin(9600);
while(!Serial.available());
// set slave
Serial1.print("AT+ROLE0");
Serial1.print("AT+PASS[00000]");
delay(10000);

}

void loop(void) {

Serial.println("\nScan a NFC tag\n");
if (nfc.tagPresent())
{
NfcTag tag = nfc.read();
tag.print();
}
delay(5000);
}

kavi
Staff
Staff
Posts: 305
Joined: Tue Dec 09, 2014 12:06 pm

Re: Error accessing Xadow Nfc Tag - "Didn't find PN53x board

Post by kavi » Tue Dec 29, 2015 4:00 pm

Hello,

Sorry for the delayed reply.

From your code we could find that you are using the wrong library.
The correct library is available in the following wiki page.

Thanks and Regards

Post Reply