> 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/0xennn-security/0xef07-change-device-lock-passcode.md).

# 0xEF07 - Change Device Lock Passcode

The host can use this command to change the device’s lock passcode. The value of the device lock passcode is stored in non-volatile memory so changes made to it will persist after the device is reset or power cycled. To change the device lock passcode using MagTek security or to see its default value see [<mark style="color:red;">**Property 1.2.5.2.1.3- Device Lock Passcode**</mark>](https://developer.magtek.com/api-and-command-reference/dynafamily-programmers-manual/properties/1.1.2.nnn-sred-settings/1.1.2.nnn-sred-settings-b#property-1.1.2.5.1.3-track-2-enable-msr-only). See [<mark style="color:red;">**Device Lock Feature**</mark>](https://developer.magtek.com/guides/guides/security-and-key-management/pci-requirements#device-lock-feature) for more information.

## Change Device Lock Passcode - Request Data for Command 0xEF07&#x20;

<table><thead><tr><th width="204.3333740234375">Tag</th><th width="75.33331298828125">Len</th><th width="254.66668701171875">Value / Description</th><th width="74.33331298828125">Typ</th><th width="75.6666259765625">Req</th><th width="98.6666259765625">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>EF07 = <strong>Change Device Lock Passcode - Command 0xEF07</strong></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>81</td><td>4–63</td><td>Current Passcode. The current passcode in the clear. This must match the value of the current passcode or the command will fail.</td><td>B</td><td>M</td><td></td></tr><tr><td>82</td><td>04–63</td><td>New Passcode. The new passcode in the clear. It can only contain printable ASCII characters or the command will fail.</td><td>B</td><td>M</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 Change Device Lock Passcode - Command 0xEF07

<table><thead><tr><th width="260">Tag</th><th width="72.6666259765625">Len</th><th>Value / Description</th><th width="81.6666259765625">Typ</th><th width="75">Req</th><th width="98.666748046875">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>EF07 = <strong>Change Device Lock Passcode - Command 0xEF07</strong></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 <strong>Response Message</strong> </td><td></td><td></td><td></td><td></td><td></td></tr></tbody></table>

#### Request example&#x20;

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

```
AA00 81 04 0155EF07 84 0E EF07 810434333231 820434333231
```

{% endcode %}

#### Response example&#x20;

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

```
AA00 81048255EF07 820400000000 8402EF07
```

{% 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 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/0xennn-security/0xef07-change-device-lock-passcode.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.
