EdgeX-API doc
  • EdgeX Foundry Background
  • Getting Started
    • Install
    • UI Console
      • V1.0
      • V1.1
    • Experiencing EdgeX
  • Edge to Cloud
    • Azure
    • AWS
    • Aliyun
  • Edge to Edge
    • MQTT Export Service
    • MQTT Import Service
    • Grafana Dashboard Connection
  • Industrial SDK Setup
  • Device Connection
    • Configuration
    • Programming Basics
    • EdgeX Version
    • Platform
      • System Information
      • RF
    • Cold Chain
      • G1 Sensor
      • Gateway
    • Printer
    • Scanner SDK
    • Battery
    • IP Camera
    • SNMP
    • Modbus
    • Medical Cart
  • Advanced Services APIs
    • EdgeX Service Layers
    • Core Data Service APIs
    • Meta Data Service APIs
    • Command Service APIs
    • Alarm Service APIs
  • Edge AI
    • Face Detection
    • Facial Recognition
  • Edge to WISE-PaaS
    • Smart Pump Station Solution
    • Cloud Cold Chain Solution
    • Integration with WISE-PaaS
  • Edge to Cloud(for Delhi only)
    • Azure
    • AWS
  • Retail Utility
    • OPOS Manager
  • Medical Utility
    • AMiS Link
  • Vertical Utility
    • Self-Diagnostics
    • System Diagnostics
    • DeviceChecking / Kiosk
    • DeviceChecking / Server
    • Device Diagnostic Dashboard
    • Windows Lockdown/ Kiosk
    • Retail System Manager
    • Scanner Utility
  • Application Cases
    • Smart Warehouse
    • Smart Kiosk
    • Demo Video
Powered by GitBook
On this page
  • Content
  • Printer Support List
  • Printer Setup
  • Command Lists
  • Version (GET)
  • WorkingStatus (GET)
  • PaperRollStatus (GET)
  • CashDrawerStatus (GET)
  • OpenCashDrawer (PUT)

Was this helpful?

  1. Device Connection

Printer

PreviousGatewayNextScanner SDK

Last updated 3 years ago

Was this helpful?

Content

  • Printer Support List

  • Printer Setup

  • Command Lists

Printer Support List

Printer Setup

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

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

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

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

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

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