# Printer

## Content

* Printer Support List
* Printer Setup
* Command Lists

## Printer Support List

![](https://1210863923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ldahy90A1eekcr5A2U8%2Fuploads%2FoRRwzOeaFSxwUp4nX3VP%2Fw.JPG?alt=media\&token=e5959443-08fd-4a0f-b859-8feb9168f261)

## Printer Setup

To edit the PortName and BaudRate setting on **Printer-XXXXX.ini**.

<div align="left"><img src="https://1210863923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ldahy90A1eekcr5A2U8%2Fuploads%2FhXGwJ6mbiYNPzwMAJSYQ%2F1.jpg?alt=media&#x26;token=18439cbd-5e70-42e6-8e28-5f7b941d9b9f" alt=""></div>

## Command Lists

### Version (GET)

Get the Printer function version of EdgeX.

**Restful API** : \
<http://RetailService-IP:49997/api/v1/device/name/**Printer-PPTC31**/Version> \
or \
<http://localhost:49997/api/v1/device/name/**Printer-PPTC31**/Version>

![](https://1210863923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ldahy90A1eekcr5A2U8%2Fuploads%2Fv3cmF5HX2WS7gD8XNyL6%2F2.JPG?alt=media\&token=254bdac6-ad75-4bfc-8710-a7b4663c6d92)

### WorkingStatus (GET)

Get the Printer Working Status of EdgeX.

**Restful API** : \
<http://RetailService-IP:49997/api/v1/device/name/**Printer-PPTC31**/WorkingStatus> \
or \
<http://localhost:49997/api/v1/device/name/**Printer-PPTC31**/WorkingStatus>

![](https://1210863923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ldahy90A1eekcr5A2U8%2Fuploads%2FOKbBUqbMV0VO9WkXvzvP%2F3.JPG?alt=media\&token=db947e71-53a5-408a-8b65-e931f04d6a88)

|                                                                                 |
| ------------------------------------------------------------------------------- |
| ***WorkingStatus Return Code:***                                                |
| **(0) NoError** - Normal                                                        |
| **(1) DeviceNodeOpenFail** - Open Serial port node fail                         |
| **(2) DeviceNodeReadTimeout** - Device out of expect time                       |
| **(3) DeviceIOPortDriverOpenFail** - IO Port Driver Open Fail                   |
| **(4) DeviceNodeCannotFind** - Serial port Cannot Find                          |
| **(5) DevicePrinterDriverException** - Windows Printer Driver Exception         |
| **(99) DeviceUnknown** - Not Response                                           |
| **(10001) RetailDeviceNodeOpenFail** - Device Node Open Fail                    |
| **(10002) RetailDeviceNodeReadTimeout** - Node Read Timeout                     |
| **(10003) RetailIllegalOperation** - Illegal Operation                          |
| **(10004) RetailCashDrawerIOPortFail -** Cash Drawer IO Port Driver Not Install |
| **(10005) RetailPrinterLidOpen -** Printer Lid open (Support TM-T88V)           |

### PaperRollStatus (GET)

Get the Printer Paper Roll Status of EdgeX.

**Restful API** : \
<http://RetailService-IP:49997/api/v1/device/name/**Printer-PPTC31**/PaperRollStatus> \
or \
<http://localhost:49997/api/v1/device/name/**Printer-PPTC31**/PaperRollStatus>

![](https://1210863923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ldahy90A1eekcr5A2U8%2Fuploads%2FItcoxR0WIP1c3dtw9vOi%2F4.JPG?alt=media\&token=83cc5e34-b3d9-409b-812c-761c7816f7d9)

|                                                                                     |
| ----------------------------------------------------------------------------------- |
| ***Retail Return Code***:                                                           |
| **(20001) RetailPrinterPaperNearEnd** - Roll paper near-end sensor: paper near-end  |
| **(20002) RetailPrinterPaperNotPresent -** Roll paper end sensor: paper not present |

### CashDrawerStatus (GET)

Get the Printer Cash Drawer Status of EdgeX.

**Restful API** : \
<http://RetailService-IP:49997/api/v1/device/name/**Printer-SLK-TL212**/CashDrawerStatus> \
or \
<http://localhost:49997/api/v1/device/name/**Printer-SLK-TL212**/CashDrawerStatus>

![](https://1210863923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ldahy90A1eekcr5A2U8%2Fuploads%2FLoOsLSFQIe2GCi3MVsgx%2F11.JPG?alt=media\&token=75258e1e-c43d-418c-922c-b598ea0eb5d7)

### OpenCashDrawer (PUT)

Set the Printer Cash Drawer OPEN of EdgeX.

**Restful API** : \
<http://RetailService-IP:49997/api/v1/device/name/**Printer-TM-T82II**/OpenCashDrawer> \
or \
<http://localhost:49997/api/v1/device/name/**Printer-TM-T82II**/OpenCashDrawer>

![](https://1210863923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ldahy90A1eekcr5A2U8%2Fuploads%2FP1lens7be1U7CMH1YQ5x%2F22.JPG?alt=media\&token=c5f023a7-c151-4f1b-82d2-a972cdd0a1f9)
