Hi Frank,
Error code "-5" relates to generic errno definition EIO (I/O error). Refer to errno.h - C Error Codes in Linux for more details.
Looking to the pn5xx_i2c module implementation (nxp-pn5xx/pn5xx_i2c.c at master · NXPNFCLinux/nxp-pn5xx · GitHub ), this error code is raised by the kernel I2C driver (i2c_master_send).
In a specific case, the PN7120 is not answering to I2C write command: when it is in standby state. This is expected behavior, first write command waking-up the PN7120 and second one will be answered. The MW stack (Linux or Android stack) is managing the re-transmission of the frame to handle this case.
Hope that helps,
Have a great day,
Kan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------