Javapos Driver Outline
Total Page:16
File Type:pdf, Size:1020Kb
PT390 POSPrinter, CashDrawer Application Programmer's Guide of Java for Retail POS Driver for Serial/ USB Interface Table of Contents Preface........................................................................................................................................... 1 1. Outline ................................................................................................................................ 4 1.1. Subject Scope of this document........................................................................................4 1.2. JavaPOS Driver Outline....................................................................................................5 1.3. Restrictions .......................................................................................................................7 1.4. Connection Way to POS Printer........................................................................................9 1.5. About install....................................................................................................................11 1.6. Setting Program Usage ...................................................................................................12 2. Using JavaPOS Driver ...................................................................................................... 16 2.1. Common .........................................................................................................................16 2.2. POS Printer .....................................................................................................................16 2.3. Drawer ............................................................................................................................16 2.4. Notes...............................................................................................................................16 3. JavaPOS Interface Specifications (Printer)....................................................................... 17 3.1. List ..................................................................................................................................17 3.2. Print Data and Escape Sequences ...................................................................................25 3.3. Common Properties ........................................................................................................30 CapCompareFirmwareVersion Property ........................................................................ 30 CapPowerReporting Property ........................................................................................ 30 CapStatisticsReporting Property .................................................................................... 31 CapUpdateFirmware Property ....................................................................................... 31 CapUpdateStatistics Property ........................................................................................ 31 CheckHealthText Property............................................................................................. 32 Claimed Property ........................................................................................................... 32 DeviceControlDescription Property............................................................................... 32 DeviceControlVersion Property..................................................................................... 33 PhysicalDeviceDescription ............................................................................................ 33 DeviceEnabled Property R/W........................................................................................ 34 PhysicalDeviceName Property ...................................................................................... 34 FreezeEvents Property R/W........................................................................................... 35 OutputID Property ......................................................................................................... 35 PowerNotify Property R/W............................................................................................ 36 PowerState Property....................................................................................................... 37 DeviceServiceDescription Property............................................................................... 37 DeviceServiceVersion Property ..................................................................................... 38 State Property................................................................................................................. 38 3.4. Common Method ............................................................................................................39 checkHealth Method ...................................................................................................... 39 claim Method ................................................................................................................. 40 clearOutput Method ....................................................................................................... 41 close Method.................................................................................................................. 41 compareFirmwareVersion Method................................................................................. 42 directIO Method............................................................................................................. 44 open Method .................................................................................................................. 45 release Method............................................................................................................... 45 resetStatistics Method .................................................................................................... 45 retrieveStatistics Method................................................................................................ 46 updateFirmwareMethod................................................................................................. 47 updateStatistics Method ................................................................................................. 48 3.5. Specific Properties ..........................................................................................................49 AsyncMode Property R/W............................................................................................. 49 CapCharacterSet Property.............................................................................................. 49 CapCoverSensor Property.............................................................................................. 50 CapMapCharacterSet Property ...................................................................................... 50 CapRec2Color Property ................................................................................................. 50 CapRecBarCode Property.............................................................................................. 51 CapRecBitmap Property ................................................................................................ 51 CapRecBold Property .................................................................................................... 51 CapRecCartridgeSensor Property .................................................................................. 52 CapRecColor Property ................................................................................................... 52 CapRecDhigh Property .................................................................................................. 52 CapRecDwide Property ................................................................................................. 53 CapRecDwideDhigh Property........................................................................................ 53 CapRecEmptySensor Property....................................................................................... 53 CapRecItalic Property.................................................................................................... 54 CapRecLeft90 Property ................................................................................................. 54 CapRecMarkFeed Property............................................................................................ 54 CapRecNearEndSensor Property ................................................................................... 55 CapRecPageMode Property ........................................................................................... 55 CapRecPapercut Property .............................................................................................. 55 CapRecRight90 Property ............................................................................................... 56 CapRecRotate180 Property............................................................................................ 56 CapRecStamp Property.................................................................................................. 56 CapRecUnderline Property ............................................................................................ 57 CapTransaction Property................................................................................................ 57 CartridgeNotify Property R/W......................................................................................