Example Code

Use MPManager User Interface With CTSIII to run a Type V Card Emulation Sequencer Scenario with an NFC Reader

    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 Type V card emulation sequence will be used to communicate with an NFC Reader.

 

CTSIII includes a card emulation sequencer, which will sequentially execute a list of actions.

Compare to a high-level script where there are back and forth communications between the computer on which one MPManager is running and the CTSIII controlled by the same computer, the CTSIII sequencer generates an embedded application containing the scenario to execute.

This allows very tight timings control.

 

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_TypeV 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_TypeV 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.

 

The FDT PCD to PICC - the time between the end of the last pause transmitted by the PCD and the first modulation edge within the start bit transmitted by the PICC - is programmable and applied with high accuracy.

  

In the viewer tab of MPManager, the end-user gets access to the *.mplog trace and can navigate through it to analyze the communication

between the Reader under test and the lower tester (CTSIII).

 

Note that NI proposes a large range of automatized conformance test solutions that are certified for EMVCo or NFC Forum testing, on top of CTSIII.

Especially, EMVCo or NFC Forum digital test solutions for polling devices include thousands of tests that have been implemented with the card emulation sequencer. 

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.