P2P with PN532 and FTDI-cable

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
MrBucket
 
Posts: 2
Joined: Tue Apr 10, 2012 9:50 am

P2P with PN532 and FTDI-cable

Post by MrBucket »

Hi

I'm doing my master thesis and I'm trying to get an active p2p session going between a PN532 breakout board and an Galaxy Nexus.
The phone has Android 4 and the PN532 is connected to my laptop via a FTDI-cable (with UART selected).

I have tried with libnfc, libnfc-llcp and nfcpy but none seems to work.
nfcpy can't even find the reader.

When I run nfc-dep-initiator and nfc-dep-target on two PN532 boards the data is exchanged but the initiator prints "nfc_initiator_deselect_target: RF Transmission Error" at the end.

Is there something I missed, something wrong with my setup or is it at all possible?

ps. sorry for the vauge question. if you need anymore details just ask. ds.

best regards
//MrBucket

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: P2P with PN532 and FTDI-cable

Post by adafruit »

we've never tried p2p - but you can check with libnfc if you can read a card. which PN532 breakout board are you using?

MrBucket
 
Posts: 2
Joined: Tue Apr 10, 2012 9:50 am

Re: P2P with PN532 and FTDI-cable

Post by MrBucket »

I am using this breakout board
https://www.adafruit.com/products/364

And I can use libnfc to read a card.

~$ nfc-poll
nfc-poll uses libnfc 1.5.1 (r1318)
NFC reader: pn532_uart:/dev/ttyUSB0 - PN532 v1.6 (0x07) opened
NFC device will poll during 30000 ms (20 pollings of 300 ms for 5 modulations)
ISO/IEC 14443A (106 kbps) target:
ATQA (SENS_RES): 03 44
UID (NFCID1): 04 51 58 91 d1 1d 80
SAK (SEL_RES): 20
ATS: 75 77 81 02 80

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: P2P with PN532 and FTDI-cable

Post by adafruit »

if you can read a card, the chip and breakout is working perfectly so it is something else, software related, that is not working the way you expect.

gflarity
 
Posts: 4
Joined: Tue Aug 07, 2012 11:12 am

Re: P2P with PN532 and FTDI-cable

Post by gflarity »

I've been able to get PN532 breakout working with the nfcpy 'snep-test-server.py' example. But before nfcpy will work, I need to run a libnfc example like 'nfc-list' once first. Obviously some sort of init string isn't being sent by nfcpy. Looking into it.

User avatar
karl_nottkarl
 
Posts: 20
Joined: Wed Jan 16, 2013 2:19 pm

Re: P2P with PN532 and FTDI-cable

Post by karl_nottkarl »

I noticed the same. The initialization for the pn53x in nfcpy was missing a SAMConfiguration command. The author has fixed this in the latest version. My pn532 breakout is working fine now with nfcpy from an RPi, including beaming content to a Nexus 7.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”