Example Code

Use MPManager User Interface With CTSIII to Perform Anti-Tearing Test with a Type A Reader Emulation Script

    Other

  • Contactless Test Station III
  • MPManager 3.9.0

Code and Documents

Attachment

Description

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

- banking smartcard

- transportation ticket

- NFC enabled smartwatch

- NFC enabled smartphone

 

 CTSIII supports common NFC communication protocols such as: 

- ISO 144443 type A or B at all data rates

- Felica at 212 and 424 kbits/s

- ISO 15693 (Vicinity) all data rates and all modes

- Mifare Classic / Ultralight / Ultralight C

 

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

- build simple communication script and analyze device under test answers

- for debugging purposes

- 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 standard EMVCo Type A Reader Emulation script will be used to communicate with a Type A Visa banking card.

In addition, we will simulate the card tearing by switching the RF field off at a programmable time during a given PCD (Proximity Coupling Device) command.

 

The time at which the RF field will be turned off is defined in periods of the carrier and will start at the next first modulation of the lower tester (beginning of the next PCD command).

End-user is warned when the RF field switch off occurs when error code 240 is returned.

 

 

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 ReaderEmulation_AntiTearing_Type_A script and video in the attachment.

 

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

Position a Type A Visa banking card on top of the PICC-PCD simulation antenna.

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

and execute the script.

 

End-user has access to the execution log of the script where the answers from the card can be seen.

In this example, we will simulate the tearing of the card under test when switching off the RF field during the transmission of the Select_PPSE command from the lower tester.

The time at which the tearing will occur is set to 13 922 clock cycles.

In NFC communication, a carrier frequency of 13.56 MHz is modulated to send commands to a listening device.

In other words, in this example, the simulation of the tearing of the card under test will occur around 1.027 ms after the start of transmission of the Select_PPSE command from the lower tester.

End-user can check that the simulation of the tearing occurs at the desired time using the viewer of MPManager. 

 

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.