Example Code

Use MPManager User Interface With CTSIII to Capture the Polling Loop of an NFC Reader With a Card Emulation Sequencer Script

    Other

  • Contactless Test Station III
  • MPManager 3.9.0

Code and Documents

Attachment

Description

Contactless Test Station III (CTSIII) is able to emulate a Near Field Communication (NFC) listening device and communicate with a device acting as an NFC polling device such as: 

- Point of sale reader (Payment reader)

- Commercial On the Shelf (COTS) mobile payment device

- Access control reader 

- NFC car handle

 

In card emulation mode, CTSIII supports common NFC communication protocols such as: 

- ISO 14443 Type A (106 to 848 kbits/s)

- ISO 14443 Type B (106 to 848 kbits/s)

- ISO 15693 Vicinity (low and high data rate)

- ISO 18092 NFC-IP1 (Type A 106 kb/s, FeliCa 212 and 424 kb/s)

 

End-user may want to build test scenarios and analyze the communication between CTSIII and a device acting as an NFC Reader for several reasons:

- build simple communication script and analyze device under test commands

- for design and characterization tests

- build a script and test it within MPManager before implementing a test application to do the same or more thanks to MPuLib communication dll and libraries

- perform specific measurements or tests and compare the results with ISO, EMVCo or NFC Forum test specifications.

 

In this example, a card emulation sequence will be used to capture the polling loop of an NFC Reader.

No answer will be provided by the lower tester (CTSIII).

This example can be considered as a starting point for building any card emulation scripts. 

 

 

 

 

How to Use

CTSIII is delivered with an NFC simulation antenna (P/N 786703-01).

The antenna is used to perform continuous and successive exchanges with an NFC device, using either MPManager scripting and test functions or a user program.

 

undefined

 

  • 1: Analog In (pickup coil, card emulation)
  • 2: Multi-purpose HDMI connector
  • 3: Tx/Rx connector (Reader emulation)
  • 4: Vdc connector (external VDC measurement)
  • 5: Card emulation antenna tuning
  • 6: Reader emulation antenna tuning
  • 7: LED indicator
    • Green: PCD mode enabled (Proximity Coupling Device mode stands for Reader emulation mode)  
    • Blue: PICC mode enabled (Proximity Integrated Circuit Card mode stands for Card Emulation mode)
  • 8: Tx and Rx coil

Perform the following connections between the antenna and CTSIII:

 

Antenna connector CTS3 connector
TCL3 HDMI AUX 1 HDMI
Analog In SMA ANALOG IN SMA, using the provided SMA low-pass filter (P/N 773919-01) if configured in 50 Ω
Tx/Rx SMA TX/RX SMA

 

Download the Card_Emulation_sequencer_PollingLoopDetection script and video in the attachment.

 

Power on CTSIII and open MPManager 3.9.0 (or above).

Position the PICC-PCD simulation antenna on top of the antenna of the NFC reader to communicate with.

Connect the CTSIII and like in the video, open the Card_Emulation_sequencer_PollingLoopDetection script in the script editor of MPManager UI

and execute the script.

 

End-user has access to the execution log of the sequencer script where the success of the execution of the sequence can be checked.

Note that there is no exchange with the Reader under test.

The aim of this script is to pick up the RF field modulation coming from the reader under test and display it in MPManager viewer.

In this way, the end-user can check the polling loop of an NFC reader.

In other words, learn which commands are sent by the reader.

 

The next step consists in adding the configuration of the card or tag the end-user wants to simulate

and then adding the sequence of exchange that will occur between the Reader under test and the lower tester (CTSIII).

Note that, card emulation scenarios are deterministic. 

In other words, the end-user needs to indicate the commands that are expected from the reader and the answer to be transmitted by the simulator.

Additional Information

For any additional questions, please contact NI technical support team on NI.com when opening a Service Request case using the NI Service Request Manager (SRM).

To open a service request on NI.com please follow the steps described at this link.

 

 

 

Related Links

https://micropross.ni.com/webinars/contactless-test-station-3-external-webinar/

 

 

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors