Memorial day is 05/25/2015 – Orders will ship out on May 26th. There will not be any deliveries or shipping on Monday. Any order placed after 11am ET on Friday May 22nd will not start to ship out until Tuesday May 26th.

P2P with PN532 and FTDI-cable
Moderators: adafruit_support_bill, adafruit

P2P with PN532 and FTDI-cable

by MrBucket on Tue Apr 10, 2012 10:25 am

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
MrBucket
 
Posts: 2
Joined: Tue Apr 10, 2012 9:50 am

Re: P2P with PN532 and FTDI-cable

by adafruit on Tue Apr 10, 2012 10:41 am

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

adafruit
 
Posts: 11905
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: P2P with PN532 and FTDI-cable

by MrBucket on Wed Apr 11, 2012 3:45 am

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
MrBucket
 
Posts: 2
Joined: Tue Apr 10, 2012 9:50 am

Re: P2P with PN532 and FTDI-cable

by adafruit on Wed Apr 11, 2012 2:47 pm

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.

adafruit
 
Posts: 11905
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: P2P with PN532 and FTDI-cable

by gflarity on Mon Dec 03, 2012 3:41 pm

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.
gflarity
 
Posts: 4
Joined: Tue Aug 07, 2012 11:12 am

Re: P2P with PN532 and FTDI-cable

by karl_34 on Sun Oct 27, 2013 10:30 am

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.
karl_34
 
Posts: 20
Joined: Wed Jan 16, 2013 2:19 pm