Hello everyone,
I'm new to programming RFID modules, and I'm currently working with the PN7160 module. I've been searching for information on how to communicate with this module via I2C, but I've found very little documentation and examples for Arduino or other microcontrollers.
My question is whether anyone knows of a specific library that is compatible with the PN7160 module and facilitates communication via I2C. If anyone has previous experience with this module or can provide some guidance on how to approach I2C communication with it, it would be greatly appreciated.
Additionally, I wonder if it's possible to use a library designed for the PN532 module instead of one specifically for the PN7160 since I've seen more resources available for the PN532. Has anyone tried this before?
I appreciate any advice, information, or resources you can provide. Thank you very much for your time and assistance!
Best regards, Lucas López.
解決済! 解決策の投稿を見る。
hi lucas
you reach to solution in arduino
i face same problem?
Hello, good evening.
I hope you are all doing well. I've been diligently working on adapting the MCUExpresso system to my Microchip Studio project, and for the most part, things are going smoothly. However, I've encountered a particular issue that's been causing some headaches.
The problem centers around the #include "Nfc.h" directive within the Portable\RFID\NciNxp20.c file. It seems that this inclusion is triggering a cascade of errors that I can't seem to resolve.
Moreover, I've noticed that I'm getting a couple of linkage errors that are puzzling me. From what I can tell, the source files and libraries are correctly configured, so these errors shouldn't be occurring.
I plan to attach the relevant portions of the code I'm currently using to provide more context and hopefully identify the root of the issue. If anyone could offer me some assistance or guidance in this case, I would greatly appreciate it.
Hello Lucas,
Hope you are doing well. You could check the NXP-NCI2.0 MCUXpresso examples guide.
There you can find the available MCUXpresso examples with different microcontrollers, and the NFC functionalities for these demos.
Hope this helps!
Regards,
Ricardo
Hello,
Porting to third party MCU is out of the scope of our technical support.
But, you could check this documentation, that might be helpful:
Regards,
Ricardo
Based on the information provided, there doesn't seem to be a specific Arduino library for the PN7160 module. However, you can still communicate with the module via I2C by writing your own functions, as demonstrated in the code snippet you provided.
As for using a library designed for the PN532 module, it's important to note that while both modules are NFC controllers, they may have different register maps and command sets. Therefore, a library designed for the PN532 might not work correctly with the PN7160. It's recommended to refer to the PN7160's data sheet and application notes for detailed information on how to interface with the device.
Here is a simple example of how you might write to the PN7160 using I2C:
void write_to_pn7160(unsigned char *buffer_write, unsigned char num_bytes){ unsigned char buffer_write_nfc [9] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; // Your code here to write to the PN7160 }
Remember to replace '// Your code here to write to the PN7160' with the actual I2C write function for your microcontroller.