I'm using Libnfc 1.7.1 on a Raspberry PI. I'm connecting to a NXP PN532 chip via I2C and configured the connstring (pn532_i2c:/dev/i2c-1) in the Libnfc config file accordingly.
So far, everything is working completely fine. Since every single PN532 chip has the same I2C address (0x24), I want to use a I2C Multiplexer in order to attach two or more PN532 chips to the RPI I2C Bus.
Now I have to poll data from every single NFC reader. In order to do that, I need to specify the I2C address somewhere using Libnfc. How do I manage to specify the exact I2C device address to poll data from using Libnfc? I searched on the Internet and did not find any hints on how do to this.
If it is not possible, what alternatives do you see to accomplish this task?
Thanks in advance :)
I found out that The address is hardcoded in libnfc/drivers/pn532_i2c.c
//I2C address of the PN532 chip. #define PN532_I2C_ADDR 0x24