--- title: "Leica PTP operation codes" description: "The 2 Leica PTP operation codes Slate names (0x9005–0x9006), with parameters and data phase: LeicaLEOpenSession 0x9005 and LeicaLECloseSession 0x9006." url: https://darkgrade.com/docs/slate/ptp-reference/vendors/leica/leica-operation-definitions last_updated: 2026-12-04 docs_index: https://darkgrade.com/docs/llms.txt --- # Leica PTP operation codes > The 2 Leica PTP operation codes Slate names (0x9005–0x9006), with parameters and data phase: LeicaLEOpenSession 0x9005 and LeicaLECloseSession 0x9006. > ## Documentation Index > Fetch the complete documentation index at: https://darkgrade.com/docs/llms.txt > Use this file to discover all available pages before exploring further. Slate names 2 Leica operation codes, `0x9005` to `0x9006`: `LeicaLEOpenSession` and `LeicaLECloseSession`. Each has no data phase. Each is an [operation](https://darkgrade.com/docs/slate/ptp-reference.md#operations) with its own parameters, listed below beside the [standard ones](https://darkgrade.com/docs/slate/ptp-reference/operation-definitions.md). Leica has no driver in Slate: a Leica camera opens with the standard driver, which never sends them. To send one to a Leica camera yourself, use [`protocolSession(camera)`](https://darkgrade.com/docs/slate/getting_started/camera.md#protocol-access). Neither has been checked on a Leica camera; [Other brands](https://darkgrade.com/docs/slate/getting_started/camera-compatibility.md#other-brands) says what one can do. **Other operations** [Standard PTP](https://darkgrade.com/docs/slate/ptp-reference/operation-definitions.md) · [Canon](https://darkgrade.com/docs/slate/ptp-reference/vendors/canon/canon-operation-definitions.md) · [Sony](https://darkgrade.com/docs/slate/ptp-reference/vendors/sony/sony-operation-definitions.md) · [Nikon](https://darkgrade.com/docs/slate/ptp-reference/vendors/nikon/nikon-operation-definitions.md) · [Fujifilm](https://darkgrade.com/docs/slate/ptp-reference/vendors/fujifilm/fujifilm-operation-definitions.md) · [Panasonic](https://darkgrade.com/docs/slate/ptp-reference/vendors/panasonic/panasonic-operation-definitions.md) · [Olympus](https://darkgrade.com/docs/slate/ptp-reference/vendors/olympus/olympus-operation-definitions.md) · [Sigma](https://darkgrade.com/docs/slate/ptp-reference/vendors/sigma/sigma-operation-definitions.md) | Operation | Description | | - | - | | [`LeicaLEOpenSession`](#leicaleopensession-0x9005) | `0x9005` Opens the Leica extended session used for remote control. Not hardware-verified. | | [`LeicaLECloseSession`](#leicaleclosesession-0x9006) | `0x9006` Closes the Leica extended session. Not hardware-verified. | ## LeicaLEOpenSession (`0x9005`) Opens the Leica extended session used for remote control. Not hardware-verified. **Data direction** no data phase **Also known as** [`PTP_OC_LEICA_LEOpenSession`](https://github.com/gphoto/libgphoto2/blob/02d92fea8a269eb94330a4eade204ba799433606/camlibs/ptp2/ptp.h#L905) in libgphoto2 **Parameters** | Parameter | Description | | - | - | | [`SessionID`](https://darkgrade.com/docs/slate/ptp-reference.md#sessionid-and-transactionid) [`uint32`](https://darkgrade.com/docs/slate/ptp-reference/datatype-definitions.md#uint32-0x6) | Session identifier. | ## LeicaLECloseSession (`0x9006`) Closes the Leica extended session. Not hardware-verified. **Data direction** no data phase **Also known as** [`PTP_OC_LEICA_LECloseSession`](https://github.com/gphoto/libgphoto2/blob/02d92fea8a269eb94330a4eade204ba799433606/camlibs/ptp2/ptp.h#L906) in libgphoto2