Example Code

Use MPManager User Interface With CTSIII to Perform a Type B Card Response Measurement

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

In addition, the type B card response time (TR0+TR1) of each card answer will be measured.

We speak also of Frame Delay Time (FDT).

 

TR0+TR1 is the time between the rising edge of the End Of Frame (EOF) of the last Proximity Coupling Device (PCD) command and the falling edge of the Start Of Frame (SOF) of the next Proximity Integrated Circuit Card (PICC) answer.
TR0+TR1 can be measured as follow:

 

 

 

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_EMVCo_Type_B_With_TR0+TR1_Measurement script and video in the attachment.

 

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

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

Connect the CTSIII and like in the video, open the ReaderEmulation_EMVCo_Type_B_With_TR0+TR1_Measurement 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.

The FDT or TR0+TR1 of each Type B card answer is also displayed.

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 CTSIII and the card under test.

For each Type B card answer, the end-user can position cursors to check the FDT measurement.

 

Depending on ISO, EMVCo or NFC Forum test specifications, FDT PICC type B has to be between the minimum and maximum specified values.

FDT measurement can be done with the help of such script, also MPManager does not return test verdict and the end-user has to check if the measurement is within the pass criteria of a given test specification.

 

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.

 

 

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