Skip to main content
Visitor II
April 24, 2021
Solved

How to send NDEF packet with RFAL-HL?

  • April 24, 2021
  • 2 replies
  • 1053 views

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

    This topic has been closed for replies.
    Best answer by Brian TIDAL

    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

    2 replies

    Technical Moderator
    April 26, 2021

    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

    Technical Moderator
    April 26, 2021

    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