> 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-ped/documentation/developers-manuals/dynaflex-ii-ped-programmers-manual/commands/user-interface/show-qr-code.md).

# Show QR Code

## Command 0x1822 - Show QR Code (Display Only) <a href="#toc223012949" id="toc223012949"></a>

The host uses this command to direct the device to immediately show a QR code on the display, provided the device is not in a mode that has exclusive use of the display (such as during a transaction).

{% stepper %}
{% step %}

### Prepare and send the request

* Ensure the device is not currently running another command (for example, not running a transaction such as Command 0x1001 - Start Transaction.
* Select the data for the QR code to display.
* Compose a command request in the format described below and send it to the device.
  {% endstep %}

{% step %}

### Device generates and displays the QR code

* The device generates and displays the QR code.
* If the Display Time parameter is set to Indefinite:
  * The device returns a command response message with Response Status, Operation Status Summary byte set to 0x00 (OK, Done). After this response the host is free to send further commands.
* If the Display Time parameter is set to a number of seconds:
  * The device returns a command response message with its Response Status, Operation Status Summary byte set to 0x01 (OK, Started / Running).
  * While the host is waiting for the timeout to expire, it should not send any commands to the device because the device is busy processing the current command.
  * After the timeout period expires, the device unlocks to allow other commands and sends Notification 0x1805 - User Interface Operation Complete to report Display / Display Message / Timed Out / Reserved.
    {% endstep %}
    {% endstepper %}

## Table - Request Data for Command 0x1822 - Show QR Code (Display Only)

<table><thead><tr><th width="122.06060791015625">Tag</th><th width="81.33331298828125">Len</th><th width="365.33331298828125">Value / Description</th><th width="79">Typ</th><th width="77.3333740234375">Req</th><th width="98">Default</th></tr></thead><tbody><tr><td>Beginning of any wrappers, at minimum including <a href="https://magtek.gitbook.io/magtek-pilot-gitbooks/internal-documentation/index/3.0-messages-requests-responses-notifications-and-files/3.3-message-structure#table-11-request-message-format">Request Message</a>.</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>1822 = Command 0x1822 - Show QR Code (Display Only)</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>81</td><td>01</td><td>Display Time<br>- 0x00 = Indefinite<br>- 0x01 to 0xFF = 1 to 255 seconds</td><td>B</td><td>O</td><td>0x00</td></tr><tr><td>82</td><td>var</td><td>Data to Encode — See ISO/IEC 18004:2015</td><td>B</td><td>R</td><td></td></tr><tr><td>83</td><td>01</td><td>Error Correction<br>- 0x00 = Low<br>- 0x01 = Medium<br>- 0x02 = Quartile<br>- 0x03 = High<br>See ISO/IEC 18004:2015</td><td>B</td><td>O</td><td>0x00</td></tr><tr><td>84</td><td>01</td><td>Mask Pattern<br>- 0x00 to 0x07 = Mask Pattern<br>- 0xFF = Device Select Optimal Mask Pattern — See ISO/IEC 18004:2015</td><td>B</td><td>O</td><td>0xFF</td></tr><tr><td>85</td><td>01</td><td>Minimum Version — Must be less than or equal to Maximum Version<br>- 0x01 to 0x28 = Version 1 to Version 40 — See ISO/IEC 18004:2015</td><td>B</td><td>O</td><td>0x01</td></tr><tr><td>86</td><td>01</td><td><p>Maximum Version — Must be greater than or equal to Minimum Version<br>- 0x01 to 0x28 = Version 1 to Version 40</p><p>See <em>ISO/IEC 18004:2015</em></p></td><td>B</td><td>O</td><td>0x28</td></tr><tr><td>87</td><td>03</td><td>Block Color — Use RRGGBB format.</td><td>B</td><td>O</td><td>0x000000 (Black)</td></tr><tr><td>88</td><td>03</td><td>Background Color — Use RRGGBB format.</td><td>B</td><td>O</td><td>0xFFFFFF (White)</td></tr><tr><td>89</td><td>var</td><td><p>Prompt </p><p>Text for the device to display below the QR code. Because the device shows the Prompt using a proportional font, the maximum length that fits the display depends on the text and the device’s orientation set by Property 1.2.3.1.1.2 Custom Idle Page Image Device Locked (Display Only). In Landscape orientation, the upper limit is approximately 30 characters. In Portrait orientation, the limit is approximately 22 characters.</p></td><td>B</td><td>)</td><td>No prompt</td></tr><tr><td>End of any wrappers, at minimum including <a href="https://magtek.gitbook.io/magtek-pilot-gitbooks/internal-documentation/index/3.0-messages-requests-responses-notifications-and-files/3.3-message-structure#table-11-request-message-format">Request Message</a></td><td></td><td></td><td></td><td></td><td></td></tr></tbody></table>

## Table - Response Data for Command 0x1822 - Show QR Code (Display Only)

<table><thead><tr><th width="104.787841796875">Tag</th><th width="81.33331298828125">Len</th><th width="365.33331298828125">Value / Description</th><th width="79">Typ</th><th width="77.3333740234375">Req</th><th width="98">Default</th></tr></thead><tbody><tr><td>Beginning of any wrappers, at minimum including Request Message.</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>1822 = Command 0x1822 - Show QR Code (Display Only)</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>No parameters</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>End of any wrappers, at minimum including Request Message</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 **All Good, Requested Operation Was Successful.**

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

```hex
AA 00 81 04 01 05 18 22 84 41 18 22 81 01 3C 82 0F 54 68 69 73 20 69 73 20 61 20 74 65
73 74 21 83 01 00 84 01 FF 85 01 01 86 01 28 87 03 00 00 00 88 03 FF FF FF 89 13 50 6c 
65 61 73 65 20 73 63 61 6e 20 51 52 20 63 6f 64 65
```

{% endcode %}

## Table - Response Example

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

```hex
AA 00 81 04 82 2C 18 22 82 04 00 00 00 00
```

{% endcode %}

## Table - Notification Example

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

```hex
AA 00 81 04 83 00 18 05 82 04 02 01 00 00
```

{% endcode %}


---

# 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/hardware/card-readers/mms-dyna-devices/dynaflex-ii-ped/documentation/developers-manuals/dynaflex-ii-ped-programmers-manual/commands/user-interface/show-qr-code.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.
