cancel
Showing results for 
Search instead for 
Did you mean: 

How to send NDEF packet with RFAL-HL?

AShar.10
Associate II

Hi,

I've implemented the RFAL-HL ( Higher Layer ) based on X-Cube-NFC5 in our project.

Currently, the example only provides us with a way to detect tags only. I would like to know, what's the procedure by which we can send an NDEF data packet to a P2P device with RFAL-HL.

Regards,

Ayush

1 ACCEPTED SOLUTION

Accepted Solutions
Brian TIDAL
ST Employee

Hi,

X-CUBE-NFC5 v2.0.0 includes 2 demos: STM32L476RG-Nucleo_PollingTagDetect and STM32L476RG_NUCLEO_PollingTagDetectNdef (see UM2253).

STM32L476RG_NUCLEO_PollingTagDetectNdef demonstrates the sending of an NDEF message to a P2P device. Note that the sending of an NDEF message to a P2P device requires the use of LLCP and SNEP protocols which are not provided in X-CUBE-NFC5. The demo uses hardcoded LLCP and SNEP frames that provide basic support for sending NDEF to the P2P device..

Rgds

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
Brian TIDAL
ST Employee

Hi,

X-CUBE-NFC5 v2.0.0 includes 2 demos: STM32L476RG-Nucleo_PollingTagDetect and STM32L476RG_NUCLEO_PollingTagDetectNdef (see UM2253).

STM32L476RG_NUCLEO_PollingTagDetectNdef demonstrates the sending of an NDEF message to a P2P device. Note that the sending of an NDEF message to a P2P device requires the use of LLCP and SNEP protocols which are not provided in X-CUBE-NFC5. The demo uses hardcoded LLCP and SNEP frames that provide basic support for sending NDEF to the P2P device..

Rgds

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Ulysses HERNIOSUS
ST Employee

Hi Ayush,

I'd like to issue a word of warning here: Not all NFC-enabled Android phones are supporting NFC P2P anymore. With Android 10 Google has marked the APIs as deprecated (https://developer.android.com/guide/topics/connectivity/nfc/nfc#p2p). Android Beam is disappearing. Currently it is a mix:

  • Older phones typically support Android Beam.
  • Some phones when upgrading Android to 10, lose Android Beam (e.g. Samsung Galaxy S10)
  • Some phones when upgrading Android to 10, keep Android Beam
  • Some newer phones still support Android Beam - especially Chinese ones.
  • Some newer phones don't support Android Beam - e.g. Pixel and some Samsung phones.

Regards, Ulysses