Does nfcpy supports I2C?

Asked by Juan Trujillo

I have used nfcpy with a pn532 via UART and it works fine. Now I got a smaller NFC board that works using I2C and I wanted to know if nfcpy supports it?

For the UART solution I have used clf = nfc.ContactlessFrontend('tty:AMA0:pn53x').

For the I2C, is it just a matter of changing the "tty" parameter?

Thanks,

-Juan

Question information

Language:
English Edit question
Status:
Expired
For:
nfcpy Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Stephen Tiedemann (stephen-tiedemann) said :
#1

No, I2C is not yet supported in baseline trunk. There is a development branch lp:~webreg-fd/nfcpy/dev-rcs967 that connects a Sony Link chip via I2C but it probably won't help in your case. Some time after the summer break I plan to integrate the Link chip and there would then be at least some general I2C support.

Revision history for this message
Stephen Tiedemann (stephen-tiedemann) said :
#2

Btw, you need to change 'tty:AMA0:pn53x' to 'tty:AMA0:pn532' for a trunk or 0.10.x version. Or you can leave out the <port> and/or <driver> parts, nfcpy now can discover them (though not recommendable if there is other stuff connected at serial ports).

Revision history for this message
Juan Trujillo (juancarlos-trujillo) said :
#3

Thank you. Looking forward for the I2C support!!! I'll fix "pn53x" as suggested. Thanks again.

Revision history for this message
Juan Trujillo (juancarlos-trujillo) said :
#4

What about SPI? I'm trying to use the ITEAD PN532 board that supports i2c, SPI and UART but unfortunately I haven't been able to make it work with UART. I have used Adafruit before without problems. Not sure what I'm missing on my configuration with the ITEAD board.

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.