I got my OM5578 eval working with an Arduino and Ntag cards. Now I want to add ISO15693 cards but I am somehow stuck. I am using this library: GitHub - ThomasBuhot/arduino-nfc: Near Field Communication (NFC) library for Arduino
I extended the discover map and discover command:
NCI_MSG_RF_DISCOVER_MAP:
TX: 0x21 0x0 0xD 0x4 0x6 0x1 0x1 0x3 0x1 0x1 0x2 0x1 0x1 0x1 0x1 0x1
RX: 0x41 0x0 0x1
NCI_MSG_RF_DISCOVER:
TX: 0x21 0x3 0x7 0x3 0x6 0x1 0x2 0x1 0x0 0x1
RX: 0x41 0x3 0x1
but after that I get:
NCI_RX: 0x536872312[3]: 0x60 0x7 0x1
NCI_RX: 0x536872315[1]: 0xA1
NCI error: unhandled core notification event oid = 7
Any ideas what this response means?
There is issue in the response to the discover map and discover command, the message length is expected to be 4 but you just got 3. Why don't you use the lib from https://www.nxp.com/webapp/Download?colCode=SW4325&appType=license&location=null ? It also supports Arduino platform.
Have a great day,
Kan
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Thanks for your reply. It took me some time to port the library to work with Arduino but finally I got it compiling.
Now I get an error when it calls configure core conf NCI. My output is as follows:
NCI >> 20 00 01 01
NCI << 40 00 03 00 11 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 01 00 00 00 20 22 00 20 00 00 00 00 00 00 00 00 00 00 00 00 ab 73 05 08 20 22 00 20 78 3a 00 20 00 00 00 00 73 75 05 08 20 22 00 20 00 00 00 00 00 00 00 00 00 00 00 00 20 22 00 20 78 3a 00 20 68 57 00 20 ec e5 01 20 d4 e5 01 20 f8 57 00 20 fe f3 10 32 81 76 05 08 00 00 00 00 90 00 00 00 70 57 00 20 17 21 05 08 c8 00 00 00 48 e1 01 20 e8 03 00 00 2d 10 00 00 ff 30 3f 00 c6 00 00 00 01 00 00 00 00 10
NCI >> 20 01 00
NCI << 40 01 19 00 11 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 01 00 00 00 20 22 00 20 00 00 00 00 00 00 00 00 00 00 00 00 ab 73 05 08 20 22 00 20 78 3a 00 20 00 00 00 00 73 75 05 08 20 22 00 20 00 00 00 00 00 00 00 00 00 00 00 00 20 22 00 20 78 3a 00 20 68 57 00 20 ec e5 01 20 d4 e5 01 20 f8 57 00 20 fe f3 10 32 81 76 05 08 00 00 00 00 90 00 00 00 70 57 00 20 17 21 05 08 c8 00 00 00 48 e1 01 20 e8 03 00 00 2d 10 00 00 ff 30 3f 00 c6 00 00 00 01 00 00 00 00 10
Successfully connected to NXPNCI device
NCI >> 20 02 05 01 00 02 00 01
NCI << 03 1e 03
Error: cannot configure NXPNCI settings
Hi Tom,
There are too many ff during the communication. I think it is software issue, please use libnfc_nci stack from our web with OM5578. The NCI communication should be like below:
Running the NXP-NCI project.
NCI >> 20 00 01 01
NCI << 40 00 03 00 11 01
NCI >> 20 01 00
NCI << 40 01 19 00 03 1e 03 00 08 00 01 02 03 80 81 82 83 02 d0 02 ff 02 00 04 88 10 01 a0
NCI >> 20 02 05 01 00 02 00 01
NCI << 40 02 02 00 00
NCI >> 2f 00 01 01
NCI << 4f 00 01 00
NCI >> 20 03 03 01 a0 14
NCI << 40 03 25 00 01 a0 14 20 57 65 64 20 53 65 70 20 30 34 20 31 30 3a 35 33 3a 31 32 20 32 30 ...
NCI >> 20 00 01 00
NCI << 40 00 03 00 11 00
NCI >> 20 01 00
NCI << 40 01 19 00 03 1e 03 00 08 00 01 02 03 80 81 82 83 02 d0 02 ff 02 00 04 88 10 01 a0
NCI >> 21 00 16 07 04 02 02 05 03 03 01 01 01 02 01 01 03 01 01 04 01 02 80 01 80
NCI << 41 00 01 00
NCI >> 21 01 0c 00 02 01 03 00 01 04 01 03 00 01 05
NCI << 41 01 01 00
NCI >> 20 02 04 01 32 01 60
NCI << 40 02 02 00 00
NCI >> 20 02 1f 02 29 0d 46 66 6d 01 01 11 03 02 00 01 04 01 fa 61 0d 46 66 6d 01 01 11 03 02 00 ...
NCI << 40 02 02 00 00
NCI >> 21 03 15 0a 00 01 02 01 01 01 06 01 03 01 80 01 81 01 82 01 83 01 85 01
NCI << 41 03 01 00
WAITING FOR DEVICE DISCOVERY
Please refer to https://www.nxp.com/webapp/Download?colCode=SW4325&appType=license and https://www.nxp.com/docs/en/application-note/AN11990.pdf for more details.
Hope that helps,
Have a great day,
Kan
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
I used the software stack from https://www.nxp.com/webapp/Download?colCode=SW4325&appType=license
Seems like the library is not perfectly compatible. We will have to further adjust the library to get it running.
SW4325 contains examples for LPC & Kinetis MCUs, did you port it to another MCU? maybe it is a porting issue.
Have a great day,
Kan
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Yes but it is pretty hard to try to get things working when there is no free API documentation available. Very bad to get things done for evaluation.
Please refer to linux_libnfc-nci/doc at master · NXPNFCLinux/linux_libnfc-nci · GitHub for details.
Hope that helps,
Have a great day,
Kan
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------