> 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/products/dynafamily-mms-dyna-devices/dynaflex-ii-ped/programmers-manual/commands.md).

# Commands

The DynaFlex II PED accepts the Multi-Interface Card Reader Platform (MMS)\
command set — the messages you send to run transactions, read cards, manage keys\
and files, and query or configure the reader. Full syntax, parameters,\
responses, and examples are documented once in the shared reference; the\
families below are the commands the PED supports, each linking into that\
reference.

{% hint style="success" %}
Applies to: DynaFlex II PED
{% endhint %}

### Transaction - Group 0x10nn

| **Reference Section**                                                                                                                                                                                                                              | **Information Available**                                                                                                        |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| [<mark style="color:red;">**Start Transaction - Command 0x1001**</mark> ](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/transactions-command-group-0x10nn/start-transaction-command-0x1001)   | The host uses this command to start a payment transaction.                                                                       |
| [<mark style="color:red;">**Resume Transaction - Command 0x1004**</mark> ](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/transactions-command-group-0x10nn/resume-transaction-command-0x1004) | The host uses this command to provide the device with additional/modified data to resume a transaction that is currently paused. |
| [<mark style="color:red;">**Cancel Transaction - Command 0x1008**</mark> ](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/transactions-command-group-0x10nn/cancel-transaction-command-0x1008) | The host uses this command to cancel a transaction that is currently in progress.                                                |

### NFC/MIFARE Pass-Through - Group 0x11nn

| **Reference Section**                                                                                                                                                                                                                                                                                                                                                                                       | **Information Available**                                                                                                    |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| [<mark style="color:red;">**Pass Through Command For NTag/MIFARE Ultralight, Type 2 - Command 0x1100**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/nfc-mifare-pass-through-commands-contactless-only-command-group-0x11nn/pass-through-command-for-ntag-mifare-ultralight-type-2-command-0x1100)                                             | The host uses this command to send commands and receive responses to and from a NTag/MIFARE Ultralight.                      |
| [<mark style="color:red;">**Pass Through Command for MIFARE Classic/MINI®/Plus SL1 (Security Level 1), Type 2 - Command 0x1101**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/nfc-mifare-pass-through-commands-contactless-only-command-group-0x11nn/pass-through-command-for-mifare-classic-mini-r-plus-sl1-security-level-1-command-0x1101) | After a MIFARE Tag is activated, the host uses this command to send commands and receive responses to and from a MIFARE tag. |
| [ <mark style="color:red;">**Pass Through Command for MIFARE DESFire, Type 4 - Command 0x1102**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/nfc-mifare-pass-through-commands-contactless-only-command-group-0x11nn/pass-through-command-for-mifare-desfire-type-4-command-0x1102)                                                            | The host uses this command to send commands and receive responses to and from a MIFARE DESFire Tag.                          |
| [<mark style="color:red;">**Pass Through Command for MIFARE Plus, Type 2 - Command 0x1103**</mark> ](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/nfc-mifare-pass-through-commands-contactless-only-command-group-0x11nn/pass-through-command-for-mifare-plus-type-2-command-0x1103)                                                                  | The Host uses this command to send commands and receive responses to and from a MIFARE Plus tag.                             |
|                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                                                              |

### User Interface - Group 0x18nn

| **Reference Section**                                                                                                                                                                                                                                                             | **Information Available**                                                                                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [<mark style="color:red;">**Report Cardholder Selection - Command 0x1802**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/user-interface-command-group-0x18nn/request-cardholder-signature-touch-only-command-0x1801) | The host uses this command to provide a cardholder selection to the device when the device itself does not have a display or inputs to prompt the cardholder for a selection. |
| [<mark style="color:red;">**Read Barcode (BCR Only) - Command 0x1804**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/user-interface-command-group-0x18nn/read-barcode-bcr-only-command-0x1804)                       | The host uses this command to direct the device to arm or disarm the barcode reader for reading a barcode outside the scope of a transaction.                                 |
| [ <mark style="color:red;">**Buzzer - Command 0x1805**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/user-interface-command-group-0x18nn/buzzer-command-0x1805)                                                      | The host uses this command to start a buzzer for playing a sequence of tones. Each sequence can have a minimum of 1 to maximum of 10 tones.                                   |
| [<mark style="color:red;">**Personal Info Entry - Command 0x1806**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/user-interface-command-group-0x18nn/personal-info-entry-command-0x1806)                             | The host uses this command to prompt a cardholder for customer information.                                                                                                   |
| [ <mark style="color:red;">**LED Control - Command 0x1807**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/user-interface-command-group-0x18nn/led-control-command-0x1807)                                            | The host uses this command to control the 4 LEDs of the device when the device is not in non-User Control LED states.                                                         |
| [ <mark style="color:red;">**Card Emulation - Command 0x1840**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/user-interface-command-group-0x18nn/card-emulation-command-0x1840)                                      | Card emulation is initiated by receiving a 0x1840 command from the host.                                                                                                      |

