> For the complete documentation index, see [llms.txt](https://developer.magtek.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.magtek.com/hardware/card-readers/mms-dyna-devices/dynaflex-ii-go/documents/developers-manuals/programmers-manual-commands/commands/nfc-mifare-pass-through/pass-through-for-mifare-desfire.md).

# Pass Through for MIFARE DESFire

## Command 0x1102 – Pass Through Command for MIFARE DESFire, Type 4

After a MIFARE DESFire Light/EV1/EV2/EV3 Tag is activated, the host uses this command to send commands and receive responses to and from a MIFARE DESFire Tag.

There will be a fixed 30 second timeout for commands that require multiple command/responses.

{% hint style="info" %}
Timeout: 30 seconds for commands that require multiple command/responses.
{% endhint %}

## Table - Request Data for Command 0x1102 – Pass Through Command for MIFARE DESFire, Type 4

<table><thead><tr><th>Tag</th><th width="74.66668701171875">Len</th><th width="301.66668701171875">Value / Description</th><th width="75">Typ</th><th width="72.99993896484375">Req</th><th width="97.99993896484375">Default</th></tr></thead><tbody><tr><td>Beginning of any wrappers, at minimum including <strong>Request Message</strong> </td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>1102</td><td></td><td>Command 0x1102 – Pass Through Command for MIFARE DESFire, Type 4</td><td></td><td></td><td></td></tr><tr><td>81</td><td>var</td><td><p>Command to Send. See DESFire Data Sheet (MF2DLHX0). Should follow ISO 7816-4 APDU format:</p><ul><li><p>C-APDU</p><ul><li>CLA INS P1 P2 Lc Data Le</li></ul></li></ul></td><td>B</td><td>R</td><td></td></tr><tr><td>82</td><td>01</td><td>00 – No Encrypt 01 - Encrypt</td><td></td><td></td><td></td></tr><tr><td>83</td><td>01</td><td>00 – Expect More Commands 01 – FF (Last Command). If last command, Device will provide a single beep after receiving a successful response from tag; otherwise, device will provide a double beep.</td><td>B</td><td>R</td><td></td></tr><tr><td>End of any wrappers, at minimum including <strong>Request Message</strong> </td><td></td><td></td><td></td><td></td><td></td></tr></tbody></table>

## Table - Response Data for Command 0x1102 – Pass Through Command for MIFARE DESFire, Type 4

<table><thead><tr><th>Tag</th><th width="74.66668701171875">Len</th><th width="290">Value / Description</th><th width="76.3333740234375">Typ</th><th width="76">Req</th><th width="96.00006103515625">Default</th></tr></thead><tbody><tr><td>Beginning of any wrappers, at minimum including <strong>Response Message</strong> </td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>1102</td><td></td><td>Command 0x1102 – Pass Through Command for MIFARE DESFire, Type 4</td><td></td><td></td><td></td></tr><tr><td>81</td><td>02</td><td><p>Tag Response (SW1 SW2). See DESFire Data Sheet (MF2DLHX0). Should follow ISO 7816-4 APDU format:</p><ul><li>SW1 and SW2 of R-APDU</li></ul><p>If card is not able to respond:</p><ul><li>SW1 = 0x64, SW2 = 0x00</li></ul></td><td>B</td><td>R</td><td>N/A</td></tr><tr><td>82</td><td>var</td><td><p>Tag Data:</p><ul><li>Data of R-APDU</li></ul><p>Encryption Control: If encrypted, see <strong>Table 107 - Payload for Encrypted NFC/MIFARE Data</strong>. If unencrypted, see <strong>Table 108 – Unencrypted NFC/MIFARE Data</strong>.</p></td><td>B</td><td>O</td><td>N/A</td></tr><tr><td>End of any wrappers, at minimum including <strong>Response Message</strong> </td><td></td><td></td><td></td><td></td><td></td></tr></tbody></table>

If the request started successfully, the Request Status in the message wrapper is: OK, Started / Running, All good / requested operation was successful.

## Table - Request Example (Get Version Part 1)

{% code title="Example (Hex)" %}

```
AA 00 81 04 01 13 11 02 84 0F 11 02 81 05 90 60 00 00 00 82 01 00 83 01 00
```

{% endcode %}

## Table - Response Example (Get Version Part 1)

{% code title="Example (Hex)" %}

```
AA 00 81 04 82 13 11 02 82 04 01 00 00 00 84 14 11 02 81 02 91 AF 82 0C FC 0A DF 7A 07 04 08 01
30 00 13 05
```

{% endcode %}

## Encrypted Data Format

## Table - Payload for Encrypted NFC/MIFARE Data

<table><thead><tr><th width="82.66665649414062">Tag</th><th width="69">Len</th><th width="383.66668701171875">Value / Description</th><th width="73">Typ</th><th width="75">Req</th><th width="98.66671752929688">Default</th></tr></thead><tbody><tr><td>/DFDF59</td><td>var</td><td>Encrypted Data Primitive. Decrypt the value of this TLV data object using the algorithm and variant specified in the <strong>Encrypted Data KSN</strong> parameter and the <strong>Encrypted Data Encryption Type</strong> parameter to read its contents. The format of the decrypted data is shown in <strong>Table 360</strong>.</td><td>B</td><td>R</td><td></td></tr><tr><td>/DFDF50</td><td>var</td><td>Encrypted Data KSN</td><td>B</td><td>R</td><td></td></tr><tr><td>/DFDF51</td><td>01</td><td>Encrypted Data Encryption Type. See section <strong>4.4 Encryption Type</strong> for a list of valid values.</td><td>B</td><td>R</td><td></td></tr><tr><td>End of Notification Message</td><td></td><td></td><td></td><td></td><td></td></tr></tbody></table>

## Table – Unencrypted NFC/MIFARE Data

| Tag   | Len | Value / Description       | Typ | Req | Default |
| ----- | --- | ------------------------- | --- | --- | ------- |
| FC    | var | NFC/MIFARE Data Container | T   | R   |         |
| /DF7A | var | NFC/MIFARE Data           | B   | O   |         |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.magtek.com/hardware/card-readers/mms-dyna-devices/dynaflex-ii-go/documents/developers-manuals/programmers-manual-commands/commands/nfc-mifare-pass-through/pass-through-for-mifare-desfire.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
