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
P2P with PN532 and FTDI-cable
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: P2P with PN532 and FTDI-cable
we've never tried p2p - but you can check with libnfc if you can read a card. which PN532 breakout board are you using?
-
- Posts: 2
- Joined: Tue Apr 10, 2012 9:50 am
Re: P2P with PN532 and FTDI-cable
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
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
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: P2P with PN532 and FTDI-cable
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.
-
- Posts: 4
- Joined: Tue Aug 07, 2012 11:12 am
Re: P2P with PN532 and FTDI-cable
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.
- karl_nottkarl
- Posts: 20
- Joined: Wed Jan 16, 2013 2:19 pm
Re: P2P with PN532 and FTDI-cable
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.
Please be positive and constructive with your questions and comments.