### Generic Pass-Through - Group 0x30nn <a href="#from-device-source-0x10nn-1" id="from-device-source-0x10nn-1"></a>

| **Reference Section**                                                                                                                                                                                                                                                                                      | **Information Available**                                                                                                                                                 |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [<mark style="color:red;">**About**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/generic-pass-through-commands-command-group-0x30nn/about)                                                                                                   | Basic details about generic pass-through commands.                                                                                                                        |
| [<mark style="color:red;">**Pass-Through Mode Start/Stop - Command 0x3001**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/generic-pass-through-commands-command-group-0x30nn/pass-through-mode-start-stop-command-0x3001)                     | The host uses this command to enter or exit Pass-Through Mode.                                                                                                            |
| [<mark style="color:red;">**Start/Stop Polling - Command 0x3002**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/generic-pass-through-commands-command-group-0x30nn/start-top-polling-command-0x3002)                                          | After entering the Pass-Through Mode, the host use this command to request the device to start polling for a Type A and Type B PICC until it detects a PICC or times out. |
| [<mark style="color:red;">**ISO 14443-4 APDU Pass-Through Commands - Command 0x3003**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/generic-pass-through-commands-command-group-0x30nn/iso-14443-4-apdu-pass-through-commands-command-0x3003) | The host uses this command to send application-level APDUs to a PICC that supports ISO 14443-4 Protocol                                                                   |

### Device Control - Group 0x1Fnn

| **Reference Section**                                                                                                                                                                                                                                                                                                   | **Information Available**                                                                                            |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| [ <mark style="color:red;">**Reset Device - Command 0x1F01**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/device-control-command-group-0x1fnn/reset-device-command-0x1f01)                                                                                | The host uses this command to reset the device.                                                                      |
| [<mark style="color:red;">**Set Notification Subscriptions - Command 0x1F02**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/device-control-command-group-0x1fnn/set-notification-subscriptions-command-0x1f02)                                             | The host uses this command to specify which notifications the device should send on each of its available interfaces |
| [<mark style="color:red;">**Terminate Bluetooth LE Connection (Bluetooth LE Only) - Command 0x1F04**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/device-control-command-group-0x1fnn/terminate-bluetooth-le-connection-bluetooth-le-only-command-0x1f04) | The host can use this command to terminate a Bluetooth LE connection.                                                |
| [<mark style="color:red;">**Erase All Bluetooth LE Bonds (Bluetooth LE Only) - Command 0x1F05**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/device-control-command-group-0x1fnn/erase-all-bluetooth-le-bonds-bluetooth-le-only-command-0x1f05)           | The host can use this command to erase all Bluetooth® LE bonds.                                                      |

### Setting & Information - Group 0xD1nn

| **Reference Section**                                                                                                                                                                                                                                                    | **Information Available**                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------- |
| [ <mark style="color:red;">**Get Property - Command 0xD101**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/settings-and-information-command-group-0xd1nn/get-property-command-0xd101)                       | The host uses this command to get information about the device or its configuration / settings. |
| [ <mark style="color:red;">**Set Property (Unsecured) - Command 0xD111**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/settings-and-information-command-group-0xd1nn/set-property-unsecured-command-0xd111) | The host uses this command to set device configuration / settings that do not require security. |
| [<mark style="color:red;">**Set Property (Secured) - Command 0xD112**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/settings-and-information-command-group-0xd1nn/set-property-secured-command-0xd112)      | The host uses this command to set device configuration / settings securely.                     |

### File Operation - Group 0xD8nn

| **Reference Section**                                                                                                                                                                                                                                                                    | **Information Available**                                                                                                                                                                   |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [<mark style="color:red;">**About Files**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/file-operations-command-group-0xd8nn/about-files)                                                                                   | Large blobs of data uploaded to / downloaded from the device are referred to as “files” and share a common set of commands documented here, and special message type **Data File Message**. |
| [ <mark style="color:red;">**Load Firmware File - Command 0xD801**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/file-operations-command-group-0xd8nn/load-firmware-file-command-0xd801)                                    | The host uses this command to send a firmware image file, signed by MagTek, to the device as the first step in updating firmware.                                                           |
| [<mark style="color:red;">**Start Send File to Device (Secured) - Command 0xD811**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/file-operations-command-group-0xd8nn/start-send-file-to-device-secured-command-0xd811)     | The host uses this command to start sending secured files to the device for storage or processing.                                                                                          |
| [<mark style="color:red;">**Start Send File to Device (Unsecured) - Command 0xD812**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/file-operations-command-group-0xd8nn/start-send-file-to-device-unsecured-command-0xd812) | The host uses this command to start sending unsecured files to the device for storage or processing                                                                                         |
| [<mark style="color:red;">**Start Get File from Device - Command 0xD821**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/file-operations-command-group-0xd8nn/start-get-file-from-device-command-0xd821)                     | The host uses this command to request a file stored on the device.                                                                                                                          |
| [<mark style="color:red;">**Get File Info from Device - Command 0xD825**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/file-operations-command-group-0xd8nn/get-file-info-from-device-command-0xd825)                       | The host uses this command to request the file information of a file stored on the device.                                                                                                  |
| [<mark style="color:red;">**Delete File from Device - Command 0xD831**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/file-operations-command-group-0xd8nn/delete-file-from-device-command-0xd831)                           | The host uses this command to request the deletion of a file stored on the device.                                                                                                          |

