> 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/api-and-command-reference/dynafamily-programmers-manual/commands/0x11nn-nfc-mifare-pass-through-commands-contactless-only/0x1102-pass-through-command-for-mifare-desfire-type-4.md).

# 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 %}

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

<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>

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

<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>Pass Through Command for MIFARE DESFire, Type 4 - Command 0x1102</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 <a href="https://developer.magtek.com/api-and-command-reference/dynafamily-programmers-manual/commands/0x11nn-nfc-mifare-pass-through-commands-contactless-only/0x1102-pass-through-command-for-mifare-desfire-type-4#payload-for-encrypted-nfc-mifare-data"><mark style="color:red;"><strong>Payload for Encrypted NFC/MIFARE Data</strong></mark></a>. If unencrypted, see <a href="https://developer.magtek.com/api-and-command-reference/dynafamily-programmers-manual/commands/0x11nn-nfc-mifare-pass-through-commands-contactless-only/0x1103-pass-through-command-for-mifare-plus-type-2#unencrypted-nfc-mifare-data"><mark style="color:red;"><strong>U</strong></mark></a><mark style="color:red;"><strong>nencrypted NFC/MIFARE Data</strong>.</mark></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.

#### 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 %}

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

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

```
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

## 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 Encrypted Data KSN parameter and the Encrypted Data Encryption Type parameter to read its contents. The format of the decrypted data is shown in the below table</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 <a href="https://developer.magtek.com/api-and-command-reference/dynafamily-programmers-manual/data-types-and-shared-tlv-data-objects/encryption-type"><mark style="color:red;"><strong>Encryption Type</strong></mark></a> 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>

## 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.magtek.com/api-and-command-reference/dynafamily-programmers-manual/commands/0x11nn-nfc-mifare-pass-through-commands-contactless-only/0x1102-pass-through-command-for-mifare-desfire-type-4.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
