Example Code

Use MPManager User Interface With CTSIII to Generate a RF Field Reset With a Type A Reader 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 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 Reader Emulation sequencer script will be used.

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

Compare to a high-level reader emulation 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.

 

The reader sequencer scenario will start by turning on the carrier and then will program a field reset. 

End-user can adjust the duration of the reset and its modulation depth.

As well as the guard time which represents the delay between the end of the RF field reset - when the RF field is switched on again - and the beginning of the first command sent by the lower tester (CTSIII) after the reset.

These timings will be applied very precisely.

Finally, the end-user can indicate which reader command has to be sent right after the reset.

 

 

 

The scenario will be then pre-compiled when calling the Execute Reader Sequence command (with command timeout set to 0) to avoid compilation delay.

and then the scenario will be executed.

 

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_Sequencer_Type_A_FieldReset 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_Sequencer_Type_A_FieldReset 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 the sequence is pre-compiled before being executed to avoid compilation delay.

 

The field reset is programmed in such a way that:

- the reset duration is set to 10 ms

- the guard time is set to 5 ms

- and a WUPA command is sent right after the reset 

 

In the viewer tab of MPManager, the end-user gets access to the *.mplog trace and can navigate through it to check that the reset and guard time programmed 

have been precisely applied and that the CTSIII sent a WUPA command exactly after an RF field reset of 10 ms and a guard time of 5 ms. 

And the type A card under test answered. 

 

This feature can be used to implement Power Off or Power Reset tests when using MPManager user interface and the CTSIII.

By the way, MPManager does not return test verdict and the end-user has to check if the device under test behaves in accordance with 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.

Especially, EMVCo or NFC Forum analog test solutions for listening devices include Power Off and Reset tests which are automatized.

 

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