Example Code

Use MPManager User Interface With CTSIII and Add a Ramp Disturbance to the RF output signal

    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 smartcards

- transportation ticket

- NFC enabled smartwatches

- NFC enabled smartphones

 

 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.

 

CTSIII is able to add some disturbance to the RF output signal. This can be done by multiplying or adding some predefined waveform to the output signal.

 

In this example, a ramp will be added to the carrier right after the end of a Type WUPA command.

 

 

 

How to Use

A disturbance may not be visible once the signal is transmitted to a coil or over the air since the Tx path combined with the antenna limited bandwidth will obviously transform some of the waveform shapes.

 

With that in mind, it is preferable to perform an analog capture of the signal the end-user wants to apply on a 50 Ohms resistor.  

When the disturbance is correctly set, the end-user can then connect NFC simulation antenna (P/N 786703-01) delivered with CTSIII (or other antenna) and check if a card is able to answer. 

 

Perform the following connections with CTSIII:

 

CTS3 connector CTS3 connector
Tx/Rx SMA ANALOG IN SMA

 

Download the ReaderEmulation_Ranp_TypeA script and video in the attachment.

 

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

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

and execute the script.

 

Note that since there is no antenna connected and no card or tag on top of it, an error timeout 400 will be returned after the WUPA command (or any other command) is sent.

The expected error 400 can be added to the WUPA command (or any other command) within the script.

 

Analog capture is triggered on the last PCD (Proximity Coupling Device) modulation: TRIG_TX_OFF 

The ramp perturbation as well, but with a positive delay.

The duration of the analog capture as well as the duration of the perturbation can be adjusted. 

 

In the viewer tab of MPManager, the end-user gets access to the *.mplog trace where the analog capture is added and where the perturbation can clearly be seen.

 

This perturbation can then be applied to an antenna with a card or tag on top of it. 

The end-user can reuse the same script and change the command to be sent and set the expected error code to 0 instead of 400. 

 

In this way, the end-user can check the behaviour of a card or tag in presence of perturbation. 

 

 

 

 

 

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