Providing NFC Data

The Event Injector view can be used to test the near-field communication (NFC) features, such as NFC data exchange format (NDEF) events, NFC tag detection, and peer-to-peer (P2P) data connections in the NFC tab.

Note
The Event Injector view sends only NFC-related events to the Emulator. There is no actual information exchange between the Event Injector and Emulator. Therefore, for features such as writing information to an NFC tag, the Emulator simply displays a success message.

Creating NDEF Messages

An NDEF message contains one or more NDEF records.

In the NDEF Message section:

  1. Select the record type name format.
  2. Enter the record type name, ID, and payload.
  3. Click Add.

    You can add multiple NDEF records as required in the NDEF message.

Click Edit or Remove to modify or delete a selected record.

Attaching and Detaching NFC Tags

In the NFC Tag section:

  1. Select the tag type.
  2. Click Tag Attach.

    If the NDEF records list is not empty, an NDEF message is created using this list and the attach message is sent to the Emulator with the NDEF message.

  3. When the tag operation is finished, click Tag Detach.

Creating a P2P data Connection

In the Peer to Peer section:

  1. To send the Emulator the discovered state of the new device, click P2P Discovered.
  2. To send the Emulator an NDEF message, click P2P Send.
  3. To send the Emulator the detached state of the connected device, click P2P Detached.

Where to Go Next