SLOA192B April   2014  – March 2019 TRF7970A , TRF7970A

 

  1.   NFC active and passive peer-to-peer communication using the TRF7970A
    1.     Trademarks
    2. Introduction
    3. Initial RF Collision
    4. TRF7970A Register Settings
    5. Peer-to-Peer at 106 kbps
      1. 4.1 Active Communication
        1. 4.1.1 Initiator
        2. 4.1.2 Target
      2. 4.2 Passive Communication
        1. 4.2.1 Initiator
        2. 4.2.2 Target
    6. Peer-to-Peer at 212 kbps and 424 kbps
      1. 5.1 Active Communication
        1. 5.1.1 Initiator
        2. 5.1.2 Target
      2. 5.2 Passive Communication
        1. 5.2.1 Initiator
        2. 5.2.2 Target
    7. Hardware Description
      1. 6.1 LaunchPad™ Development Kit and BoosterPack™ Plug-in Module Setup
        1. 6.1.1 BoosterPack Plug-in Module: DLP-7970ABP
        2. 6.1.2 LaunchPad Development Kit: MSP-EXP430F5529LP
        3. 6.1.3 LaunchPad Development Kit: MSP-EXP432P401R
      2. 6.2 Bundle Available for Purchase
    8. Passive and Active Peer-to-Peer Firmware Example
      1. 7.1 Peer-to-Peer APIs
      2. 7.2 Implementing a Peer-to-Peer Sample Application
        1. 7.2.1 Low-Level Initialization
        2. 7.2.2 Peer-to-Peer NFC Stack Setup
        3. 7.2.3 Sending NDEF Packets
        4. 7.2.4 Receiving NDEF Packets
    9. Quick Start Guide
    10. Operational Overview
    11. 10 Peer-to-Peer Interoperability Results
    12. 11 Conclusion
    13. 12 References
  2.   Revision History

Introduction

The TRF7970A supports three modes: reader/writer, card emulation, and peer-to-peer. This document describes how to use the TRF7970A in peer-to-peer (P2P) active or passive. P2P requires two NFC-enabled devices to communicate using technologies NFC-A or NFC-F at baud rates of 106 kbps (NFC-A), 212 kbps (NFC-F), or 424 kbps (NFC-F). The transceiver that is initially polling and initiates the communication is the initiator. The transceiver that is initially listening is the target.

The initiator always generates the RF field for both active and passive communication modes. However, the target generates its own RF field only for active mode (while the initiator's RF field is disabled) and load modulates the initiator's RF field in passive mode. After the technology selection for either mode has been completed, the higher layers are the same (as shown in Figure 1). The NDEF Push Protocol (NPP) was commonly used on Gingerbread Android NFC devices as the protocol to push NDEF messages from one NFC device to another; however, the Simple NDEF Exchange Protocol (SNEP) has become the standard on Ice Cream Sandwich Android NFC devices and onward.

peer_to_peer_layers_including_the_PHY_TRF7970A_sloa192.gifFigure 1. Peer-to-Peer Layers Including the PHY (TRF7970A)

A 16-bit and a 32-bit microcontroller are used to interface with the TRF7970A to demonstrate a reference example of the peer-to-peer mode. The firmware supports flexible functions that let the user enable or disable different peer-to-peer modes and technologies. The firmware supports both initiator and target for active and passive communication at baud rates of 106 kbps, 212 kbps, and 424 kbps. Additionally, the firmware can send and receive NDEF messages from NFC-enabled smart phones with SNEP.

Table 1 lists the NFC-enabled devices used to validate the firmware.

Table 1. NFC Enabled Devices Used to Test Peer-to-Peer

Smartphone Model (Release Date) Operating System Kernel Version
Samsung Galaxy Nexus (Nov 2011) Android 4.3 3.0.72 Jun 7 2013
Samsung Galaxy S3 (T-Mobile) (May 2012) Android 4.0.4 3.031 Oct 31 2013
Asus Nexus 7 (July 2012) Android 4.4.2 3.1.10 Nov 20 2013
Samsung Galaxy Note 2 (Sept 2012) Android 4.3 3.0.31 Nov 19 2013
AU Arrows Fujitsu FJL21 (Oct 2012) Android 4.0.4 3.0.21 Oct 16 2012
Nokia Lumia 820 (Oct 2012) Windows 8 8.0.10211.204
HP Elite Tablet (Nov 2012) Windows 8 Windows 8 Pro
Samsung Nexus 10 (Nov 2012) Android 4.4.2 3.4.39 Nov 20 2013
Google Nexus 4 (Nov 2012) Android 4.3 3.4.0 Nov 20 2013
Samsung Galaxy S4 (April 2013) Android 4.3 3.4.0 Nov 16 2013
Hisense Sero 7 Pro (June 2013) Android 4.2.1 3.1.10
Asus Nexus 7 (July 2013) Android 4.4 3.4.0 Dec 11 2013
Google Nexus 5 (Oct 2013) Android 4.4 3.4.0 Nov 20 2013