### Process Files - Group 0xD9nn

| **Reference Section**                                                                                                                                                                                                                                            | **Information Available**                                                                                                                                                                   |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [<mark style="color:red;">**Commit Firmware from File - Command 0xD901**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/process-files-command-group-0xd9nn/commit-firmware-from-file-command-0xd901) | The host uses this command to commit a file previously uploaded using Command 0xD801 - Load (Firmware File) into the device’s permanent memory after the device has authenticated the file. |

### Diagnostics & Utilities - Group 0xDFnn

| **Reference Section**                                                                                                                                                                                                              | **Information Available**                                                                              |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| [<mark style="color:red;">**Echo - Command 0xDF01**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/diagnostics-and-utilities-command-group-0xdfnn/echo-command-0xdf01) | The host uses this command to prompt the device for a response that contains the same payload it sent. |

### Security - Grouo 0xEnnn

| **Reference Section**                                                                                                                                                                                                                                                 | **Information Available**                                                                                                 |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [<mark style="color:red;">**Get Challenge - Command 0xE001**</mark> ](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/security-command-group-0xennn/get-challenge-command-0xe001)                                  | Requests a random challenge from the device, used to construct a secured command.                                         |
| [<mark style="color:red;">**Send Secured Command to Device - Command 0xEEEE**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/security-command-group-0xennn/send-secured-command-to-device-command-0xeeee) | The host uses this command to request a random challenge from the device, used to construct a subsequent secured command. |
| [<mark style="color:red;">**Load Key Using TR-31 - Command 0xEF01**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/security-command-group-0xennn/load-key-using-tr-31-command-0xef01)                     | The host uses this command to load a key into one of several available slots in the device’s secure memory.               |
| [<mark style="color:red;">**Change Device Lock State - Command 0xEF06**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/security-command-group-0xennn/change-device-lock-state-command-0xef06)             | The host can use this command to change the device’s lock state.                                                          |
| [<mark style="color:red;">**Change Device Lock Passcode - Command 0xEF07**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/security-command-group-0xennn/change-device-lock-passcode-command-0xef07)       | The host can use this command to change the device’s lock passcode.                                                       |
| [<mark style="color:red;">**Get Key Info - Command 0xEF11**</mark>](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/security-command-group-0xennn/encrypt-user-data-command-0xef09)                                | The host uses this command to retrieve information about a key slot, including details about the key stored in that slot. |

### Manufacturing - Group 0xFnnn

| **Reference Section**                                                                                                                                                                                                                                           | **Information Available**                                                                                                                                                                                                                        |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [<mark style="color:red;">**Establish Ephemeral KBPK - Command 0xF017**</mark> ](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/commands/manufacturing-command-group-0xfnnn/establish-ephemeral-kbpk-command-0xf017) | The host uses this command to complete the ECDHE-ECDSA Key Exchange protocol, which enables the host and the device to generate the same TEMP KBPK key to use with Command 0xEF01 - Load Key Using TR-31 to load the Master Transport Key (MTK). |

{% hint style="info" %}
**Need Help?**

For additional support, please contact MagTek Support:

**Technical Support:**

* 📧 **Email:** [support@magtek.com](mailto:support@magtek.com?subject=Support%20Request)
* 📞 **Phone:** 1-562-546-6800 (US)
* 🕐 **Hours:** Monday-Friday, 5:30 AM - 5:00 PM PST

**Online Resources:**

* 🌐 **Support Portal:** developer.magtek.com

**Documentation Feedback:**

Help us improve this documentation! [feedback@magtek.com](mailto:feedback@magtek.com?subject=Feedback)
{% endhint %}


---

# 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, and the optional `goal` query parameter:

```
GET https://developer.magtek.com/products/dynafamily-mms-dyna-devices/dynaflex-ii-ped/programmers-manual/commands.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
