cancel
Showing results for 
Search instead for 
Did you mean: 

Commands to initiate communication between PN7150 NFC Reader and ST25DV04KC dynamic tag

Nikhil D&K
Senior

Hello,

In our project we are trying to interfacing PN7150 NFC reader with STM32L4 controller to read and write to Mailbox of ST25DV04KC dynamic tag.

We would like to know the command format, which i should use to discover the ST25DV tag, and write and read to the mailbox of the same.

Currently we are unable scan the ST25DV nfc tag as well.

1 ACCEPTED SOLUTION

Accepted Solutions
victor laraison
ST Employee

hi all,

Demo for iOS is under https://www.st.com/content/st_com/en/products/embedded-software/st25-nfc-rfid-software/stsw-st25ios001.html

STSW-ST25IOS002 is the "src" package that contains the source code for iOS ST25SDK in ObjectiveC.

For building and running it, you must install the J2OBJC tool that converts Java to ObjC File.

Here attached, a file describing the procedure.

Hope it helps.

Br

View solution in original post

5 REPLIES 5
JL. Lebon
ST Employee

Hello,

Let me first suggest you to use s ST25R3916 NFC reader in place of the PN7150. If you are interfacing with a STM32L4 and a ST25DV04KC, all the software libraries are already available with example application code for mailbox usage. This would considerably ease your development.

That said, if you still want to use a PN7150: I'm not very familiar with this reader, so I can only talk about what is required for the ST25DV04KC.

ST25DV04KC is a ISO15693 RFID tag (or NFC type V). So, first thing you need to do is to configure the reader to communicate un ISO15693 mode. I let you consult the PN7150 documentation to know how to do this.

To discover the tag, the ISO15693 protocol is using the Inventory command. Please refer to the ST25DV04KC datasheet or the ISO15693-3 specification to know how to use this command.

The mailbox communication is using custom commands. So you will need to use a tranceive mode of the reader to send those custom commands.

Mailbox must first be configured and enabled in order to work. You can learn more about it in the application note AN4910 (https://www.st.com/content/ccc/resource/technical/document/application_note/group0/14/dd/58/f3/35/20/45/1b/DM00328899/files/DM00328899.pdf/jcr:content/translations/en.DM00328899.pdf)

There is also mailbox code example for the STM32 here:https://www.st.com/en/embedded-software/stsw-st25dv002.html and code example for readers here: https://www.st.com/en/embedded-software/stsw-st25sdk001.html.

Best reagrds.

 https://www.st.com/en/embedded-software/stsw-st25sdk001.html. We can't find the demo for iOS platform here. Where can I find the iOS SDK or demo?

victor laraison
ST Employee

hi all,

Demo for iOS is under https://www.st.com/content/st_com/en/products/embedded-software/st25-nfc-rfid-software/stsw-st25ios001.html

STSW-ST25IOS002 is the "src" package that contains the source code for iOS ST25SDK in ObjectiveC.

For building and running it, you must install the J2OBJC tool that converts Java to ObjC File.

Here attached, a file describing the procedure.

Hope it helps.

Br

Thanks, Br

Hello @JL. Lebon_O​ and @victor laraison_O​ ,

Thanks for the necessary links. I have read this application note and had a doubt please refer query No. 4 and 5.

https://www.st.com/content/ccc/resource/technical/document/application_note/group0/14/dd/58/f3/35/20/45/1b/DM00328899/files/DM00328899.pdf/jcr:content/translations/en.DM00328899.pdf

Also we haven't finalized the NFC reader (CR95HF/PN7160) we will be using in the Keypad application yet, but below are the points that must be fulfilled by the NFC reader.

Query:

  1. NFC reader (present in Keypad device) should be able to communicate with ST25DV04KC dynamic tag (present in meter device) using mailbox to pass configuration parameters (i.e already loaded in keypad) to meter device and vice versa.
  2. NFC reader (present in Keypad device) should be able to communicate with Android and IoS mobile, such that the configuration parameters can be loaded in the Keypad device using NFC. So i would like to know whether CR95HF NFC reader supports bi-directional communication with Android, IoS mobile application or not ?
  3. Does NFC reader has any Interrupt capability ? Like interrupt on near field detection ?
  4. I have read the technical document you mentioned above for the FTM communication frame format between NFC reader and I2c device. I would like to know whether NFC reader has to continuously poll Mailbox dynamic configuration register every time to check for mailbox events (i.e message has been read or not). Won't this effect the I2C side communication that will be reading the message from mailbox at same time ? And if continuously start polling the register how will my NFC reader side application will be a low power device ? Can the mailbox event be routed to Interrupt on the NFC reader side, something similar to interrupts in ST25DV tag side ?
  5. In the FTM write and read operation request frames the 16-bit CRC is calculated and appended at the end of each request. So if i use PN7160 NFC reader, where i can find the reference CRC function used by theST25DV tag such that the CRC calculated is same at both ends.

Can someone please help me providing information relevant to above queries.

Thanks & Regards,

Nikhil Komalan