Skip to main content
Duy Tran
Associate III
August 2, 2018
Solved

X-NUCLEO-NFC04A1

  • August 2, 2018
  • 4 replies
  • 1050 views

Hi,

I am using the X-NUCLEO-NFC04A1 and I am trying to write multiple types NDEFs but only the latest one is read by my phone. Is there any way that I can write some NDEF records?

Thank you very much,

Best regards,

Duy

This topic has been closed for replies.
Best answer by France Berthelot

Hello

If you read natively from phone, only one record is read by the phone according to phone implementation, if you have an AAR record, this one will be managed by the phone, if you have an text record + an url record, the phone will go natively to the browser with the url .... and so on......

Only one record is natively

managed by the phone and phone dependent.

you can use an application to

check that record are correctly written. This application is available on

st.com and google play

https://www.st.com/content/st_com/en/products/embedded-software/st25-nfc-rfid-software/stsw-st25001.html

https://play.google.com/store/apps/details?id=com.st.st25nfc

If you want to be able to parse and manage all records written, you need a dedicated application that parse the records and do actions on each of them.

Hope this clarify context described in your post.

Cheers

FB.

4 replies

France Berthelot
France BerthelotBest answer
ST Employee
August 22, 2018

Hello

If you read natively from phone, only one record is read by the phone according to phone implementation, if you have an AAR record, this one will be managed by the phone, if you have an text record + an url record, the phone will go natively to the browser with the url .... and so on......

Only one record is natively

managed by the phone and phone dependent.

you can use an application to

check that record are correctly written. This application is available on

st.com and google play

https://www.st.com/content/st_com/en/products/embedded-software/st25-nfc-rfid-software/stsw-st25001.html

https://play.google.com/store/apps/details?id=com.st.st25nfc

If you want to be able to parse and manage all records written, you need a dedicated application that parse the records and do actions on each of them.

Hope this clarify context described in your post.

Cheers

FB.

Duy Tran
Duy TranAuthor
Associate III
August 23, 2018

Thank you France,

I downloaded the software and it helps me a lot. I am also writing my own mobile app that can handle multiple NDEFs.

One more question, is there any function or example about using CR95HF (X-Nucleo-NFC3) to write multiple records to a ST25TA tag? I've tried several ways but it failed.

Thank you very much for your help.

Best regards,

Duy

Rene Lenerve
ST Employee
August 28, 2018

Hello Duy Tran,

In the NFC3 Software package, there is no specific example showing how to read and write multiple NDEF records to a tag.

However the NFC3 provides an NDEF library (located in the Middleware) in which you can found some smartposter APIs (containing SP mention in the name) which manage multiple records of specific types, and it could be in help for your use case.

These APIs can be found in the lib_NDEF.c file.

Hope this will help you.

Regards.

Duy Tran
Duy TranAuthor
Associate III
September 1, 2018

@Rene Lenerve​  Thank you for your answer,

Currently I've been working with the APIs in the NFC middlewares library but it takes me longer than I expected and there is still lots of things to do. I think there should be more examples about NFC :(

Best regards,

Duy