ePOS SDK Android Um en Revv
ePOS SDK Android Um en Revv
User’s Manual
Functionality
How to Use
API Reference
Device Specifications
Sample Programs
Application Guide
Appendix
M00094421
Rev.V
Precautions
• Unauthorized duplication, copying, reproduction, or modification of any part or all of this document is strictly
prohibited.
• Contents of this manual are subject to change without prior notice. Contact us directly for the most recent
information.
• Every effort is made to ensure that the contents of this manual are without error. Please contact us if any errors
or other issues are found.
• The previous statement notwithstanding, we will not be liable for any negative impact as a result of use.
• Epson shall not be liable for any damages caused as a result of using this product incorrectly, failing to comply
with the content of this document, or having repair or modifications performed by third parties other than
Epson or those specified by Epson.
• Epson shall not be liable for any issues as a result of installing optional parts or consumables that are not gen-
uine Epson parts or parts certified by Epson.
Trademarks
EPSON, EXCEED YOUR VISION, and ESC/POS are registered trademarks of Seiko Epson Corporation.
Android™ is a trademark of Google LLC.
Java™ are trademarks of Oracle Corporation, its subsidiaries, and related companies in the United States and
other countries.
Wi-Fi® is a registered trademark of Wi-Fi Alliance®.
The Bluetooth® word mark and logo is a registered trademark of Bluetooth SIG, Inc. Seiko Epson uses these trade-
marks under the terms of license. Other trademarks and trade names are the property of their respective owners.
QR Code is a registered trademark of Denso Wave Incorporated.
All other trademarks are the property of their respective owners and used for identification purpose only.
Meaning of Symbols
The following symbols are used in this manual. Make sure to understand the meaning of these symbols before
using the product.
Describes usage precautions that must be observed. Incorrect handling due to the disregard of this informa-
tion may result in product failure or incorrect operation.
Usage Limitations
Please use our products in environments and systems designed with consideration to safety and disaster
recovery such as fail-safe configurations and redundant designs, for example, if this product is used in
applications in which a high level of reliability and safety in functionality and precision is required such as in
aircraft, trains, ships, automobiles and other transportation-related applications or in crime prevention
equipment and safety equipment.
This product is not intended for use in applications that require extremely high levels of reliability and safety
such as in aerospace equipment, trunk-line communications equipment, nuclear power control equipment, and
medical equipment. Consider your usage environment and requirements carefully before using this product in
such applications.
3
Contents
■ Safety Precautions ............................................................................................................... 3
Meaning of Symbols.................................................................................................................................................................................3
■ Usage Limitations ................................................................................................................ 3
■ About this Manual................................................................................................................ 3
Purpose of this Manual............................................................................................................................................................................3
Organization of this Manual ..................................................................................................................................................................3
■ Contents ............................................................................................................................... 4
Functionality ................................................................................12
■ Application Development in Epson ePOS SDK for Android ............................................... 12
TM Printer Models .................................................................................................................................................................................. 13
Customer Display Models.................................................................................................................................................................... 14
TM Printer + DM-D + barcode scanner model ............................................................................................................................. 15
POS Terminal Model .............................................................................................................................................................................. 16
■ Epson ePOS SDK for Android Development Environment ................................................ 17
■ Application Operating Environment.................................................................................. 17
Supported printers................................................................................................................................................................................. 17
Functions provided in each printer.................................................................................................................................................. 19
Controllable Peripheral Devices........................................................................................................................................................ 22
■ Downloadable Content ...................................................................................................... 24
■ Web Content....................................................................................................................... 25
■ Limitations ......................................................................................................................... 25
4
MSR class ................................................................................................................................................................................................... 49
SimpleSerial class ................................................................................................................................................................................... 50
GermanyFiscalElement class .............................................................................................................................................................. 50
OtherPeripheral class ............................................................................................................................................................................ 50
CommBox class ....................................................................................................................................................................................... 51
Common to all classes .......................................................................................................................................................................... 51
Discovery class......................................................................................................................................................................................... 51
Epos2Exception class ............................................................................................................................................................................ 51
Log class..................................................................................................................................................................................................... 52
EasySelect class ....................................................................................................................................................................................... 52
EasySelectInfo class ............................................................................................................................................................................... 52
■ Printer class........................................................................................................................ 53
Printer ......................................................................................................................................................................................................... 53
connect ...................................................................................................................................................................................................... 56
disconnect................................................................................................................................................................................................. 60
startMonitor ............................................................................................................................................................................................. 61
stopMonitor.............................................................................................................................................................................................. 62
getStatus.................................................................................................................................................................................................... 63
sendData.................................................................................................................................................................................................... 66
beginTransaction .................................................................................................................................................................................... 67
endTransaction........................................................................................................................................................................................ 68
requestPrintJobStatus .......................................................................................................................................................................... 69
clearCommandBuffer............................................................................................................................................................................ 70
addTextAlign ............................................................................................................................................................................................ 71
addLineSpace .......................................................................................................................................................................................... 72
addTextRotate ......................................................................................................................................................................................... 73
addText....................................................................................................................................................................................................... 74
addTextLang............................................................................................................................................................................................. 75
addTextFont.............................................................................................................................................................................................. 76
addTextSmooth....................................................................................................................................................................................... 77
addTextSize............................................................................................................................................................................................... 78
addTextStyle............................................................................................................................................................................................. 79
addHPosition............................................................................................................................................................................................ 81
addFeedUnit............................................................................................................................................................................................. 82
addFeedLine............................................................................................................................................................................................. 83
addImage .................................................................................................................................................................................................. 84
addLogo..................................................................................................................................................................................................... 88
addBarcode............................................................................................................................................................................................... 89
addSymbol................................................................................................................................................................................................ 94
addHLine ................................................................................................................................................................................................... 99
addVLineBegin ......................................................................................................................................................................................101
addVLineEnd ..........................................................................................................................................................................................103
addPageBegin........................................................................................................................................................................................104
addPageEnd ...........................................................................................................................................................................................105
addPageArea..........................................................................................................................................................................................106
addPageDirection.................................................................................................................................................................................108
addPagePosition...................................................................................................................................................................................109
addPageLine...........................................................................................................................................................................................111
addPageRectangle...............................................................................................................................................................................113
addRotateBegin ....................................................................................................................................................................................115
addRotateEnd ........................................................................................................................................................................................117
addCut ......................................................................................................................................................................................................118
addPulse ..................................................................................................................................................................................................119
addSound................................................................................................................................................................................................121
addFeedPosition ...................................................................................................................................................................................124
addLayout ...............................................................................................................................................................................................125
addCommand........................................................................................................................................................................................129
5
getMaintenanceCounter....................................................................................................................................................................130
resetMaintenanceCounter ................................................................................................................................................................132
getPrinterSetting ..................................................................................................................................................................................134
setPrinterSetting...................................................................................................................................................................................137
getPrinterSettingEx .............................................................................................................................................................................141
setPrinterSettingEx ..............................................................................................................................................................................142
getPrinterInformation.........................................................................................................................................................................144
downloadFirmwareList.......................................................................................................................................................................148
getPrinterFirmwareInfo......................................................................................................................................................................150
verifyUpdate...........................................................................................................................................................................................152
updateFirmware....................................................................................................................................................................................154
forceRecover...........................................................................................................................................................................................157
forcePulse ................................................................................................................................................................................................158
forceStopSound ....................................................................................................................................................................................160
forceCommand......................................................................................................................................................................................161
forceReset................................................................................................................................................................................................162
setStatusChangeEventListener .......................................................................................................................................................163
setReceiveEventListener ....................................................................................................................................................................165
setGetPrinterSettingExListener .......................................................................................................................................................167
setSetPrinterSettingExListener........................................................................................................................................................169
interval......................................................................................................................................................................................................171
■ HybridPrinter class........................................................................................................... 172
HybridPrinter..........................................................................................................................................................................................172
connect ....................................................................................................................................................................................................173
disconnect...............................................................................................................................................................................................176
startMonitor ...........................................................................................................................................................................................177
stopMonitor............................................................................................................................................................................................178
getStatus..................................................................................................................................................................................................179
sendData..................................................................................................................................................................................................181
beginTransaction ..................................................................................................................................................................................182
endTransaction......................................................................................................................................................................................183
clearCommandBuffer..........................................................................................................................................................................184
selectPaperType....................................................................................................................................................................................185
waitInsertion ..........................................................................................................................................................................................186
cancelInsertion......................................................................................................................................................................................187
ejectPaper ...............................................................................................................................................................................................188
readMicrData..........................................................................................................................................................................................189
cleanMicrReader ...................................................................................................................................................................................190
forceRecover...........................................................................................................................................................................................191
forcePulse ................................................................................................................................................................................................192
forceCommand......................................................................................................................................................................................194
forceReset................................................................................................................................................................................................195
paperType ...............................................................................................................................................................................................196
interval......................................................................................................................................................................................................197
waitTime ..................................................................................................................................................................................................198
mode40Cpl .............................................................................................................................................................................................199
setStatusChangeEventListener .......................................................................................................................................................200
setReceiveEventListener ....................................................................................................................................................................202
■ LineDisplay class .............................................................................................................. 205
LineDisplay..............................................................................................................................................................................................205
connect ....................................................................................................................................................................................................206
disconnect...............................................................................................................................................................................................209
getStatus..................................................................................................................................................................................................210
sendData..................................................................................................................................................................................................211
clearCommandBuffer..........................................................................................................................................................................212
addInitialize ............................................................................................................................................................................................213
6
addCreateWindow ...............................................................................................................................................................................214
addDestroyWindow.............................................................................................................................................................................216
addSetCurrentWindow.......................................................................................................................................................................217
addClearCurrentWindow...................................................................................................................................................................218
addCreateScreen ..................................................................................................................................................................................219
addCreateScreenCustom...................................................................................................................................................................222
addCreateTextArea...............................................................................................................................................................................225
addDestroyTextArea............................................................................................................................................................................227
addSetCurrentTextArea......................................................................................................................................................................228
addClearCurrentTextArea..................................................................................................................................................................229
addSetCursorPosition .........................................................................................................................................................................230
addMoveCursorPosition ....................................................................................................................................................................232
addSetCursorType................................................................................................................................................................................233
addText.....................................................................................................................................................................................................234
addReverseText .....................................................................................................................................................................................237
addMarqueeText...................................................................................................................................................................................239
addSetBlink.............................................................................................................................................................................................241
addSetBrightness .................................................................................................................................................................................242
addBackgroundColor..........................................................................................................................................................................243
addStartSlideShow ..............................................................................................................................................................................245
addStopSlideShow...............................................................................................................................................................................246
addDownloadImage ...........................................................................................................................................................................247
addRegisterDownloadImage ...........................................................................................................................................................249
addNVImage ..........................................................................................................................................................................................251
addClearImage ......................................................................................................................................................................................253
addSymbol..............................................................................................................................................................................................254
addClearSymbol....................................................................................................................................................................................257
addShowClock.......................................................................................................................................................................................258
addCommand........................................................................................................................................................................................259
setReceiveEventListener ....................................................................................................................................................................260
■ Keyboard class ................................................................................................................. 262
Keyboard .................................................................................................................................................................................................262
connect ....................................................................................................................................................................................................263
disconnect...............................................................................................................................................................................................265
getStatus..................................................................................................................................................................................................266
setPrefix....................................................................................................................................................................................................267
getPrefix...................................................................................................................................................................................................268
setKeyPressEventListener..................................................................................................................................................................269
setReadStringEventListener .............................................................................................................................................................270
■ POSKeyboard class........................................................................................................... 271
PosKeyboard ..........................................................................................................................................................................................271
connect ....................................................................................................................................................................................................272
disconnect...............................................................................................................................................................................................274
getStatus..................................................................................................................................................................................................275
setKeyPressEventListener..................................................................................................................................................................276
■ BarcodeScanner class....................................................................................................... 277
BarcodeScanner ....................................................................................................................................................................................277
connect ....................................................................................................................................................................................................278
disconnect...............................................................................................................................................................................................281
getStatus..................................................................................................................................................................................................282
setScanEventListener..........................................................................................................................................................................283
■ MSR class.......................................................................................................................... 284
Msr .............................................................................................................................................................................................................284
connect ....................................................................................................................................................................................................285
7
disconnect...............................................................................................................................................................................................287
getStatus..................................................................................................................................................................................................288
setDataEventListener ..........................................................................................................................................................................289
■ SimpleSerial class ............................................................................................................ 291
SimpleSerial............................................................................................................................................................................................291
connect ....................................................................................................................................................................................................292
disconnect...............................................................................................................................................................................................294
getStatus..................................................................................................................................................................................................295
sendCommand......................................................................................................................................................................................296
setReceiveEventListener ....................................................................................................................................................................297
■ GermanyFiscalElement Class ........................................................................................... 298
GermanyFiscalElement.......................................................................................................................................................................298
connect ....................................................................................................................................................................................................299
disconnect...............................................................................................................................................................................................303
getStatus..................................................................................................................................................................................................304
operate .....................................................................................................................................................................................................305
setReceiveEventListener ....................................................................................................................................................................306
■ OtherPeripheral class....................................................................................................... 308
OtherPeripheral.....................................................................................................................................................................................308
connect ....................................................................................................................................................................................................309
disconnect...............................................................................................................................................................................................311
getStatus..................................................................................................................................................................................................312
sendData..................................................................................................................................................................................................313
setReceiveEventListener ....................................................................................................................................................................314
■ CommBox class................................................................................................................. 315
CommBox................................................................................................................................................................................................315
connect ....................................................................................................................................................................................................316
disconnect...............................................................................................................................................................................................318
getStatus..................................................................................................................................................................................................319
getCommHistory ..................................................................................................................................................................................320
sendMessage .........................................................................................................................................................................................322
setReceiveEventListener ....................................................................................................................................................................324
■ Common to all classes ...................................................................................................... 325
getAdmin.................................................................................................................................................................................................325
getLocation.............................................................................................................................................................................................326
setConnectionEventListener ............................................................................................................................................................327
■ Discovery class ................................................................................................................. 329
start............................................................................................................................................................................................................329
stop............................................................................................................................................................................................................334
■ Epos2Exception class ....................................................................................................... 335
getErrorStatus........................................................................................................................................................................................335
■ Log class ........................................................................................................................... 336
setLogSettings.......................................................................................................................................................................................336
SdkVersion ..............................................................................................................................................................................................338
■ EasySelect class................................................................................................................ 339
parseNFC .................................................................................................................................................................................................339
parseQR....................................................................................................................................................................................................340
createQR ..................................................................................................................................................................................................341
■ EasySelectInfo class ......................................................................................................... 342
deviceType ..............................................................................................................................................................................................342
8
printerName ...........................................................................................................................................................................................342
macAddress ............................................................................................................................................................................................342
■ Status list ......................................................................................................................... 343
Error Status and countermeasures.................................................................................................................................................343
Callback Code and countermeasures............................................................................................................................................345
Printer Status and countermeasures .............................................................................................................................................348
■ Key code list ..................................................................................................................... 352
Device Specifications..................................................................354
■ List of Supported Classes ................................................................................................. 354
■ List of Supported APIs...................................................................................................... 357
Printer class.............................................................................................................................................................................................357
LineDisplay class ...................................................................................................................................................................................370
Common to all classes ........................................................................................................................................................................377
EasySelect class .....................................................................................................................................................................................379
■ Printer-specific Support Information .............................................................................. 381
TM-m10 ....................................................................................................................................................................................................381
TM-m30 ....................................................................................................................................................................................................386
TM-m30II..................................................................................................................................................................................................393
TM-m30II-H .............................................................................................................................................................................................400
TM-m30II-NT...........................................................................................................................................................................................406
TM-m30II-S..............................................................................................................................................................................................412
TM-m30II-SL............................................................................................................................................................................................418
TM-m50 ....................................................................................................................................................................................................424
TM-T20......................................................................................................................................................................................................431
TM-T20II....................................................................................................................................................................................................435
TM-T20III ..................................................................................................................................................................................................440
TM-T20IIIL ................................................................................................................................................................................................445
TM-T20X ...................................................................................................................................................................................................449
TM-T60......................................................................................................................................................................................................453
TM-T70......................................................................................................................................................................................................457
TM-T70II....................................................................................................................................................................................................461
TM-T81II....................................................................................................................................................................................................465
TM-T81III ..................................................................................................................................................................................................469
TM-T82......................................................................................................................................................................................................473
TM-T82II....................................................................................................................................................................................................477
TM-T82III ..................................................................................................................................................................................................481
TM-T82IIIL ................................................................................................................................................................................................486
TM-T82X ...................................................................................................................................................................................................490
TM-T83II....................................................................................................................................................................................................494
TM-T83III ..................................................................................................................................................................................................498
TM-T88V ...................................................................................................................................................................................................502
TM-T88VI ..................................................................................................................................................................................................506
TM-T88VII.................................................................................................................................................................................................513
TM-T100 ...................................................................................................................................................................................................520
TM-L90 Liner-Free Label Printer Model ........................................................................................................................................524
TM-U220 ..................................................................................................................................................................................................528
TM-U330 ..................................................................................................................................................................................................531
EU-m30.....................................................................................................................................................................................................534
TM-P20 .....................................................................................................................................................................................................540
TM-P60 (Receipt)...................................................................................................................................................................................547
TM-P60 (Peeler) .....................................................................................................................................................................................551
9
TM-P60II (Receipt) ................................................................................................................................................................................556
TM-P60II (Peeler)...................................................................................................................................................................................561
TM-P80 .....................................................................................................................................................................................................566
TM-H6000V .............................................................................................................................................................................................572
TM-T20II-i.................................................................................................................................................................................................577
TM-T70-i ...................................................................................................................................................................................................582
TM-T82II-i.................................................................................................................................................................................................586
TM-T83II-i.................................................................................................................................................................................................591
TM-T88V-i.................................................................................................................................................................................................596
TM-T88VI-iHUB.......................................................................................................................................................................................601
TM-U220-i................................................................................................................................................................................................608
TM-T70II-DT.............................................................................................................................................................................................611
TM-T70II-DT2 ..........................................................................................................................................................................................616
TM-T88V-DT ............................................................................................................................................................................................621
TM-T88VI-DT2.........................................................................................................................................................................................626
TM-H6000IV-DT .....................................................................................................................................................................................631
TM-T88IV ..................................................................................................................................................................................................636
TM-T90......................................................................................................................................................................................................640
TM-L90......................................................................................................................................................................................................644
TM-H6000IV ............................................................................................................................................................................................648
■ Usage restriction by firmware version ............................................................................. 652
TM-i Series/TM-DT Series ...................................................................................................................................................................652
TM-m30 ....................................................................................................................................................................................................653
TM-m30II-H/TM-m30II-NT/TM-m30II-S/TM-m30II-SL..............................................................................................................654
TM-T88VI ..................................................................................................................................................................................................654
TM-T88VI-iHUB.......................................................................................................................................................................................655
Application Guide.......................................................................664
■ To connect via USB ........................................................................................................... 664
■ To search printers............................................................................................................. 665
10
■ To monitor continuously .................................................................................................. 666
■ To use the same printer from multiple mobile devices .................................................... 668
■ To specify a transaction.................................................................................................... 669
■ To reconnect to the network automatically ..................................................................... 670
■ To transmit and receive the data between applications .................................................. 671
■ To perform forward printing............................................................................................ 673
■ To select a printer using its NFC tag ................................................................................. 675
■ To select a printer using its QR code................................................................................. 677
■ To perform check process................................................................................................. 679
■ To control multiple peripheral devices ............................................................................ 681
■ To control multiple peripheral devices ............................................................................ 682
■ To update the printer firmware version ........................................................................... 683
Appendix ....................................................................................684
■ Open Source Software Licensing ..................................................................................... 684
Sample Programs..................................................................................................................................................................................684
libraries.....................................................................................................................................................................................................684
11
Chapter 1 Functionality - Application Development in Epson ePOS SDK for Android
Functionality
Epson ePOS SDK for Android is an SDK for developing Android applications. Using Epson ePOS SDK for Android
enables the use of simple code to control TM printers. Also, in some TM printers, peripheral devices such as the
customer display and barcode scanner that are connected to the printer, and slave printers that are connected
over a network can be controlled. In addition, application software using unique functions such as the spooler
function and Communication Box, etc. can also be developed.
Type Description
Collective name for the following receipt printer models:
• Single-function models
• Mobile models
TM Printers
• Hybrid models
• TM-i Series
• TM-DT Series
12
Chapter 1 Functionality - Application Development in Epson ePOS SDK for Android
TM Printer Models
This is a system in which a smart device and TM printer are connected through communication.
A connection method (Bluetooth/Wi-Fi/Ethernet/USB) conforming to the specifications of your smart device and
TM printer can be selected.
Multiple TM printers can be controlled via a Wi-Fi/Ethernet connection.
TM Prin
ter
13
Chapter 1 Functionality - Application Development in Epson ePOS SDK for Android
TM Prin
ter
When using the DM-D70 in the following cases, the ePOS-Device settings of the DM-D70 must be changed
to "DM-D30".
• In a system using SSL/TSL communication for establishing a connection between the printer and the
smart device, replace the DM-D30 with the DM-D70.
• Replace the DM-D30 connected to the TM-m30/TM-m30II/TM-m50/TM-T88VI/TM-T88VI-iHUB with the
DM-D70.
To change the ePOS-Device settings of the DM-D70, use the DM-D70 Utility.
14
Chapter 1 Functionality - Application Development in Epson ePOS SDK for Android
DM-D30 DM-D70
TM-m30 ✔ -
TM-m30II ✔ -
TM-m30II-H ✔ ✔
TM-m30II-NT ✔ ✔
TM-m30II-S ✔ ✔
TM-m30II-SL ✔ ✔
TM-m50 ✔ -
TM-T88VI ✔ -
TM-T88VII ✔ ✔
TM Prin
ter
15
Chapter 1 Functionality - Application Development in Epson ePOS SDK for Android
Slave P
rinter
Master
Printer
In addition to Epson's peripheral devices, the POS terminal model can control various peripheral devices from
the device control program and device control script originally developed by Epson.
Since the software to be loaded and the version of the software differ depending on the TM printer that acts as
the POS terminal, the peripheral devices that can be controlled are also different.
For details on controllable peripheral devices, refer to the Technical Reference Guide of the printer.
The device control programs are implemented in TM-DT series (TM-DT software version 4.0 or later).
Refer to TM-DT Series Peripheral Device Control Guide for information on the device control programs and
device control scripts.
16
Chapter 1 Functionality - Epson ePOS SDK for Android Development Environment
Supported printers
The following list of printers can be controlled from the applications.
Usable interfaces vary depending on the specific TM printer. Refer to the Technical Reference Guide of each
printer for more information.
Single-function models
❏ TM-m10 ❏ TM-T20IIIL ❏ TM-T82X
❏ TM-m30 ❏ TM-T20X ❏ TM-T83II
❏ TM-m30II ❏ TM-T60 ❏ TM-T83III
❏ TM-m30II-H ❏ TM-T70 ❏ TM-T88V
❏ TM-m30II-NT ❏ TM-T70II ❏ TM-T88VI
❏ TM-m30II-S ❏ TM-T81II ❏ TM-T88VII
❏ TM-m30II-SL ❏ TM-T81III ❏ TM-T100
❏ TM-m50 ❏ TM-T82 ❏ TM-L90 Liner-Free Label Printer Model
❏ TM-T20 ❏ TM-T82II ❏ TM-U220
❏ TM-T20II ❏ TM-T82III ❏ TM-U330
❏ TM-T20III ❏ TM-T82IIIL ❏ EU-m30
Mobile models
❏ TM-P20 ❏ TM-P60II
❏ TM-P60 ❏ TM-P80
Hybrid models
❏ TM-H6000V
17
Chapter 1 Functionality - Application Operating Environment
TM-i Series
❏ TM-T20II-i ❏ TM-T88V-i (TM-i firmware Ver. 4.0 or later)
❏ TM-T70-i (TM-i firmware Ver. 4.0 or later) ❏ TM-T88VI-iHUB
❏ TM-T82II-i ❏ TM-U220-i
❏ TM-T83II-i
TM-DT Series
❏ TM-T70II-DT ❏ TM-T88VI-DT2
❏ TM-T70II-DT2 ❏ TM-H6000IV-DT
❏ TM-T88V-DT
18
Chapter 1 Functionality - Application Operating Environment
Spooler/Print Forwarding
Control of slave printers
Communication Box
TM-m10 - - ✔ ✔ - - - - ✔ ✔
*5
TM-m30 - - ✔ ✔ - - - ✔ ✔ ✔
TM-m30II - - ✔ ✔*5 - - - ✔ ✔ ✔
TM-m30II-H - - ✔ ✔*5 - - - ✔ ✔ ✔
*5
TM-m30II-NT - - ✔ ✔ - - - ✔ ✔ ✔
TM-m30II-S - - ✔ ✔*5 - - - ✔ - ✔
*5
TM-m30II-SL - - ✔ ✔ - - - ✔ - ✔
TM-m50 - - ✔ ✔*5 - - - ✔ ✔ ✔
TM-T20 - - ✔ - - - - - - ✔
TM-T20II - - ✔ - - - - - - ✔
TM-T20III - - ✔ - - - - - - ✔
TM-T20IIIL - - ✔ - - - - - - ✔
TM-T20X - - ✔ - - - - - - ✔
TM-T60 - - - - - - - - - ✔
TM-T70 - - ✔ - - - - - - ✔
TM-T70II - ✔*4 ✔ - - - - - - ✔
TM-T81II - - - - - - - - - ✔
TM-T81III - - ✔ - - - - - - ✔
TM-T82 - - ✔ - - - - - - ✔
TM-T82II - ✔*4 ✔ - - - - - - ✔
TM-T82III - ✔*4 ✔ - - - - - - ✔
TM-T82IIIL - - ✔ - - - - - - ✔
TM-T82X - - ✔ - - - - - - ✔
TM-T83II - ✔*4 ✔ - - - - - - ✔
19
Chapter 1 Functionality - Application Operating Environment
Spooler/Print Forwarding
Control of slave printers
Communication Box
TM-T83III - - ✔ - - - - - - ✔
TM-T88V - ✔*4 ✔ - - - - - - ✔
TM-T88VI ✔*3 ✔*4 ✔ ✔*5 ✔ ✔ - ✔ ✔ ✔
*3
TM-T88VII ✔ ✔*4 ✔ ✔*5 - - - ✔ ✔ ✔
TM-T100 - - ✔ - - - - - - ✔
TM-L90 Liner-Free Label Printer
- - ✔ - - - - - - ✔
Model
TM-U220 - - - - - - - - - ✔
TM-U330 - - - - - - - - - ✔
EU-m30 - - - ✔ - - - - - ✔
TM-P20 - ✔ - - - - - - ✔ ✔
TM-P60 - - - - - - - - - ✔
TM-P60II - ✔ - - - - - - ✔ ✔
TM-P80 - ✔ - - - - - - ✔ ✔
TM-H6000V ✔ - - ✔ - - - ✔ ✔ ✔
TM-T20II-i ✔ - ✔ - ✔ ✔ ✔ ✔ - -
TM-T70-i ✔ - - - ✔ ✔ ✔ ✔ - -
TM-T82II-i ✔ ✔*4 ✔ - ✔ ✔ ✔ ✔ - -
TM-T83II-i ✔ ✔*4 ✔ - ✔ ✔ ✔ ✔ - -
TM-T88V-i ✔ - ✔ - ✔ ✔ ✔ ✔ - -
*4
TM-T88VI-iHUB ✔ ✔ ✔ - ✔ ✔ ✔ ✔ ✔ -
TM-U220-i ✔ - - - ✔ ✔ ✔ ✔ - -
TM-T70II-DT ✔ - ✔ - ✔ ✔ ✔ ✔ - -
TM-T70II-DT2 ✔ - ✔ - ✔ ✔ ✔ ✔ - -
TM-T88V-DT ✔ - ✔ - ✔ ✔ ✔ ✔ - -
TM-T88VI-DT2 ✔ - ✔ - ✔ ✔ ✔ ✔ - -
TM-H6000IV-DT ✔ - - - ✔ ✔ ✔ ✔ - -
20
Chapter 1 Functionality - Application Operating Environment
*1: To communicate with the printer using SSL/TLS, select "TCPS" as the connection type in the connect API.
*2: The peripheral devices that can be used differ according to the printer. Refer to the Technical Reference Guide of each printer.
*3: Cannot be used in the system configuration of the customer display + barcode scanner model.
21
Chapter 1 Functionality - Application Operating Environment
• The peripheral devices that can be used differ according to the printer. Refer to Functions provided in
each printer or the Technical Reference Guide of each printer.
• By developing a device control program, a TM-DT series printer can control peripheral devices other than
those introduced here.
Refer to TM-DT Series Peripheral Device Control Guide for information on the development.
Slave printer
Wi-Fi enabled models of the following TM printers
❏ TM-P20
❏ TM-P60II (Peeler)
❏ TM-P80
22
Chapter 1 Functionality - Application Operating Environment
Customer display
❏ DM-D30 ❏ DM-D110
❏ DM-D70 ❏ DM-D210
• When using DM-D70, available display mode (Standard mode or Fixed column and row mode) varies by
connected printer.
For more details, see DM-D70 Technical Reference Guide.
• When replacing the DM-D30 with the DM-D70 in the following system configurations, use the DM-D70 in
the column/row fixed mode.
∗ Customer Display Models (SSL/TLS communication)
∗ TM Printer+DM-D+barcode scanner model
∗ POS Terminal Model
23
Chapter 1 Functionality - Downloadable Content
Downloadable Content
Epson ePOS SDK for Android packages include the following files.
ePOSEasySelect.jar Contains Java class files that enable simple printer selection.
libeposeasyselect.so Libraries used for functions that enable easy printer selection (Com-
patible with ARMv5TE).
24
Chapter 1 Functionality - Web Content
TM-DT_Peripherals_ja_revx.pdf This is the Japanese TM-DT Series Peripheral Device Control Guide.
This guide describes how to control peripheral devices with TM-DT
series.
TM-DT_Peripherals_en_revx.pdf This is the English TM-DT Series Peripheral Device Control Guide.
JSON_Specification.pdf This is the JSON specifications. This describes the JSON specifications
that are used for GermanyFiscalElement class.
ePOS_SDK_Android_Migration_Guide_ This is the Japanese migration guide. This guide describes the proce-
ja_revx.pdf dure to migrate from the ePOS-Print SDK or ePOS-Device SDK.
Web Content
Online reference is publicly available from the following website.
https://reference.epson-biz.com/pos/reference/
Limitations
❏ Set the barcode scanner suffix to CR (carriage return code). Data cannot be obtained using any other settings.
❏ When using 2D barcode scanners, Japanese and other multi-byte characters cannot be read correctly.
However, when the following printer and 2D barcode scanner are used in combination to read QR codes,
multi-byte characters in UTF-8 encoding can be acquired correctly.
• TM-m30 • TM-m30II-SL
• TM-m30II • TM-m50
• TM-m30II-H • TM-T88VI
• TM-m30II-NT • TM-T88VII
• TM-m30II-S
❏ Control codes cannot be read from 2D barcode data if it contains ASCII control codes (0x00 through 0x1F).
❏ The number of device ports that can be simultaneously opened in the same application is 16 ports.
❏ Activity may sometimes be destroyed when rotating the screen. When storing print instances as Activity, call
closePrinter from the Print class before the Activity is destroyed.
❏ Communication will be disrupted if a terminal enters sleep mode while communicating with a printer via a
Bluetooth connection.
❏ When using a virtual device, a MAC address cannot be used in the target parameter for the connect API.
25
Chapter 2 How to Use - Printer Connections
How to Use
This section describes how to create Epson ePOS SDK for Android projects and some basic programming
methods used in the Epson ePOS SDK for Android.
Printer Connections
Connect smart devices and printers using a connection method that matches the system you want to create.
Refer to the Technical Reference Guide of each printer for more information.
1 Start Android Studio and click on Start a new Android Studio project to create a new
project.
26
Chapter 2 How to Use - Creating an Epson ePOS SDK for Android Project
2 Configure the project in accordance with the type of application you will create.
Configure the project in accordance with the instructions shown on the screen.
5 Depending on your CPU, store the following folders bundled with this package in the
jniLibs folder:
❏ armeabi
❏ arm64-v8a
❏ armeabi-v7a
❏ x86
❏ x86_64
27
Chapter 2 How to Use - Creating an Epson ePOS SDK for Android Project
8 Double-click on AndroidManifest.xml.
28
Chapter 2 How to Use - Creating an Epson ePOS SDK for Android Project
9 Under the <manifest> element, declare the permission that specifies the method for
connecting with devices.
It is recommended to declare the permission even when connecting with a device via USB.
Refer to README.en.txt for more information.
❏ TCP
When using an application software that runs on Android 4.3.1 or lower, add permissions for the
storage shown below.
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"/>
❏ Wi-Fi
<uses-permission android:name="android.permission.INTERNET"/>
❏ Bluetooth
“ACCESS_COARSE_LOCATION” is required for Android 6.0 or later.
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION"/>
29
Chapter 2 How to Use - Programming Guide
Programming Guide
This section describes some of the basic programming methods used in the Epson ePOS SDK for Android.
Programming Flow
This section describes a flow to create a program for controlling printers or peripheral devices respectively.
❏ Controlling Printers
❏ Controlling Customer Displays
❏ Controlling Keyboards and Barcode Scanners
Controlling Printers
The method of controlling the TM printer and slave printer, and programming receipt printing is described
below.
printer.setReceiveEventListener(this);
30
Chapter 2 How to Use - Programming Guide
try {
printer.addTextAlign(Printer.ALIGN_CENTER);
printer.addText("Hello World");
}
catch (Epos2Exception e) {
//Displays error messages
}
try {
printer.connect("TCP:192.168.192.168", Printer.PARAM_DEFAULT);
}
catch (Epos2Exception e) {
//Displays error messages
}
Run the print process and retrieve the print result in the callback. Do not add an API command in the callback.
try {
printer.sendData(Printer.PARAM_DEFAULT);
}
catch (Epos2Exception e) {
// Displays error messages
// Abort process
}
public void onPtrReceive(final Printer printerObj, final int code, final PrinterStatusInfo status,
final String printJobId) {
runOnUiThread(new Runnable() {
@Override
public synchronized void run() {
if (code == Epos2CallbackCode.CODE_SUCCESS) {
//Displays successful print messages
}
else {
//Displays error messages
}
}
});
new Thread(new Runnable() {
@Override
public synchronized void run() {
//Abort process
}
}).start();
}
When an error occurs, the print data that has been created is not erased until the command buffer is cleared.
The print data can be used for re-printing in cases such as when the error processing ends.
31
Chapter 2 How to Use - Programming Guide
try {
printer.disconnect();
}
catch (Epos2Exception e) {
//Displays error messages
}
printer.clearCommandBuffer();
printer.setReceiveEventListener(null);
linedisplay.setReceiveEventListener(this);
try {
linedisplay.addText("Hello World");
}
catch (Epos2Exception e) {
//Displays error messages
}
32
Chapter 2 How to Use - Programming Guide
try {
linedisplay.connect("TCP:192.168.192.168", LineDisplay.PARAM_DEFAULT);
}
catch (Epos2Exception e) {
//Displays error messages
}
if (status.connection) {
try {
linedisplay.sendData();
}catch (Epos2Exception e) {
// Displays error messages
// Abort process
}
}else {
// Displays error messages
// Abort process
}
try {
linedisplay.disconnect();
}
catch (Epos2Exception e) {
//Displays error messages
}
Clear the command buffer and terminate the customer display control.
linedisplay.clearCommandBuffer();
linedisplay.setReceiveEventListener(null);
33
Chapter 2 How to Use - Programming Guide
2. Receiving data
try {
keyboard = new Keyboard(this);
keyboard.setKeyPressEventListener(mKeyPressEvent);
keyboard.connect("TCP:192.168.192.168[local_keyboard]"), Keyboard.PARAM_DEFAULT);
}
catch (Epos2Exception e) {
//Displays errors
keyboard.setKeyPressEventListener(null);
}
Receiving data
Create the key press event listener.
34
Chapter 2 How to Use - Programming Guide
try {
keyboard.disconnect();
}
catch (Epos2Exception e) {
//Displays errors
}
keyboard.setKeyPressEventListener(null);
keyboard = null;
35
Chapter 2 How to Use - Programming Guide
Receipt
Effective after setting add* until sendData is executed.
The configured values are initialized every time sendData is executed. See below.
printer.addText("Hello World!\n");
printer.addTextFont(Printer.FONT_B);
printer.addText("Hello World!\n");
printer.addText("Hello World!\n");
printer.sendData(Printer.PARAM_DEFAULT);
printer.clearCommandBuffer;
printer.addText("Hello World!\n");
printer.sendData(Printer.PARAM_DEFAULT);
printer.clearCommandBuffer;
HybridPrinter.selectPaperType(HybridPrinter.PAPER_TYPE_SLIP);
HybridPrinter.waitInsertion(HybridPrinter.PARAM_DEFAULT);
HybridPrinter.addText("Hello World!\n");
HybridPrinter.addTextFont(Printer.FONT_B);
HybridPrinter.addText("Hello World!\n");
HybridPrinter.addText("Hello World!\n");
HybridPrinter.sendData(Printer.PARAM_DEFAULT);
HybridPrinter.clearCommandBuffer;
HybridPrinter.addText("Hello World!\n");
HybridPrinter.sendData(Printer.PARAM_DEFAULT);
HybridPrinter.clearCommandBuffer;
HybridPrinter.ejectPaper;
HybridPrinter.selectPaperType(HybridPritner.PAPER_TYPE_RECEIPT);
HybridPrinter.addText("Hello World!\n");
HybridPrinter.sendData(Printer.PARAM_DEFAULT);
36
Chapter 2 How to Use - Programming Guide
Status
The following statuses are defined in the Epson ePOS SDK for Android.
❏ Error status
Indicates a result of sending data to devices in each class. The result is sent immediately as an exception of API.
Refer to Error Status and countermeasures for more information.
Application SDK
sendData
ERR_*
❏ Callback code
Indicates a device's processing result for sendData. Notified in a print completion event (onPtrReceive/onDis-
pReceive). Refer to Callback Code and countermeasures for more information.
Application SDK
sendData
CODE_*
❏ Printer status
Indicates the status of printers when sending print data. The printer status is retrieved when executing send-
Data. Refer to Printer Status and countermeasures for more information.
Handling Exceptions
When an errors occurs while using the Epson ePOS SDK for Android, a unique exception with a numerical (int)
parameter is generated and the call originator is notified of the error. The notified error is retrieved by
getErrorStatus in the Epos2Exception class.
Refer to the following programming code.
37
Chapter 3 API Reference - List of ePOS SDK API
API Reference
This chapter describes the APIs provided by Epson ePOS SDK for Android.
• Available APIs and parameters vary by printer model and peripheral device.
Refer to List of Supported Classes.
• For the list of APIs of each class, and the APIs supported by each printer, refer to List of Supported APIs.
❏ Printer class
❏ HybridPrinter class
❏ LineDisplay class
❏ Keyboard class
❏ POSKeyboard class
❏ BarcodeScanner class
❏ MSR class
❏ SimpleSerial class
❏ GermanyFiscalElement class
❏ OtherPeripheral class
❏ CommBox class
❏ Common to all classes
❏ Discovery class
❏ Epos2Exception class
❏ Log class
❏ EasySelect class
❏ EasySelectInfo class
Printer class
Controls printing by the printer.
API Description
Initialization Printer Initializes the Printer class.
38
Chapter 3 API Reference - List of ePOS SDK API
API Description
Status acquisition getStatus Acquires status of the connected printer.
39
Chapter 3 API Reference - List of ePOS SDK API
API Description
Adds a horizontal ruled line print command to
addHLine
the command buffer.
40
Chapter 3 API Reference - List of ePOS SDK API
API Description
getPrinterSetting Acquires the set value of the printer setting.
forceRecover
forcePulse
forceCommand
forceReset
setStatusChangeEventListener
setReceiveEventListener
Reception of result Registers the event listener registration method.
setGetPrinterSettingExListener
setSetPrinterSettingExListener
The print mode includes the standard mode, page mode, and the batch rotate print mode.
• Standard mode
Prints line by line. Line spacing is automatically adjusted according to character size, image size, and bar-
code height. Suitable for printing receipts whose print length varies by print content.
• Page mode
Prints page by page. Prints characters, images, and/or barcodes on a single page that is defined as a print
area.
To print in the page mode, use addPageBegin and addPageEnd to start and end the page mode process,
respectively.
• Batch rotate print mode
This is a print mode in which the range of the print data (such as characters, images, barcodes, etc.) is set,
the print data in the set range is compiled, inverted, and then printed.
When performing the processing in the batch rotate print mode, start the batch rotate print processing
with addRotateBegin, and end the batch rotate print processing with addRotateEnd.
The APIs that can be used in each mode are described in the table below.
41
Chapter 3 API Reference - List of ePOS SDK API
Batch rotate
API Standard mode Page mode
print mode
Printer - - -
connect - - -
disconnect - - -
startMonitor ✔ ✔ ✔
stopMonitor ✔ ✔ ✔
getStatus ✔ ✔ ✔
sendData ✔ ✔ -
beginTransaction ✔ ✔ ✔
endTransaction ✔ ✔ -
requestPrintJobStatus ✔ ✔ ✔
clearCommandBuffer ✔ ✔ -
addTextAlign ✔ - ✔
addLineSpace ✔ ✔ ✔
addTextRotate ✔ - ✔
addText ✔ ✔ ✔
addTextLang ✔ ✔ ✔
addTextFont ✔ ✔ ✔
addTextSmooth ✔ ✔ ✔
addTextSize ✔ ✔ ✔
addTextStyle ✔ ✔ ✔
addHPosition ✔ ✔ ✔
addFeedUnit ✔ ✔ ✔
addFeedLine ✔ ✔ ✔
addImage ✔ ✔ ✔
addLogo ✔ ✔ ✔
addBarcode ✔ ✔ ✔
addSymbol ✔ ✔ ✔
addHLine ✔ - ✔
addVLineBegin ✔ - ✔
addVLineEnd ✔ - ✔
addPageBegin ✔ - -
addPageEnd - ✔ -
addPageArea - ✔ -
addPageDirection - ✔ -
42
Chapter 3 API Reference - List of ePOS SDK API
Batch rotate
API Standard mode Page mode
print mode
addPagePosition - ✔ -
addPageLine - ✔ -
addPageRectangle - ✔ -
addRotateBegin ✔ - -
addRotateEnd - - ✔
addCut ✔ - -
addPulse ✔ - -
addSound ✔ - -
addFeedPosition ✔ - ✔
addLayout ✔ - ✔
addCommand ✔ ✔ ✔
HybridPrinter class
Controls the hybrid model printers.
API Description
Initialization HybridPrinter Initializes the HybridPrinter class.
43
Chapter 3 API Reference - List of ePOS SDK API
API Description
forceRecover
forcePulse
Forced transmission Forced transmission function
forceCommand
forceReset
Print method acquisition paperType Acquires the print method setting information.
setStatusChangeEventListener
Reception of result Registers the event listener registration method.
setReceiveEventListener
Control operation
API Endorse-
Receipt Slip sheet Validation MICR
ment
HybridPrinter ✔ ✔ ✔ ✔ ✔
connect ✔ ✔ ✔ ✔ ✔
disconnect ✔ ✔ ✔ ✔ ✔
startMonitor ✔ ✔ ✔ ✔ ✔
stopMonitor ✔ ✔ ✔ ✔ ✔
getStatus ✔ ✔ ✔ ✔ ✔
sendData ✔ ✔ ✔ ✔ -
beginTransaction ✔ ✔ ✔ ✔ ✔
endTransaction ✔ ✔ ✔ ✔ ✔
clearCommandBuffer ✔ ✔ ✔ ✔ -
selectPaperType ✔ ✔ ✔ ✔ -
waitInsertion - ✔ ✔ ✔ -
cancelInsertion - ✔ ✔ ✔ ✔
ejectPaper - ✔ ✔ ✔ ✔
readMicrData - - - - ✔
cleanMicrReader - - - - ✔
setStatusChangeEventListener ✔ ✔ ✔ ✔ ✔
setReceiveEventListener ✔ ✔ ✔ ✔ ✔
44
Chapter 3 API Reference - List of ePOS SDK API
Print method
API Endorse-
Endorse-
Receipt Slip sheet ment Validation
ment
(40cpl)
addTextAlign ✔ ✔ ✔ - ✔
addLineSpace ✔ ✔ ✔ - ✔
addTextRotate ✔ ✔ ✔ ✔ ✔
addText ✔ ✔ ✔ ✔ ✔
addTextLang ✔ ✔ - - ✔
Text
addTextFont ✔ ✔ ✔ - ✔
addTextSmooth ✔ - - - -
addTextSize ✔ ✔ ✔ - ✔
addTextStyle ✔ ✔* ✔* - ✔*
addHPosition ✔ ✔ ✔ ✔ ✔
addFeedUnit ✔ ✔ ✔ ✔ ✔
Paper feed
addFeedLine ✔ ✔ ✔ ✔ ✔
addImage ✔ - - - -
Graphics
addLogo ✔ - - - -
addBarcode ✔ - - - -
Barcode
addSymbol ✔ - - - -
addPageBegin ✔ ✔ - - ✔
addPageEnd ✔ ✔ - - ✔
addPageArea ✔ ✔ - - ✔
addPagePosition ✔ ✔ - - ✔
addPageLine ✔ ✔ - - -
addPageRectangle ✔ ✔ - - -
Cut addCut ✔ - - - -
Drawer addPulse ✔ ✔ ✔ ✔ ✔
Command addCommand ✔ ✔ ✔ ✔ ✔
*
The reverse parameter is not supported.
45
Chapter 3 API Reference - List of ePOS SDK API
LineDisplay class
Controls character display on the customer display.
API Description
Initialization LineDisplay Initializes the LineDisplay class.
46
Chapter 3 API Reference - List of ePOS SDK API
API Description
addSymbol Displays a two-dimensional symbol.
Barcode
addClearSymbol Deletes a two-dimensional symbol.
The APIs and parameters that can be used vary depending on the customer display used and its display modes.
The table below shows the API that can be used in each customer display and display mode.
DM-D70 DM-D70
DM-D110/
API Parameter DM-D30 (Standard (Column/row fixed
DM-D210
mode) mode)
LineDisplay ✔ ✔ ✔ ✔
connect ✔ ✔ ✔ ✔
disconnect ✔ ✔ ✔ ✔
getStatus ✔ ✔ ✔ ✔
sendData ✔ ✔ ✔ ✔
clearCommandBuffer ✔ ✔ ✔ ✔
addInitialize ✔ ✔ ✔ ✔
addCreateWindow ✔ - ✔ ✔
addDestroyWindow ✔ - ✔ ✔
addSetCurrentWindow ✔ - ✔ ✔
addClearCurrentWindow ✔ - ✔ ✔
addCreateScreen - ✔ ✔ -
addCreateScreenCustom - ✔ ✔ -
addCreateTextArea - ✔ - -
addDestroyTextArea - ✔ - -
addSetCurrentTextArea - ✔ - -
addClearCurrentTextArea - ✔ - -
addSetCursorPosition ✔ ✔ ✔ ✔
addMoveCursorPosition ✔ ✔ ✔ ✔
addSetCursorType ✔ - - ✔
47
Chapter 3 API Reference - List of ePOS SDK API
DM-D70 DM-D70
DM-D110/
API Parameter DM-D30 (Standard (Column/row fixed
DM-D210
mode) mode)
data ✔ ✔ ✔ ✔
lang ✔* ✔ ✔ ✔*
x ✔ ✔ ✔ ✔
addText y ✔ ✔ ✔ ✔
r - ✔ - -
g - ✔ - -
b - ✔ - -
addReverseText ✔ - - ✔
addMarqueeText ✔ ✔ ✔ ✔
addSetBlink ✔ - - ✔
addSetBrightness ✔ ✔ ✔ ✔
addBackgroundColor - ✔ - -
addStartSlideShow - ✔ - -
addStopSlideShow - ✔ - -
addDownloadImage - ✔ - -
addRegisterDownloadImage - ✔ - -
addNVImage - ✔ - -
addClearImage - ✔ - -
addSymbol - ✔ - -
addClearSymbol - ✔ - -
addShowClock - - - ✔
addCommand ✔ ✔ ✔ ✔
setReceiveEventListener ✔ ✔ ✔ ✔
Keyboard class
Controls character entry from the keyboard.
API Description
Initialization Keyboard Initializes the Keyboard class.
48
Chapter 3 API Reference - List of ePOS SDK API
API Description
Sets the condition to handle as a continuous
String setting setPrefix
string.
POSKeyboard class
Controls character entry from the POS keyboard.
API Description
Initialization PosKeyboard Initializes the POSKeyboard class.
BarcodeScanner class
Controls barcode reading by the barcode scanner.
API Description
Initialization BarcodeScanner Initializes the BarcodeScanner class.
Input data reception setScanEventListener Registers the event listener registration method.
MSR class
Controls card reading by the MSR.
API Description
Initialization Msr Initializes the MSR class.
49
Chapter 3 API Reference - List of ePOS SDK API
SimpleSerial class
Controls serial communication between the printer and device.
API Description
Initialization SimpleSerial Initializes the SimpleSerial class.
Input data reception setReceiveEventListener Registers the event listener registration method.
GermanyFiscalElement class
Connects to the German fiscal element (TSE), and controls data read/write operations.
API Description
Initialization GermanyFiscalElement Initializes the GermanyFiscalElement class.
OtherPeripheral class
Controls peripheral devices via the developed device control programs.
API Description
Initialization OtherPeripheral Initializes the OtherPeripheral class.
50
Chapter 3 API Reference - List of ePOS SDK API
CommBox class
Controls data transmission and reception using the communication box.
API Description
Initialization CommBox Initialize the CommBox class.
API Description
getAdmin Acquires the administration information.
Administration information
getLocation Acquires the installation location information.
Discovery class
Controls the device discovery function.
API Description
Start start Starts device search.
Epos2Exception class
Acquires the error status when an exception occurs.
API Description
Acquires the error status when an exception is
Error status acquisition getErrorStatus
thrown.
51
Chapter 3 API Reference - List of ePOS SDK API
Log class
Controls the log output function.
API Description
Log setLogSettings Sets the log output function.
EasySelect class
EasySelect class and EasySelectInfo class offer API commands and member variables for selecting printers by
using NFC tags or QR codes.
EasySelect class is for analyzing NFC tags and QR codes.
API Description
Analyzing of NFC tags parseNFC Analyzes NFC tags data.
EasySelectInfo class
This class is for storing data analyzed by parseNFC or parseQR. Specify the stored information in connect API to
connect with the printer.
52
Chapter 3 API Reference - Printer class
Printer class
Printer
Initializes the Printer class.
Syntax
public Printer(int printerSeries, int lang, Context context)
throws Epos2Exception
Parameter
printerSeries
Specifies the target printer.
Value Description
Printer.TM_M10 TM-m10
Printer.TM_M30 TM-m30
Printer.TM_M50 TM-m50
Printer.TM_P20 TM-P20
Printer.TM_P80 TM-P80
Printer.TM_T60 TM-T60
Printer.TM_T83III TM-T83III
Printer.TM_T88VII TM-T88VII
Printer.TM_T90 TM-T90
53
Chapter 3 API Reference - Printer class
Value Description
Printer.TM_T100 TM-T100
Printer.TM_U330 TM-U330
Printer.TM_L90 TM-L90
Printer.EU_M30 EU-m30
lang
Specifies the language of the printer.
Value Description
context
Specifies the application context.
Null can be specified when the log output function is not used and the printer is not connected via USB.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When iterating a process, be sure to generate and destroy instances outside the iterated process and not
iterate the process at a short interval.
Memory releasing by the OS may affect the process of the Epson ePOS SDK, resulting in an invalid opera-
tion.
54
Chapter 3 API Reference - Printer class
When using it with multiple printers connected, make sure to generate a dedicated instance for each
printer.
55
Chapter 3 API Reference - Printer class
connect
Starts communication with the printer.
Syntax
Public void connect(String target, int timeout) throws
Epos2Exception
Parameter
target
Specifies the method of connecting to the printer by a character string.
The connection method varies according to the system configuration.
• TM Printer Models
<connection type>:<identifier>
Connec-
I/F Identifier Example
tion type
Connec-
I/F Identifier Example
tion type
To connect to the printer via SSL/TLS communication, specify using the following syntax.
<connection type>:<identifier>[<device ID>]
56
Chapter 3 API Reference - Printer class
Connec-
I/F Identifier Example
tion type
Connec-
I/F Identifier Example
tion type
Connec-
I/F Identifier Example
tion type
Connec-
I/F Identifier Example
tion type
To connect to the printer via SSL/TLS communication, specify TCPS in the connection type.
57
Chapter 3 API Reference - Printer class
timeout
Specifies the maximum time (in milliseconds) to wait for communication with the printer to be established.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ When communication with the printer is no longer necessary, be sure to call disconnect to terminate it.
❏ When using multi-threading to connect to multiple printers or peripheral devices, this API and discon-
nect cannot be started for other printers or peripheral devices until this API finishes processing. Start the
next process after this API finishes processing.
❏ The printer status is returned to the event registered with the Printer class.
For details, refer to Chapter 2 "Programming Flow" and Chapter 6 "To use the same printer from multiple
mobile devices."
❏ The device ID is an arbitrary character string that is set when the peripheral device is registered to the TM
printer (master).
For details, refer to the Technical Reference Guide of each printer.
❏ If you are using DHCP to assign the IP address of the printer, specify the MAC address or host name of the
printer as the identifier.
58
Chapter 3 API Reference - Printer class
❏ If you specify the host name of the printer as the identifier, use in the environment where it can be found
by the DNS server.
❏ When connecting through the USB, the identifiers that can be specified differ depending on the shape of
the USB connector.
When the identifier is omitted, Android OS connects with the USB device found first.
When the Android terminal is set to the developer mode, you may not be able to connect through USB-
A - Device Charging.
Device node ✔ -
Omitted ✔ ✔
❏ This API will succeed regardless of the connection status of the TM printer (master) and peripheral
devices.
❏ Devices other than printers are exclusively locked.
❏ If Epos2Exception including ERR_RECOVERY_FAILURE occurs, restart the printer.
59
Chapter 3 API Reference - Printer class
disconnect
Ends communication with the printer.
Syntax
Public void disconnect() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When using multi-threading to connect to multiple printers or peripheral devices, this API and connect
cannot be started for other printers or peripheral devices until this API finishes processing.
60
Chapter 3 API Reference - Printer class
startMonitor
Enables printer status event notification.
Acquires and updates the printer status at the interval specified with the interval property and notifies it of the
listener registration method registered by setStatusChangeEventListener.
Syntax
public void startMonitor() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ Use this API after starting a communication with the printer (after executing the connect API).
❏ During ESC/POS control, any ASB information items which have been changed during the update iinter-
val specified by the interval property are reported.
During ePOS-Device XML control, the ASB information at the time of update is reported.
61
Chapter 3 API Reference - Printer class
stopMonitor
Disables status events.
Syntax
public void stopMonitor() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
62
Chapter 3 API Reference - Printer class
getStatus
Acquires the current status information.
Syntax
public PrinterStatusInfo getStatus ()
Return value
The current status is returned in the PrinterStatusInfo type.
The following status information is stored in the object as a property.
Stored status information can be acquired using the getter method of each property.
Printer.TRUE Online
online:
Printer.FALSE Offline
Online status
Printer.UNKNOWN Status is unknown.
Printer.SWITCH_ON Pressed
panelSwitch:
Printer.SWITCH_OFF Not pressed
Panel switch (Feed button) status
Printer.UNKNOWN Status is unknown.
Printer.DRAWER_HIGH High
drawer:
Offline status due to the battery Printer.DRAWER_LOW Low
level (Mobile models)
Printer.UNKNOWN Status is unknown.
63
Chapter 3 API Reference - Printer class
Printer.DRAWER_HIGH High
drawer:
Drawer kick connector pin No.3 sta- Printer.DRAWER_LOW Low
tus (except for the Mobile models)
Printer.UNKNOWN Status is unknown.
Printer.NO_ERR Normal
Printer.TRUE Connected
adapter:
Printer.FALSE Disconnected
AC adapter connection status
Printer.UNKNOWN Status is unknown.
64
Chapter 3 API Reference - Printer class
Supplementary explanation
❏ If this API is called while communication is not available, printer states other than "connection" will be
set to "Printer.UNKNOWN."
❏ The status object is set to the status at the timing of execution of this API and will not be updated.
65
Chapter 3 API Reference - Printer class
sendData
Sends the print command.
The error status of this API is the result of sending data to the devices.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListener API of the Printer class.
Make sure not to use this API repeatedly without getting the result in the callback.
This API sends data buffered by an add-type API (e.g., addText).
Syntax
public void sendData (int timeout) throws Epos2Exception
Parameter
timeout
Specifies the timeout period before completion of printing in milliseconds.
Value Description
* For the system configurations listed below, specify an integer in the range of 5000 to 300000.
❏ Customer Display Models (SSL/TLS communication only)
❏ TM Printer + DM-D + barcode scanner model
❏ POS Terminal Model
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
For Bluetooth connection, the offline status may not be detected and a timeout error may occur.
Refer to Chapter 6 "To use the same printer from multiple mobile devices" for details.
66
Chapter 3 API Reference - Printer class
beginTransaction
Starts a transaction.
A transaction represents a single printing task such as printing a single sheet of receipt or coupon.
After this API is called, data until the transaction is terminated by endTransaction will be regarded as a single
printing task.
Syntax
public void beginTransaction() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
67
Chapter 3 API Reference - Printer class
endTransaction
Ends a transaction.
A transaction represents a single printing task such as printing a single sheet of receipt or coupon.
After beginTransaction is called, data until the transaction is terminated by this API will be regarded as a single
printing task.
Syntax
public void endTransaction() throws Eswv2Exception
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
68
Chapter 3 API Reference - Printer class
requestPrintJobStatus
Acquires the print result for the specified print job ID.
Syntax
public void requestPrintJobStatus (String printJobId) throws
Epos2Exception
Parameter
printJobId
Specifies the print job ID.
Alphanumeric characters, underscore, hyphen, and period in 1 to 30 digits can be used.
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ The result of this API is notified to the listener registration method set by the setReceiveEventListener
API of the Printer class.
❏ When multiple print processes were performed with the same print job ID, the status of the latest print
job is acquired.
69
Chapter 3 API Reference - Printer class
clearCommandBuffer
Clears the command buffer.
The contents buffered in the command buffer are retained until this API is called.
Syntax
public void clearCommandBuffer()
70
Chapter 3 API Reference - Printer class
addTextAlign
Adds text alignment setting to the command buffer.
Syntax
public void addTextAlign(int align) throws Epos2Exception
Parameter
align
Specifies alignment.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ Use this API at the "beginning of a line." If this API is used elsewhere, it will be ignored.
❏ Setting of this API is also applied to the barcode/2D symbol/raster image/NV logo.
❏ When specifying alignment in the page mode, use addPagePosition instead of this API.
71
Chapter 3 API Reference - Printer class
addLineSpace
Adds line spacing setting to the command buffer.
Syntax
public void addLineSpace(int linespc) throws Epos2Exception
Parameter
linespc
Specifies the line spacing (in dots).
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
If the line spacing for a single line is set smaller than the print character size, paper may be fed for a larger
quantity than the set amount to ensure proper printing.
72
Chapter 3 API Reference - Printer class
addTextRotate
Adds text rotation setting to the command buffer.
Syntax
public void addTextRotate(int rotate) throws Epos2Exception
Parameter
rotate
Enables or disables text rotation.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ Use this API at the "beginning of a line." If this API is used elsewhere, it will be ignored.
❏ Setting of this API is also applied to the barcode/2D symbol.
❏ When specifying text rotation in the page mode, use addPageDirection instead of this API.
73
Chapter 3 API Reference - Printer class
addText
Adds a character print command to the command buffer.
Syntax
public void addText(String data) throws Epos2Exception
Parameter
data
Specifies the string to print.
Use the following escape sequences for a horizontal tab and line feed.
String Description
\\ Back slash
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ To print data other than text after printing text, feed a line or page.
A line which does not end with a line feed will be discarded as unfixed data by the next sendData.
❏ In the page mode, text is printed from the current print position with the base line dot of the characters
as the standard.
74
Chapter 3 API Reference - Printer class
addTextLang
Adds language setting to the command buffer.
A text string specified by the addText API is encoded according to the language specified by this API.
Syntax
public void addTextLang(int lang) throws Epos2Exception
Parameter
lang
Specifies the target language.
Value Description
Printer.LANG_JA Japanese
Printer.LANG_KO Korean
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API is called before the addText API.
❏ Use this API at the top of each print job.
❏ Available languages differ depending on character specifications of the printer. For details, see Technical
Reference Guide of the printer.
75
Chapter 3 API Reference - Printer class
addTextFont
Adds character font setting to the command buffer.
Syntax
public void addTextFont(int font) throws Epos2Exception
Parameter
font
Specifies the font.
Value Description
Printer.FONT_B Font B
Printer.FONT_C Font C
Printer.FONT_D Font D
Printer.FONT_E Font E
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
76
Chapter 3 API Reference - Printer class
addTextSmooth
Adds smoothing setting to the command buffer.
Syntax
public void addTextSmooth(int smooth) throws
Epos2Exception
Parameter
smooth
Enables or disables smoothing.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
77
Chapter 3 API Reference - Printer class
addTextSize
Adds character scaling factor setting to the command buffer.
Syntax
public void addTextSize(int width, int height) throws
Epos2Exception
Parameter
width
Specifies the horizontal scaling of characters.
Value Description
height
Specifies the vertical scaling of characters.
Value Description
Integer from 1 to 8 Specifies the vertical scaling factor rate (default: 1).
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ If all the parameters are set to "Printer.PARAM_UNSPECIFIED," ERR_PARAM will be returned.
❏ For slip, endorsement, or validation printing, an integer from 1 to 2 can be set for the width and height.
78
Chapter 3 API Reference - Printer class
addTextStyle
Adds character style setting to the command buffer.
Syntax
public void addTextStyle(int reverse, int ul, int em, int color)
throws Epos2Exception
Parameter
reverse
Enables or disables the reverse style.
Value Description
ul
Enables or disables the underscore style.
Value Description
em
Enables or disables the bold style..
Value Description
color
Specifies the color.
Value Description
Printer.COLOR_NONE No printing
79
Chapter 3 API Reference - Printer class
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ Use this API at the "beginning of a line." If this API is used elsewhere, it will be ignored.
❏ If all the parameters are set to "Printer.PARAM_UNSPECIFIED," ERR_PARAM will be returned.
80
Chapter 3 API Reference - Printer class
addHPosition
Adds horizontal character print start position to the command buffer.
Syntax
public void addHPosition(int x) throws Epos2Exception
Parameter
x
Specifies the horizontal print start position in dots.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ Calling this API causes the printer positioned at "other than the beginning of the line."
This is also true even if 0 is set to "X."
❏ After executing this API, addTextAlign and addTextRotate cannot be used.
❏ Setting of this API is also applied to the barcode/2D symbol/raster image/NV logo.
❏ The setting of this API is applied to each line (Or to each barcode, 2D symbol, raster image, or NV logo).
If you want to apply the setting to multiple lines, set this API to each of the lines.
81
Chapter 3 API Reference - Printer class
addFeedUnit
Adds a paper-feed-by-dot command to the command buffer.
Syntax
public void addFeedUnit(int unit) throws Epos2Exception
Parameter
unit
Specifies the paper feed amount (in dots).
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
Calling this API causes the printer positioned at "the beginning of the line."
82
Chapter 3 API Reference - Printer class
addFeedLine
Adds a paper-feed-by-line command to the command buffer.
Syntax
public void addFeedLine(int line) throws Epos2Exception
Parameter
line
Specifies the paper feed amount (in lines).
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
Calling this API causes the printer positioned at "the beginning of the line."
83
Chapter 3 API Reference - Printer class
addImage
Adds a raster image print command to the command buffer.
Prints Android.graphics.Bitmap class graphics.
A specified area of Android.graphics.Bitmap class graphics is binarized according to the mode, halftone, and
brightness parameters and converted into a raster image.
The converted image is compressed or not compressed before transmission according to the compress
parameter value.
One pixel of an image corresponds to one dot of the printer. When a transparent color is contained in the image,
the background of the image is assumed to be white.
Syntax
public void addImage(Bitmap data, int x, int y, int width, int
height, int color, int mode, int halftone, double brightness, int
compress) throws Epos2Exception
Parameter
data
Specifies an instance of the android.graphics.Bitmap class.
x
Specifies the horizontal start position of the print area (in pixels).
Value Description
Integer from 0 to 65534 Horizontal start position of the print area (in pixels)
y
Specifies the vertical start position of the print area (in pixels).
Value Description
Integer from 0 to 65534 Vertical start position of the print area (in pixels)
width
Specifies the width of the print area (in pixels).
Value Description
height
Specifies the height of the print area (in pixels).
Value Description
84
Chapter 3 API Reference - Printer class
color
Specifies the color.
Value Description
Printer.COLOR_NONE No printing
mode
Specifies the color mode.
Value Description
halftone
Specifies the halftone processing method.
Value Description
brightness
Specifies the brightness compensation value.
Value Description
Real number from 0.1 to 10.0 Brightness compensation (gamma correction) value
When a value other than 1.0 is specified for the brightness compensation value, processing gets slower.
85
Chapter 3 API Reference - Printer class
compress
Enables or disables compression.
Compressing print images can prevent white banding or streaks from occurring on printed images.
This works well when connecting with the printer using Bluetooth.
Value Description
Default
Printer.PARAM_DEFAULT (automatically chooses to or not to compress the
image internally)
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ Use this API at the "beginning of a line." If this API is used elsewhere, it will be ignored.
❏ If the area specified by x/y and width/height parameters does not fit within the image size specified by
data parameter, ERR_PARAM will be returned as an exception.
❏ Compress can only be specified with the Bluetooth model of the following printers. For other printers,
specify Printer.COMPRESS_AUTO.
TM-m10 No restriction
TM-m30 No restriction
TM-m30II/TM-m30II-H/TM-m30II-NT/TM-m30II-S/
No restriction
TM-m30II-SL/TM-m50
TM-P20 No restriction
86
Chapter 3 API Reference - Printer class
TM-T20II No restriction
TM-T20III No restriction
TM-T70II No restriction
TM-T82III No restriction
TM-T88V No restriction
TM-T88VI No restriction
87
Chapter 3 API Reference - Printer class
addLogo
Adds a NV logo print command to the command buffer.
Prints the logo registered in the NV memory of the printer.
Syntax
public void addLogo(int key1, int key2) throws
Epos2Exception
Parameter
key1
Specifies the key code 1 of the NV logo.
Value Description
key2
Specifies the key code 2 of the NV logo.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ Use this API at the "beginning of a line." If this API is used elsewhere, it will be ignored.
❏ For how to register the NV logo, refer to the Technical Reference Guide of the printer.
❏ The page mode does not support multi-gradation printing. Multi-gradation graphics can be printed in
the standard mode only.
❏ The NV logo specified by this API is printed with the color setting specified by addTextStyle buffered in
advance.
❏ TM-U220 and TM-U330 use only the key1 parameter, however, you need to set "Printer.PARAM_DE-
FAULT" as the key2 parameter for those printers since an empty key2 parameter causes an error.
88
Chapter 3 API Reference - Printer class
addBarcode
Adds a barcode print command to the command buffer.
Syntax
public void addBarcode(String data, int type, int hri, int font,
int width, int height) throws Epos2Exception
Parameter
data
Specifies barcode data as a text string.
Specify a string in accordance with the standard of the barcode specified in type.
Type Description
89
Chapter 3 API Reference - Printer class
Type Description
The start character, check digit, and stop character are automatically added.
The character string added to make the overall width of the CODE128 symbol as mini-
mum is automatically converted. In this function, there is no need to specify the code
set, and the barcode is printed simply by entering the data to be converted to symbols.
Example) When entering numbers: "123", etc.
CODE128 auto
When entering alphabets: "ABCabc", etc.
Data from 0 to 255 (control codes and character codes) can be specified.
Since the overall width changes automatically, use this function after confirming that
the barcode fits into the print area and is printed without any problem.
When using FNC1, etc., use CODE128 rather than CODE128 auto.
The start character, FNC1, check digit, and stop characters are automatically added.
However, FNC1 used as a data separator is not added.
To automatically calculate and add the application ID (AI) and the following check digit,
specify "*" at the check digit position.
The application ID (AI) can be put in parentheses.
The parentheses are used as print characters for HRI and not encoded as data.
A blank space can be inserted between the application ID (AI) and data.
The blank space is used as print characters for HRI and not encoded as data.
GS1-128
To encode the following characters, specify the corresponding 2-digit code starting
with { :
• FNC1: {1
• FNC3: {3
• (: {(
• ): {}
• FNC1: {1
• {: {{
90
Chapter 3 API Reference - Printer class
Type Description
When specifying binary data which cannot be represented as a string, use the following escape sequences.
String Description
\\ Back slash
type
Specifies the barcode type.
Value Description
Printer.BARCODE_UPC_A UPC-A
Printer.BARCODE_UPC_E UPC-E
Printer.BARCODE_EAN13 EAN13
Printer.BARCODE_JAN13 JAN13
Printer.BARCODE_EAN8 EAN8
Printer.BARCODE_JAN8 JAN8
Printer.BARCODE_CODE39 CODE39
Printer.BARCODE_ITF ITF
Printer.BARCODE_CODABAR CODABAR
Printer.BARCODE_CODE93 CODE93
Printer.BARCODE_CODE128 CODE128
Printer.BARCODE_CODE128_AUTO CODE128_AUTO
Printer.BARCODE_GS1_128 GS1-128
91
Chapter 3 API Reference - Printer class
Value Description
hri
Specifies the HRI position.
Value Description
font
Specifies the HRI font.
Value Description
Printer.FONT_B Font B
Printer.FONT_C Font C
Printer.FONT_D Font D
Printer.FONT_E Font E
width
Specifies the width of a single module in dots.
Value Description
height
Specifies the height of the barcode in dots.
Value Description
92
Chapter 3 API Reference - Printer class
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ Use this API at the "beginning of a line."
❏ When the barcode data specified in data does not conform to the barcode type specified in type, an
error will not be returned as an exception and the barcode will not be printed.
❏ The "CODE 128 auto" type of barcode can be specified when the printer is TM-m30II, TM-m30II-H, TM-
m30II-NT, TMm30II-S, or TM-m50.
93
Chapter 3 API Reference - Printer class
addSymbol
Adds a 2D symbol print command to the command buffer.
Syntax
public void addSymbol(String data, int type, int level, int
width, int height, int size) throws Epos2Exception
Parameter
data
Specifies 2D symbol data as a text string.
Specify a string in accordance with the standard of the 2D symbol specified in type.
Type Description
Standard PDF417 Converts the string into UTF-8, processes the escape sequence(s), and encodes the
data.
Truncated PDF417 The maximum number of code words in the data area is 928, the maximum number of
code words in a single stage is 30, and the maximum number of stages is 90.
QR Code Model 1 Converts the string into JIS, processes the escape sequence(s), and encodes the data by
choosing the data type from the following:
QR Code Model 2
• Figure: 0 to 9
• Alphanumeric: 0 to 9, A to Z, space, $, %, *, +, -, ., /, :
QR Code Micro • Kanji: Characters which can be represented with Shift JIS codes
• 8-bit byte data: 0x00 to 0xff
MaxiCode Mode 2 Converts the string into UTF-8, processes the escape sequence(s), and encodes the
data.
MaxiCode Mode 3
In Mode 2 or 3, if the first data is []>\x1e01\x1dyy ("yy" is a 2-digit figure), this is pro-
MaxiCode Mode 4 cessed as the message header and the second and succeeding data sequence is pro-
cessed as the primary message.
MaxiCode Mode 5
Otherwise, the primary message starts with the fist data.
For the mode 2, specify the primary message in the following format:
• Zip code (1- to 9-digit figure) GS:(\x1d)
• ISO country code (1- to 3-digit figure) GS:(\x1d)
• Service class code (1- to 3-digit figure)
MaxiCode Mode 6
For the mode 3, specify the primary message in the following format:
• Zip code (data which can be converted with 1 to 6 code sets A) GS (\x1d)
• ISO country code (1- to 3-digit figure) GS (\x1d)
• Service class code (1- to 3-digit figure)
GS1 DataBar Stacked Converts the string into UTF-8, processes the escape sequence(s), and encodes the
data.
GS1 DataBar Stacked
Omnidirectional Specify a 13-digit product ID (GTIN) excluding the application ID (AI) and check digit.
94
Chapter 3 API Reference - Printer class
Type Description
Converts the string into UTF-8, processes the escape sequence(s), and encodes the
data.
The application ID (AI) can be put in parentheses.
The parentheses are used as print characters for HRI and not encoded as data.
GS1 DataBar Expanded
To encode the following characters, specify the corresponding 2-digit code starting
Stacked
with { :
• FNC1: {1
• (: {(
• ): }{)
Converts the string into UTF-8, processes the escape sequence(s), and encodes the
Aztec Code
data.
Converts the string into UTF-8, processes the escape sequence(s), and encodes the
DataMatrix
data.
When specifying binary data which cannot be represented as a string, use the following escape sequences.
String Description
\\ Back slash
type
Specifies the 2D symbol type.
Value Description
Printer.SYMBOL_GS1_DATABAR_STACKED_
GS1 DataBar Stacked Omnidirectional
OMNIDIRECTIONAL
95
Chapter 3 API Reference - Printer class
Value Description
level
Specifies the error correction level.
Specify a value in accordance with the 2D symbol type.
Specify "PARAM_DEFAULT" for MaxiCode, 2D GS1 DataBar, and DataMatrix.
❏ PDF417
Value Description
Printer. PARAM_DEFAULT Specifies the default value (error correction level 1).
❏ QR Code
Value Description
Printer. PARAM_DEFAULT Specifies the default value (error correction level M).
96
Chapter 3 API Reference - Printer class
❏ Aztec Code
Value Description
Printer. PARAM_DEFAULT Specifies the default value (error correction level 23).
width
Specifies the module width.
An integer from 1 to 255 can be specified.
When "Printer.PARAM_UNSPECIFIED" is specified, the current setting is retained.
The range differs depending on the 2D symbol type.
PDF417 2 to 8 3
QR Code 3 to 16 3
2D GS1 DataBar 2 to 8 2
Aztec Code 2 to 16 3
DataMatrix 2 to 16 3
height
Specifies the module height.
An integer from 1 to 255 can be specified.
When "Printer.PARAM_UNSPECIFIED" is specified, the current setting is retained.
The range differs depending on the 2D symbol type.
2 to 8
PDF417 3
(Scaling factor for width)
QR Code
MaxiCode
Aztec Code
DataMatrix
97
Chapter 3 API Reference - Printer class
size
Specifies the maximum size of the 2D symbol.
An integer from 0 to 65535 can be specified.
When "Printer.PARAM_UNSPECIFIED" is specified, the current setting is retained.
The range differs depending on the 2D symbol type.
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ Use this API at the "beginning of a line."
❏ When the 2D symbol data specified in data does not conform to the 2D symbol type specified in type, an
error will not be returned as an exception and the 2D symbol will not be printed.
❏ During ESC/POS control, specifying values outside the valid ranges for the width and height parameters
results in default value printing.
❏ During ePOS-Device XML control, specifying values outside the valid ranges for the width and height
parameters causes sendData to generate an exception with ERR_FAILURE.
98
Chapter 3 API Reference - Printer class
addHLine
Adds a horizontal ruled line print command to the command buffer.
Draws a horizontal ruled line.
Syntax
public void addHLine(int x1, int x2, int lineStyle) throws
Epos2Exception
Parameter
x1
Specifies the start position to draw a horizontal ruled line (in dots).
Value Description
Integer from 0 to 65535 Start position to draw a horizontal ruled line (in dots)
x2
Specifies the end position to draw a horizontal ruled line (in dots).
Value Description
Integer from 0 to 65535 End position to draw a horizontal ruled line (in dots)
lineStyle
Specifies the ruled line type.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
99
Chapter 3 API Reference - Printer class
Supplementary explanation
❏ This API cannot be used in the page mode.
❏ Use addPageLine to draw a horizontal ruled line in the page mode.
100
Chapter 3 API Reference - Printer class
addVLineBegin
Adds a command to start drawing a vertical ruled line to the command buffer.
Starts drawing a vertical line.
Syntax
public void addVLineBegin(int x, int lineStyle, int[] lineId)
throws Epos2Exception
Parameter
x
Specifies the start position to draw a vertical ruled line (in dots).
Value Description
Integer from 0 to 65535 Start position to draw a vertical ruled line (in dots)
lineStyle
Specifies the ruled line type.
Value Description
lineId
Returns the ID of the ruled line printed by this API.
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API cannot be used in the page mode.
101
Chapter 3 API Reference - Printer class
102
Chapter 3 API Reference - Printer class
addVLineEnd
Adds a command to stop drawing a vertical ruled line to the command buffer.
Ends drawing a vertical line.
Syntax
public void addVLineEnd(int lineId) throws Epos2Exception
Parameter
lineId
Specifies the line ID acquired by addVLineBegin.
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API cannot be used in the page mode.
❏ Use addPageLine to draw a vertical ruled line in the page mode.
❏ This API draws a vertical ruled line until stopped by addVLineEnd.
❏ Use this API with the addVLineBegin API.
103
Chapter 3 API Reference - Printer class
addPageBegin
Adds a page mode start command to the command buffer.
Starts processing in the page mode.
Syntax
public void addPageBegin() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ The page mode does not support multi-gradation printing.
❏ Use this API with the addPageEnd API.
❏ Use this API at the "beginning of a line." If this API is used elsewhere, it will be ignored.
104
Chapter 3 API Reference - Printer class
addPageEnd
Adds a page mode end command to the command buffer.
Ends processing in the page mode.
Syntax
public void addPageEnd() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ The page mode does not support multi-gradation printing.
❏ Use this API with the addPageBegin API.
105
Chapter 3 API Reference - Printer class
addPageArea
Adds page mode print area setting to the command buffer.
Specifies the page mode print area (coordinates). Following this API, call an API to specify print data such as the
addText API.
Syntax
public void addPageArea(int x, int y, int width, int height)
throws Epos2Exception
Parameter
x
Specifies the horizontal origin (in dots).
Value Description
"0" specifies the leftmost position of the printable area of the printer.
y
Specifies the vertical origin (in dots).
Value Description
width
Specifies the width of a print area (in dots).
Value Description
height
Specifies the height of a print area (in dots).
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
106
Chapter 3 API Reference - Printer class
Supplementary explanation
❏ Define the print area in accordance with the contents to print. If the print data does not fit within the
print area, the printed contents will be truncated.
❏ Use this API between the addPageBegin and addPageEnd APIs.
❏ Specify the width and height of the print area in accordance with the print direction setting.
Otherwise the print data may be truncated. Set the print direction by addPageDirection.
❏ This API does not work in the standard mode.
107
Chapter 3 API Reference - Printer class
addPageDirection
Adds page mode print direction setting to the command buffer.
Specifies the print direction in the page mode.
Syntax
public void addPageDirection(int direction) throws
Epos2Exception
Parameter
direction
Specifies the print direction in the page mode.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API does not work in the standard mode.
❏ Use this API between the addPageBegin and addPageEnd APIs.
108
Chapter 3 API Reference - Printer class
addPagePosition
Adds print position setting within the print area in the page mode to the command buffer.
Specifies the print start position (coordinates) within the area specified by the addPageArea API.
Syntax
public void addPagePosition(int x, int y) throws
Epos2Exception
Parameter
x
Specifies the horizontal print position (in dots).
Value Description
y
Specifies the vertical print position (in dots).
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API does not work in the standard mode.
❏ Use this API between the addPageBegin and addPageEnd APIs.
❏ Specify the print start position (coordinates) in accordance with the contents to print. See below.
109
Chapter 3 API Reference - Printer class
110
Chapter 3 API Reference - Printer class
addPageLine
Adds a page mode line draw command to the command buffer.
Draws a line in the page mode.
Syntax
public void addPageLine(int x1, int y1, int x2, int y2, int
lineStyle) throws Epos2Exception
Parameter
x1
Specifies the horizontal position to start drawing (in dots).
Value Description
y1
Specifies the vertical position to start drawing (in dots).
Value Description
x2
Specifies the horizontal position to end drawing (in dots).
Value Description
y2
Specifies the vertical position to end drawing (in dots).
Value Description
lineStyle
Specifies the ruled line type.
Value Description
111
Chapter 3 API Reference - Printer class
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API does not work in the standard mode.
❏ A diagonal line cannot be drawn.
❏ Use this API between the addPageBegin and addPageEnd APIs.
112
Chapter 3 API Reference - Printer class
addPageRectangle
Adds a page mode rectangle draw command to the command buffer.
Draws a rectangle in the page mode.
Syntax
public void addPageRectangle(int x1, int y1, int x2, int y2, int
lineStyle) throws Epos2Exception
Parameter
x1
Specifies the horizontal position to start drawing (in dots).
Value Description
y1
Specifies the vertical position to start drawing (in dots).
Value Description
x2
Specifies the horizontal position to end drawing (in dots).
Value Description
y2
Specifies the vertical position to end drawing (in dots).
Value Description
lineStyle
Specifies the line type.
Value Description
113
Chapter 3 API Reference - Printer class
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API does not work in the standard mode.
❏ Use this API between the addPageBegin and addPageEnd APIs.
114
Chapter 3 API Reference - Printer class
addRotateBegin
Adds the start batch rotate print mode to the command buffer.
Syntax
public void addRotateBegin()throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API does not work in the page mode.
❏ Use the add APIs for batch rotate printing (Example: addText) by enclosing between this API and the
addRotateEnd API.
❏ Do not use the following APIs between this API and the addRotateEnd API.
• endTransaction
• addPageBegin
• addPageEnd
• addCut
• addPulse
• addSound
• setPrinterSetting
• ejectPaper
❏ The data volume that the printer can process in a single batch rotate printing is as described below.
• Strings: 80 lines
• Graphics: 2400 dots
❏ When you are using the add APIs (Example: addText) in the batch rotate print mode, you must take care
while using certain APIs.
API Precautions
• If the longitudinal direction is set to triple angle or higher with addTextSize before
this API, then this API and the succeeding APIs will become double-angled.
addTextSize • If the longitudinal direction is set to triple angle or higher with addTextSize after
this API, then the specification in the longitudinal direction will be ignored and
become single-angled.
The number of paper feed lines varies depending on the line spacing specified in
addFeedUnit addLineSpace. If the line spacing is specified as 30 in addLineSpace, paper feeding
can be performed for 8 lines with the maximum value of addFeedUnit as 255.
115
Chapter 3 API Reference - Printer class
API Precautions
• If the total vertical size of print data exceeds 2400 dots, printing may not be
performed as intended. For example, if 500-dot data B is sent to a location in the
printer buffer where 2000-dot data A is accumulated, then data B will be
accumulated in the printer buffer after data A has been printed.
• The multi-gradation (16 scales) maximum size is up to 600 dots vertically.
addImage In the case of multi-gradation (16 scales), a data volume that is four times that of
monochrome (2 scales) is required.
• If the vertical size of one image element exceeds the data volume that can be
processed in one go, printing will not be performed.
Monochrome (2 scales) maximum value: 2400 dots
Multi-gradation (16 scales) maximum value: 600 dots
116
Chapter 3 API Reference - Printer class
addRotateEnd
Adds the end batch rotate print mode to the command buffer.
Syntax
public void addRotateEnd()throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API does not work in the page mode.
❏ Use the add APIs for batch rotate printing (Example: addText) by enclosing between this API and the
addRotateBegin API.
117
Chapter 3 API Reference - Printer class
addCut
Adds a sheet cut command to the command buffer.
Sets how to cut paper.
Syntax
public void addCut(int type) throws Epos2Exception
Parameter
type
Specifies how to cut paper.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API cannot be used in the page mode.
❏ Use this API at the "beginning of a line." If this API is used elsewhere, it will be ignored.
❏ If print data is not specified after the cut reservation (Printer.CUT_RESERVE), the printer will execute the
cut after feeding paper up to the position of the reserved cut.
❏ Depending on the printer, it may wait approximately 2 seconds for the print data after the cut reserva-
tion (Printer.CUT_RESERVE) before starting the paper feed operation.
❏ When using the cut reservation (Printer.CUT_RESERVE), set the length of one receipt to at least 20 mm.
118
Chapter 3 API Reference - Printer class
addPulse
Adds a drawer kick command to the command buffer.
Sets the drawer kick.
Syntax
public void addPulse(int drawer, int time) throws
Epos2Exception
Parameter
drawer
Specifies the drawer kick connector.
Value Description
time
Specifies the on time of the drawer kick signal.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API cannot be used in the page mode.
119
Chapter 3 API Reference - Printer class
120
Chapter 3 API Reference - Printer class
addSound
Adds buzzer sound setting to the command buffer.
Sets the buzzer.
Syntax
public void addSound(int pattern, int repeat, int cycle) throws
Epos2Exception
Parameter
pattern
Specifies the buzzer tone.
Value Description
121
Chapter 3 API Reference - Printer class
repeat
Specifies the repeat count.
Value Description
0 Unlimited
cycle
Specifies the buzzer sound interval (in milliseconds).
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API cannot be used in the page mode.
❏ The drawer and optional external buzzer cannot be connected simultaneously.
❏ This API cannot be used if the printer is not equipped with a buzzer.
❏ The timing to receive the callback of sendData API varies by printer.
Mobile models: after the sendData API is executed.
Other than Mobile models: after the buzzer sounding is finished.
❏ For built-in buzzer equipped models of the following printers, sounding the buzzer is possible using
addPulse.
• TM-T70
• TM-T70II
• TM-T82II
• TM-T82III
• TM-T83II
• TM-T88IV
• TM-T88V
• TM-T88VI
122
Chapter 3 API Reference - Printer class
• TM-T88VII
• TM-T82II-i
• TM-T83II-i
• TM-T88VI-iHUB
• TM-L90
123
Chapter 3 API Reference - Printer class
addFeedPosition
Adds a label sheet/black mark sheet feed command to the command buffer.
Syntax
public void addFeedPosition(int position) throws
Epos2Exception
Parameter
position
Specifies the paper feed position.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ The label sheet/black mark sheet can be controlled in the standard mode.
❏ This API cannot be used in the page mode.
❏ Use this API at the "beginning of a line." If this API is used elsewhere, it will be ignored.
124
Chapter 3 API Reference - Printer class
addLayout
Adds layout setting of the label sheet/black mark sheet to the command buffer.
Syntax
public void addLayout(int type, int width, int height, int
marginTop, int marginBottom, int offsetCut, int offsetLabel)
throws Epos2Exception
Parameter
type
Specifies the paper type.
Value Description
width
Specifies the paper width (in 0.1 mm units).
Value
Description
TM Printer Models POS Terminal Model
Integer from 1 to 10000 Integer from 290 to 600 Paper width (in 0.1 mm units)
height
Specifies the distance from the print reference mark to the next print reference mark (in 0.1mm units).
Value
Sheet type Description
TM Printer POS Terminal
Models Model
125
Chapter 3 API Reference - Printer class
marginTop
Specifies the distance from the print reference mark to the top of the sheet (in 0.1mm units).
Value
Sheet type Description
TM Printer POS Terminal
Models Model
marginBottom
Specifies the distance from the eject reference mark to the bottom edge of the printable area (in 0.1mm
units).
Value
Sheet type Description
TM Printer POS Terminal
Models Model
offsetCut
Specifies the distance from the eject reference mark to the cut position (in 0.1mm units).
Value
Sheet type TM Printer POS Terminal Description
Models Model
126
Chapter 3 API Reference - Printer class
offsetLabel
Specifies the distance from the eject reference mark to the bottom edge of the label (in 0.1mm units).
Value
Sheet type Description
TM Printer POS Terminal
Models Model
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API does not work in the page mode.
❏ Use this API at the "beginning of a line." If this API is used elsewhere, it will be ignored.
❏ Available setting values vary by TM printer model. For more details, see the FS (L<Function 33> com-
mand.
https://reference.epson-biz.com/pos/reference/
❏ The available parameter values for each type of paper are listed below.
The following table shows available values for TM printer models, and shows those for POS terminal
models in parentheses.
127
Chapter 3 API Reference - Printer class
-9999 to 10000
offsetCut 0 (0) 0 to 10000 (0 to 50) c
(-290 to 50)
0 to 10000
offsetLabel 0 (0) d
(0 to 15)
Cut
Label
f f
b Cut b
Top position
Top position
a a
Bottom edge
Bottom edge e of print area e
d
of print area
Standard eject
Cut
c Bottom edge c
of label
128
Chapter 3 API Reference - Printer class
addCommand
Adds a command to the command buffer.
Sends the ESC/POS command.
Syntax
public void addCommand(byte[] data) throws Epos2Exception
Parameter
data
Specifies the ESC/POS command.
Specifies the binary data.
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ Refer to the following URL for details of the ESC/POS command.
https://reference.epson-biz.com/modules/ref_escpos/
❏ Epson ePOS SDK does not check the commands sent using this API.
If the commands interfere with Epson ePOS SDK operations, other APIs may work wrongly or status val-
ues may become invalid.
This API should be used with a full understanding of ESC/POS commands and the receipt printer specifi-
cations.
129
Chapter 3 API Reference - Printer class
getMaintenanceCounter
Acquires the value of the printer's maintenance counter.
The value acquired by this API is notified to the listener registration method specified in the listener parameter.
Syntax
public void getMaintenanceCounter(int timeout, int type,
MaintenanceCounterListener listener) throws Epos2Exception
Parameter
timeout
Specifies the timeout period before completion of printing in milliseconds.
Value Description
type
Specifies the type of maintenance counter to be acquired.
Value Description
listener
Registers the listener registration method that returns the processing result of this API.
- (void) onGetMaintenanceCounter(int code, int type, int
value);
❏ code
The processing result is stored.
130
Chapter 3 API Reference - Printer class
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API cannot be used simultaneously with other APIs.
After executing this API, do not execute any other API until the callback is returned.
❏ Do not turn off the power supply to the printer while executing this API.
❏ This API can be used in the system configuration of the TM printer model and customer display model.
With the system configuration of the TM Printer + DM-D + barcode scanner model, this API can be used
when connecting via Bluetooth or USB.
❏ This API cannot be used with SSL/TLS communication.
131
Chapter 3 API Reference - Printer class
resetMaintenanceCounter
Resets the value of the printer's maintenance counter.
The value acquired by this API is notified to the listener registration method specified in the listener parameter.
Syntax
public void resetMaintenanceCounter(int timeout, int type,
MaintenanceCounterListener listener) throws Epos2Exception
Parameter
timeout
Specifies the timeout period before completion of printing in milliseconds.
Value Description
type
Specifies the type of maintenance counter to be reset.
Value Description
listener
Registers the listener registration method that returns the processing result of this API.
- (void) onResetMaintenanceCounter(int code, int type);
❏ code
The processing result is stored.
132
Chapter 3 API Reference - Printer class
❏ type
The type of maintenance counter reset is stored.
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API cannot be used simultaneously with other APIs.
After executing this API, do not execute any other API until the callback is returned.
❏ Do not turn off the power supply to the printer while executing this API.
❏ Do not execute this API more than 10 times per day. If executed more than this number of times, the
printer may become unable to operate.
❏ This API can be used in the system configuration of the TM printer model and customer display model.
With the system configuration of the TM Printer + DM-D + barcode scanner model, this API can be used
when connecting via Bluetooth or USB.
❏ This API cannot be used with SSL/TLS communication.
133
Chapter 3 API Reference - Printer class
getPrinterSetting
Acquires the set value of the printer setting.
The value acquired by this API is notified to the listener registration method specified in the listener parameter.
Syntax
public void getPrinterSetting(int timeout, int type,
PrinterSettingListener listener) throws Epos2Exception
Parameter
timeout
Specifies the timeout period before completion of printing in milliseconds.
Value Description
type
Specifies the printer setting item to be acquired.
Value Description
listener
Registers the listener registration method that returns the processing result of this API.
- (void) onGetPrinterSetting(int code, int type, int value);
❏ code
The processing result is stored.
134
Chapter 3 API Reference - Printer class
❏ type
The acquired printer setting item is stored.
Value Description
❏ value
The acquired set value of the printer setting is stored.
Value Description
135
Chapter 3 API Reference - Printer class
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API cannot be used simultaneously with other APIs.
After executing this API, do not execute any other API until the callback is returned.
❏ Do not turn off the power supply to the printer while executing this API.
❏ This API can be used in the system configuration of the TM printer model and customer display model.
With the system configuration of the TM Printer + DM-D + barcode scanner model, this API can be used
when connecting via Bluetooth or USB.
❏ This API cannot be used with SSL/TLS communication.
136
Chapter 3 API Reference - Printer class
setPrinterSetting
Changes the set value of the printer setting.
The value acquired by this API is notified to the listener registration method specified in the listener parameter.
Syntax
public void setPrinterSetting(int timeout,
java.util.Map<java.lang.Integer, j ava.lang.Integer> list,
PrinterSettingListener listener) throws Epos2Exception
Parameter
timeout
Specifies the timeout period before completion of printing in milliseconds.
Value Description
list
Specifies the list combining the changed printer setting item (type) and the set value (value).
type
Specifies the printer setting item to be changed.
Value Description
value
Specifies the set value of the printer setting to be changed.
Value Description
137
Chapter 3 API Reference - Printer class
Value Description
138
Chapter 3 API Reference - Printer class
listener
Registers the listener registration method that returns the processing result of this API.
- (void) onSetPrinterSetting(int code);
❏ code
The processing result is stored.
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API cannot be used simultaneously with other APIs.
After executing this API, do not execute any other API until the callback is returned.
❏ Use this API at the "beginning of a line." If this API is used elsewhere, it will be ignored.
❏ Do not turn off the power supply to the printer while executing this API.
❏ If communication with the printer is disconnected during execution of this API, the printer may become
unable to operate. In such a case, turn the power supply to the printer off and then on again.
❏ Communication with the printer disconnects as the printer automatically restarts during execution of
this API. Reconnect as necessary.
139
Chapter 3 API Reference - Printer class
In a network environment that uses DHCP, the IP address may change due to restart of the printer.
In such a case, search for the printer using Discovery class and reconnect.
When connected via USB, the USB device node may change due to restart of the printer.
In such a case, search for the printer using Discovery class and reconnect.
❏ This API can be used in the system configuration of the TM printer model and customer display model.
With the system configuration of the TM Printer + DM-D + barcode scanner model, this API can be used
when connecting via Bluetooth or USB.
❏ This API cannot be used with SSL/TLS communication.
140
Chapter 3 API Reference - Printer class
getPrinterSettingEx
Acquires the set value of the printer setting in JSON format.
This API error status is the API processing result.
The processing result of the devices using this API is notified to the listener registration method set by the
setGetPrinterSettingExListener API of the Printer class.
Syntax
public void getPrinterSettingEx(int timeout) throws
Epos2Exception
Parameter
timeout
Specifies the timeout period before completion of command transmission in milliseconds.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API cannot be used simultaneously with other APIs.
After executing this API, do not execute any other API until the callback is returned.
❏ Do not turn off the power supply to the printer while executing this API.
❏ This API can be used in the system configuration of the TM printer model and customer display model.
With the system configuration of the TM printer + DM-D + barcode scanner model, this API can be used
when connecting via Bluetooth and USB.
❏ This API cannot be used with SSL/TLS communication.
❏ If this API is executed in a non-supported printer, CODE_SUCCESS is stored in the setGetPrinterSettingEx-
Listener API code, and "" (blank character) is stored in jsonString.
141
Chapter 3 API Reference - Printer class
setPrinterSettingEx
Changes the set value of the printer setting in JSON format.
For the JSON used in this API, use the printer information JSON acquired with the getPrinterSettingEx API.
Execute the getPrinterSettingEx API after executing this API, and check that the printer settings have been
changed correctly.
This API error status is the API processing result.
The processing result of the devices using this API is notified to the listener registration method set by the
setSetPrinterSettingExListener API of the Printer class.
Do not execute this API in continuation without checking the processing result with the callback method.
Syntax
public void setPrinterSettingEx(int timeout, java.lang.String
jsonString) throws Epos2Exception
Parameter
timeout
Specifies the timeout period before completion of command transmission in milliseconds.
Value Description
jsonString
Specifies the set value of the printer setting in JSON format.
Refer to JSON_Spec_sheet.pdf included in the package for more information.
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ This API cannot be used simultaneously with other APIs.
After executing this API, do not execute any other API until the callback is returned.
142
Chapter 3 API Reference - Printer class
❏ Use this API at the "Beginning of the row". Use of this API at positions other than the beginning will result
in it being disabled.
❏ Do not turn off the power supply to the printer while executing this API.
❏ Immediately after starting the printer, do not execute this API until the LED is lit.
Execution takes time, and a timeout error may occur.
❏ If communication with the printer is disconnected during execution of this API, the printer may become
unable to operate. In such a case, turn the power supply to the printer off and then on again.
❏ Communication with the printer disconnects as the printer automatically restarts during execution of
this API. Reconnect as necessary.
In a network environment that uses DHCP, the IP address may change due to restart of the printer.
In such a case, search for the printer using Discovery class and reconnect.
When connected via USB, the USB device node may change due to restart of the printer.
In such a case, search for the printer using Discovery class and reconnect.
❏ This API can be used in the system configuration of the TM printer model and customer display model.
With the system configuration of the TM printer + DM-D + barcode scanner model, this API can be used
when connecting via Bluetooth and USB.
❏ This API cannot be used with SSL/TLS communication.
❏ When this API is used with the system configuration of a TM printer + DM-D + barcode scanner model
Wi-Fi/Ethernet connection and POS terminal model, ERR_FAILURE is returned.
❏ It may take some time to change printer settings depending on the printer used or the connection
method with the printer.
❏ If this API is executed in a non-supported printer, CODE_SUCCESS is stored in the setSetPrinterSettingEx-
Listener API code, but printer settings will not be executed.
143
Chapter 3 API Reference - Printer class
getPrinterInformation
Acquires the printer serial number and the missing dot information of the thermal head.
The value acquired by this API is notified to the listener registration method specified in the listener parameter.
Syntax
public void getPrinterInformation(int timeout,
PrinterInformationListener listener) throws Epos2Exception
Parameter
timeout
Specifies the timeout period before completion of command transmission in milliseconds.
Value Description
listener
Registers the listener registration method that returns the processing result of this API.
- (void) onGetPrinterInformation(int code, String jsonString);
❏ code
The processing result is stored.
CODE_SUCCESS Successful
❏ jsonString
The acquired printer information is stored in the JSON format.
144
Chapter 3 API Reference - Printer class
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
jsonString
Example of acquisition execution result
{
"PrinterSpec": {
"Product": {
"SerialNo": "ABC1234567"
}
},
"Maintenance": {
"ThermalHead": {
"NumberOfWarningDot": "0",
"PositionOfWarningDot": "",
"NumberOfBrokenDot": "0",
"PositionOfBrokenDot": ""
}
}
}
SerialNo
Value Description
NumberOfWarningDot
The number of dots exceeding the Warning threshold value of the thermal head is stored.
Value Description
145
Chapter 3 API Reference - Printer class
PositionOfWarningDot
If there are dots exceeding the Warning threshold value of the thermal head, a 128-byte hexadecimal string
is stored.
In this hexadecimal string, the position of the left-end dots on the print surface is treated as the most signif-
icant bit, and the position of the dots exceeding the Warning threshold value is treated as bit 1.
Value Description
NumberOfBrokenDot
The number of dots exceeding the Fault threshold value of the thermal head is stored.
Value Description
Integer from 1 to 512 Number of dots exceeding the Fault threshold value.
PositionOfBrokenDot
If there are dots exceeding the Fault threshold value of the thermal head, a 128-byte hexadecimal string is
stored.
In this hexadecimal string, the position of the left-end dots on the print surface is treated as the most signif-
icant bit, and the position of the dots exceeding the Fault threshold value is treated as bit 1.
Value Description
Supplementary explanation
❏ This API cannot be used simultaneously with other APIs.
After executing this API, do not execute any other API until the callback is returned.
❏ This API can be used in the system configuration of the TM printer model and customer display model.
With the system configuration of the TM printer + DM-D + barcode scanner model, this API can be used
when connecting via Bluetooth®and USB.
146
Chapter 3 API Reference - Printer class
147
Chapter 3 API Reference - Printer class
downloadFirmwareList
Acquires a list of firmware from the server.
The firmware list acquired by this API is notified to the listener registration method specified in the listener
parameter.
Syntax
<alternative>
public void downloadFirmwareList(java.lang.String
printerModel, java.lang.String option
FirmwareUpdateListener listener) throws Epos2Exception
<obsolete>
public void downloadFirmwareList(java.lang.String
printerModel, FirmwareUpdateListener listener) throws
Epos2Exception
Parameter
printerModel
Specifies the model name of the target printer.
Value Description
TM-m10 TM-m10
TM-m30 TM-m30
TM-m30II TM-m30II
TM-m30II-H TM-m30II-H
TM-m30II-NT TM-m30II-NT
TM-m30II-S TM-m30II-S
TM-T88VI TM-T88VI
TM-T88VI-iHUB TM-T88VI-iHUB
option
Specifies the version of the target firmware.
Value Description
-A Ver.*.*A ESC/POS
-B Ver.*.*B ESC/POS
148
Chapter 3 API Reference - Printer class
listener
Registers the listener registration method that returns the processing result of this API.
- (void) onDownloadFirmwareList(int code, FirmwareInfo[]
firmwareList);
❏ code
The processing result is stored.
❏ firmwareList
A list of downloadable firmware is stored in Epos2FirmwareInfo in Array format.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ This API can be used in an environment where it can connect to both the Internet and a printer.
❏ This API cannot be used simultaneously with other APIs.
After executing this API, do not execute any other API until the callback is returned.
❏ Do not turn off the power supply to the printer while executing this API.
❏ This API can be used in the system configuration of the TM printer model and customer display model.
With the system configuration of the TM Printer + DM-D + barcode scanner model, this API can be used
when connecting via Bluetooth or USB.
❏ This API cannot be used with SSL/TLS communication.
❏ If no firmware image exists on the server, the firmware list cannot be acquired.
149
Chapter 3 API Reference - Printer class
getPrinterFirmwareInfo
Acquires the firmware information for the connected printer.
The firmware information acquired by this API is notified to the listener registration method specified in the
listener parameter.
Syntax
public void getPrinterFirmwareInfo(int timeout,
FirmwareUpdateListener listener) throws Epos2Exception
Parameter
timeout
Specifies the timeout period before acquisition of firmware information is complete in milliseconds.
Value Description
listener
Registers the listener registration method that returns the processing result of this API.
- (void) onReceiveFirmwareInformation(FirmwareInfo
firmwareInfo);
❏ firmwareInfo
The firmware information for the connected printer is stored.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
150
Chapter 3 API Reference - Printer class
Supplementary explanation
❏ This API can be used in an environment where it can connect to both the Internet and a printer.
❏ This API cannot be used simultaneously with other APIs.
After executing this API, do not execute any other API until the callback is returned.
❏ Do not turn off the power supply to the printer while executing this API.
❏ This API can be used in the system configuration of the TM printer model and customer display model.
With the system configuration of the TM Printer + DM-D + barcode scanner model, this API can be used
when connecting via Bluetooth or USB.
❏ This API cannot be used with SSL/TLS communication.
❏ Connect to only Printer class when executing this API.
151
Chapter 3 API Reference - Printer class
verifyUpdate
Compares the firmware of the connected printer with the firmware image specified by updateFirmware.
Execute this API after executing updateFirmware, and confirm that the printer firmware has been overwritten by
the firmware image specified in updateFirmware.
The processing result of this API is notified to the listener registration method specified in the listener parameter.
Syntax
public void verifyUpdate(FirmwareInfo targetFirmwareInfo,
FirmwareUpdateListener listener) throws Epos2Exception
Parameter
targetFirmwareInfo
Specifies the firmware image version that you want to apply to the printer from the list acquired by down-
loadFirmwareList.
Specifies the same firmware image as the one specified by the targetFirmwareInfo parameter of update-
Firmware.
listener
Registers the listener registration method that returns the processing result of this API.
- (void) onUpdateVerify:(int)code;
❏ code
The processing result is stored.
152
Chapter 3 API Reference - Printer class
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ This API can be used in an environment where it can connect to both the Internet and a printer.
❏ This API cannot be used simultaneously with other APIs.
After executing this API, do not execute any other API until the callback is returned.
❏ Do not turn off the power supply to the printer while executing this API.
❏ This API can be used in the system configuration of the TM printer model and customer display model.
With the system configuration of the TM Printer + DM-D + barcode scanner model, this API can be used
when connecting via Bluetooth or USB.
❏ This API cannot be used with SSL/TLS communication.
❏ Connect to only Printer class when executing this API.
153
Chapter 3 API Reference - Printer class
updateFirmware
Downloads the firmware image from the server and instructs the printer to overwrite the firmware image.
Execute verifyUpdate after executing this API, and confirm that the printer firmware has been overwritten by the
firmware image.
The return value from this API is the result of instructing writing of the firmware image to the printer. It is not the
execution result of the overall firmware update.
The progress and processing result of this API is notified to the listener registration method specified in the
listener parameter.
Syntax
public void updateFirmware(FirmwareInfo
targetFirmwareInfo, FirmwareUpdateListener listener,
android.content.Context context) throws Epos2Exception
Parameter
targetFirmwareInfo
Specifies the firmware image version that you want to apply to the printer from the list acquired by down-
loadFirmwareList.
listener
Registers the listener registration method that returns the progress and execution result of this API.
• Acquires the progress status
- (void) onFirmwareUpdateProgress(String task, float
progress);
❏ task
The name of the executed process is stored.
Name Description
❏ progress
A value between 0.0 and 1.0 is stored according to the progress status of the executed process.
154
Chapter 3 API Reference - Printer class
❏ code
The processing result is stored.
❏ maxWaitTime
The maximum wait time to complete writing of the firmware image is stored.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ This API can be used in an environment where it can connect to both the Internet and a printer.
❏ This API cannot be used simultaneously with other APIs.
After executing this API, do not execute any other API until the callback is returned.
❏ Do not turn off the power supply to the printer while executing this API.
❏ Immediately after starting the printer, do not execute this API until the LED is lit.
Execution takes time, and a timeout error may occur.
155
Chapter 3 API Reference - Printer class
❏ Communication with the printer disconnects as the printer automatically restarts during execution of
this API. Reconnect as necessary.
In a network environment that uses DHCP, the IP address may change due to restart of the printer.
In such a case, search for the printer using Discovery class and reconnect.
When connected via USB, the USB device node may change due to restart of the printer.
In such a case, search for the printer using Discovery class and reconnect.
❏ This API can be used in the system configuration of the TM printer model and customer display model.
With the system configuration of the TM Printer + DM-D + barcode scanner model, this API can be used
when connecting via Bluetooth or USB.
❏ This API cannot be used with SSL/TLS communication.
❏ Connect to only Printer class when executing this API.
❏ When updating the firmware by executing this API, note the following points:
• The time required to update depends on the interface.
• About 15 minutes for a network connection
• About 85 minutes for a Bluetooth connection
• You cannot stop the update once it has started.
• Check that the smart device is charged sufficiently.
• Check that no errors have occurred in the printer.
• Check that the printer's communication status is in good condition.
• Do not operate the smart device while updating the firmware.
• Do not disconnect the connection cable and power cable while updating the firmware.
• Do not sleep the smart device while updating the firmware.
156
Chapter 3 API Reference - Printer class
forceRecover
Forcibly sends the error recovery command from a recoverable error status (example: auto cutter error).
For details on recoverable errors, refer to the Technical Reference Guide of each printer.
The error status of this API is the result of sending data to the devices.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListener API of the Printer class.
Syntax
public void forceRecover(int timeout) throws Epos2Exception
Parameter
timeout
Specifies the timeout period before completion of command transmission in milliseconds.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ After recovering from a recoverable error, the buffer of the printer is reset.
❏ For TM-H6000V, the “Command execution during offline” setting must be enabled.
Refer to TM-H6000V Utility User’s Manual for more information.
❏ Available during ePOS-Device XML control.
157
Chapter 3 API Reference - Printer class
forcePulse
Forcibly sends the drawer kick command.
The error status of this API is the result of sending data to the devices.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListener API of the Printer class.
Syntax
public void forcePulse(int drawer, int pulseTime, int timeout)
throws Epos2Exception
Parameter
drawer
Specifies the drawer kick connector.
Value Description
time
Specifies the on time of the drawer kick signal.
Value Description
timeout
Specifies the timeout period before completion of command transmission in milliseconds.
Value Description
158
Chapter 3 API Reference - Printer class
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ The drawer and optional external buzzer cannot be connected simultaneously.
❏ For TM-H6000V, the “Command execution during offline” setting must be enabled.
Refer to TM-H6000V Utility User’s Manual for more information.
❏ Available during ePOS-Device XML control.
159
Chapter 3 API Reference - Printer class
forceStopSound
Forcibly sends the buzzer sound command.
The error status of this API is the result of sending data to the devices.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListener API of the Printer class.
Syntax
public void forceStopSound(int timeout) throws
Epos2Exception
Parameter
timeout
Specifies the timeout period before completion of command transmission in milliseconds.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ The drawer and optional external buzzer cannot be connected simultaneously.
❏ This API cannot be used if the printer is not equipped with a buzzer.
❏ For TM-H6000V, the “Command execution during offline” setting must be enabled.
Refer to TM-H6000V Utility User’s Manual for more information.
❏ Available during ePOS-Device XML control.
160
Chapter 3 API Reference - Printer class
forceCommand
Forcibly sends the ESC/POS command.
The error status of this API is the result of sending data to the devices.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListener API of the Printer class.
Syntax
public void (byte[] data, int timeout) throws Epos2Exception
Parameter
data
Forcibly sends the ESC/POS command.
Specifies the binary data.
timeout
Specifies the timeout period before completion of command transmission in milliseconds.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ For TM-H6000V, the “Command execution during offline” setting must be enabled.
Refer to TM-H6000V Utility User’s Manual for more information.
❏ Available during ePOS-Device XML control.
161
Chapter 3 API Reference - Printer class
forceReset
Forcibly sends the printer reset command.
The error status of this API is the result of sending data to the devices.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListener API of the Printer class.
Syntax
- public void forceReset(int timeout) throws Epos2Exception
Parameter
timeout
Specifies the timeout period before completion of command transmission in milliseconds.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ For TM-H6000V, the “Command execution during offline” setting must be enabled.
Refer to TM-H6000V Utility User’s Manual for more information.
❏ Available during ePOS-Device XML control.
162
Chapter 3 API Reference - Printer class
setStatusChangeEventListener
Registers a listener registration method for a status change event.
Syntax
public void setStatusChangeEventListener
(StatusChangeListener statusChangeListener)
Parameter
listener
Specifies an object which has a notification target method.
Listener interface
public interface StatusChangeListener extends EventListener
Listener registration method
void onPtrStatusChange(Printer printerObj, int eventType)
Parameter
printerObj
The callback source object is stored.
eventType
The type of the event that occurred is stored.
Printer.EVENT_ONLINE Online
Printer.EVENT_OFFLINE Offline
163
Chapter 3 API Reference - Printer class
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
164
Chapter 3 API Reference - Printer class
setReceiveEventListener
Registers a listener registration method for a print completion event.
Syntax
public void setReceiveEventListener (ReceiveListener
receiveListener)
Parameter
target
Specifies an object which has a notification target method.
Listener interface
public interface ReceiveListener extends EventListener
Listener registration method
void onPtrReceive (Printer printerObj, int code,
PrinterStatusInfo status, String printJobId)
Parameter
printerObj
The callback source object is stored.
code
The processing result is stored.
CODE_PRINTING Printing
165
Chapter 3 API Reference - Printer class
status
Status at the timing when the process was run is stored as the PrinterStatusInfo type.
printJobId
❏ When the spooler function has been enabled, a print job ID is stored.
❏ When the spooler function has been disabled, null is stored.
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
❏ When a communication error occurs during ePOS-Device XML control, communication disconnection is
not notified.
To notify the disconnection event, implement the setConnectionEventListener.
❏ When controlling multiple printers at a time, identify which printer has finished printing by comparing
the Printer object in the caller and the printerObj parameter.
❏ Check the details of automatic recovery errors and unrecoverable errors in getStatus.
166
Chapter 3 API Reference - Printer class
setGetPrinterSettingExListener
Registers a listener registration method for an event to notify the processing result of the devices from execution
of the getPrinterSettingEx API.
Syntax
public void
setGetPrinterSettingExListener(GetPrinterSettingExListener
listener)
Parameter
listener
Specifies an object which has a notification target method.
Listener interface
public interface GetPrinterSettingExListener extends
EventListener
Listener registration method
void onGetPrinterSettingEx(Printer printerObj, int code,
String jsonString)
Parameter
printerObj
The callback source object is stored.
code
The processing result is stored.
CODE_SUCCESS Successful
167
Chapter 3 API Reference - Printer class
jsonString
The acquired set value of the printer setting is stored in the JSON format.
Refer to JSON_Spec_sheet.pdf included in the package for more information.
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
❏ If the code is other than CODE_SUCCESS, "" (blank character) is stored in jsonString.
❏ If the getPrinterSettingEx API is executed in a non-supported printer, CODE_SUCCESS is stored in the
code, and "" (blank character) is stored in jsonString.
168
Chapter 3 API Reference - Printer class
setSetPrinterSettingExListener
Registers a listener registration method for an event to notify the processing result of the devices from execution
of the setPrinterSettingEx API.
Syntax
public void
setSetPrinterSettingExListener(SetPrinterSettingExListener
listener)
Parameter
listener
Specifies an object which has a notification target method.
Listener interface
public interface SetPrinterSettingExListener extends
EventListener
Listener registration method
void onSetPrinterSettingEx(Printer printerObj, int code)
Parameter
printerObj
The callback source object is stored.
code
The processing result is stored.
CODE_SUCCESS Successful
169
Chapter 3 API Reference - Printer class
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
❏ When controlling multiple printers, compare the call source Printer object and the printerObj parameter,
and identify the printer that has settings complete.
❏ If the setPrinterSettingEx API is executed in a non-supported printer, CODE_SUCCESS is stored in the
code, but printer settings will not be executed.
170
Chapter 3 API Reference - Printer class
interval
Updates the printer status (Printer.EVENT_POWER_OFF event) and specifies a notification interval. <obsolete>
Syntax
Setter
public void setInterval (int interval) throws Epos2Exception
Getter
public int getInterval ()
Value
Updates the printer status (Printer.EVENT_POWER_OFF event) and specifies a notification interval. The
default value is 3,000.
Value Description
Integer from 1000 to 60000 Interval to update the printer status (in milliseconds).
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
Events other than Printer.EVENT_POWER_OFF are updated and notified at an interval of less than 1 second.
The update interval cannot be changed.
171
Chapter 3 API Reference - HybridPrinter class
HybridPrinter class
HybridPrinter
Initializes the HybridPrinter class.
Syntax
public HybridPrinter(int lang, Context context) throws
Epos2Exception
Parameter
lang
Specifies the language of the printer.
Value Description
HybridPrinter.MODEL_JAPANESE Japanese
HybridPrinter.MODEL_KOREAN Korean
HybridPrinter.MODEL_THAI Thai
context
Specifies the application context.
Null can be specified when the log output function is not used.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When iterating a process, be sure to generate and destroy instances outside the iterated process and not
iterate the process at a short interval.
Memory releasing by the OS may affect the process of the Epson ePOS SDK, resulting in an invalid opera-
tion.
172
Chapter 3 API Reference - HybridPrinter class
connect
Starts communication with the printer.
Syntax
Public void connect(String target, int timeout) throws
Epos2Exception
Parameter
target
Specifies the method of connecting to the printer by a character string.
The connection method varies according to the system configuration.
• TM Printer Models
<connection type>:<identifier>
Connec-
I/F Identifier Example
tion type
To connect to the printer via SSL/TLS communication, specify using the following syntax.
<connection type>:<identifier>[<device ID>]
Connec-
I/F Identifier Example
tion type
Connec-
I/F Identifier Example
tion type
173
Chapter 3 API Reference - HybridPrinter class
To connect to the printer via SSL/TLS communication, specify using the following syntax.
<connection type>:<identifier>[<device ID>]
Connec-
I/F Identifier Example
tion type
timeout
Specifies the maximum time (in milliseconds) to wait for communication with the printer to be established.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ When using multi-threading to connect to multiple printers or peripheral devices, this API and discon-
nect cannot be started for other printers or peripheral devices until this API finishes processing. Start the
next process after this API finishes processing.
174
Chapter 3 API Reference - HybridPrinter class
❏ The device ID is an arbitrary character string that is set when the peripheral device is registered to the TM
printer (master).
For details, refer to the Technical Reference Guide of each printer.
❏ If you specify TCPS in the connection to a printer that does not support SSL/TLS communication,
ERR_PARAM is returned.
❏ Devices other than printers are exclusively locked.
❏ If Epos2Exception including ERR_RECOVERY_FAILURE occurs, restart the printer.
175
Chapter 3 API Reference - HybridPrinter class
disconnect
Ends communication with the printer.
Syntax
Public void disconnect() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ When connected to the printer with Bluetooth, executing this API while a slip sheet is inserted by readMi-
crData causes the slip sheet to be ejected.
❏ Executing this API while waiting for paper insertion after executing waitInsertion, readMicrData, and
cleanMicrReader cancels waiting for paper insertion.
At that time, processing result of waitInsertion, readMicrData, and cleanMicrReader is not notified.
❏ When using multi-threading to connect to multiple printers or peripheral devices, this API and connect
cannot be started for other printers or peripheral devices until this API finishes processing. Start the next
process after this API finishes processing.
176
Chapter 3 API Reference - HybridPrinter class
startMonitor
Enables printer status event notification.
Acquires and updates the printer status at the interval specified by the interval property and returns it to the
listener registration method registered by setStatusChangeEventListener.
Syntax
public void startMonitor() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
During ESC/POS control, any ASB information items which have been changed during the update interval
specified by the interval property are reported.
During ePOS-Device XML control, the ASB information at the time of update is reported.
177
Chapter 3 API Reference - HybridPrinter class
stopMonitor
Disables status events.
Syntax
public void stopMonitor() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
178
Chapter 3 API Reference - HybridPrinter class
getStatus
Acquires the current status information.
Syntax
public HybridPrinterStatusInfo getStatus ()
Return value
The current status is returned in the HybridPrinterStatusInfo type.
The following status information is stored in the object as a property.
Stored status information can be acquired using the getter method of each property.
HybridPrinter.TRUE Online
online:
HybridPrinter.FALSE Offline
Online status
HybridPrinter.UNKNOWN Status is unknown.
HybridPrinter.SWITCH_ON Pressed
panelSwitch:
Panel switch (Feed button) sta- HybridPrinter.SWITCH_OFF Not pressed
tus
HybridPrinter.UNKNOWN Status is unknown.
HybridPrinter.DRAWER_HIGH High
drawer:
Drawer kick connector pin No.3 HybridPrinter.DRAWER_LOW Low
status
HybridPrinter.UNKNOWN Status is unknown.
179
Chapter 3 API Reference - HybridPrinter class
HybridPrinter.NO_ERR Normal
HybridPrinter .INSERTION_WAIT_VALI-
Waiting for validation sheet insertion
DATION
insertionWaiting:
Paper insertion wait status HybridPrinter.INSERTION_WAIT_MICR Waiting for slip sheet insertion
Supplementary explanation
❏ If this API is called while communication is not available, printer states other than "connection" will be
set to "Hybrid-Printer.UNKNOWN."
❏ The status object is set to the status at the timing of execution of this API and will not be updated.
❏ When a head overheat error occurs, HybridPrinter.UNKNOWN may be returned in autoRecoverError.
❏ HybridPrinter.INSERTION_WAIT_SLIP in insertionWaiting does not distinguish between slip sheet inser-
tion for slip printing and endorsement printing.
180
Chapter 3 API Reference - HybridPrinter class
sendData
Sends the print command and performs printing in the print method specified by selectPaperType.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListener API of the HybridPrinter class.
Syntax
public void sendData (int timeout) throws Epos2Execption
Parameter
timeout
Specifies the timeout period before completion of printing in milliseconds.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
181
Chapter 3 API Reference - HybridPrinter class
beginTransaction
Starts a transaction.
A transaction represents a single printing task such as printing a single sheet of receipt or coupon.
After this API is called, data until the transaction is terminated by endTransaction will be regarded as a single
printing task.
Syntax
public void beginTransaction() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
182
Chapter 3 API Reference - HybridPrinter class
endTransaction
Ends a transaction.
A transaction represents a single printing task such as printing a single sheet of receipt or coupon.
After beginTransaction is called, data until the transaction is terminated by this API will be regarded as a single
printing task.
Syntax
public void endTransaction() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
Do not execute this API during the period from paper insertion through paper eject during slip, endorse-
ment, validation, and MICR control.
183
Chapter 3 API Reference - HybridPrinter class
clearCommandBuffer
Clears the command buffer.
The contents buffered in the command buffer are retained until this API is called.
Syntax
public void clearCommandBuffer()
184
Chapter 3 API Reference - HybridPrinter class
selectPaperType
Specifies a print method.
Syntax
public void selectPaperType(int paperType) throws
Epos2Execption
Parameter
paperType
Specifies a print method.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
The print method specified by this API affects waitInsertion and sendData APIs.
185
Chapter 3 API Reference - HybridPrinter class
waitInsertion
Causes the printer to wait for paper insertion.
After running this API, set the paper appropriate for the print method specified by the selectPaperType.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListener API of the HybridPrinter class.
Syntax
public void waitInsertion (int timeout) throws Epos2Execption
Parameter
timeout
Specifies the timeout period before completion of paper insertion in milliseconds.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
186
Chapter 3 API Reference - HybridPrinter class
cancelInsertion
Cancels the paper insertion wait status.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListener API of the HybridPrinter class.
Syntax
public void cancelInsertion () throws Epos2Execption
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
187
Chapter 3 API Reference - HybridPrinter class
ejectPaper
Ejects the papers.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListener API of the HybridPrinter class when the eject command has been transmitted to the
printer.
Syntax
public void ejectPaper () throws Epos2Execption
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
Cannot communicate with the printer until the paper ejected after receiving the callback is removed.
188
Chapter 3 API Reference - HybridPrinter class
readMicrData
Reads MICR data.
Inserting a slip sheet after executing this API starts reading MICR.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListener API of the HybridPrinter class.
Syntax
public void readMicrData (int micrFont, int timeout) throws
Epos2Execption
Parameter
micrFont
Specifies the font of characters to read.
Value Description
timeout
Specifies the timeout period before completion of MICR reading in milliseconds.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
189
Chapter 3 API Reference - HybridPrinter class
cleanMicrReader
Cleans the MICR mechanism.
Inserting a cleaning sheet after executing this API starts cleaning the MICR mechanism.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListener API of the HybridPrinter class.
Syntax
public void cleanMicrReader (int timeout) throws
Epos2Execption
Parameter
timeout
Specifies the timeout period before completion of MICR mechanism cleaning in milliseconds.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
190
Chapter 3 API Reference - HybridPrinter class
forceRecover
Forcibly sends the error recovery command.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListener API of the HybridPritner class.
Syntax
public void forceRecover(int timeout) throws Epos2Exception
Parameter
timeout
Specifies the timeout period before completion of command transmission in milliseconds.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ For TM-H6000V, the “Command execution during offline” setting must be enabled.
Refer to TM-H6000V Utility User’s Manual for more information.
❏ Available during ePOS-Device XML control.
191
Chapter 3 API Reference - HybridPrinter class
forcePulse
Forcibly sends the drawer kick command.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListener API of the HybridPritner class.
Syntax
public void forcePulse(int drawer, int pulseTime, int timeout)
throws Epos2Exception
Parameter
drawer
Specifies the drawer kick connector.
Value Description
pulseTime
Specifies the on time of the drawer kick signal.
Value Description
timeout
Specifies the timeout period before completion of command transmission in milliseconds.
Value Description
192
Chapter 3 API Reference - HybridPrinter class
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ The drawer and optional external buzzer cannot be connected simultaneously.
❏ For TM-H6000V, the “Command execution during offline” setting must be enabled.
Refer to TM-H6000V Utility User’s Manual for more information.
❏ Available during ePOS-Device XML control.
193
Chapter 3 API Reference - HybridPrinter class
forceCommand
Forcibly sends the ESC/POS command.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListener API of the HybridPritner class.
Syntax
public void forceCommand(byte[] data, int timeout) throws
Epos2Exception
Parameter
data
Forcibly sends the ESC/POS command.
Specifies the binary data.
timeout
Specifies the timeout period before completion of command transmission in milliseconds.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ For TM-H6000V, the “Command execution during offline” setting must be enabled.
Refer to TM-H6000V Utility User’s Manual for more information.
❏ Available during ePOS-Device XML control.
194
Chapter 3 API Reference - HybridPrinter class
forceReset
Forcibly sends the printer reset command.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListener API of the HybridPritner class.
Syntax
public void forceReset(int timeout) throws Epos2Exception
Parameter
timeout
Specifies the timeout period before completion of command transmission in milliseconds.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ For TM-H6000V, the “Command execution during offline” setting must be enabled.
Refer to TM-H6000V Utility User’s Manual for more information.
❏ Available during ePOS-Device XML control.
195
Chapter 3 API Reference - HybridPrinter class
paperType
Acquires the print method setting information.
Syntax
Getter
public int getPaperType()
Value
Acquires the set print method information.
Value Description
Supplementary explanation
The selectPaperType API is used to change the set value.
196
Chapter 3 API Reference - HybridPrinter class
interval
Specifies the interval to update the printer status.
Syntax
Setter
public void setInterval (int interval) throws Epos2Exception
Getter
public int getInterval ()
Value
Specifies the interval to update the printer status (in milliseconds). The default value is 3000.
Value Description
Integer from 1000 to 600000 Interval to update the printer status (in milliseconds).
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
The new set value takes effect upon the next printer status notification.
197
Chapter 3 API Reference - HybridPrinter class
waitTime
Specifies the time from insertion of a paper to start of insertion operation.
Syntax
Setter
public void setWaitTime (int time) throws Epos2Exception
Getter
public int getWaitTime ()
Value
Default: 500
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
Set values are rounded down to the nearest 100 milliseconds.
Example: 1 -> 0, 101 -> 100, 150 -> 100
198
Chapter 3 API Reference - HybridPrinter class
mode40Cpl
Enables or disables the 40cpl mode.
Syntax
Setter
public void setMode40Cpl (int mode) throws Epos2Exception
Getter
public int getMode40Cpl ()
Value
Default: 40cpl mode enabled
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
This API does not work in the page mode.
199
Chapter 3 API Reference - HybridPrinter class
setStatusChangeEventListener
Registers a listener registration method for a status change event.
Syntax
public void setStatusChangeEventListener
(StatusChangeListener statusChangeListener)
Parameter
statusChangeListener
Specifies an object which has a notification target method.
Listener interface
public interface StatusChangeListener extends EventListener
Listener registration method
void onHybdStatusChange(HybridPrinter hybridPrinterObj,
int eventType)
Parameter
hybridPrinterObj
The callback source object is stored.
eventType
The type of the event that occurred is stored.
HybridPrinter.EVENT_ONLINE Online
HybridPrinter.EVENT_OFFLINE Offline
200
Chapter 3 API Reference - HybridPrinter class
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
201
Chapter 3 API Reference - HybridPrinter class
setReceiveEventListener
Registers a listener registration method for a print completion event.
Syntax
public void setReceiveEventListener (ReceiveListener
receiveListener)
Parameter
target
Specifies an object which has a notification target method.
Listener interface
public interface ReceiveListener extends EventListener
Listener registration method
void onHybdReceive (HybridPrinter hybridPrinterObj, int
method, int code, String micrData, HybridPrinterStatusInfo
status)
Parameter
hybridPrinterObj
The callback source object is stored.
method
The method information is stored.
code
The processing result is stored.
Code Description
CODE_PRINTING Printing
202
Chapter 3 API Reference - HybridPrinter class
Code Description
203
Chapter 3 API Reference - HybridPrinter class
Code Description
micrData
MICR read data is stored.
status
Status at the timing when the process was run is stored as the HybridPrinterStatusInfo type.
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
❏ When a communication error occurs during ePOS-Device XML control, communication disconnection is
not notified.
To notify the disconnection event, implement the setConnectionEventListener.
❏ When controlling multiple printers at a time, identify which printer has finished printing by comparing
the HybridPrinter object in the caller and the hybridPrinterObj parameter.
204
Chapter 3 API Reference - LineDisplay class
LineDisplay class
LineDisplay
Initializes the LineDisplay class.
Syntax
public LineDisplay(int displaySeries, Context context) throws
Epos2Exception
Parameter
displaySeries
Specifies the model name of the target customer display.
Value Description
LineDisplay.DM_D110 DM-D110
LineDisplay.DM_D210 DM-D210
LineDisplay.DM_D30 DM-D30
LineDisplay.DM_D70 DM-D70
context
Specifies the application context.
Null can be specified when the log output function is not used.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ When iterating a process, be sure to generate and destroy instances outside the iterated process and not
iterate the process at a short interval.
Memory releasing by the OS may affect the process of the Epson ePOS SDK, resulting in an invalid opera-
tion.
❏ When the DM-D30 connected to the TM-m30/TM-m30II/TM-m50/TM-T88VI/TM-T88VI-iHUB is replaced
with the DM-D70, specify LineDisplay.DM_D30 in displaySeries.
205
Chapter 3 API Reference - LineDisplay class
connect
Starts communication with the customer display.
Syntax
Public void connect (String target int timeout) throws
Epos2Exception
Parameter
target
Specifies the method of connecting to the printer by a character string.
The connection method varies according to the system configuration.
Connec-
I/F Identifier Example
tion type
To connect to the printer via SSL/TLS communication, specify using the following syntax.
<connection type>:<identifier>[<device ID>]
Connec-
I/F Identifier Example
tion type
206
Chapter 3 API Reference - LineDisplay class
Connec-
I/F Identifier Example
tion type
Connec-
I/F Identifier Example
tion type
Connec-
I/F Identifier Example
tion type
To connect to the printer via SSL/TLS communication, specify TCPS in the connection type.
timeout
Specifies the maximum time (in milliseconds) to wait for communication with the printer to be established.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
207
Chapter 3 API Reference - LineDisplay class
Supplementary explanation
❏ Devices other than printers are exclusively locked.
❏ When using multi-threading to connect to multiple printers or peripheral devices, this API and discon-
nect cannot be started for other printers or peripheral devices until this API finishes processing. Start the
next process after this API finishes processing.
❏ The device ID is an arbitrary character string that is set when the peripheral device is registered to the TM
printer (master).
For details, refer to the Technical Reference Guide of each printer.
❏ When connecting through the USB, the identifiers that can be specified differ depending on the shape of
the USB connector.
When the identifier is omitted, Android OS connects with the USB device found first.
When the Android terminal is set to the developer mode, you may not be able to connect through USB-
A - Device Charging.
Device node ✔ -
Omitted ✔ ✔
❏ This API will succeed regardless of the connection status of the TM printer (master) and peripheral
devices.
❏ If Epos2Exception including ERR_RECOVERY_FAILURE occurs, restart the printer.
208
Chapter 3 API Reference - LineDisplay class
disconnect
Ends communication with the customer display.
Syntax
Public void disconnect() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When using multi-threading to connect to multiple printers or peripheral devices, this API and connect
cannot be started for other printers or peripheral devices until this API finishes processing. Start the next
process after this API finishes processing.
209
Chapter 3 API Reference - LineDisplay class
getStatus
Acquires the current status information.
Syntax
public DisplayStatusInfo getStatus()
Return value
The current status is returned in the DisplayStatusInfo type.
The following status information is stored in the object as a property.
Stored status information can be acquired using the getter method of each property.
Supplementary explanation
❏ The status object is set to the status at the timing of execution of this API and will not be updated.
❏ If this function is executed within a callback function, null will be returned.
❏ If "FALSE" is returned when connecting a DM-D30 or DM-D70, the TM printer is not connected to the ter-
minal.
210
Chapter 3 API Reference - LineDisplay class
sendData
Sends the command buffer.
The error status of this API is the result of sending data to the devices.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListenerAPI.
This API sends data buffered by an add-type API (e.g., addText).
Syntax
public void sendData() throw Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
211
Chapter 3 API Reference - LineDisplay class
clearCommandBuffer
Clears the command buffer.
The contents buffered in the command buffer are retained until this API is called.
Syntax
public void clearCommandBuffer()
212
Chapter 3 API Reference - LineDisplay class
addInitialize
Initializes the customer display. Initialization changes the customer display status as follows.
❏ All the displayed characters are erased and all the windows are destroyed.
❏ Cursor settings are initialized to the default and the cursor position is returned to the origin of the customer
display.
❏ The display blinking and brightness settings are initialized to the default.
Syntax
public void addInitialize ()
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
213
Chapter 3 API Reference - LineDisplay class
addCreateWindow
Adds window configuration to the command buffer.
Up to four windows can be configured.
Syntax
public int addCreateWindow(int number, int x, int y, int
width, int height, int scrollMode) throw Epos2Exception
Parameter
number
Specifies the window number.
Value Description
x
Specifies the x coordinate of the window origin on the customer display.
Value Description
y
Specifies the y coordinate of the window origin on the customer display.
Value Description
width
Specifies the window width.
Value Description
height
Specifies the window height.
Value Description
214
Chapter 3 API Reference - LineDisplay class
scrollMode
Specifies the window scroll mode.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
To add a window, be careful so that the existing window(s) should not be overlapped by the new window
on the customer display.
215
Chapter 3 API Reference - LineDisplay class
addDestroyWindow
Adds a command to destroy the window defined by addCreateWindow to the command buffer.
Syntax
public void addDestroyWindow(int number) throw
Epos2Exception
Parameter
number
Specifies the number of the window to destroy.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
216
Chapter 3 API Reference - LineDisplay class
addSetCurrentWindow
Adds a command to move to another window to the command buffer.
Specify one of the windows defined by addCreateWindow to set it as the new current window.
The cursor will move to the origin of the new window.
Syntax
public void addSetCurrentWindow(int number) throw
Epos2Exception
Parameter
number
Specifies a window number of a destination window.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
217
Chapter 3 API Reference - LineDisplay class
addClearCurrentWindow
Adds a window clear command for the current window to the command buffer.
Syntax
public void addClearCurrentWindow() throw Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
218
Chapter 3 API Reference - LineDisplay class
addCreateScreen
Adds the setting of the base window to the command buffer.
This API is used to call the layout setting of the base window having customer display.
Syntax
public void addCreateScreen(int mode) throws
Epos2Exception
Parameter
mode
Specifies the combination of the display area of the base window and the screen configuration (text/
image).
Installation Area
Value Screen configuration
method (columns × rows)
“Horizontal split”
Landscape Divided equally into top and bottom
LineDisplay.LAYOUT_MODE_1 20 x 2
orientation portions.
Top: Text, Bottom: Image
“Horizontal split”
Landscape Divided equally into top and bottom
LineDisplay.LAYOUT_MODE_2 20 x 2
orientation portions.
Top: Image, Bottom: Text
“Display in center”
Landscape
LineDisplay.LAYOUT_MODE_3 20 x 2 Only text is displayed at the center.
orientation
No division.
“Horizontal split”
Landscape Divided equally into top and bottom
LineDisplay.LAYOUT_MODE_4 32 x 4
orientation portions.
Top: Text, Bottom: Image
“Horizontal split”
Landscape Divided equally into top and bottom
LineDisplay.LAYOUT_MODE_5 32 x 4
orientation portions.
Top: Image, Bottom: Text
“Display in center”
Landscape
LineDisplay.LAYOUT_MODE_6 32 x 4 Only text is displayed at the center.
orientation
No division.
“Horizontal split”
Landscape Divided equally into top and bottom
LineDisplay.LAYOUT_MODE_7 42 x 8
orientation portions.
Top: Text, Bottom: Image
219
Chapter 3 API Reference - LineDisplay class
Installation Area
Value Screen configuration
method (columns × rows)
“Horizontal split”
Landscape Divided equally into top and bottom
LineDisplay.LAYOUT_MODE_8 42 x 8
orientation portions.
Top: Image, Bottom: Text
“Display in center”
Landscape
LineDisplay.LAYOUT_MODE_9 42 x 8 Only text is displayed at the center.
orientation
No division.
“Horizontal split”
Landscape Divided equally into top and bottom
LineDisplay.LAYOUT_MODE_10 32 x 3
orientation portions.
Top: Text, Bottom: Image
“Horizontal split”
Landscape Divided equally into top and bottom
LineDisplay.LAYOUT_MODE_11 32 x 3
orientation portions.
Top: Image, Bottom: Text
“Display in center”
Landscape
LineDisplay.LAYOUT_MODE_12 32 x 3 Only text is displayed at the center.
orientation
No division.
“Horizontal split”
Landscape Divided equally into top and bottom
LineDisplay.LAYOUT_MODE_13 32 x 2
orientation portions.
Top: Text, Bottom: Image
“Horizontal split”
Landscape Divided equally into top and bottom
LineDisplay.LAYOUT_MODE_14 32 x 2
orientation portions.
Top: Image, Bottom: Text
“Display in center”
Landscape
LineDisplay.LAYOUT_MODE_15 32 x 2 Only text is displayed at the center.
orientation
No division.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
220
Chapter 3 API Reference - LineDisplay class
Supplementary explanation
If this API is executed, all items displayed in customer display are erased.
221
Chapter 3 API Reference - LineDisplay class
addCreateScreenCustom
Adds the setting of the base window to the command buffer.
This API enables the specification of width and height in the screen configuration of the base window having
customer display.
Syntax
public void addCreateScreenCustom(int mode, int column, int
row) throws Epos2Exception
Parameter
mode
Specifies the screen configuration of base window (text/image).
Installation
Value Screen configuration
method
“Full screen”
Landscape
LineDisplay.LANDSCAPE_LAYOUT_MODE_1 The text/image is displayed on the entire page.
orientation
No division.
“Vertical split”
Landscape
LineDisplay.LANDSCAPE_LAYOUT_MODE_2 Divided equally into left and right portions.
orientation
Left: Image, Right: Text
“Vertical split”
Landscape
LineDisplay.LANDSCAPE_LAYOUT_MODE_3 Divided equally into left and right portions.
orientation
Left: Text, Right: Image
“Horizontal split”
Landscape
LineDisplay.LANDSCAPE_LAYOUT_MODE_4 Divided equally into top and bottom portions.
orientation
Top: Text, Bottom: Image
“Horizontal split”
Landscape
LineDisplay.LANDSCAPE_LAYOUT_MODE_5 Divided equally into top and bottom portions.
orientation
Top: Image, Bottom: Text
“Full screen”
Portrait
LineDisplay.PORTRAIT_LAYOUT_MODE_1 The text/image is displayed on the entire page.
orientation
No division.
“Horizontal split”
Portrait
LineDisplay.PORTRAIT_LAYOUT_MODE_2 Divided equally into top and bottom portions.
orientation
Top: Text, Bottom: Image
“Horizontal split”
Portrait
LineDisplay.PORTRAIT_LAYOUT_MODE_3 Divided equally into top and bottom portions.
orientation
Top: Image, Bottom: Text
222
Chapter 3 API Reference - LineDisplay class
Installation
Value Screen configuration
method
column
Specifies the width (number of columns) of the base window display area.
Value Description
row
Specifies the height (number of rows) of the base window display area.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
223
Chapter 3 API Reference - LineDisplay class
Supplementary explanation
❏ If this API is executed, all items displayed in customer display are erased.
❏ Ignored when a value out of the effective specification range is specified in column, row.
224
Chapter 3 API Reference - LineDisplay class
addCreateTextArea
Adds the window setting to the command buffer.
A maximum of up to four windows can be set.
Syntax
public void addCreateTextArea(int number, int x, int y, int
width, int height, int scrollMode) throws Epos2Exception
Parameter
number
Specifies the window number.
Value Description
x
Specifies the x-coordinate on the customer display of window origin.
Value Description
y
Specifies the y-coordinate on the customer display of window origin.
Value Description
width
Specifies the window width.
Value Description
height
Specifies the window height.
Value Description
225
Chapter 3 API Reference - LineDisplay class
scrollMode
Specifies the window scroll mode.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When setting an additional window, take care that the already-set window and the setting range on the
customer display do not overlap.
226
Chapter 3 API Reference - LineDisplay class
addDestroyTextArea
Adds the deletion setting of the window defined in addCreateTextArea to the command buffer.
Syntax
public void addDestroyTextArea(int number) throws
Epos2Exception
Parameter
number
Specifies the window number to be deleted.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
227
Chapter 3 API Reference - LineDisplay class
addSetCurrentTextArea
Adds the change setting of the current window to the command buffer.
Specifies the window defined in addCreateTextArea, and sets it as the current window.
Moves the cursor to the origin position of the current window.
Syntax
public void addSetCurrentTextArea(int number) throws
Epos2Exception
Parameter
number
Specifies the destination window number.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
228
Chapter 3 API Reference - LineDisplay class
addClearCurrentTextArea
Adds the display deletion in the current window to the command buffer.
Syntax
public void addClearCurrentTextArea() throws
Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
229
Chapter 3 API Reference - LineDisplay class
addSetCursorPosition
Adds cursor position setting to the command buffer.
Syntax
public void addSetCursorPosition(int x, int y) throw
Epos2Exception
Parameter
x
Specifies the destination x coordinate.
Value Description
y
Specifies the destination y coordinate.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ Use addMoveCursorPosition to move within a window.
❏ In DM-D70 (Standard mode), the cursor position is set in the current window specified in addSetCurrent-
TextArea, with the top left as the origin.
If the window is not specified in addSetCurrentTextArea, set the cursor position in the base window, with
the top left as the origin.
❏ In DM-D70 (Column/row fixed mode), the cursor position is set in the base window, with the top left as
the origin.
❏ The value that can be specified in the x, y parameters varies depending on the customer display used
and its display modes, as well as the installation method.
230
Chapter 3 API Reference - LineDisplay class
x y
DM-D30
DM-D110
Integer from 1 to 20 Integer from 1 to 2
DM-D210
231
Chapter 3 API Reference - LineDisplay class
addMoveCursorPosition
Adds cursor position setting within the current window to the command buffer.
Syntax
public void addMoveCursorPosition(int position) throw
Epos2Exception
Parameter
position
Specifies the new cursor position within the current window.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ In DM-D70 (Standard mode), move the cursor to the specified position from the origin of the window
specified in addSetCurrentTextArea.
If the window is not specified in addSetCurrentTextArea, move the cursor to the specified position from
the origin of the base window.
❏ In DM-D70 (Column/row fixed mode), move the cursor to the specified position from the origin of the
base window.
232
Chapter 3 API Reference - LineDisplay class
addSetCursorType
Adds cursor display setting to the command buffer.
Syntax
public void addSetCursorType(int type) throw Epos2Exception
Parameter
type
Specifies the cursor display method.
Value Description
LineDisplay.CURSOR_UNDERLINE Underscore
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
233
Chapter 3 API Reference - LineDisplay class
addText
Adds string display setting to the command buffer.
Syntax
❏ public void addText(String data, int x, int y, int lang, int r, int
g, int b) throws Epos2Exception
Parameter
data
Specifies the string to display.
lang
Specifies the language to display the string.
Value Description
LineDisplay.LANG_JA Japanese
x
Specifies the x coordinate of the display position.
Value Description
234
Chapter 3 API Reference - LineDisplay class
y
Specifies the y coordinate of the display position.
Value Description
r
Specifies the red color value of the string to be displayed.
Value Description
g
Specifies the green color value of the string to be displayed.
Value Description
b
Specifies the blue color value of the string to be displayed.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ Parameters x and y specify coordinates with the origin at the top left of the customer display.
❏ If the coordinates of the display position are omitted, the coordinates of the cursor position upon execu-
tion of addText are used.
❏ The value that can be specified in the x, y parameters varies depending on the customer display used
and its display modes, as well as the installation method.
235
Chapter 3 API Reference - LineDisplay class
x y
DM-D30
DM-D110
1 to 20 1 to 2
DM-D210
236
Chapter 3 API Reference - LineDisplay class
addReverseText
Adds reverse text display setting to the command buffer.
Syntax
Parameter
data
Specifies the string to display.
lang
Specifies the language to display the string.
Value Description
LineDisplay.LANG_JA Japanese
x
Specifies the x coordinate of the display position.
Value Description
y
Specifies the y coordinate of the display position.
Value Description
237
Chapter 3 API Reference - LineDisplay class
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ Parameters x and y specify coordinates with the origin at the top left of the customer display.
❏ If the coordinates of the display position are omitted, the coordinates of the cursor position upon execu-
tion of addText are used.
238
Chapter 3 API Reference - LineDisplay class
addMarqueeText
Adds marquee display setting to the command buffer.
The marquee is displayed on a single line in the horizontal scroll mode, without regard to the scroll mode setting
of the display window.
Syntax
public void addMarqueeText(String data ,int format, int
unitWait, int repeatWait, int repeatCount, int lang) throws
Epos2Exception
Parameter
data
Specifies the string to display.
format
Specifies how to display the string.
Value Description
unitWait
Specifies the display interval per character (in milliseconds).
Value Description
repeatWait
Specifies the display repeat interval (in milliseconds).
Value Description
repeatCount
Specifies the display repeat count.
Value Description
0 Unlimited
239
Chapter 3 API Reference - LineDisplay class
lang
Specifies the language to display the string.
Value Description
LineDisplay.LANG_EN English
LineDisplay.LANG_JA Japanese
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ When using DM-D30 or DM-D70 and when using a combination of TM-H6000V with DM-D110/DM-
D210, "0" is only allowed in repeatCount.
❏ When controlling DM-D30 or DM-D70, its marquee display may be distorted if the interval for displaying
text is too short due to the characteristics of the LCD.
For unitWait and repeatWait, the following values are recommended.
DM-D30: 600 msec or more
DM-D70: 100 msec or more
240
Chapter 3 API Reference - LineDisplay class
addSetBlink
Adds screen blink setting to the command buffer.
Syntax
public void addSetBlink(int interval) throws Epos2Exception
Parameter
interval
Specifies the blink interval (in milliseconds). The setting value is rounded to the nearest 50 milliseconds.
Value Description
0 Continuously lit
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
241
Chapter 3 API Reference - LineDisplay class
addSetBrightness
Adds brightness setting of the customer display to the command buffer.
Syntax
publice void addSetBrightness(int brightness) throws
Epos2Exception
Parameter
brightness
Specifies the brightness value of the customer display.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
242
Chapter 3 API Reference - LineDisplay class
addBackgroundColor
Adds the specification of the background color to the command buffer.
The background color from the beginning till the end of the row specified in the text area can be changed.
Syntax
public void addBackgroundColor(int row, int r, int g, int b)
throws Epos2Exception
Parameter
row
Specifies the row to which the background color is applied.
Value Description
r
Specifies the red color value of the background color.
Value Description
g
Specifies the green color value of the background color.
Value Description
b
Specifies the blue color value of the background color.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
243
Chapter 3 API Reference - LineDisplay class
Supplementary explanation
❏ To individually specify the background color in a plurality of windows, define the window in addSetCur-
rentTextArea before executing this API.
If the window is defined beforehand, the background color can be specified individually for each win-
dow.
By dividing the window at the position where the background color is to be changed, the background
color can be changed in the middle of the row.
❏ The background color can be applied only to the text area.
❏ Specify the r, g, b parameters in the RGB565 format.
❏ Specify the setting value in all of the r, g, and b parameters.
❏ To apply the background color to a plurality of rows, execute this API a plurality of times.
244
Chapter 3 API Reference - LineDisplay class
addStartSlideShow
Adds the start of the slide show to the command buffer.
Syntax
public void addStartSlideShow(int interval) throws
Epos2Exception
Parameter
interval
Specifies the switching period of the slide show (in milliseconds).
Value Description
Integer from 200 to 51000 Switching period of the slide show (in milliseconds)
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
245
Chapter 3 API Reference - LineDisplay class
addStopSlideShow
Adds the stopping of the slide show to the command buffer.
Syntax
public void addStopSlideShow() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
246
Chapter 3 API Reference - LineDisplay class
addDownloadImage
Adds the display of the image registered in addRegisterDownloadImage to the command buffer.
Syntax
public void addDownloadImage(int key1, int key2, int dotX,
int dotY, int width, int height) throws Epos2Exception
Parameter
key1
Specifies keycode 1 indicated in addRegisterDownloadImage.
Value Description
key2
Specifies keycode 2 indicated in addRegisterDownloadImage.
Value Description
dotX
Specifies the x-coordinate of the image display position, with the top left of the customer display as the ori-
gin.
Value Description
dotY
Specifies the y-coordinate of the image display position, with the top left of the customer display as the ori-
gin.
Value Description
247
Chapter 3 API Reference - LineDisplay class
width
Specifies the width display size (in dots) of the image.
Value Description
Integer from 0 to 1440 Width display size (in dots) of the image
height
Specifies the height display size (in dots) of the image.
Value Description
Integer from 0 to 1440 Height display size (in dots) of the image
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ Can be used when the layout is specified in addCreateScreenCustom.
❏ To display in the size of the original image, specify 0 in both the width and height parameters.
❏ The image is not displayed if it does not fit into the display area.
❏ The image specified by this API is displayed in front of the text or image being displayed during the exe-
cution.
❏ When using a transmission image, use data in the png format.
248
Chapter 3 API Reference - LineDisplay class
addRegisterDownloadImage
Adds the registration of the image data to the command buffer.
The specified image data can be registered in the download graphics area of customer display, and can be called
by addDownloadImage.
Syntax
public void addRegisterDownloadImage(byte[] data, int key1,
int key2) throws Epos2Exception
Parameter
data
Specifies the binary data in the png format or jpg format.
key1
Specifies keycode 1.
Value Description
key2
Specifies keycode 2.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ This API cannot be used simultaneously with other APIs.
After executing this API, do not execute any other API until the callback is returned.
❏ Execute a sendData API after each execution of this API to register images one by one.
❏ If Epos2Exception including the error status occurs in the sendData execution results after the execution
of this API, restart the printer.
Depending on the system environment, it may take some time for the recovery process.
❏ If the power supply to the customer display is cut off, the registered image is erased.
249
Chapter 3 API Reference - LineDisplay class
❏ As the data size of the image to be registered increases, the processing time becomes longer. (Max. 320
seconds)
❏ If the data size of the image to be registered is large, and the communication environment is poor, the
image may not be registered in this API.
If the image cannot be registered in this API, use a dedicated Utility software.
For details on the dedicated Utility software, refer to the Technical Reference Guide of each customer dis-
play.
❏ If an image is registered in the specified keycode, it is overwritten and registered.
❏ Image data expressed in the pixel format of YCbCr422 or YCbCr420 can be used.
❏ The image size should be about 100 KB although the upper limit of the image size is 1.5 MB.
❏ Total size of images that can be registered is 1.5 MB.
This API converts the image format and pixel count so that the customer displays can process the images
and then register them. The conversion processing may increase the size of images, so ensure that there
is sufficient free space in the download graphics area to accommodate the total size of the images to be
registered.
No error is returned when registration was not successful due to insufficient free space in the download
graphics area.
❏ When using a transmission image, use data in the png format.
❏ Please use an image that matches the size of the image area in the customer display.
Using an image larger than the size of the image area will cause the image to be trimmed to fit the size of
the image area.
250
Chapter 3 API Reference - LineDisplay class
addNVImage
Adds the display of the image registered in the NV Graphics area of the customer display to the command buffer.
Syntax
public void addNVImage(int key1, int key2, int dotX, int dotY,
int width, int height) throws Epos2Exception
Parameter
key1
Specifies keycode 1 of NV Graphics.
Value Description
key2
Specifies keycode 2 of NV Graphics.
Value Description
dotX
Specifies the x-coordinate of the image display position, with the top left of the customer display as the ori-
gin.
Value Description
dotY
Specifies the y-coordinate of the image display position, with the top left of the customer display as the ori-
gin.
Value Description
251
Chapter 3 API Reference - LineDisplay class
width
Specifies the width display size (in dots) of the image.
Value Description
Integer from 0 to 1440 Width display size (in dots) of the image
height
Specifies the height display size (in dots) of the image.
Value Description
Integer from 0 to 1440 Height display size (in dots) of the image
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ Can be used when the layout is specified in addCreateScreenCustom.
❏ To display in the size of the original image, specify 0 in both the width and height parameters.
❏ The image is not displayed if it does not fit into the display area.
❏ The image specified by this API is displayed in front of the text or image being displayed during the exe-
cution of the API.
❏ When using a transmission image, use data in the png format.
❏ Use the dedicated Utility software for registration of the image to the NV Graphics area of customer dis-
play.
For details, refer to the Technical Reference Guide of each customer display.
252
Chapter 3 API Reference - LineDisplay class
addClearImage
Adds the deletion of the image being displayed to the command buffer.
Syntax
public void addClearImage() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
In this API, the image displayed in the image area is deleted.
To delete the image displayed in the text area, initialize the customer display in addInitialize.
253
Chapter 3 API Reference - LineDisplay class
addSymbol
Adds the display of the two-dimensional symbol to the command buffer.
Syntax
public void addSymbol(java.lang.String data, int type, int level,
int width, int height, int dotX, int dotY, int quietZone) throws
Epos2Exception
Parameter
data
Specifies the two-dimensional symbol data as a string.
Specify a string in accordance with the standard of the two-dimensional symbol specified in type.
Type Description
QR Code Model 1 After converting the string to shift JIS, perform the escape sequence processing, select
the data type from the following, and perform encoding.
• Numbers: 0 to 9
When specifying binary data that cannot be expressed as a string, specify in the following escape sequence.
String Description
\\ Backslash
type
Specifies the type of the two-dimensional symbol.
Value Description
level
Specifies the error revision level.
Value Description
254
Chapter 3 API Reference - LineDisplay class
Value Description
width
Specifies the module width (in dots).
Value Description
height
Specifies the module height (in dots).
Value Description
dotX
Specifies the origin of the x-coordinate for displaying the two-dimensional symbol (in dots).
Value Description
dotY
Specifies the origin of the y-coordinate for displaying the two-dimensional symbol (in dots).
Value Description
quietZone
Specifies whether quiet zone assignment is enabled or disabled.
Value Description
LineDisplay.TRUE Enabled
LineDisplay.FALSE Disabled
255
Chapter 3 API Reference - LineDisplay class
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ Can be used when the layout is specified in addCreateScreenCustom.
❏ In case there is overlapping with the display of text or image, the two-dimensional symbol is displayed
right in front.
❏ If the two-dimensional symbol data specified in data is not in accordance with the type of the two-
dimensional symbol specified in type, the error status is not returned and the two-dimensional symbol is
not displayed.
❏ If quiet zone assignment is enabled, a dot white margin (quiet zone) that is four times the value specified
in width is added at the top, bottom, left, and right of the two-dimensional symbol.
❏ To enable quiet zone assignment, specify a value in dotX and dotY, with top left of the quiet zone as the
origin.
256
Chapter 3 API Reference - LineDisplay class
addClearSymbol
Adds the deletion of the two-dimensional symbol being displayed to the command buffer.
Syntax
public void addClearSymbol() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
If the two-dimensional symbol being displayed overlaps the image, the image at the overlapping portion is
erased together with the two-dimensional symbol.
257
Chapter 3 API Reference - LineDisplay class
addShowClock
Adds time display setting to the command buffer.
Displaying the time clears all the displayed text. Additionally, sending other commands while the time is
displayed closes the time display.
Syntax
public void addShowClock() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
258
Chapter 3 API Reference - LineDisplay class
addCommand
Adds the ESC/POS command to the command buffer.
Syntax
public void addCommand(byte[] data) throws Epos2Exception
Parameter
data
Specifies the ESC/POS command.
Specifies the binary data.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ Refer to the following URL for details of the ESC/POS command.
https://reference.epson-biz.com/modules/ref_escpos_dm_d_en/
❏ Epson ePOS SDK does not check the commands sent using this API.
If the commands interfere with Epson ePOS SDK operations, other APIs may work wrongly or status val-
ues may become invalid.
This API should be used with a full understanding of ESC/POS commands and the customer display spec-
ifications.
259
Chapter 3 API Reference - LineDisplay class
setReceiveEventListener
Registers a listener registration method for a display completion event.
Syntax
public void setReceiveEventListener (ReceiveListener listener)
Parameter
listener
Specifies an object which has a notification target method.
Listener interface
public interface ReceiveListener extends EventListener
Listener registration method
void onDispReceive (LineDisplay displayObj, int code)
Parameter
displayObj
The callback source object is stored.
code
The processing result is stored.
260
Chapter 3 API Reference - LineDisplay class
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
❏ When a communication error occurs during ePOS-Device XML control, communication disconnection is
not notified.
To notify the disconnection event, implement the setConnectionEventListener.
261
Chapter 3 API Reference - Keyboard class
Keyboard class
Keyboard
Initializes the Keyboard class.
Syntax
public Keyboard(Context context) throws Epos2Exception
Parameter
context
Specifies the application context.
Null can be specified when the log output function is not used.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When iterating a process, be sure to generate and destroy instances outside the iterated process and not
iterate the process at a short interval.
Memory releasing by the OS may affect the process of the Epson ePOS SDK, resulting in an invalid opera-
tion.
262
Chapter 3 API Reference - Keyboard class
connect
Starts communication with the keyboard.
Syntax
Public void connect(String target, int timeout) throws
Epos2Exception
Parameter
target
Specifies the method of connecting to the printer by a character string.
The connection method varies according to the system configuration.
<connection type>:<identifier>[<device ID>]
Connec-
I/F Identifier Example
tion type
To connect to the printer via SSL/TLS communication, specify TCPS in the connection type.
timeout
Specifies the maximum time (in milliseconds) to wait for communication with the printer to be established.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
263
Chapter 3 API Reference - Keyboard class
Supplementary explanation
❏ The device ID is an arbitrary character string that is set when the peripheral device is registered to the TM
printer (master).
For details, refer to the Technical Reference Guide of each printer.
❏ When using multi-threading to connect to multiple printers or peripheral devices, this API and discon-
nect cannot be started for other printers or peripheral devices until this API finishes processing. Start the
next process after this API finishes processing.
❏ This API will succeed regardless of the connection status of the TM printer (master) and peripheral
devices.
❏ Devices other than printers are exclusively locked.
❏ If Epos2Exception including ERR_RECOVERY_FAILURE occurs, restart the printer.
264
Chapter 3 API Reference - Keyboard class
disconnect
Ends communication with the keyboard.
Syntax
Public void disconnect() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When using multi-threading to connect to multiple printers or peripheral devices, this API and connect
cannot be started for other printers or peripheral devices until this API finishes processing. Start the next
process after this API finishes processing.
265
Chapter 3 API Reference - Keyboard class
getStatus
Acquires the current status information.
Syntax
public KeyboardStatusInfo getStatus ()
Return value
The current status is returned in the KeyboardStatusInfo type.
The following status information is stored in the object as a property.
Stored status information can be acquired using the getter method of each property.
Supplementary explanation
❏ The status object is set to the status at the timing of execution of this API and will not be updated.
❏ If this function is executed within a callback function, null will be returned.
266
Chapter 3 API Reference - Keyboard class
setPrefix
Sets the list of prefixes for string entry.
Sets a key code which is recognized as the start of a string to accept keyboard input as a sequence of strings.
Syntax
public void setPrefix(int[] prefixes) throws Epos2Exception
Parameter
prefixes
Specifies the key code arrangement.
Refer to Key code list for the key codes.
Specifying null disables setPrefix.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
Entering NULL or "" clears the current setting.
267
Chapter 3 API Reference - Keyboard class
getPrefix
Acquires the list of prefixes currently set.
Syntax
public int[] getPrefix()
Return value
The list of prefixes currently set by setPrefix is returned.
268
Chapter 3 API Reference - Keyboard class
setKeyPressEventListener
Registers a listener registration method for a key press event.
Syntax
public void setKeyPressEventListener (KeyPressListener
listener)
Parameter
listener
Specifies an object which has a notification target method.
Listener interface
public interface KeyPressListener extends EventListener
Listener registration method
void onKbdKeyPress (Keyboard keyboardObj, int keyCode,
String ascii)
Parameter
keyboardObj
The callback source object is stored.
keyCode
The code of the pressed key is stored.
ascii
The character corresponding to the code of the pressed key is stored. If no character corresponds to the key
code, "" (blank character) is stored.
Depending on the keyboard used, double-byte characters may be entered.
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
269
Chapter 3 API Reference - Keyboard class
setReadStringEventListener
Registers a listener registration method which receives characters starting with one of the strings specified by
setPrefix and ending with the Enter key as a string.
Syntax
public void setReadStringEventListener (ReadStringListener
listener
Parameter
listener
Specifies an object which has a notification target method.
Listener interface
public interface ReadStringListener extends EventListener
Listener registration method
void onKbdReadString (Keyboard keyboardObj, String
readString, int prefix)
Parameter
keyboardObj
The callback source object is stored.
readString
The detected string is stored.
prefix
Key code recognized as the start of a string is stored.
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
270
Chapter 3 API Reference - POSKeyboard class
POSKeyboard class
PosKeyboard
Initializes the PosKeyboard class.
Syntax
public PosKeyboard(Context context) throws Epos2Exception
Parameter
context
Specifies the application context.
Null can be specified when the log output function is not used.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When iterating a process, be sure to generate and destroy instances outside the iterated process and not
iterate the process at a short interval.
Memory releasing by the OS may affect the process of the Epson ePOS SDK, resulting in an invalid opera-
tion.
271
Chapter 3 API Reference - POSKeyboard class
connect
Starts communication with the POS keyboard.
Syntax
public void connect(String target, int timeout) throws
Epos2Exception
Parameter
target
Specifies the method of connecting to the printer by a character string.
Specify the connection method using the following syntax.
<connection type>:<identifier>[<device ID>]
Connec-
I/F Identifier Description
tion type
To connect to the printer via SSL/TLS communication, specify TCPS in the connection type.
timeout
Specifies the maximum time (in milliseconds) to wait for communication with the printer to be established.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
272
Chapter 3 API Reference - POSKeyboard class
Supplementary explanation
❏ The device ID is a logical device name that is set when the POS keyboard is registered to the TM printer
(master). For details, refer to the TM-DT Series Peripheral Device Control Guide.
❏ When using multi-threading to connect to multiple printers or peripheral devices, this API and discon-
nect cannot be started for other printers or peripheral devices until this API finishes processing. Start the
next process after this API finishes processing.
❏ Devices other than printers are exclusively locked.
❏ If Epos2Exception including ERR_RECOVERY_FAILURE occurs, restart the printer.
273
Chapter 3 API Reference - POSKeyboard class
disconnect
Ends communication with the POS keyboard.
Syntax
public void disconnect() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When using multi-threading to connect to multiple printers or peripheral devices, this API and connect
cannot be started for other printers or peripheral devices until this API finishes processing. Start the next
process after this API finishes processing.
274
Chapter 3 API Reference - POSKeyboard class
getStatus
Acquires the current status information.
Syntax
public PosKeyboardStatusInfo getStauts()
Return value
The current status is returned in the PosKeyboardStatusInfo type.
The following status information is stored in the object as a property.
Stored status information can be acquired using the getter method of each property.
Supplementary explanation
❏ The status object is set to the status at the timing of execution of this API and will not be updated.
❏ If this function is executed within a callback function, null will be returned.
275
Chapter 3 API Reference - POSKeyboard class
setKeyPressEventListener
Registers a listener registration method for a key press event.
Syntax
public void setKeyPressEventListener(KeyPressListener
listener)
Parameter
listener
Specifies an object which has a notification target method.
Listener interface
public interface KeyPressListener extends EventListener
Listener registration method
void onPosKbdKeyPress(PosKeyboard keyboardObj, int
posKeyCode)
Parameter
keyboardObj
The callback source object is stored.
posKeyCode
The code of the pressed key is stored.
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
276
Chapter 3 API Reference - BarcodeScanner class
BarcodeScanner class
BarcodeScanner
Initializes the BarcodeScanner class.
Syntax
public BarcodeScanner(Context context) throws
Epos2Exception
Parameter
context
Specifies the application context.
Null can be specified when the log output function is not used.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When iterating a process, be sure to generate and destroy instances outside the iterated process and not
iterate the process at a short interval.
Memory releasing by the OS may affect the process of the Epson ePOS SDK, resulting in an invalid opera-
tion.
277
Chapter 3 API Reference - BarcodeScanner class
connect
Starts communication with the barcode scanner.
Syntax
Public void connect (String target, int timeout) throws
Epos2Exception
Parameter
target
Specifies the method of connecting to the printer by a character string.
The connection method varies according to the system configuration.
Connec-
I/F Identifier Example
tion type
Connec-
I/F Identifier Example
tion type
Connec-
I/F Identifier Example
tion type
To connect to the printer via SSL/TLS communication, specify TCPS in the connection type.
278
Chapter 3 API Reference - BarcodeScanner class
timeout
Specifies the maximum time (in milliseconds) to wait for communication with the printer to be established.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ The device ID is an arbitrary character string that is set when the peripheral device is registered to the TM
printer (master).
For details, refer to the Technical Reference Guide of each printer.
❏ When using multi-threading to connect to multiple printers or peripheral devices, this API and discon-
nect cannot be started for other printers or peripheral devices until this API finishes processing. Start the
next process after this API finishes processing.
❏ When connecting through the USB, the identifiers that can be specified differ depending on the shape of
the USB connector.
When the identifier is omitted, Android OS connects with the USB device found first.
When the Android terminal is set to the developer mode, you may not be able to connect through USB-
A - Device Charging.
279
Chapter 3 API Reference - BarcodeScanner class
Device node ✔ -
Omitted ✔ ✔
❏ This API will succeed regardless of the connection status of the TM printer (master) and peripheral
devices.
❏ Set the barcode scanner suffix to CR (carriage return code). Data cannot be obtained using any other set-
tings.
❏ Devices other than printers are exclusively locked. Do not control the scanner and printer connected to
the scanner from multiple applications at the same time.
❏ If a combination of TM Printer + barcode scanner is used on a connection established via Bluetooth or
USB, the barcode data read during printing is notified after the printing is complete.
❏ If Epos2Exception including ERR_RECOVERY_FAILURE occurs, restart the printer.
280
Chapter 3 API Reference - BarcodeScanner class
disconnect
Ends communication with the barcode scanner.
Syntax
Public void disconnect () throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When using multi-threading to connect to multiple printers or peripheral devices, this API and connect
cannot be started for other printers or peripheral devices until this API finishes processing. Start the next
process after this API finishes processing.
281
Chapter 3 API Reference - BarcodeScanner class
getStatus
Acquires the current status information.
Syntax
public ScannerStatusInfo getStatus ()
Return value
The current status is returned in the ScannerStatusInfo type.
The following status information is stored in the object as a property.
Stored status information can be acquired using the getter method of each property.
Supplementary explanation
❏ The status object is set to the status at the timing of execution of this API and will not be updated.
❏ If this function is executed within a callback function, null will be returned.
❏ If a combination of TM Printer + barcode scanner is used on a connection established via Bluetooth or
USB, the connection status of TM Printer and the barcode scanner is obtained. If the combination is used
by some other connection method, the connection status of the smart device and TM Printer is
obtained.
282
Chapter 3 API Reference - BarcodeScanner class
setScanEventListener
Registers a listener registration method for a barcode data entry event.
Syntax
public void setScanEventListener (ScanListener listener)
Parameter
listener
Specifies an object which has a notification target method.
Listener interface
public interface ScanListener extends EventListener
Listener registration method
void onScanData (BarcodeScanner scannerObj, String
scanData)
Parameter
scannerObj
The callback source object is stored.
scanData
The detected string is stored.
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
❏ The notification timing of the barcode data entry event differs depending on how it is connected. Refer
to the description of the target parameter of the connect API for details.
283
Chapter 3 API Reference - MSR class
MSR class
Msr
Initializes the Msr class.
Syntax
public Msr(Context context) throws Epos2Exception
Parameter
context
Specifies the application context.
Null can be specified when the log output function is not used.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When iterating a process, be sure to generate and destroy instances outside the iterated process and not
iterate the process at a short interval.
Memory releasing by the OS may affect the process of the Epson ePOS SDK, resulting in an invalid opera-
tion.
284
Chapter 3 API Reference - MSR class
connect
Starts communication with the MSR.
Syntax
public void connect(String target, int timeout) throws
Epos2Exception
Parameter
target
Specifies the method of connecting to the printer by a character string.
Specify the connection method using the following syntax.
<connection type>:<identifier>[<device ID>]
Connec-
I/F Identifier Description
tion type
To connect to the printer via SSL/TLS communication, specify TCPS in the connection type.
timeout
Specifies the maximum time (in milliseconds) to wait for communication with the printer to be established.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
285
Chapter 3 API Reference - MSR class
Supplementary explanation
❏ The device ID is set when the MSR is registered to the TM printer (master).
The value differs depending on the control method.
Device control script Arbitrary character string Technical Reference Guide of the printer
❏ When using multi-threading to connect to multiple printers or peripheral devices, this API and discon-
nect cannot be started for other printers or peripheral devices until this API finishes processing. Start the
next process after this API finishes processing.
❏ Devices other than printers are exclusively locked.
❏ If Epos2Exception including ERR_RECOVERY_FAILURE occurs, restart the printer.
286
Chapter 3 API Reference - MSR class
disconnect
Ends communication with the MSR.
Syntax
public void disconnect() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When using multi-threading to connect to multiple printers or peripheral devices, this API and connect
cannot be started for other printers or peripheral devices until this API finishes processing. Start the next
process after this API finishes processing.
287
Chapter 3 API Reference - MSR class
getStatus
Acquires the current status information.
Syntax
public MsrStatusInfo getStauts()
Return value
The current status is returned in the MsrStatusInfo type.
The following status information is stored in the object as a property.
Stored status information can be acquired using the getter method of each property.
Supplementary explanation
❏ The status object is set to the status at the timing of execution of this API and will not be updated.
❏ If this function is executed within a callback function, null will be returned.
288
Chapter 3 API Reference - MSR class
setDataEventListener
Registers a listener registration method for a card data detection event.
Syntax
public void setDataEventListener(DataListener listener)
Parameter
listener
Specifies an object which has a notification target method.
Listener interface
public interface DataListener extends EventListener
Listener registration method
void onData(Msr msrObj, Data data)
Parameter
msrObj
The callback source object is stored.
data
Acquires the read card data.
The result is stored in the Data structure.
Property Description
289
Chapter 3 API Reference - MSR class
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
290
Chapter 3 API Reference - SimpleSerial class
SimpleSerial class
SimpleSerial
Initializes the SimpleSerial class.
Syntax
public SimpleSerial(Context context) throws Epos2Exception
Parameter
context
Specifies the application context.
Null can be specified when the log output function is not used.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When iterating a process, be sure to generate and destroy instances outside the iterated process and not
iterate the process at a short interval.
Memory releasing by the OS may affect the process of the Epson ePOS SDK, resulting in an invalid opera-
tion.
291
Chapter 3 API Reference - SimpleSerial class
connect
Starts communication with the serial communication device.
Syntax
Public void connect(String target, int timeout) throws
Epos2Exception
Parameter
target
Specifies the method of connecting to the printer by a character string.
Specify the connection method using the following syntax.
<connection type>:<identifier>[<device ID>]
Connec-
I/F Identifier Example
tion type
To connect to the printer via SSL/TLS communication, specify TCPS in the connection type.
timeout
Specifies the maximum time (in milliseconds) to wait for communication with the printer to be established.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
292
Chapter 3 API Reference - SimpleSerial class
Supplementary explanation
❏ The device ID is an arbitrary character string that is set when the peripheral device is registered to the TM
printer (master).
For details, refer to the Technical Reference Guide of each printer.
❏ When using multi-threading to connect to multiple printers or peripheral devices, this API and discon-
nect cannot be started for other printers or peripheral devices until this API finishes processing. Start the
next process after this API finishes processing.
❏ This API will succeed regardless of the connection status of the TM printer (master) and peripheral
devices.
❏ Devices other than printers are exclusively locked.
❏ If Epos2Exception including ERR_RECOVERY_FAILURE occurs, restart the printer.
293
Chapter 3 API Reference - SimpleSerial class
disconnect
Ends communication with the serial communication device.
Syntax
Public void disconnect () throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When using multi-threading to connect to multiple printers or peripheral devices, this API and connect
cannot be started for other printers or peripheral devices until this API finishes processing. Start the next
process after this API finishes processing.
294
Chapter 3 API Reference - SimpleSerial class
getStatus
Acquires the current status information.
Syntax
public SerialStatusInfo getStatus ()
Return value
The current status is returned in the SerialStatusInfo type.
The following status information is stored in the object as a property.
Stored status information can be acquired using the getter method of each property.
Supplementary explanation
❏ The status object is set to the status at the timing of execution of this API and will not be updated.
❏ If this function is executed within a callback function, null will be returned.
295
Chapter 3 API Reference - SimpleSerial class
sendCommand
Transfers a command.
The error status of this API is the result of sending data to the devices.
The processing result of the devices using this API is notified to the listener registration method set by the
setReceiveEventListenerAPI.
Syntax
public void sendCommand(byte[] data) throws
Epos2Exception
Parameter
data
Specifies the command.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
296
Chapter 3 API Reference - SimpleSerial class
setReceiveEventListener
Registers a listener registration method for a reception event from the device.
Syntax
public void setReceiveEventListener(ReceiveListener listener)
Parameter
listener
Specifies an object which has a notification target method.
Listener interface
public interface ReceiveListener extends EventListener
Listener registration method
void onSimpleSerialReceive (SimpleSerial serialObj, byte[]
data)
Parameter
serialObj
The callback source object is stored.
data
Receives reception data.
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
❏ When a communication error occurs during ePOS-Device XML control, communication disconnection is
not notified.
To notify the disconnection event, implement the setConnectionEventListener.
297
Chapter 3 API Reference - GermanyFiscalElement Class
GermanyFiscalElement Class
GermanyFiscalElement
Initializes the GermanyFiscalElement class.
Syntax
public GermanyFiscalElement(android.content.Context
context) throws Epos2Exception
Parameter
context
Specifies the application context.
Null can be specified when the log output function is not used.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When iterating a process, be sure to generate and destroy instances outside the iterated process and not
iterate the process at a short interval.
Memory releasing by the OS may affect the process of the Epson ePOS SDK, resulting in an invalid opera-
tion.
When using it with multiple printers connected, make sure to generate a dedicated instance for each
printer.
298
Chapter 3 API Reference - GermanyFiscalElement Class
connect
Starts communication with German fiscal element (TSE).
Syntax
public void connect(java.lang.String target,int timeout) throws
Epos2Exception
Parameter
target
Specifies the method of connecting to the printer by a character string.
The connection method varies according to the system configuration.
• TM Printer Models
<connection type>:<identifier>
Connec-
I/F Identifier Example
tion type
Connec-
I/F Identifier Example
tion type
To connect to the printer via SSL/TLS communication, specify using the following syntax.
<connection type>:<identifier>[<device ID>]
299
Chapter 3 API Reference - GermanyFiscalElement Class
Connec-
I/F Identifier Example
tion type
Connec-
I/F Identifier Example
tion type
Connec-
I/F Identifier Example
tion type
Connec-
I/F Identifier Example
tion type
To connect to the printer via SSL/TLS communication, specify TCPS in the connection type.
300
Chapter 3 API Reference - GermanyFiscalElement Class
timeout
Specifies the maximum time (in milliseconds) to wait for communication with the printer to be established.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ When communication with the printer is no longer necessary, be sure to call disconnect to terminate it.
❏ When using multi-threading to connect to multiple printers or peripheral devices, this API and discon-
nect cannot be started for other printers or peripheral devices until this API finishes processing. Start the
next process after this API finishes processing.
❏ The printer status is returned to the event registered with the Printer class.
For details, refer to Chapter 2 "Programming Flow" and Chapter 6 "To use the same printer from multiple
mobile devices."
❏ The device ID is an arbitrary character string that is set when the peripheral device is registered to the TM
printer (master).
For details, refer to the Technical Reference Guide of each printer.
❏ If you are using DHCP to assign the IP address of the printer, specify the MAC address or host name of the
printer as the identifier.
301
Chapter 3 API Reference - GermanyFiscalElement Class
❏ If you specify the host name of the printer as the identifier, use in the environment where it can be found
by the DNS server.
❏ When connecting through the USB, the identifiers that can be specified differ depending on the shape of
the USB connector.
When the identifier is omitted, Android OS connects with the USB device found first.
When the Android terminal is set to the developer mode, you may not be able to connect through USB-
A - Device Charging.
Device node ✔ -
Omitted ✔ ✔
❏ This API will succeed regardless of the connection status of the TM printer (master) and peripheral
devices.
❏ Devices other than printers are exclusively locked.
❏ If Epos2Exception including ERR_RECOVERY_FAILURE occurs, restart the printer.
302
Chapter 3 API Reference - GermanyFiscalElement Class
disconnect
Ends communication with the German fiscal element (TSE).
Syntax
public void disconnect() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When using multi-threading to connect to multiple printers or peripheral devices, this API and connect
cannot be started for other printers or peripheral devices until this API finishes processing.
303
Chapter 3 API Reference - GermanyFiscalElement Class
getStatus
Acquires the connection status with German fiscal element (TSE).
Syntax
public GermanyFiscalElementStatusInfo getStatus()
Return value
The current status is returned in the GermanyFiscalElementStatusinfo type.
The following status information is stored in the object as a property.
Stored status information can be acquired using the getter method of each property.
Supplementary explanation
❏ The status object is set to the status at the timing of execution of this API and will not be updated.
❏ If this function is executed within a callback function, null will be returned.
304
Chapter 3 API Reference - GermanyFiscalElement Class
operate
Sends a JSON string to German fiscal element (TSE).
The processing result of the device using this API is notified to the listener registration method set by
setReceiveEventListener of the GermanyFiscalElement class.
Syntax
public void operate(java.lang.String jsonString, int timeout)
throws Epos2Exception
Parameter
jsonString
Specifies the JSON string to send to German fiscal element (TSE).
timeout
Specifies the timeout period before completion of command transmission in milliseconds.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
❏ Immediately after starting the printer, do not execute this API until the LED is lit.
Execution takes time, and a timeout error may occur.
❏ ERR_PROCESSING occurs if this API is executed during printer processing.
Therefore, execute this API after receiving the processing complete callback.
❏ ERR_PARAM is returned if null is specified as the JSON string, or if the size of jsonString to be sent is 64
KByte or more.
305
Chapter 3 API Reference - GermanyFiscalElement Class
setReceiveEventListener
Registers the listener registration method for response document receive events.
Syntax
public void setReceiveEventListener(ReceiveListener listener)
Parameter
listener
Specifies an object which has a notification target method.
Listener interface
public interface ReceiveListener extends EventListener
Listener registration method
void onGfeReceive (GermanyFiscalElement germanyFiscalObj,
int code, String data)
Parameter
gfeObj
The callback source object is stored.
code
The processing result is stored.
data
Processing results are stored in the JSON string.
306
Chapter 3 API Reference - GermanyFiscalElement Class
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
❏ When a communication error occurs during ePOS-Device XML control, communication disconnection is
not notified.
To notify the disconnection event, implement the setConnectionEventListener.
307
Chapter 3 API Reference - OtherPeripheral class
OtherPeripheral class
OtherPeripheral
Initializes the OtherPeripheral class.
Syntax
public OtherPeripheral(Context context) throws
Epos2Exception
Parameter
context
Specifies the application context.
Null can be specified when the log output function is not used.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
308
Chapter 3 API Reference - OtherPeripheral class
connect
Starts communication with the peripheral device.
Syntax
public void connect(String target, int timeout) throws
Epos2Exception
Parameter
target
Specifies the method of connecting to the printer by a character string.
Specify the connection method using the following syntax.
<connection type>:<identifier>[<device ID>]
Connec-
I/F Identifier Description
tion type
To connect to the printer via SSL/TLS communication, specify TCPS in the connection type.
timeout
Specifies the maximum time (in milliseconds) to wait for communication with the printer to be established.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
309
Chapter 3 API Reference - OtherPeripheral class
Supplementary explanation
❏ The device ID is a logical device name that is set when the peripheral device is registered to the TM
printer (master).
For details, refer to the TM-DT Series Peripheral Device Control Guide.
❏ When using multi-threading to connect to multiple printers or peripheral devices, this API and discon-
nect cannot be started for other printers or peripheral devices until this API finishes processing. Start the
next process after this API finishes processing.
❏ Devices other than printers are exclusively locked.
❏ If Epos2Exception including ERR_RECOVERY_FAILURE occurs, restart the printer.
310
Chapter 3 API Reference - OtherPeripheral class
disconnect
Ends communication with the peripheral device.
Syntax
public void disconnect() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When using multi-threading to connect to multiple printers or peripheral devices, this API and connect
cannot be started for other printers or peripheral devices until this API finishes processing. Start the next
process after this API finishes processing.
311
Chapter 3 API Reference - OtherPeripheral class
getStatus
Acquires the current status information.
Syntax
public OtherPeripheralStatusInfo getStauts()
Return value
The current status is returned in the OtherPeripheralStatusInfo type.
The following status information is stored in the object as a property.
Stored status information can be acquired using the getter method of each property.
Supplementary explanation
❏ The status object is set to the status at the timing of execution of this API and will not be updated.
❏ If this function is executed within a callback function, null will be returned.
312
Chapter 3 API Reference - OtherPeripheral class
sendData
Sends data to the peripheral device.
Specifies the arbitrary function of the device control program side, and passes JSON data made from a set of the
property name and value.
For details, refer to the TM-DT Series Peripheral Device Control Guide.
The processing result of this API is notified to the listener registration method set by the setReceiveEventListener
API.
Syntax
public void sendData(String methodName, String data) throws
Epos2Exception
Parameter
methodName
Specifies the function name to be executed.
data
Specifies the parameter to be passed to the function in JSON string.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
313
Chapter 3 API Reference - OtherPeripheral class
setReceiveEventListener
Registers a listener registration method for a notification of reception data from the peripheral device event.
Syntax
public void setReceiveEventListener(ReceiveListener listener)
Parameter
listener
Specifies an object which has a notification target method.
Listener interface
public interface ReceiveListener extends EventListener
Listener registration method
void onOtherReceive(OtherPeripheral otherObj,
java.lang.String eventName, String data)
Parameter
otherObj
The callback source object is stored.
eventName
The event name is stored.
data
Reception data is stored in the JSON string.
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
314
Chapter 3 API Reference - CommBox class
CommBox class
CommBox
Initializes the CommBox class.
Syntax
public CommBox(Context context) throws Epos2Exception
Parameter
context
Specifies the application context.
Null can be specified when the log output function is not used.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Supplementary explanation
When iterating a process, be sure to generate and destroy instances outside the iterated process and not
iterate the process at a short interval.
Memory releasing by the OS may affect the process of the Epson ePOS SDK, resulting in an invalid opera-
tion.
315
Chapter 3 API Reference - CommBox class
connect
Starts communication with the communication box.
Syntax
public void connect(String target, int timeout, String myId)
throws Epos2Exception
Parameter
target
Specifies the method of connecting to the printer by a character string.
Specify the connection method using the following syntax.
<connection type>:<identifier>[<box ID>]
Connec-
I/F Identifier Example
tion type
To connect to the printer via SSL/TLS communication, specify TCPS in the connection type.
timeout
Specifies the maximum time (in milliseconds) to wait for communication with the printer to be established.
Value Description
myId
Specifies a member ID to identify the application itself in the communication box.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
316
Chapter 3 API Reference - CommBox class
Supplementary explanation
❏ This API will succeed regardless of the connection status of the TM printer (master) and peripheral
devices.
❏ Devices other than printers are exclusively locked.
❏ If Epos2Exception including ERR_RECOVERY_FAILURE occurs, restart the printer.
317
Chapter 3 API Reference - CommBox class
disconnect
Ends communication with the communication box.
Syntax
public void disconnect() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
318
Chapter 3 API Reference - CommBox class
getStatus
Acquires the current status information.
Syntax
public CommBoxStatusInfo getStatus ()
Return value
The current status is returned in the CommBoxStatusInfo type.
The following status information is stored in the object as a property.
Stored status information can be acquired using the getter method of each property.
Supplementary explanation
❏ The status object is set to the status at the timing of execution of this API and will not be updated.
❏ If this function is executed within a callback function, null will be returned.
319
Chapter 3 API Reference - CommBox class
getCommHistory
Acquires the transmission history of the communication box.
The error status of this API is the result of sending data to the devices.
The processing result of the devices using this API is notified to the set listener registration method.
Syntax
public void getCommHistory(GetCommHistoryCallback
callback) throws Epos2Exception
Parameter
callback
Specifies an object which has a notification target method.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Listener interface
public interface GetCommHistoryCallback extends
EventListener
Definition of the listener registration method
void onGetCommHistory(CommBox commBoxObj, int code,
ArrayList<HashMap<String, String>> historyList
Parameter
commBoxObj
The callback source object is stored.
code
320
Chapter 3 API Reference - CommBox class
historyList
The transmission history of the communication box is stored.
historyList[index]
Key Description
321
Chapter 3 API Reference - CommBox class
sendMessage
Sends a message to the communication box.
The error status of this API is the result of sending data to the devices.
The processing result of the devices using this API is notified to the set listener registration method.
Syntax
public void sendMessage (String message, String
targetId,SendMessageCallback callback) throws
Epos2Exception
Parameter
message
Specifies data to send to the communication box.
targetId
Specifies the member ID of the receiver.
When null or "" (blank character) is specified, data is sent to all the members other than the transmitter.
callback
Specifies an object which has a notification target method.
Exception
When the process fails, Epos2Exception with one of the following error value occurs.
Listener interface
public interface SendMessageCallback extends EventListener
Definition of the listener registration method
void onCommBoxSendMessage (CommBox commBoxObj,int
code, int count)
Parameter
commBoxObj
The callback source object is stored.
322
Chapter 3 API Reference - CommBox class
code
count
Number of clients which tried to send the message is stored.
323
Chapter 3 API Reference - CommBox class
setReceiveEventListener
Registers a listener registration method for a message reception event of the communication box.
Syntax
public void setReceiveEventListener (ReceiveListener listener)
Parameter
listener
Specifies an object which has a notification target method.
Listener interface
public interface ReceiveListener extends EventListener
Listener registration method
void onCommBoxReceive(CommBox commBoxObj, String
senderId, String receiverId String message
Parameter
commBoxObj
The callback source object is stored.
senderId
The member ID of the transmitter is stored.
If no member ID was specified when a transmitting member run the connect method, "" (blank character) is
set.
receiverId
The member ID of the receiver is stored.
If data was sent to all the members of the communication box, "" (blank character) is set.
message
The received message is stored.
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
❏ When a communication error occurs during ePOS-Device XML control, communication disconnection is
not notified.
To notify the disconnection event, implement the setConnectionEventListener.
324
Chapter 3 API Reference - Common to all classes
getAdmin
Acquires the administrator name set with printer.
Syntax
public String getAdmin()
Return value
A string for the administrator name.
Supplementary explanation
❏ If not set, "" (blank character) is returned for the TM printer.
❏ The administrator name is set by EPSON TMNet WebConfig.
❏ This API cannot be used with Bluetooth communication.
325
Chapter 3 API Reference - Common to all classes
getLocation
Acquires the installation location information set with printer.
Syntax
public String getLocation()
Return value
A string for the installation location.
Supplementary explanation
❏ If not set, "" (blank character) is returned for the TM printer.
❏ The installation location information is set by EPSON TMNet WebConfig.
❏ This API cannot be used with Bluetooth communication.
326
Chapter 3 API Reference - Common to all classes
setConnectionEventListener
Registers a listener registration method which receives a notification that a reconnection process has been
started.
Be sure to perform a process (e.g., display a message to indicate that reconnection has been started) when
setConnectionEventListener is run.
Syntax
public void setConnectionEventListener (ConnectionListener
listener)
Parameter
listener
Specifies an object which has a notification target method.
Listener interface
public interface ConnectionListener extends EventListener
Listener registration method
void onConnection(Object deviceObj, int eventType)
Parameter
deviceObj
The callback source object is stored.
eventType
The type of the event that occurred is stored.
Supplementary explanation
❏ When this API is run multiple times, the listener registration method specified later takes effect.
❏ If null is specified in listener when calling this API, the registered listener registration method is canceled.
❏ It takes about 30 seconds for the disconnection event to occur after the disconnection.
❏ Do not make any call operation when *.EVENT_RECONNECTING has occurred.
Wait until *.EVENT_RECONNECT or *.EVENT_DISCONNECT occurs.
❏ *. EVENT_DISCONNECT occurs in the following cases:
When disconnect is running
When connection fails after occurrence of *.EVENT_RECONNECTING
327
Chapter 3 API Reference - Common to all classes
328
Chapter 3 API Reference - Discovery class
Discovery class
start
Starts searching for the specified device type.
An event is generated for each device detected.
Syntax
public static synchronized void start(Context context,
FilterOption filterOption,DiscoveryListener listener) throws
Epos2Exception
Parameter
context
Sets an instance of the Context class for the caller.
Example) Sets Context acquired by getBaseContext() within Activity.
filterOption
In order to filter the search result, set the filter option in the FilterOption type and specify it in the parame-
ter. When null is specified, search is run with the default settings.
The following information is stored in the FilterOption type.
❏ portType
Selects the port to search.
Value Description
❏ broadcast
Specify a Broadcast Address for TCP search as a string.
Value Description
"255.255.255.255" (default) -
❏ deviceModel
Specifies the device model to search for.
Value Description
329
Chapter 3 API Reference - Discovery class
❏ epsonFilter
Filters the search result by the Epson printers.
Value Description
❏ deviceType
Specifies the device type to search for.
The device type settings other than "Discovery.TYPE_ALL" can be used for the following systems con-
nected using Wi-Fi or Ethernet.
• Customer Display Models (SSL/TLS communication only)
• TM Printer + DM-D + barcode scanner model
• TM Printer + barcode scanner model
• POS Terminal Model
Value Description
❏ bondedDevices
Specifies the search target when searching for a device that can be connected via Bluetooth.
Value Description
❏ usbDeviceName
Specifies whether to search USB devices by their names or not.
Value Description
330
Chapter 3 API Reference - Discovery class
Value Description
listener
Specifies an object which has a notification target method.
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Listener interface
public interface DiscoveryListener extends EventListener
Parameter
deviceInfo
The device information of the detected device is stored in the DeviceInfo type.
The following device information is stored.
❏ deviceType
The device type is stored.
331
Chapter 3 API Reference - Discovery class
❏ target
The connection target of a device which can be specified by connectAPI is stored as a string.
Example)
"TCP:192.168.192.168"
"BT:00:22:15:7D:70:9C"
"USB:/dev/udev/*"
"USB:000000000000000000"
"TCP:192.168.192.168[local_printer]"
"TCP:192.168.192.168[local_display]"
"TCP:12:34:56:78:56:78"
❏ deviceName
The name set to the device is stored.
If it could not be acquired, "" (blank character) or "TM Printer" is stored.
Example)
For a printer: "TM-T88V"
❏ ipAddress
The IP address is stored.
If it could not be acquired, "" (blank character) is stored.
Example)
TCP: "192.168.192.168"
BT: ""(blank character)
❏ macAddress
The MAC address is stored.
If it could not be acquired, "" (blank character) is stored.
Example)
TCP: "12:34:56:78:56:78"
BT: ""(blank character)
❏ bdAddress
The BD address is stored.
If it could not be acquired, "" (blank character) is stored.
Example)
TCP: ""(blank character)
BT: "12:34:56:78:56:78"
332
Chapter 3 API Reference - Discovery class
Supplementary explanation
❏ The search result of this API is reported to the callback function for each device detected.
An already opened device is also reported. However, a USB device and a Bluetooth device are not
reported if they have been already opened.
❏ In search for TCP devices, if multiple devices with the same IP address exist, the device information is
treated as a single device. Consistency for such device information is not guaranteed.
❏ If the printer has its TCP address and TCPS address, and the both are detected, only the TCPS address is
reported to the callback function.
❏ Hybrid model printers can be detected as deviceType of Discovery.TYPE_PRINTER and Discov-
ery.TYPE_HYBRID_PRINTER.
❏ To search for a hybrid model printer connected via USB, specify Discovery.TYPE_ALL in deviceType.
❏ After the search begins and the process ends, make sure to end the search.
❏ This search function is not available in Android Studio simulator.
❏ When searching for a device running on Android 10 or later as a Bluetooth-capable device, enable access
to location information of the device.
❏ When searching for a device connected to the USB-A - Device Charging connector by using API Level 29
or higher application software, a dialogue box that tells you to acquire access permissions may pop up if
USB permission has not been acquired.
❏ If a USB device is connected while searching the device, the device may not be found.
In that case, terminate and restart the search.
❏ When searching for a Bluetooth-capable device, depending on API Level, the following permissions are
necessary.
API Level 28 or lower application software: ACCESS_COARSE_LOCATION
API Level 29 or higher application software: ACCESS_FINE_LOCATION
333
Chapter 3 API Reference - Discovery class
stop
Stops search.
Syntax
public static synchronized void stop() throws Epos2Exception
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
After the search begins and the process ends, make sure to end the search.
334
Chapter 3 API Reference - Epos2Exception class
Epos2Exception class
getErrorStatus
Acquires the error status from the exception.
Syntax
public int getErrorStatus()
Return value
Error status defined by the API that generated the exception is returned.
Refer to Error Status and countermeasures.
335
Chapter 3 API Reference - Log class
Log class
setLogSettings
Sets the log output function.
Syntax
public static void setLogSettings(Context context, int period,
int output, String ipAddress, int port, int logSize, int logLevel)
throws Epos2Exception
Parameter
context
Specifies the application context.
period
Specifies whether the log output function setting is temporary or permanent.
The configuration file is not created for temporary setting but is created for permanent setting.
Value Description
output
Enables or disables the log output function and specifies the log output location.
Value Description
ipAddress
Specifies the IP address for TCP communication.
Specifies the IP address in the IPv4 format.
Null can be specified when the log output function is disabled or the log is output to the storage of the ter-
minal.
port
Specifies the port number for TCP communication.
Also specifies a value within the valid range even when the log output function is disabled or the log is out-
put to the storage of the terminal.
336
Chapter 3 API Reference - Log class
Value Description
logSize
Specifies the maximum capacity of the log stored in the storage.
Also specifies a value within the valid range even when the log output function is disabled or the log is out-
put to TCP.
Value Description
logLevel
Specifies the log output level.
Value Description
Exception
When the process fails, Epos2Exception with one of the following error status occurs.
Supplementary explanation
❏ To specify period for the PERIOD_PERMANENT, set the permissions for the application to access the stor-
age.
❏ To specify output for the OUTPUT_STORAGE, set the permissions for the application to access the stor-
age.
❏ To specify output for the OUTPUT_TCP, set the permissions for the application to access the network.
337
Chapter 3 API Reference - Log class
SdkVersion
Acquires the Epson ePOS SDK version.
Syntax
Getter
public static String getSdkVersion ()
Supplementary explanation
The version of SDK used can be acquired as a character string.
Example: "Ver.2.0.0"
338
Chapter 3 API Reference - EasySelect class
EasySelect class
parseNFC
Analyzes NFC tags data.
Syntax
public ArrayList<EasySelectInfo>parseNFC(Tag tag, int
timeout)
Parameter
tag
Specifies NFC tag data that has been read by using Android API.
timeout
Specifies a time period (in milliseconds) to wait for the NFC tag analysis to complete.
Value Description
Integer from 0 to 60000 Timeout for the parsing process (in milliseconds).
Return value
The NFC tag analysis result is returned to the member variables of the EasySelectInfo class. When the analy-
sis has failed, null is returned.
Supplementary explanation
❏ An NFC tag set to each TM printer includes the following information.
Type Description
❏ For a slave printer, the parseNFC API starts broadcast communication and sets a MAC address of the
slave printer. If no response is received from the printer until the timeout period has passed, null is
returned. Make sure to enable the slave printer to communicate via the network before executing pars-
eNFC.
339
Chapter 3 API Reference - EasySelect class
parseQR
Analyzes QR tags data.
Syntax
public EasySelectInfo parseQR(String data)
Parameter
data
Specifies QR code data that has been read by using Android API.
Return value
The QR code analysis result is returned to the member variables of the EasySelectInfo class.
When the analysis has failed, null is returned.
Supplementary explanation
Create the QR code using createQR API and print it to be read.
Some printers can print the QR code on a status sheet. For details, refer to the Technical Reference Guide of
the printer.
340
Chapter 3 API Reference - EasySelect class
createQR
Creates QR code data that can be analyzed by parseQR.
Syntax
public String createQR(String printerName, int deviceType,
String macAddress)
Parameter
printerName
Specifies a printer name.
deviceType
Specifies a printer type.
Value Description
macAddress
Specifies a MAC address (for a slave printer), or a BD address (for a Bluetooth compatible printer). The follow-
ing shows the address format.
Format Description
001122334455 No separation
Return value
QR code print data is returned. Specify this data by addSymbol to print the QR code.
When creating the print data of QR code has failed, null is returned.
Supplementary explanation
To see the printer name, MAC address, and BD address, print a status sheet from the printer.
For instructions on how to print the status sheet, refer to the Technical Reference Guide of the printer.
341
Chapter 3 API Reference - EasySelectInfo class
EasySelectInfo class
deviceType
Stores printer type information.
Syntax
int deviceType
printerName
Stores printer name information.
Syntax
String printerName
Supplementary explanation
If the TM printer is equipped with a UB-R04 or UB-E04 interface board, printerName acquired from an NFC
tag will be returned as "" (blank).
macAddress
Stores a MAC address or a BD address.
Syntax
String macAddress
342
Chapter 3 API Reference - Status list
Status list
343
Chapter 3 API Reference - Status list
ERR_DISCONNECT Failed to disconnect from the device. Check connection with the device.
344
Chapter 3 API Reference - Status list
• Cover is open.
CODE_ERR_COVER_OPEN • Cover was opened during MICR read Close the printer cover.
operation.
• Forced transmission was run in the • Run forced transmission in the offline
CODE_ERR_PORT online state. state.
• A communication error occurred. • Review the connection environment.
Print data exceeding the spooler capac- Check if communication with the
CODE_ERR_SPOOLER
ity was transmitted. printer is disconnected.
345
Chapter 3 API Reference - Status list
The number of print jobs or data to be Wait for the printer to process some of
CODE_ERR_TOO_MANY_REQUESTS displayed on a display has exceeded the the tasks, then send the jobs or data
allowable limit of the printer's firmware. again.
Print job data with the size exceeding Check the content of the print job,
CODE_ERR_REQUEST_
the capacity of the printer firmware was reduce the size of the data, and then
ENTITY_TOO_LARGE
transmitted. resend the print job.
CODE_ERR_RECOGNITION Illegible MICR text was detected. Check the status of the slip sheet.
Error occurred during MICR read opera- Remove the error cause and try again. If
CODE_ERR_READ
tion. the error persists, restart the printer.
Failed to cancel waiting for paper inser- Check the status of the printer and try
CODE_ERR_CANCEL_FAILED
tion. the process again.
Could not run the process while paper Eject the paper and try the process
CODE_ERR_INSERTED
had already been inserted. again.
Could not run the process while waiting Remove the paper and try the process
CODE_ERR_WAIT_REMOVAL
for paper removal. again.
346
Chapter 3 API Reference - Status list
347
Chapter 3 API Reference - Status list
Printer class
Paper is being fed by pressing the Run the process after paper feed com-
status.paperFeed==Printer.TRUE
Paper Feed button. pletes.
348
Chapter 3 API Reference - Status list
status.autoRecoverError== Motor driver IC overheat error Run the process after the device gets
Printer.MOTOR_OVERHEAT occurred. cooled down.
status.autoRecoverError==
Cover is open. Close the printer cover.
Printer.COVER_OPEN
HybridPrinter class
349
Chapter 3 API Reference - Status list
status.paper==
Running short of paper. Replace the paper.
HybridPrinter.PAPER_NEAR_END
status.paper==
Paper has run out. Refill the paper.
HybridPrinter.PAPER_EMPTY
Paper is being fed by pressing the Run the process after paper feed com-
status.paperFeed==HybridPrinter.TRUE
Paper Feed button. pletes.
status.autoRecoverError== Motor driver IC overheat error Run the process after the device gets
HybridPrinter.MOTOR_OVERHEAT occurred cooled down.
350
Chapter 3 API Reference - Status list
status.insertionWaiting==
Waiting for slip sheet insertion. Insert a slip sheet.
HybridPrinter.INSERTION_WAIT_SLIP
status.insertionWaiting==
HybridPrinter.INSERTION_WAIT_ Waiting for validation sheet insertion. Insert a validation sheet.
VALIDATION
status.removalWaiting==
Waiting for paper removal. Remove the paper.
HybridPrinter.REMOVAL_WAIT_PAPER
351
Chapter 3 API Reference - Key code list
352
Chapter 3 API Reference - Key code list
353
Chapter 4 Device Specifications - List of Supported Classes
Device Specifications
Provides information about restriction on the use of APIs depend on devices such as printer and peripheral
device, and the parameter setting value.
Refer to the Technical Reference Guide of each printer for more information on each printer.
GermanyFiscalElement class
OtherPeripheral class
Epos2Exception class
HybridPrinter class*1
EasySelectInfo class
POSKeyboard class
LineDisplay class*1
SimpleSerial class
EasySelect class*1
CommBox class
Discovery class
Keyboard class
Printer class*1
MSR class
Log class
TM-m10 ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-m30II ✔ - ✔ - - ✔ - - ✔ - - ✔ ✔ ✔ ✔ ✔ ✔
TM-m30II-H ✔ - ✔ - - ✔ - - ✔ - - ✔ ✔ ✔ ✔ ✔ ✔
TM-m30II-NT ✔ - ✔ - - ✔ - - ✔ - - ✔ ✔ ✔ ✔ ✔ ✔
TM-m30II-S ✔ - ✔ - - ✔ - - ✔ - - ✔ ✔ ✔ ✔ ✔ ✔
TM-m30II-SL ✔ - ✔ - - ✔ - - ✔ - - ✔ ✔ ✔ ✔ ✔ ✔
TM-m50 ✔ - ✔ - - ✔ - - ✔ - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T20 ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T20II ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T20III ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T20IIIL ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T20X ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T60 ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T70 ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T70II ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T81II ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T81III ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T82 ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T82II ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
354
Chapter 4 Device Specifications - List of Supported Classes
GermanyFiscalElement class
OtherPeripheral class
Epos2Exception class
HybridPrinter class*1
EasySelectInfo class
POSKeyboard class
LineDisplay class*1
SimpleSerial class
EasySelect class*1
CommBox class
Discovery class
Keyboard class
Printer class*1
MSR class
Log class
TM-T82III ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T82IIIL ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T82X ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T83II ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T83III ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T88V ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T88VI ✔ - ✔ - - ✔*4 - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T88VII ✔ - ✔ - - ✔ - - ✔ - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T100 ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-L90 Liner-Free
✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
Label Printer Model
TM-U220 ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-U330 ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
EU-m30 ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-P20 ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-P60 (Receipt) ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-P60 (Peeler) ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-P60II (Receipt) ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-P60II (Peeler) ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-P80 ✔ - - - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-H6000V ✔ ✔*5 ✔ - - - - - - - - ✔ ✔ ✔ ✔ ✔ ✔
TM-T70II-DT ✔ - ✔ ✔ ✔ ✔ ✔ ✔ - ✔ ✔ ✔ ✔ ✔ ✔ - -
355
Chapter 4 Device Specifications - List of Supported Classes
GermanyFiscalElement class
OtherPeripheral class
Epos2Exception class
HybridPrinter class*1
EasySelectInfo class
POSKeyboard class
LineDisplay class*1
SimpleSerial class
EasySelect class*1
CommBox class
Discovery class
Keyboard class
Printer class*1
MSR class
Log class
TM-T70II-DT2 ✔ - ✔ ✔ ✔ ✔ ✔ ✔ - ✔ ✔ ✔ ✔ ✔ ✔ - -
TM-T88V-DT ✔ - ✔ ✔ ✔ ✔ ✔ ✔ - ✔ ✔ ✔ ✔ ✔ ✔ - -
TM-T88VI-DT2 ✔ - ✔ ✔ ✔ ✔ ✔ ✔ - ✔ ✔ ✔ ✔ ✔ ✔ - -
TM-H6000IV-DT ✔ - ✔ ✔ ✔ ✔ ✔ ✔ - ✔ ✔ ✔ ✔ ✔ ✔ - -
TM-T88IV*2 ✔ - - - - - - - - - - - - - - - -
TM-T90*2 ✔ - - - - - - - - - - - - - - - -
*2
TM-L90 ✔ - - - - - - - - - - - - - - - -
TM-H6000IV*2 ✔ - - - - - - - - - - - - - - - -
*1: The availability and restriction on the use of APIs varies for each printer. Refer to List of Supported APIs.
*2: Supports control as a slave printer only.
*3: Supported by TM-m30 firmware Ver. 1.40 ESC/POS or later.
*4: Supported by TM-T88VI firmware Ver. 40.50 ESC/POS or later.
*5: The availability and restriction on the use of APIs varies for each model. Refer to HybridPrinter class.
*6: Does not support control by the device control program.
*7: Supported with the following versions of firmware.
• TM-m30 firmware Ver. 1.46A ESC/POS or later
• TM-m30 firmware Ver. 1.46B ESC/POS or later
• TM-T88VI-iHUB firmware Ver. 50.52A ESC/POS or later
• TM-T88VI-iHUB firmware Ver. 50.52B ESC/POS or later
356
Chapter 4 Device Specifications - List of Supported APIs
Printer class
TM-m30II-SL
TM-m30II-H
TM-m30II-S
TM-T20IIIL
TM-m30II
TM-T20III
TM-T20X
TM-T20II
TM-m10
TM-m30
TM-m50
TM-T20
TM-T60
TM-T70
API
Printer ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
connect ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
disconnect ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
startMonitor ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
stopMonitor ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
getStatus ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
sendData ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
beginTransaction ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
endTransaction ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
requestPrintJobStatus - - - - - - - - - - - - - - -
clearCommandBuffer ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextAlign ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addLineSpace ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextRotate ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addText ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextLang ✔* ✔* ✔ ✔ ✔ ✔ ✔ ✔ ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addTextFont ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addTextSmooth ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextSize ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextStyle ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addHPosition ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addFeedUnit ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
357
Chapter 4 Device Specifications - List of Supported APIs
TM-m30II-NT
TM-m30II-SL
TM-m30II-H
TM-m30II-S
TM-T20IIIL
TM-m30II
TM-T20III
TM-T20X
TM-T20II
TM-m10
TM-m30
TM-m50
TM-T20
TM-T60
TM-T70
API
addFeedLine ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addImage ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addLogo ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addBarcode ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addSymbol ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addHLine - - - - - - - - - - - - - - -
addVLineBegin - - - - - - - - - - - - - - -
addVLineEnd - - - - - - - - - - - - - - -
addPageBegin ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addPageEnd ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addPageArea ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addPageDirection ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addPagePosition ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addPageLine ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* - - - - - - -
addPageRectangle ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* - - - - - - -
addRotateBegin - - ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
addRotateEnd - - ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
addCut ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addPulse ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addSound ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* - -
addFeedPosition - - - - - - - - - - - - - - -
addLayout - - - - - - - - - - - - - - -
addCommand ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
getMaintenanceCounter - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - ✔ ✔ - - - -
resetMaintenanceCounter - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - ✔ ✔ - - - -
getPrinterSetting - ✔* ✔* ✔* ✔* ✔* ✔* ✔* - ✔* ✔* - - - -
setPrinterSetting - ✔* ✔* ✔* ✔* ✔* ✔* ✔* - ✔* ✔* - - - -
getPrinterSettingEx - - ✔ ✔ - - - - - - - - - - -
setPrinterSettingEx - - ✔ ✔ - - - - - - - - - - -
getPrinterInformation - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
downloadFirmwareList ✔* ✔* ✔* ✔* ✔* ✔* - - - - - - - - -
getPrinterFirmwareInfo ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - - - -
verifyUpdate ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - - - -
358
Chapter 4 Device Specifications - List of Supported APIs
TM-m30II-NT
TM-m30II-SL
TM-m30II-H
TM-m30II-S
TM-T20IIIL
TM-m30II
TM-T20III
TM-T20X
TM-T20II
TM-m10
TM-m30
TM-m50
TM-T20
TM-T60
TM-T70
API
updateFirmware ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - - - -
forceRecover - - - - - - - - - - - - - - -
forcePulse - - - - - - - - - - - - - - -
forceStopSound - - - - - - - - - - - - - - -
forceCommand - - - - - - - - - - - - - - -
forceReset - - - - - - - - - - - - - - -
setStatusChangeEventLis-
✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
tener
setReceiveEventListener ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
setGetPrinterSettingExLis-
- - ✔ ✔ - - - - - - - - - - -
tener
setSetPrinterSettingExLis-
- - ✔ ✔ - - - - - - - - - - -
tener
interval ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
TM-T88VII
TM-T88VI
TM-T81III
TM-T82III
TM-T83III
TM-T88V
TM-T82X
TM-T70II
TM-T81II
TM-T82II
TM-T83II
TM-T100
TM-T82
API
Printer ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
connect ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
disconnect ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
startMonitor ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
stopMonitor ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
getStatus ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
sendData ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
beginTransaction - - - - - - - - - - - ✔ ✔ - -
endTransaction - - - - - - - - - - - ✔ ✔ - -
359
Chapter 4 Device Specifications - List of Supported APIs
TM-T88VII
TM-T88VI
TM-T81III
TM-T82III
TM-T83III
TM-T88V
TM-T82X
TM-T70II
TM-T81II
TM-T82II
TM-T83II
TM-T100
TM-T82
API
requestPrintJobStatus - - - - - - - - - - - - - - -
clearCommandBuffer ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextAlign ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addLineSpace ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextRotate ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addText ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextLang ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔ ✔* ✔*
addTextFont ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addTextSmooth ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextSize ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextStyle ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addHPosition ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addFeedUnit ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addFeedLine ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addImage ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addLogo ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addBarcode ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addSymbol ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addHLine - - - - - - - - - - - - - - -
addVLineBegin - - - - - - - - - - - - - - -
addVLineEnd - - - - - - - - - - - - - - -
addPageBegin ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addPageEnd ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addPageArea ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addPageDirection ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addPagePosition ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addPageLine - - - - - - - - - - - ✔* ✔* - -
360
Chapter 4 Device Specifications - List of Supported APIs
TM-T88VII
TM-T88VI
TM-T81III
TM-T82III
TM-T83III
TM-T88V
TM-T82X
TM-T70II
TM-T81II
TM-T82II
TM-T83II
TM-T100
TM-T82
API
addPageRectangle - - - - - - - - - - - ✔* ✔* - -
addRotateBegin - - - - - - - - - - - - ✔ - -
addRotateEnd - - - - - - - - - - - - ✔ - -
addCut ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addPulse ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addSound ✔* - ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addFeedPosition - - - - - - - - - - - - - - ✔
addLayout - - - - - - - - - - - - - - -
addCommand ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
getMaintenanceCounter - - - - - - - - - - - ✔ ✔ - -
resetMaintenanceCounter - - - - - - - - - - - ✔ ✔ - -
getPrinterSetting - - - - - - - - - - - ✔* ✔ - -
setPrinterSetting - - - - - - - - - - - ✔* ✔* - -
getPrinterSettingEx - - - - - - - - - - - - - - -
setPrinterSettingEx - - - - - - - - - - - - - - -
getPrinterInformation - - - - - - - - - - - - - - -
downloadFirmwareList - - - - - - - - - - - ✔* - - -
getPrinterFirmwareInfo - - - - - - - - - - - ✔ - - -
verifyUpdate - - - - - - - - - - - ✔ - - -
updateFirmware - - - - - - - - - - - ✔ - - -
forceRecover - - - - - - - - - - - - - - -
forcePulse - - - - - - - - - - - - - - -
forceStopSound - - - - - - - - - - - - - - -
forceCommand - - - - - - - - - - - - - - -
forceReset - - - - - - - - - - - - - - -
setStatusChangeEventLis-
✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
tener
361
Chapter 4 Device Specifications - List of Supported APIs
TM-T88VII
TM-T88VI
TM-T81III
TM-T82III
TM-T83III
TM-T88V
TM-T82X
TM-T70II
TM-T81II
TM-T82II
TM-T83II
TM-T100
TM-T82
API
setReceiveEventListener ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
setGetPrinterSettingExLis-
- - - - - - - - - - - - - - -
tener
setSetPrinterSettingExLis-
- - - - - - - - - - - - - - -
tener
interval ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
TM-P60II (Peeler)
TM-P60 (Peeler)
TM-H6000V
TM-U220
TM-U330
EU-m30
TM-P20
TM-P80
API
Printer ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
connect ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
disconnect ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
startMonitor ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
stopMonitor ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
getStatus ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
sendData ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
beginTransaction - - ✔ - - - - - - ✔
endTransaction - - ✔ - - - - - - ✔
requestPrintJobStatus - - - - - - - - - -
clearCommandBuffer ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextAlign ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addLineSpace ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextRotate ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addText ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextLang ✔* ✔* ✔ ✔* ✔* ✔* ✔* ✔* ✔* ✔*
362
Chapter 4 Device Specifications - List of Supported APIs
TM-P60II (Receipt)
TM-P60 (Receipt)
TM-P60II (Peeler)
TM-P60 (Peeler)
TM-H6000V
TM-U220
TM-U330
EU-m30
TM-P20
TM-P80
API
addTextFont ✔* ✔* ✔* ✔ ✔* ✔* ✔* ✔* ✔* ✔*
addTextSmooth ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextSize ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextStyle ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addHPosition - ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addFeedUnit ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addFeedLine ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addImage ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addLogo ✔* ✔* ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addBarcode - ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addSymbol - ✔* ✔* ✔* - ✔* ✔* ✔* ✔* ✔*
addHLine - - - - - - - - - -
addVLineBegin - - - - - - - - - -
addVLineEnd - - - - - - - - - -
addPageBegin - - ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addPageEnd - - ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addPageArea - - ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addPageDirection - - ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addPagePosition - - ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addPageLine - - ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addPageRectangle - - ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addRotateBegin - - ✔ - - - - - - -
addRotateEnd - - ✔ - - - - - - -
addCut ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addPulse ✔ ✔ - - - - - - - ✔
addSound - - - ✔* - - ✔* ✔* ✔* -
addFeedPosition - ✔* - ✔* - ✔ - ✔ ✔* -
addLayout - - - ✔* - ✔ - ✔ ✔* -
addCommand ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
getMaintenanceCounter - - ✔ ✔* - - - - - -
resetMaintenanceCounter - - ✔ ✔* - - - - - -
363
Chapter 4 Device Specifications - List of Supported APIs
TM-P60II (Receipt)
TM-P60 (Receipt)
TM-P60II (Peeler)
TM-P60 (Peeler)
TM-H6000V
TM-U220
TM-U330
EU-m30
TM-P20
TM-P80
API
getPrinterSetting - - ✔* ✔* - - - - - -
setPrinterSetting - - ✔* ✔* - - - - - -
getPrinterSettingEx - - ✔ - - - - - - -
setPrinterSettingEx - - ✔ - - - - - - -
getPrinterInformation - - ✔ - - - - - - -
downloadFirmwareList - - - - - - - - - -
getPrinterFirmwareInfo - - - - - - - - - -
verifyUpdate - - - - - - - - - -
updateFirmware - - - - - - - - - -
forceRecover - - - - - - - - - ✔
forcePulse - - - - - - - - - ✔
forceStopSound - - - - - - - - - -
forceCommand - - - - - - - - - ✔
forceReset - - - - - - - - - ✔
setStatusChangeEventLis-
✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
tener
setReceiveEventListener ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
setGetPrinterSettingExLis-
- - ✔ - - - - - - -
tener
setSetPrinterSettingExLis-
- - ✔ - - - - - - -
tener
interval ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
TM-T88VI-DT2
TM-T70II-DT2
TM-T88V-DT
TM-T70II-DT
TM-U220-i
TM-T88V-i
TM-T20II-i
TM-T82II-i
TM-T83II-i
TM-T70-i
API
Printer ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
connect ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
disconnect ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
startMonitor ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
stopMonitor ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
364
Chapter 4 Device Specifications - List of Supported APIs
TM-H6000IV-DT
TM-T88VI-iHUB
TM-T88VI-DT2
TM-T70II-DT2
TM-T88V-DT
TM-T70II-DT
TM-U220-i
TM-T88V-i
TM-T20II-i
TM-T82II-i
TM-T83II-i
TM-T70-i
API
getStatus ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
sendData ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
beginTransaction - - - - - - - - - - - -
endTransaction - - - - - - - - - - - -
requestPrintJobStatus ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
clearCommandBuffer ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextAlign ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addLineSpace ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextRotate ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addText ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextLang ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addTextFont ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addTextSmooth ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addTextSize ✔ ✔ ✔ ✔ ✔ ✔ - ✔ ✔ ✔ ✔ ✔
addTextStyle ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addHPosition ✔ ✔ ✔ ✔ ✔ ✔ - ✔ ✔ ✔ ✔ ✔
addFeedUnit ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addFeedLine ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addImage ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addLogo ✔ ✔ ✔ ✔ ✔ ✔ - ✔ ✔ ✔ ✔ ✔
addBarcode ✔* ✔* ✔* ✔* ✔* ✔* - ✔* ✔* ✔* ✔* ✔*
addSymbol ✔* ✔* ✔* ✔* ✔* ✔* - ✔* ✔* ✔* ✔* ✔*
addHLine - - - - - - - - - - - -
addVLineBegin - - - - - - - - - - - -
addVLineEnd - - - - - - - - - - - -
addPageBegin ✔ ✔ ✔ ✔ ✔ ✔ - ✔ ✔ ✔ ✔ ✔
addPageEnd ✔ ✔ ✔ ✔ ✔ ✔ - ✔ ✔ ✔ ✔ ✔
addPageArea ✔ ✔ ✔ ✔ ✔ ✔ - ✔ ✔ ✔ ✔ ✔
addPageDirection ✔ ✔ ✔ ✔ ✔ ✔ - ✔ ✔ ✔ ✔ ✔
addPagePosition ✔ ✔ ✔ ✔ ✔ ✔ - ✔ ✔ ✔ ✔ ✔
addPageLine - - - - - ✔* - - - - - -
addPageRectangle - - - - - ✔* - - - - - -
365
Chapter 4 Device Specifications - List of Supported APIs
TM-H6000IV-DT
TM-T88VI-iHUB
TM-T88VI-DT2
TM-T70II-DT2
TM-T88V-DT
TM-T70II-DT
TM-U220-i
TM-T88V-i
TM-T20II-i
TM-T82II-i
TM-T83II-i
TM-T70-i
API
addRotateBegin - - - - - - - - - - - -
addRotateEnd - - - - - - - - - - - -
addCut ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addPulse ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addSound ✔* - ✔* ✔* ✔* ✔* - ✔* ✔* ✔* ✔* -
addFeedPosition - - - - - - - - - - - -
addLayout - - - - - - - - - - - -
addCommand ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
getMaintenanceCounter - - - - - ✔ - - - - - -
resetMaintenanceCounter - - - - - ✔ - - - - - -
getPrinterSetting - - - - - ✔* - - - - - -
setPrinterSetting - - - - - ✔* - - - - - -
getPrinterSettingEx - - - - - - - - - - - -
setPrinterSettingEx - - - - - - - - - - - -
getPrinterInformation - - - - - ✔ - - - - - -
downloadFirmwareList - - - - - ✔* - - - - - -
getPrinterFirmwareInfo - - - - - ✔ - - - - - -
verifyUpdate - - - - - ✔ - - - - - -
updateFirmware - - - - - ✔ - - - - - -
forceRecover ✔ ✔ ✔ ✔ ✔ ✔ - ✔ ✔ ✔ ✔ ✔
forcePulse ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
forceStopSound ✔ - ✔ ✔ ✔ ✔ - ✔ ✔ ✔ ✔ -
forceCommand ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
forceReset ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
setStatusChangeEventLis-
✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
tener
setReceiveEventListener ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
setGetPrinterSettingExLis-
- - - - - - - - - - - -
tener
setSetPrinterSettingExLis-
- - - - - - - - - - - -
tener
interval ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
366
Chapter 4 Device Specifications - List of Supported APIs
Slave Printers
TM-H6000IV
TM-T88IV
TM-L90
TM-T90
API
Printer ✔* ✔* ✔* ✔*
connect ✔ ✔ ✔ ✔
disconnect ✔ ✔ ✔ ✔
startMonitor ✔ ✔ ✔ ✔
stopMonitor ✔ ✔ ✔ ✔
getStatus ✔ ✔ ✔ ✔
sendData ✔ ✔ ✔ ✔
beginTransaction - - - -
endTransaction - - - -
requestPrintJobStatus - - - -
clearCommandBuffer ✔ ✔ ✔ ✔
addTextAlign ✔ ✔ ✔ ✔
addLineSpace ✔ ✔ ✔ ✔
addTextRotate ✔ ✔ ✔ ✔
addText ✔ ✔ ✔ ✔
addTextLang ✔* ✔* ✔* ✔*
addTextFont ✔* ✔* ✔* ✔*
addTextSmooth ✔ ✔ ✔ ✔
addTextSize ✔ ✔ ✔ ✔
addTextStyle ✔* ✔* ✔* ✔*
addHPosition ✔ ✔ ✔ ✔
addFeedUnit ✔ ✔ ✔ ✔
addFeedLine ✔ ✔ ✔ ✔
addImage ✔* ✔* ✔* ✔*
addLogo ✔ ✔ ✔ ✔
addBarcode ✔* ✔* ✔* ✔*
addSymbol ✔* ✔* ✔* ✔*
addHLine - - - -
addVLineBegin - - - -
addVLineEnd - - - -
addPageBegin ✔ ✔ ✔ ✔
addPageEnd ✔ ✔ ✔ ✔
367
Chapter 4 Device Specifications - List of Supported APIs
TM-H6000IV
TM-T88IV
TM-L90
TM-T90
API
addPageArea ✔ ✔ ✔ ✔
addPageDirection ✔ ✔ ✔ ✔
addPagePosition ✔ ✔ ✔ ✔
addPageLine - - - -
addPageRectangle - - - -
addRotateBegin - - - -
addRotateEnd - - - -
addCut ✔* ✔* ✔* ✔*
addPulse ✔ ✔ ✔ ✔
addSound - - - -
addFeedPosition - - ✔ -
addLayout - - - -
addCommand ✔ ✔ ✔ ✔
getMaintenanceCounter - - - -
resetMaintenanceCounter - - - -
getPrinterSetting - - - -
setPrinterSetting - - - -
getPrinterSettingEx - - - -
setPrinterSettingEx - - - -
getPrinterInformation - - - -
downloadFirmwareList - - - -
getPrinterFirmwareInfo - - - -
verifyUpdate - - - -
updateFirmware - - - -
forceRecover - - - -
forcePulse - - - -
forceStopSound - - - -
forceCommand - - - -
forceReset - - - -
setStatusChangeEventLis-
✔ ✔ ✔ ✔
tener
setReceiveEventListener ✔ ✔ ✔ ✔
368
Chapter 4 Device Specifications - List of Supported APIs
TM-H6000IV
TM-T88IV
TM-L90
TM-T90
API
setGetPrinterSettingExLis-
- - - -
tener
setSetPrinterSettingExLis-
- - - -
tener
interval ✔ ✔ ✔ ✔
369
Chapter 4 Device Specifications - List of Supported APIs
LineDisplay class
TM-m30II-NT
TM-m30II-SL
TM-m30II-H
TM-m30II-S
TM-T20IIIL
TM-m30II
TM-T20III
TM-T20X
TM-T20II
TM-m10
TM-m30
TM-m50
TM-T20
TM-T60
TM-T70
API
LineDisplay - ✔* ✔* ✔* ✔* ✔* ✔* ✔* - - - - - - -
connect - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
disconnect - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
getStatus - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
sendData - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
clearCommandBuffer - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
addInitialize - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
addCreateWindow - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
addDestroyWindow - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
addSetCurrentWindow - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
addClearCurrentWindow - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
addCreateScreen - - - ✔ ✔ ✔ ✔ - - - - - - - -
addCreateScreenCustom - - - ✔ ✔ ✔ ✔ - - - - - - - -
addCreateTextArea - - - ✔ ✔ ✔ ✔ - - - - - - - -
addDestroyTextArea - - - ✔ ✔ ✔ ✔ - - - - - - - -
addSetCurrentTextArea - - - ✔ ✔ ✔ ✔ - - - - - - - -
addClearCurrentTextArea - - - ✔ ✔ ✔ ✔ - - - - - - - -
addSetCursorPosition - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
addMoveCursorPosition - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
addSetCursorType - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
addText - ✔* ✔* ✔ ✔ ✔ ✔ ✔* - - - - - - -
addReverseText - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
addMarqueeText - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
addSetBlink - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
addSetBrightness - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
addBackgroundColor - - - ✔ ✔ ✔ ✔ - - - - - - - -
addStartSlideShow - - - ✔ ✔ ✔ ✔ - - - - - - - -
addStopSlideShow - - - ✔ ✔ ✔ ✔ - - - - - - - -
addDownloadImage - - - ✔ ✔ ✔ ✔ - - - - - - - -
370
Chapter 4 Device Specifications - List of Supported APIs
TM-m30II-NT
TM-m30II-SL
TM-m30II-H
TM-m30II-S
TM-T20IIIL
TM-m30II
TM-T20III
TM-T20X
TM-T20II
TM-m10
TM-m30
TM-m50
TM-T20
TM-T60
TM-T70
API
addRegisterDownloadIm-
- - - ✔ ✔ ✔ ✔ - - - - - - - -
age
addNVImage - - - ✔ ✔ ✔ ✔ - - - - - - - -
addClearImage - - - ✔ ✔ ✔ ✔ - - - - - - - -
addSymbol - - - ✔ ✔ ✔ ✔ - - - - - - - -
addClearSymbol - - - ✔ ✔ ✔ ✔ - - - - - - - -
addShowClock - - - - - - - - - - - - - - -
addCommand - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
setReceiveEventListener - ✔ ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
TM-T88VII
TM-T88VI
TM-T81III
TM-T82III
TM-T83III
TM-T82X
TM-T88V
TM-T70II
TM-T81II
TM-T82II
TM-T83II
TM-T100
TM-T82
API
LineDisplay - - - - - - - - - - - ✔* ✔* - -
connect - - - - - - - - - - - ✔ ✔ - -
disconnect - - - - - - - - - - - ✔ ✔ - -
getStatus - - - - - - - - - - - ✔ ✔ - -
sendData - - - - - - - - - - - ✔ ✔ - -
clearCommandBuffer - - - - - - - - - - - ✔ ✔ - -
addInitialize - - - - - - - - - - - ✔ ✔ - -
addCreateWindow - - - - - - - - - - - ✔ ✔ - -
addDestroyWindow - - - - - - - - - - - ✔ ✔ - -
addSetCurrentWindow - - - - - - - - - - - ✔ ✔ - -
addClearCurrentWindow - - - - - - - - - - - ✔ ✔ - -
addCreateScreen - - - - - - - - - - - - ✔ - -
addCreateScreenCustom - - - - - - - - - - - - ✔ - -
371
Chapter 4 Device Specifications - List of Supported APIs
TM-T88VII
TM-T88VI
TM-T81III
TM-T82III
TM-T83III
TM-T88V
TM-T82X
TM-T70II
TM-T81II
TM-T82II
TM-T83II
TM-T100
TM-T82
API
addCreateTextArea - - - - - - - - - - - - ✔ - -
addDestroyTextArea - - - - - - - - - - - - ✔ - -
addSetCurrentTextArea - - - - - - - - - - - - ✔ - -
addClearCurrentTextArea - - - - - - - - - - - - ✔ - -
addSetCursorPosition - - - - - - - - - - - ✔ ✔ - -
addMoveCursorPosition - - - - - - - - - - - ✔ ✔ - -
addSetCursorType - - - - - - - - - - - ✔ ✔ - -
addText - - - - - - - - - - - ✔* ✔ - -
addReverseText - - - - - - - - - - - ✔ ✔ - -
addMarqueeText - - - - - - - - - - - ✔ ✔ - -
addSetBlink - - - - - - - - - - - ✔ ✔ - -
addSetBrightness - - - - - - - - - - - ✔ ✔ - -
addBackgroundColor - - - - - - - - - - - - ✔ - -
addStartSlideShow - - - - - - - - - - - - ✔ - -
addStopSlideShow - - - - - - - - - - - - ✔ - -
addDownloadImage - - - - - - - - - - - - ✔ - -
addRegisterDownloadIm-
- - - - - - - - - - - - ✔ - -
age
addNVImage - - - - - - - - - - - - ✔ - -
addClearImage - - - - - - - - - - - - ✔ - -
addSymbol - - - - - - - - - - - - ✔ - -
addClearSymbol - - - - - - - - - - - - ✔ - -
addShowClock - - - - - - - - - - - ✔ ✔ - -
addCommand - - - - - - - - - - - ✔ ✔ - -
setReceiveEventListener - - - - - - - - - - - ✔ ✔ - -
372
Chapter 4 Device Specifications - List of Supported APIs
TM-P60II (Receipt)
TM-P60 (Receipt)
TM-P60II (Peeler)
TM-P60 (Peeler)
TM-H6000V
TM-U220
TM-U330
EU-m30
TM-P20
TM-P80
API
LineDisplay - - - - - - - - - ✔*
connect - - - - - - - - - ✔
disconnect - - - - - - - - - ✔
getStatus - - - - - - - - - ✔
sendData - - - - - - - - - ✔
clearCommandBuffer - - - - - - - - - ✔
addInitialize - - - - - - - - - ✔
addCreateWindow - - - - - - - - - ✔
addDestroyWindow - - - - - - - - - ✔
addSetCurrentWindow - - - - - - - - - ✔
addClearCurrentWindow - - - - - - - - - ✔
addCreateScreen - - - - - - - - - -
addCreateScreenCustom - - - - - - - - - -
addCreateTextArea - - - - - - - - - -
addDestroyTextArea - - - - - - - - - -
addSetCurrentTextArea - - - - - - - - - -
addClearCurrentTextArea - - - - - - - - - -
addSetCursorPosition - - - - - - - - - ✔
addMoveCursorPosition - - - - - - - - - ✔
addSetCursorType - - - - - - - - - ✔
addText - - - - - - - - - ✔*
addReverseText - - - - - - - - - ✔
addMarqueeText - - - - - - - - - ✔
addSetBlink - - - - - - - - - ✔
addSetBrightness - - - - - - - - - ✔
addBackgroundColor - - - - - - - - - -
addStartSlideShow - - - - - - - - - -
addStopSlideShow - - - - - - - - - -
addDownloadImage - - - - - - - - - -
addRegisterDownloadIm-
- - - - - - - - - -
age
373
Chapter 4 Device Specifications - List of Supported APIs
TM-P60II (Receipt)
TM-P60 (Receipt)
TM-P60II (Peeler)
TM-P60 (Peeler)
TM-H6000V
TM-U220
TM-U330
EU-m30
TM-P20
TM-P80
API
addNVImage - - - - - - - - - -
addClearImage - - - - - - - - - -
addSymbol - - - - - - - - - -
addClearSymbol - - - - - - - - - -
addShowClock - - - - - - - - - ✔
addCommand - - - - - - - - - ✔
setReceiveEventListener - - - - - - - - - ✔
TM-H6000IV-DT
TM-T88VI-iHUB
TM-T88VI-DT2
TM-T70II-DT2
TM-T88V-DT
TM-T70II-DT
TM-U220-i
TM-T88V-i
TM-T20II-i
TM-T82II-i
TM-T83II-i
TM-T70-i
API
LineDisplay ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
connect ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
disconnect ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
getStatus ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
sendData ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
clearCommandBuffer ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addInitialize ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addCreateWindow ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addDestroyWindow ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addSetCurrentWindow ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addClearCurrentWindow ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addCreateScreen - - - - - - - - ✔ - ✔ -
addCreateScreenCustom - - - - - - - - ✔ - ✔ -
addCreateTextArea - - - - - - - - ✔ - ✔ -
addDestroyTextArea - - - - - - - - ✔ - ✔ -
addSetCurrentTextArea - - - - - - - - ✔ - ✔ -
addClearCurrentTextArea - - - - - - - - ✔ - ✔ -
addSetCursorPosition ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addMoveCursorPosition ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
374
Chapter 4 Device Specifications - List of Supported APIs
TM-H6000IV-DT
TM-T88VI-iHUB
TM-T88VI-DT2
TM-T70II-DT2
TM-T88V-DT
TM-T70II-DT
TM-U220-i
TM-T88V-i
TM-T20II-i
TM-T82II-i
TM-T83II-i
TM-T70-i
API
addSetCursorType ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addText ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔* ✔*
addReverseText ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addMarqueeText ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addSetBlink ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addSetBrightness ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addBackgroundColor - - - - - - - - ✔ - ✔ -
addStartSlideShow - - - - - - - - ✔ - ✔ -
addStopSlideShow - - - - - - - - ✔ - ✔ -
addDownloadImage - - - - - - - - ✔ - ✔ -
addRegisterDownloadIm-
- - - - - - - - ✔ - ✔ -
age
addNVImage - - - - - - - - ✔ - ✔ -
addClearImage - - - - - - - - ✔ - ✔ -
addSymbol - - - - - - - - ✔ - ✔ -
addClearSymbol - - - - - - - - ✔ - ✔ -
addShowClock ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
addCommand ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
setReceiveEventListener ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
Slave Printers
TM-H6000IV
TM-T88IV
TM-L90
TM-T90
API
LineDisplay - - - -
connect - - - -
disconnect - - - -
getStatus - - - -
sendData - - - -
clearCommandBuffer - - - -
addInitialize - - - -
addCreateWindow - - - -
addDestroyWindow - - - -
375
Chapter 4 Device Specifications - List of Supported APIs
TM-H6000IV
TM-T88IV
TM-L90
TM-T90
API
addSetCurrentWindow - - - -
addClearCurrentWindow - - - -
addCreateScreen - - - -
addCreateScreenCustom - - - -
addCreateTextArea - - - -
addDestroyTextArea - - - -
addSetCurrentTextArea - - - -
addClearCurrentTextArea - - - -
addSetCursorPosition - - - -
addMoveCursorPosition - - - -
addSetCursorType - - - -
addText - - - -
addReverseText - - - -
addMarqueeText - - - -
addSetBlink - - - -
addSetBrightness - - - -
addBackgroundColor - - - -
addStartSlideShow - - - -
addStopSlideShow - - - -
addDownloadImage - - - -
addRegisterDownloadIm-
- - - -
age
addNVImage - - - -
addClearImage - - - -
addSymbol - - - -
addClearSymbol - - - -
addShowClock - - - -
addCommand - - - -
setReceiveEventListener - - - -
376
Chapter 4 Device Specifications - List of Supported APIs
TM-m30II-NT
TM-m30II-SL
TM-m30II-H
TM-m30II-S
TM-T20IIIL
TM-m30II
TM-T20III
TM-T20X
TM-T20II
TM-m10
TM-m30
TM-m50
TM-T20
TM-T60
TM-T70
API
getAdmin ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
getLocation ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
setConnectionEventLis-
- - ✔ ✔ ✔ ✔ ✔ ✔ - - - - - - -
tener
TM-T88VII
TM-T88VI
TM-T81III
TM-T82III
TM-T83III
TM-T88V
TM-T82X
TM-T70II
TM-T81II
TM-T82II
TM-T83II
TM-T100
TM-T82
API
getAdmin ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
getLocation ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
setConnectionEventLis-
- - - - - - - - - - - - - - -
tener
TM-P60II (Peeler)
TM-P60 (Peeler)
TM-H6000V
TM-U220
TM-U330
EU-m30
TM-P20
TM-P80
API
getAdmin ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
getLocation ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
setConnectionEventLis-
- - ✔ - - - - - - ✔
tener
377
Chapter 4 Device Specifications - List of Supported APIs
TM-H6000IV-DT
TM-T88VI-iHUB
TM-T88VI-DT2
TM-T70II-DT2
TM-T88V-DT
TM-T70II-DT
TM-U220-i
TM-T88V-i
TM-T20II-i
TM-T82II-i
TM-T83II-i
TM-T70-i
API
getAdmin ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
getLocation ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
setConnectionEventLis-
✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
tener
Slave Printers
TM-H6000IV
TM-T88IV
TM-L90
TM-T90
API
getAdmin - - - -
getLocation - - - -
setConnectionEventLis-
- - - -
tener
378
Chapter 4 Device Specifications - List of Supported APIs
EasySelect class
TM-m30II-NT
TM-m30II-SL
TM-m30II-H
TM-m30II-S
TM-T20IIIL
TM-m30II
TM-T20III
TM-T20X
TM-T20II
TM-m10
TM-m30
TM-m50
TM-T20
TM-T60
TM-T70
API
parseNFC ✔ ✔ ✔ ✔ ✔ - - ✔ - - - - - - -
parseQR ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
createQR ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
TM-T88VII
TM-T88VI
TM-T81III
TM-T82III
TM-T83III
TM-T82X
TM-T88V
TM-T100
TM-T70II
TM-T81II
TM-T82II
TM-T83II
TM-T82
API
parseNFC - - - - - - - - - - - ✔ ✔ - -
parseQR ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
createQR ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
TM-P60II (Peeler)
TM-P60 (Peeler)
TM-H6000V
TM-U220
TM-U330
EU-m30
TM-P20
TM-P80
API
parseNFC - - - ✔ ✔ ✔ ✔ ✔ ✔ ✔
parseQR ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
createQR ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔
379
Chapter 4 Device Specifications - List of Supported APIs
TM-H6000IV-DT
TM-T88VI-iHUB
TM-T88VI-DT2
TM-T70II-DT2
TM-T88V-DT
TM-T70II-DT
TM-U220-i
TM-T88V-i
TM-T20II-i
TM-T82II-i
TM-T83II-i
TM-T70-i
API
parseNFC - - - - - ✔ - - - - - -
parseQR - - - - - - - - - - - -
createQR - - - - - - - - - - - -
Slave Printers
TM-H6000IV
TM-T88IV
TM-L90
TM-T90
API
parseNFC - - - -
parseQR - - - -
createQR - - - -
380
Chapter 4 Device Specifications - Printer-specific Support Information
TM-m10
Printer Specifications
Item Specification
Amount of initial feed 30 dots
Parameter Restrictions
• Printer.MODEL_ANK
Printer lang
• Printer.MODEL_TAIWAN
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
• Printer.FONT_B
addTextFont font
• Printer.FONT_C
• Printer.PARAM_DEFAULT
381
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
382
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode • Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font • Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
383
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
384
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
printerModel • TM-m10
• -A
downloadFirmwareList option
• -B
listener -
385
Chapter 4 Device Specifications - Printer-specific Support Information
TM-m30
Printer Specifications
Initial page mode area 420 x 2400 dots 576 x 2400 dots
Maximum page mode area 420 x 2400 dots 576 x 2400 dots
Baseline of Font B Chinese characters 21 dots from the top of the character
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang • Printer.MODEL_TAIWAN
• Printer.MODEL_KOREAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
• Printer.FONT_B
addTextFont font
• Printer.FONT_C
• Printer.PARAM_DEFAULT
386
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
387
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode • Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font • Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
388
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
389
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
390
Chapter 4 Device Specifications - Printer-specific Support Information
list -
• Printer.Setting.PaperWidth
type • Printer.Setting.PrintDensity
• Printer.Setting.PrintSpeed
• Printer.Setting.PaperWidth58_0
• Printer.Setting.PaperWidth80_0
• Printer.Setting.PrintDensity70
• Printer.Setting.PrintDensity75
• Printer.Setting.PrintDensity80
• Printer.Setting.PrintDensity85
• Printer.Setting.PrintDensity90
• Printer.Setting.PrintDensity95
• Printer.Setting.PrintDensity100
setPrinterSetting • Printer.Setting.PrintDensity105
• Printer.Setting.PrintDensity110
• Printer.Setting.PrintDensity115
value • Printer.Setting.PrintDensity120
• Printer.Setting.PrintDensity125
• Printer.Setting.PrintDensity130
• Printer.Setting.PrintSpeed1
• Printer.Setting.PrintSpeed2
• Printer.Setting.PrintSpeed3
• Printer.Setting.PrintSpeed4
• Printer.Setting.PrintSpeed5
• Printer.Setting.PrintSpeed6
• Printer.Setting.PrintSpeed7
• Printer.Setting.PrintSpeed8
• Printer.Setting.PrintSpeed9
• Printer.Setting.PrintSpeed10
listener -
printerModel • TM-m30
• -A
downloadFirmwareList option
• -B
listener -
• LineDisplay.DM_D30
displaySeries
LineDisplay • LineDisplay.DM_D70
context -
391
Chapter 4 Device Specifications - Printer-specific Support Information
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang
• LineDisplay.PARAM_DEFAULT
addText • LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 19
y
• LineDisplay.PARAM_UNUSE
392
Chapter 4 Device Specifications - Printer-specific Support Information
TM-m30II
Printer Specifications
Initial page mode area 420 x 4800 dots 576 x 4800 dots
Maximum page mode area 420 x 4800 dots 576 x 4800 dots
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
• Printer.MODEL_TAIWAN
Printer lang
• Printer.MODEL_KOREAN
• Printer.MODEL_THAI
• Printer.MODEL_SOUTHASIA
context -
• Printer.FONT_A (default)
• Printer.FONT_B
addTextFont font
• Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
reverse
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
393
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
394
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type • Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_CODE128_AUTO
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font • Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
395
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
396
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
397
Chapter 4 Device Specifications - Printer-specific Support Information
list -
• Printer.Setting.PaperWidth
type • Printer.Setting.PrintDensity
• Printer.Setting.PrintSpeed
• Printer.Setting.PaperWidth58_0
• Printer.Setting.PaperWidth80_0
• Printer.Setting.PrintDensity70
• Printer.Setting.PrintDensity75
• Printer.Setting.PrintDensity80
• Printer.Setting.PrintDensity85
• Printer.Setting.PrintDensity90
• Printer.Setting.PrintDensity95
• Printer.Setting.PrintDensity100
• Printer.Setting.PrintDensity105
• Printer.Setting.PrintDensity110
setPrinterSetting • Printer.Setting.PrintDensity115
• Printer.Setting.PrintDensity120
• Printer.Setting.PrintDensity125
value
• Printer.Setting.PrintDensity130
• Printer.Setting.PrintSpeed1
• Printer.Setting.PrintSpeed2
• Printer.Setting.PrintSpeed3
• Printer.Setting.PrintSpeed4
• Printer.Setting.PrintSpeed5
• Printer.Setting.PrintSpeed6
• Printer.Setting.PrintSpeed7
• Printer.Setting.PrintSpeed8
• Printer.Setting.PrintSpeed9
• Printer.Setting.PrintSpeed10
• Printer.Setting.PrintSpeed11
• Printer.Setting.PrintSpeed12
• Printer.Setting.PrintSpeed13
listener -
printerModel • TM-m30II
• -A
downloadFirmwareList option
• -B
listener -
• LineDisplay.DM_D30
displaySeries
LineDisplay • LineDisplay.DM_D70
context -
398
Chapter 4 Device Specifications - Printer-specific Support Information
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang • LineDisplay.LANG_MULTI
• LineDisplay.PARAM_DEFAULT
addText
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 19
y
• LineDisplay.PARAM_UNUSE
399
Chapter 4 Device Specifications - Printer-specific Support Information
TM-m30II-H
Printer Specifications
Initial page mode area 420 x 4800 dots 576 x 4800 dots
Maximum page mode area 420 x 4800 dots 576 x 4800 dots
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
• Printer.MODEL_TAIWAN
Printer lang
• Printer.MODEL_KOREAN
• Printer.MODEL_THAI
• Printer.MODEL_SOUTHASIA
context -
• Printer.FONT_A (default)
• Printer.FONT_B
addTextFont font
• Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
reverse
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
400
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
401
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type • Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_CODE128_AUTO
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font • Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
402
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
403
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
404
Chapter 4 Device Specifications - Printer-specific Support Information
list -
• Printer.Setting.PaperWidth
type • Printer.Setting.PrintDensity
• Printer.Setting.PrintSpeed
• Printer.Setting.PaperWidth58_0
• Printer.Setting.PaperWidth80_0
• Printer.Setting.PrintDensity70
• Printer.Setting.PrintDensity75
• Printer.Setting.PrintDensity80
• Printer.Setting.PrintDensity85
• Printer.Setting.PrintDensity90
• Printer.Setting.PrintDensity95
• Printer.Setting.PrintDensity100
• Printer.Setting.PrintDensity105
setPrinterSetting • Printer.Setting.PrintDensity110
• Printer.Setting.PrintDensity115
• Printer.Setting.PrintDensity120
value
• Printer.Setting.PrintSpeed1
• Printer.Setting.PrintSpeed2
• Printer.Setting.PrintSpeed3
• Printer.Setting.PrintSpeed4
• Printer.Setting.PrintSpeed5
• Printer.Setting.PrintSpeed6
• Printer.Setting.PrintSpeed7
• Printer.Setting.PrintSpeed8
• Printer.Setting.PrintSpeed9
• Printer.Setting.PrintSpeed10
• Printer.Setting.PrintSpeed11
• Printer.Setting.PrintSpeed12
• Printer.Setting.PrintSpeed13
listener -
printerModel • TM-m30II-H
• -A
downloadFirmwareList option
• -B
listener -
• LineDisplay.DM_D30
displaySeries
LineDisplay • LineDisplay.DM_D70
context -
405
Chapter 4 Device Specifications - Printer-specific Support Information
TM-m30II-NT
Printer Specifications
Initial page mode area 420 x 4800 dots 576 x 4800 dots
Maximum page mode area 420 x 4800 dots 576 x 4800 dots
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
• Printer.MODEL_TAIWAN
Printer lang
• Printer.MODEL_KOREAN
• Printer.MODEL_THAI
• Printer.MODEL_SOUTHASIA
context -
• Printer.FONT_A (default)
• Printer.FONT_B
addTextFont font
• Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
reverse
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
406
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
407
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type • Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_CODE128_AUTO
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font • Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
408
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
409
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
410
Chapter 4 Device Specifications - Printer-specific Support Information
list -
• Printer.Setting.PaperWidth
type • Printer.Setting.PrintDensity
• Printer.Setting.PrintSpeed
• Printer.Setting.PaperWidth58_0
• Printer.Setting.PaperWidth80_0
• Printer.Setting.PrintDensity70
• Printer.Setting.PrintDensity75
• Printer.Setting.PrintDensity80
• Printer.Setting.PrintDensity85
• Printer.Setting.PrintDensity90
• Printer.Setting.PrintDensity95
• Printer.Setting.PrintDensity100
• Printer.Setting.PrintDensity105
setPrinterSetting • Printer.Setting.PrintDensity110
• Printer.Setting.PrintDensity115
• Printer.Setting.PrintDensity120
value
• Printer.Setting.PrintSpeed1
• Printer.Setting.PrintSpeed2
• Printer.Setting.PrintSpeed3
• Printer.Setting.PrintSpeed4
• Printer.Setting.PrintSpeed5
• Printer.Setting.PrintSpeed6
• Printer.Setting.PrintSpeed7
• Printer.Setting.PrintSpeed8
• Printer.Setting.PrintSpeed9
• Printer.Setting.PrintSpeed10
• Printer.Setting.PrintSpeed11
• Printer.Setting.PrintSpeed12
• Printer.Setting.PrintSpeed13
listener -
printerModel • TM-m30II-NT
• -A
downloadFirmwareList option
• -B
listener -
• LineDisplay.DM_D30
displaySeries
LineDisplay • LineDisplay.DM_D70
context -
411
Chapter 4 Device Specifications - Printer-specific Support Information
TM-m30II-S
Printer Specifications
Initial page mode area 420 x 4800 dots 576 x 4800 dots
Maximum page mode area 420 x 4800 dots 576 x 4800 dots
Parameter Restrictions
context -
• Printer.FONT_A (default)
• Printer.FONT_B
addTextFont font
• Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
reverse
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
412
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
413
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type • Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_CODE128_AUTO
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font • Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
414
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
415
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
416
Chapter 4 Device Specifications - Printer-specific Support Information
list -
• Printer.Setting.PaperWidth
type • Printer.Setting.PrintDensity
• Printer.Setting.PrintSpeed
• Printer.Setting.PaperWidth58_0
• Printer.Setting.PaperWidth80_0
• Printer.Setting.PrintDensity70
• Printer.Setting.PrintDensity75
• Printer.Setting.PrintDensity80
• Printer.Setting.PrintDensity85
• Printer.Setting.PrintDensity90
• Printer.Setting.PrintDensity95
• Printer.Setting.PrintDensity100
• Printer.Setting.PrintDensity105
setPrinterSetting • Printer.Setting.PrintDensity110
• Printer.Setting.PrintDensity115
• Printer.Setting.PrintDensity120
value
• Printer.Setting.PrintSpeed1
• Printer.Setting.PrintSpeed2
• Printer.Setting.PrintSpeed3
• Printer.Setting.PrintSpeed4
• Printer.Setting.PrintSpeed5
• Printer.Setting.PrintSpeed6
• Printer.Setting.PrintSpeed7
• Printer.Setting.PrintSpeed8
• Printer.Setting.PrintSpeed9
• Printer.Setting.PrintSpeed10
• Printer.Setting.PrintSpeed11
• Printer.Setting.PrintSpeed12
• Printer.Setting.PrintSpeed13
listener -
printerModel • TM-m30II-S
• -A
downloadFirmwareList option
• -B
listener -
• LineDisplay.DM_D30
displaySeries
LineDisplay • LineDisplay.DM_D70
context -
417
Chapter 4 Device Specifications - Printer-specific Support Information
TM-m30II-SL
Printer Specifications
Initial page mode area 420 x 4800 dots 576 x 4800 dots
Maximum page mode area 420 x 4800 dots 576 x 4800 dots
Parameter Restrictions
context -
• Printer.FONT_A (default)
• Printer.FONT_B
addTextFont font
• Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
reverse
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
418
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
419
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type • Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_CODE128_AUTO
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font • Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
420
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
421
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
422
Chapter 4 Device Specifications - Printer-specific Support Information
list -
• Printer.Setting.PaperWidth
type • Printer.Setting.PrintDensity
• Printer.Setting.PrintSpeed
• Printer.Setting.PaperWidth58_0
• Printer.Setting.PaperWidth80_0
• Printer.Setting.PrintDensity70
• Printer.Setting.PrintDensity75
• Printer.Setting.PrintDensity80
• Printer.Setting.PrintDensity85
• Printer.Setting.PrintDensity90
• Printer.Setting.PrintDensity95
• Printer.Setting.PrintDensity100
• Printer.Setting.PrintDensity105
setPrinterSetting • Printer.Setting.PrintDensity110
• Printer.Setting.PrintDensity115
• Printer.Setting.PrintDensity120
value
• Printer.Setting.PrintSpeed1
• Printer.Setting.PrintSpeed2
• Printer.Setting.PrintSpeed3
• Printer.Setting.PrintSpeed4
• Printer.Setting.PrintSpeed5
• Printer.Setting.PrintSpeed6
• Printer.Setting.PrintSpeed7
• Printer.Setting.PrintSpeed8
• Printer.Setting.PrintSpeed9
• Printer.Setting.PrintSpeed10
• Printer.Setting.PrintSpeed11
• Printer.Setting.PrintSpeed12
• Printer.Setting.PrintSpeed13
listener -
• LineDisplay.DM_D30
displaySeries
LineDisplay • LineDisplay.DM_D70
context -
423
Chapter 4 Device Specifications - Printer-specific Support Information
TM-m50
Printer Specifications
Initial page mode area 360 x 4800 dots 512 x 4800 dots
Maximum page mode area 360 x 4800 dots 512 x 4800 dots
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
• Printer.MODEL_TAIWAN
Printer lang
• Printer.MODEL_KOREAN
• Printer.MODEL_THAI
• Printer.MODEL_SOUTHASIA
context -
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
reverse
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
424
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
425
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type • Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_CODE128_AUTO
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
addBarcode • Printer.BARCODE_GS1_DATABAR_LIMITED
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
426
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
427
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
428
Chapter 4 Device Specifications - Printer-specific Support Information
list -
• Printer.Setting.PaperWidth
type • Printer.Setting.PrintDensity
• Printer.Setting.PrintSpeed
• Printer.Setting.PaperWidth58_0
• Printer.Setting.PaperWidth80_0
• Printer.Setting.PrintDensity70
• Printer.Setting.PrintDensity75
• Printer.Setting.PrintDensity80
• Printer.Setting.PrintDensity85
• Printer.Setting.PrintDensity90
• Printer.Setting.PrintDensity95
• Printer.Setting.PrintDensity100
• Printer.Setting.PrintDensity105
setPrinterSetting • Printer.Setting.PrintDensity110
• Printer.Setting.PrintDensity115
• Printer.Setting.PrintDensity120
value
• Printer.Setting.PrintSpeed1
• Printer.Setting.PrintSpeed2
• Printer.Setting.PrintSpeed3
• Printer.Setting.PrintSpeed4
• Printer.Setting.PrintSpeed5
• Printer.Setting.PrintSpeed6
• Printer.Setting.PrintSpeed7
• Printer.Setting.PrintSpeed8
• Printer.Setting.PrintSpeed9
• Printer.Setting.PrintSpeed10
• Printer.Setting.PrintSpeed11
• Printer.Setting.PrintSpeed12
• Printer.Setting.PrintSpeed13
listener -
• LineDisplay.DM_D30
displaySeries
LineDisplay • LineDisplay.DM_D70
context -
429
Chapter 4 Device Specifications - Printer-specific Support Information
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang • LineDisplay.LANG_MULTI
• LineDisplay.PARAM_DEFAULT
addText
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 19
y
• LineDisplay.PARAM_UNUSE
430
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T20
Printer Specifications
Initial page mode area 420 x 831 dots 576 x 831 dots
Maximum page mode area 420 x 1662 dots 576 x 1662 dots
Parameter Restrictions
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
431
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
432
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
433
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
434
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T20II
Printer Specifications
Initial page mode area 420 x 831 dots 576 x 831 dots
Maximum page mode area 420 x 1662 dots 576 x 1662 dots
Parameter Restrictions
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
435
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
436
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
437
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
438
Chapter 4 Device Specifications - Printer-specific Support Information
list -
• Printer.Setting.PrintDensity
type
• Printer.Setting.PrintSpeed
• Printer.Setting.PrintDensity85
• Printer.Setting.PrintDensity90
• Printer.Setting.PrintDensity95
• Printer.Setting.PrintDensity100
• Printer.Setting.PrintDensity105
• Printer.Setting.PrintDensity110
• Printer.Setting.PrintDensity115
setPrinterSetting • Printer.Setting.PrintSpeed1
• Printer.Setting.PrintSpeed2
• Printer.Setting.PrintSpeed3
value
• Printer.Setting.PrintSpeed4
• Printer.Setting.PrintSpeed5
• Printer.Setting.PrintSpeed6
• Printer.Setting.PrintSpeed7
• Printer.Setting.PrintSpeed8
• Printer.Setting.PrintSpeed9
• Printer.Setting.PrintSpeed10
• Printer.Setting.PrintSpeed11
• Printer.Setting.PrintSpeed12
• Printer.Setting.PrintSpeed13
listener -
439
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T20III
Printer Specifications
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang
• Printer.MODEL_TAIWAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
440
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
441
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
442
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
443
Chapter 4 Device Specifications - Printer-specific Support Information
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
list -
• Printer.Setting.PrintDensity
type
• Printer.Setting.PrintSpeed
• Printer.Setting.PrintDensity85
• Printer.Setting.PrintDensity90
• Printer.Setting.PrintDensity95
• Printer.Setting.PrintDensity100
• Printer.Setting.PrintDensity105
• Printer.Setting.PrintDensity110
• Printer.Setting.PrintDensity115
setPrinterSetting • Printer.Setting.PrintSpeed1
• Printer.Setting.PrintSpeed2
• Printer.Setting.PrintSpeed3
value
• Printer.Setting.PrintSpeed4
• Printer.Setting.PrintSpeed5
• Printer.Setting.PrintSpeed6
• Printer.Setting.PrintSpeed7
• Printer.Setting.PrintSpeed8
• Printer.Setting.PrintSpeed9
• Printer.Setting.PrintSpeed10
• Printer.Setting.PrintSpeed11
• Printer.Setting.PrintSpeed12
• Printer.Setting.PrintSpeed13
listener -
444
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T20IIIL
Printer Specifications
Parameter Restrictions
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
445
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
446
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
447
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
448
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T20X
Printer Specifications
Parameter Restrictions
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
449
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
450
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
451
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
452
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T60
Printer Specifications
Parameter Restrictions
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
453
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
454
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
type • Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.HRI_NONE (default)
addBarcode
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
455
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
type
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
addSymbol • Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
456
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T70
Printer Specifications
Parameter Restrictions
• Printer.MODEL_ANK
Printer lang • Printer.MODEL_CHINESE
• Printer.MODEL_TAIWAN
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
457
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
458
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
type • Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.HRI_NONE (default)
addBarcode
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
459
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
type
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
addSymbol • Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
460
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T70II
Printer Specifications
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang
• Printer.MODEL_TAIWAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
461
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
462
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
463
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
464
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T81II
Printer Specifications
Parameter Restrictions
• Printer.MODEL_CHINESE
Printer lang
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
465
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
466
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
type • Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.HRI_NONE (default)
addBarcode
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
467
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
type
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
addSymbol • Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
468
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T81III
Printer Specifications
Initial page mode area 420 x 831 dots 576 x 831 dots
Maximum page mode area 420 x 1662 dots 576 x 1662 dots
Parameter Restrictions
• Printer.MODEL_ANK
Printer lang • Printer.MODEL_CHINESE
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
469
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
470
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
471
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
472
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T82
Printer Specifications
Initial page mode area 420 x 831 dots 576 x 831 dots
Maximum page mode area 420 x 1662 dots 576 x 1662 dots
Parameter Restrictions
• Printer.MODEL_CHINESE
Printer lang
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
473
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
474
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
475
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
476
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T82II
Printer Specifications
Item Specification
Amount of initial feed 30 dots
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang
• Printer.MODEL_TAIWAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
477
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
478
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
479
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
480
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T82III
Printer Specifications
Parameter Restrictions
• Printer.MODEL_ANK
Printer lang • Printer.MODEL_CHINESE
• Printer.MODEL_TAIWAN
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
481
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
482
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
483
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
484
Chapter 4 Device Specifications - Printer-specific Support Information
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
485
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T82IIIL
Printer Specifications
Parameter Restrictions
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
486
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
487
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
488
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
489
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T82X
Printer Specifications
Initial page mode area 420 x 831 dots 576 x 831 dots
Maximum page mode area 420 x 1662 dots 576 x 1662 dots
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang
• Printer.MODEL_TAIWAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
490
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
491
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
492
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
493
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T83II
Printer Specifications
Item Specification
Amount of initial feed 30 dots
Parameter Restrictions
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
494
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
495
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
496
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
497
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T83III
Printer Specifications
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang
• Printer.MODEL_KOREAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
498
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
499
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
500
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
501
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T88V
Printer Specifications
Initial page mode area 360 x 831 dots 512 x 831 dots
Maximum page mode area 360 x 1662 dots 512 x 1662 dots
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang • Printer.MODEL_TAIWAN
• Printer.MODEL_KOREAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
502
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
• Printer.MODE_GRAY16
mode
• Printer. MODE_MONO_HIGH_DENSITY
addImage
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
503
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
504
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
505
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T88VI
Printer Specifications
Initial page mode area 360 x 831 dots 512 x 831 dots
Maximum page mode area 360 x 1662 dots 512 x 1662 dots
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang • Printer.MODEL_TAIWAN
• Printer.MODEL_KOREAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
506
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
• Printer.MODE_GRAY16
mode
• Printer. MODE_MONO_HIGH_DENSITY
addImage
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
507
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
508
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
509
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
510
Chapter 4 Device Specifications - Printer-specific Support Information
list -
• Printer.Setting.PaperWidth
type • Printer.Setting.PrintDensity
• Printer.Setting.PrintSpeed
• Printer.Setting.PaperWidth58_0
• Printer.Setting.PaperWidth80_0
• Printer.Setting.PrintDensityDIP
• Printer.Setting.PrintDensity70
• Printer.Setting.PrintDensity75
• Printer.Setting.PrintDensity80
• Printer.Setting.PrintDensity85
• Printer.Setting.PrintDensity90
• Printer.Setting.PrintDensity95
• Printer.Setting.PrintDensity100
• Printer.Setting.PrintDensity105
• Printer.Setting.PrintDensity110
setPrinterSetting • Printer.Setting.PrintDensity115
• Printer.Setting.PrintDensity120
• Printer.Setting.PrintDensity125
value
• Printer.Setting.PrintDensity130
• Printer.Setting.PrintSpeed1
• Printer.Setting.PrintSpeed2
• Printer.Setting.PrintSpeed3
• Printer.Setting.PrintSpeed4
• Printer.Setting.PrintSpeed5
• Printer.Setting.PrintSpeed6
• Printer.Setting.PrintSpeed7
• Printer.Setting.PrintSpeed8
• Printer.Setting.PrintSpeed9
• Printer.Setting.PrintSpeed10
• Printer.Setting.PrintSpeed11
• Printer.Setting.PrintSpeed12
• Printer.Setting.PrintSpeed13
• Printer.Setting.PrintSpeed14
listener -
printerModel • TM-T88VI
• -A
downloadFirmwareList option
• -B
listener -
511
Chapter 4 Device Specifications - Printer-specific Support Information
context -
data -
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang
• LineDisplay.PARAM_DEFAULT
addText • LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 19
y
• LineDisplay.PARAM_UNUSE
512
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T88VII
Printer Specifications
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang • Printer.MODEL_TAIWAN
• Printer.MODEL_KOREAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
reverse
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
513
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
• Printer.MODE_GRAY16
mode
• Printer. MODE_MONO_HIGH_DENSITY
addImage
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
514
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type • Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_CODE128_AUTO
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
addBarcode • Printer.BARCODE_GS1_DATABAR_LIMITED
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
515
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
516
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
517
Chapter 4 Device Specifications - Printer-specific Support Information
list -
• Printer.Setting.PaperWidth
type • Printer.Setting.PrintDensity
• Printer.Setting.PrintSpeed
• Printer.Setting.PaperWidth58_0
• Printer.Setting.PaperWidth80_0
• Printer.Setting.PrintDensityDIP
• Printer.Setting.PrintDensity70
• Printer.Setting.PrintDensity75
• Printer.Setting.PrintDensity80
• Printer.Setting.PrintDensity85
• Printer.Setting.PrintDensity90
• Printer.Setting.PrintDensity95
• Printer.Setting.PrintDensity100
• Printer.Setting.PrintDensity105
• Printer.Setting.PrintDensity110
• Printer.Setting.PrintDensity115
setPrinterSetting • Printer.Setting.PrintDensity120
• Printer.Setting.PrintDensity125
• Printer.Setting.PrintDensity130
value • Printer.Setting.PrintSpeed1
• Printer.Setting.PrintSpeed2
• Printer.Setting.PrintSpeed3
• Printer.Setting.PrintSpeed4
• Printer.Setting.PrintSpeed5
• Printer.Setting.PrintSpeed6
• Printer.Setting.PrintSpeed7
• Printer.Setting.PrintSpeed8
• Printer.Setting.PrintSpeed9
• Printer.Setting.PrintSpeed10
• Printer.Setting.PrintSpeed11
• Printer.Setting.PrintSpeed12
• Printer.Setting.PrintSpeed13
• Printer.Setting.PrintSpeed14
• Printer.Setting.PrintSpeed15
• Printer.Setting.PrintSpeed16
• Printer.Setting.PrintSpeed17
listener -
518
Chapter 4 Device Specifications - Printer-specific Support Information
context -
519
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T100
Printer Specifications
Parameter Restrictions
• Printer.MODEL_ANK
Printer lang
• Printer.MODEL_CHINESE
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
520
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
521
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
522
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
523
Chapter 4 Device Specifications - Printer-specific Support Information
Printer Specifications
Monochrome print-
576 x 738 dots 560 x 738 dots
Initial page mode area ing
Monochrome print-
576 x 1476 dots 560 x 1476 dots
Maximum page mode area ing
ANK: 16
Baseline of Font B
Chinese characters: 15 dots from the top of the character
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang • Printer.MODEL_TAIWAN
• Printer.MODEL_KOREAN
• Printer.MODEL_THAI
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
524
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
addTextStyle
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
• Printer.COLOR_2
color
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color • Printer.COLOR_2
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
• Printer.MODE_GRAY16
mode
addImage • Printer. MODE_MONO_HIGH_DENSITY
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
525
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
type • Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.HRI_NONE (default)
addBarcode
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
526
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
type • Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.LEVEL_0
• Printer.LEVEL_1
addSymbol • Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
527
Chapter 4 Device Specifications - Printer-specific Support Information
TM-U220
Printer Specifications
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang • Printer.MODEL_TAIWAN
• Printer.MODEL_KOREAN
• Printer.MODEL_THAI
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
528
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
addTextStyle
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
• Printer.COLOR_2
color
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color • Printer.COLOR_2
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
529
Chapter 4 Device Specifications - Printer-specific Support Information
530
Chapter 4 Device Specifications - Printer-specific Support Information
TM-U330
Printer Specifications
Parameter Restrictions
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
reverse
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
addTextStyle
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
• Printer.COLOR_2
color
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
531
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.COLOR_1
color • Printer.COLOR_2
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
532
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_CODE39
type
• Printer.BARCODE_CODE128
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
addBarcode • Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
data -
• Printer.SYMBOL_QRCODE_MODEL_1
type
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.LEVEL_L
addSymbol • Printer.LEVEL_M
• Printer.LEVEL_Q
level
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
533
Chapter 4 Device Specifications - Printer-specific Support Information
EU-m30
Printer Specifications
Initial page mode area 420 x 4800 dots 576 x 4800 dots
Maximum page mode area 420 x 4800 dots 576 x 4800 dots
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang
• Printer.MODEL_TAIWAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.FONT_A (default)
• Printer.FONT_B
addTextFont font
• Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
reverse
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
534
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
535
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type • Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_CODE128_AUTO
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font • Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
536
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
537
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
538
Chapter 4 Device Specifications - Printer-specific Support Information
list -
• Printer.Setting.PaperWidth
type • Printer.Setting.PrintDensity
• Printer.Setting.PrintSpeed
• Printer.Setting.PaperWidth58_0
• Printer.Setting.PaperWidth80_0
• Printer.Setting.PrintDensity70
• Printer.Setting.PrintDensity75
• Printer.Setting.PrintDensity80
• Printer.Setting.PrintDensity85
• Printer.Setting.PrintDensity90
• Printer.Setting.PrintDensity95
• Printer.Setting.PrintDensity100
• Printer.Setting.PrintDensity105
• Printer.Setting.PrintDensity110
setPrinterSetting • Printer.Setting.PrintDensity115
• Printer.Setting.PrintDensity120
• Printer.Setting.PrintDensity125
value
• Printer.Setting.PrintDensity130
• Printer.Setting.PrintSpeed1
• Printer.Setting.PrintSpeed2
• Printer.Setting.PrintSpeed3
• Printer.Setting.PrintSpeed4
• Printer.Setting.PrintSpeed5
• Printer.Setting.PrintSpeed6
• Printer.Setting.PrintSpeed7
• Printer.Setting.PrintSpeed8
• Printer.Setting.PrintSpeed9
• Printer.Setting.PrintSpeed10
• Printer.Setting.PrintSpeed11
• Printer.Setting.PrintSpeed12
• Printer.Setting.PrintSpeed13
listener -
539
Chapter 4 Device Specifications - Printer-specific Support Information
TM-P20
Printer Specifications
Item Specification
Amount of initial feed 30 dots
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang
• Printer.MODEL_TAIWAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
540
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
541
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
• Printer.BARCODE_GS1_DATABAR_EXPANDED
addBarcode
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
• Printer.FONT_C
font • Printer.FONT_D
• Printer.FONT_E
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
542
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
543
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_1
• Printer.PATTERN_2
• Printer.PATTERN_3
• Printer.PATTERN_4
• Printer.PATTERN_5
pattern
• Printer.PATTERN_6
• Printer.PATTERN_7
addSound • Printer.PATTERN_8
• Printer.PATTERN_9
• Printer.PATTERN_10
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
• 1000 to 25500
cycle
• Printer.PARAM_DEFAULT
• Printer.FEED_CUTTING
addFeedPosition position • Printer.FEED_CURRENT_TOF
• Printer.FEED_NEXT_TOF
544
Chapter 4 Device Specifications - Printer-specific Support Information
listener -
listener -
getPrinterSetting • Printer.Setting.PrintDensity
type
• Printer.Setting.PrintSpeed
listener -
545
Chapter 4 Device Specifications - Printer-specific Support Information
list -
• Printer.Setting.PrintDensity
type
• Printer.Setting.PrintSpeed
• Printer.Setting.PrintDensity70
• Printer.Setting.PrintDensity75
• Printer.Setting.PrintDensity80
• Printer.Setting.PrintDensity85
• Printer.Setting.PrintDensity90
• Printer.Setting.PrintDensity95
• Printer.Setting.PrintDensity100
• Printer.Setting.PrintDensity105
• Printer.Setting.PrintDensity110
setPrinterSetting • Printer.Setting.PrintDensity115
• Printer.Setting.PrintDensity120
value • Printer.Setting.PrintDensity125
• Printer.Setting.PrintDensity130
• Printer.Setting.PrintSpeed1
• Printer.Setting.PrintSpeed2
• Printer.Setting.PrintSpeed3
• Printer.Setting.PrintSpeed4
• Printer.Setting.PrintSpeed5
• Printer.Setting.PrintSpeed6
• Printer.Setting.PrintSpeed7
• Printer.Setting.PrintSpeed8
• Printer.Setting.PrintSpeed9
• Printer.Setting.PrintSpeed10
listener -
546
Chapter 4 Device Specifications - Printer-specific Support Information
TM-P60 (Receipt)
Printer Specifications
Initial page mode area 420 x 1200 dots 432 x 1200 dots
Maximum page mode area 420 x 1200 dots 432 x 1200 dots
Parameter Restrictions
• Printer.MODEL_ANK
Printer lang
• Printer.MODEL_TAIWAN
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
• Printer.FONT_B
addTextFont font
• Printer.FONT_C
• Printer.PARAM_DEFAULT
547
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
548
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
type • Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.HRI_NONE (default)
addBarcode • Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font • Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
549
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
550
Chapter 4 Device Specifications - Printer-specific Support Information
TM-P60 (Peeler)
Printer Specifications
Initial page mode area 420 x 1200 dots 432 x 1200 dots
Maximum page mode area 420 x 1200 dots 432 x 1200 dots
Parameter Restrictions
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
• Printer.FONT_B
addTextFont font
• Printer.FONT_C
• Printer.PARAM_DEFAULT
551
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
552
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
type • Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.HRI_NONE (default)
addBarcode • Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font • Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
553
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
554
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
555
Chapter 4 Device Specifications - Printer-specific Support Information
TM-P60II (Receipt)
Printer Specifications
Initial page mode area 432 x 1624 dots 400 x 1624 dots
Maximum page mode area 432 x 1624 dots 400 x 1624 dots
Parameter Restrictions
• Printer.MODEL_ANK
Printer lang
• Printer.MODEL_TAIWAN
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
• Printer.FONT_B
addTextFont font
• Printer.FONT_C
• Printer.PARAM_DEFAULT
556
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
557
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode • Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font • Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
558
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
559
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_1
• Printer.PATTERN_2
• Printer.PATTERN_3
• Printer.PATTERN_4
• Printer.PATTERN_5
pattern
• Printer.PATTERN_6
• Printer.PATTERN_7
addSound • Printer.PATTERN_8
• Printer.PATTERN_9
• Printer.PATTERN_10
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
• 1000 to 25500
cycle
• Printer.PARAM_DEFAULT
560
Chapter 4 Device Specifications - Printer-specific Support Information
TM-P60II (Peeler)
Printer Specifications
Initial page mode area 432 x 1624 dots 400 x 1624 dots
Maximum page mode area 432 x 1624 dots 400 x 1624 dots
Parameter Restrictions
• Printer.MODEL_ANK
Printer lang
• Printer.MODEL_TAIWAN
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
• Printer.FONT_B
addTextFont font
• Printer.FONT_C
• Printer.PARAM_DEFAULT
561
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
562
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode • Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font • Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
563
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
564
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_1
• Printer.PATTERN_2
• Printer.PATTERN_3
• Printer.PATTERN_4
• Printer.PATTERN_5
pattern
• Printer.PATTERN_6
• Printer.PATTERN_7
addSound • Printer.PATTERN_8
• Printer.PATTERN_9
• Printer.PATTERN_10
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
• 1000 to 25500
cycle
• Printer.PARAM_DEFAULT
565
Chapter 4 Device Specifications - Printer-specific Support Information
TM-P80
Printer Specifications
Item Specification
Amount of initial feed 30 dots
Parameter Restrictions
• Printer.MODEL_ANK
Printer lang
• Printer.MODEL_TAIWAN
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
566
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
567
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
568
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
569
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_1
• Printer.PATTERN_2
• Printer.PATTERN_3
• Printer.PATTERN_4
• Printer.PATTERN_5
pattern
• Printer.PATTERN_6
• Printer.PATTERN_7
addSound • Printer.PATTERN_8
• Printer.PATTERN_9
• Printer.PATTERN_10
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
• 1000 to 25500
cycle
• Printer.PARAM_DEFAULT
• Printer.FEED_CUTTING
addFeedPosition position • Printer.FEED_CURRENT_TOF
• Printer.FEED_NEXT_TOF
570
Chapter 4 Device Specifications - Printer-specific Support Information
571
Chapter 4 Device Specifications - Printer-specific Support Information
TM-H6000V
Printer Specifications
Endorse-
Valida- Endorse-
Item Receipt Slip ment
tion ment
(40cpl)
Amount of initial feed 30 dots 24 dots 18 dots
512 x 1662
Initial page mode area 540 x 1408 dots -
dots
512 x 2400
Maximum page mode area 540 x 1408 dots -
dots
21 dots 7 dots
from the from the
Baseline of Font A 9 dots from the top of the character
top of the top of the
character character
21 dots
from the
Baseline of Font B 9 dots from the top of the character -
top of the
character
18 dots
from the
Baseline of Font C -
top of the
character
Parameter Restrictions
• Printer.MODEL_ANK
Printer lang
• Printer.MODEL_TAIWAN
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
• Printer.FONT_B
addTextFont font
• Printer.FONT_C
• Printer.PARAM_DEFAULT
572
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
• Printer.MODE_GRAY16
mode
• Printer. MODE_MONO_HIGH_DENSITY
addImage
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
573
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode • Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font • Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
574
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
575
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
lineStyle • Printer.LINE_MEDIUM
• Printer.LINE_THICK
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• LineDisplay.DM_D110
displaySeries
LineDisplay • LineDisplay.DM_D210
context -
data -
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang
• LineDisplay.PARAM_DEFAULT
addText • LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 19
y
• LineDisplay.PARAM_UNUSE
576
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T20II-i
Printer Specifications
Initial page mode area 420 x 831 dots 576 x 831 dots
Maximum page mode area 420 x 1662 dots 576 x 1662 dots
Parameter Restrictions
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
577
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
578
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
579
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
580
Chapter 4 Device Specifications - Printer-specific Support Information
• 0
repeat • 1 to 255
• Printer.PARAM_DEFAULT
displaySeries • LineDisplay.DM_D110
LineDisplay
context -
data -
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang
• LineDisplay.PARAM_DEFAULT
addText • LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 19
y
• LineDisplay.PARAM_UNUSE
581
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T70-i
Printer Specifications
Parameter Restrictions
• Printer.MODEL_ANK
Printer lang • Printer.MODEL_CHINESE
• Printer.MODEL_TAIWAN
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
582
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
583
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
type • Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.HRI_NONE (default)
addBarcode
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
584
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
type
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
addSymbol • Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
displaySeries • LineDisplay.DM_D110
LineDisplay
context -
data -
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang
• LineDisplay.PARAM_DEFAULT
addText • LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 19
y
• LineDisplay.PARAM_UNUSE
585
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T82II-i
Printer Specifications
Item Specification
Amount of initial feed 30 dots
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang
• Printer.MODEL_TAIWAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
586
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
587
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
588
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
589
Chapter 4 Device Specifications - Printer-specific Support Information
• 0
repeat • 1 to 255
• Printer.PARAM_DEFAULT
displaySeries • LineDisplay.DM_D110
LineDisplay
context -
data -
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang
• LineDisplay.PARAM_DEFAULT
addText • LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 19
y
• LineDisplay.PARAM_UNUSE
590
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T83II-i
Printer Specifications
Item Specification
Amount of initial feed 30 dots
Parameter Restrictions
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
591
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage • Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
592
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
593
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
594
Chapter 4 Device Specifications - Printer-specific Support Information
• 0
repeat • 1 to 255
• Printer.PARAM_DEFAULT
displaySeries • LineDisplay.DM_D110
LineDisplay
context -
data -
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang
• LineDisplay.PARAM_DEFAULT
addText • LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 19
y
• LineDisplay.PARAM_UNUSE
595
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T88V-i
Printer Specifications
Initial page mode area 360 x 831 dots 512 x 831 dots
Maximum page mode area 360 x 1662 dots 512 x 1662 dots
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang • Printer.MODEL_TAIWAN
• Printer.MODEL_KOREAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
596
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
• Printer.MODE_GRAY16
mode
• Printer. MODE_MONO_HIGH_DENSITY
addImage
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
597
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
598
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
599
Chapter 4 Device Specifications - Printer-specific Support Information
• 0
repeat • 1 to 255
• Printer.PARAM_DEFAULT
displaySeries • LineDisplay.DM_D110
LineDisplay
context -
data -
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang
• LineDisplay.PARAM_DEFAULT
addText • LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 19
y
• LineDisplay.PARAM_UNUSE
600
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T88VI-iHUB
Printer Specifications
Initial page mode area 360 x 831 dots 512 x 831 dots
Maximum page mode area 360 x 1662 dots 512 x 1662 dots
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang • Printer.MODEL_TAIWAN
• Printer.MODEL_KOREAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
601
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
• Printer.MODE_GRAY16
mode
• Printer. MODE_MONO_HIGH_DENSITY
addImage
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
602
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
603
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
604
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.LINE_THIN
• Printer.LINE_MEDIUM
lineStyle
• Printer.LINE_THICK
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• Printer.PATTERN_NONE
• Printer.PATTERN_A
• Printer.PATTERN_B
• Printer.PATTERN_C
pattern • Printer.PATTERN_D
addSound • Printer.PATTERN_E
• Printer.PATTERN_ERROR
• Printer.PATTERN_PAPER_EMPTY
• Printer.PARAM_DEFAULT
• 1 to 255
repeat
• Printer.PARAM_DEFAULT
605
Chapter 4 Device Specifications - Printer-specific Support Information
list -
• Printer.Setting.PaperWidth
type • Printer.Setting.PrintDensity
• Printer.Setting.PrintSpeed
• Printer.Setting.PaperWidth58_0
• Printer.Setting.PaperWidth80_0
• Printer.Setting.PrintDensityDIP
• Printer.Setting.PrintDensity70
• Printer.Setting.PrintDensity75
• Printer.Setting.PrintDensity80
• Printer.Setting.PrintDensity85
• Printer.Setting.PrintDensity90
• Printer.Setting.PrintDensity95
• Printer.Setting.PrintDensity100
• Printer.Setting.PrintDensity105
• Printer.Setting.PrintDensity110
setPrinterSetting • Printer.Setting.PrintDensity115
• Printer.Setting.PrintDensity120
• Printer.Setting.PrintDensity125
value
• Printer.Setting.PrintDensity130
• Printer.Setting.PrintSpeed1
• Printer.Setting.PrintSpeed2
• Printer.Setting.PrintSpeed3
• Printer.Setting.PrintSpeed4
• Printer.Setting.PrintSpeed5
• Printer.Setting.PrintSpeed6
• Printer.Setting.PrintSpeed7
• Printer.Setting.PrintSpeed8
• Printer.Setting.PrintSpeed9
• Printer.Setting.PrintSpeed10
• Printer.Setting.PrintSpeed11
• Printer.Setting.PrintSpeed12
• Printer.Setting.PrintSpeed13
• Printer.Setting.PrintSpeed14
listener -
printerModel • TM-T88VI-iHUB
• -A
downloadFirmwareList option
• -B
listener -
606
Chapter 4 Device Specifications - Printer-specific Support Information
context -
data -
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang
• LineDisplay.PARAM_DEFAULT
addText • LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 19
y
• LineDisplay.PARAM_UNUSE
607
Chapter 4 Device Specifications - Printer-specific Support Information
TM-U220-i
Printer Specifications
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang • Printer.MODEL_TAIWAN
• Printer.MODEL_KOREAN
• Printer.MODEL_THAI
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
608
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
addTextStyle
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
• Printer.COLOR_2
color
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color • Printer.COLOR_2
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
mode • Printer. MODE_MONO_HIGH_DENSITY
addImage
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
609
Chapter 4 Device Specifications - Printer-specific Support Information
data -
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang
• LineDisplay.PARAM_DEFAULT
addText • LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 19
y
• LineDisplay.PARAM_UNUSE
610
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T70II-DT
Printer Specifications
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang
• Printer.MODEL_TAIWAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
611
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
• Printer.MODE_GRAY16
mode
• Printer. MODE_MONO_HIGH_DENSITY
addImage
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
612
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
613
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
614
Chapter 4 Device Specifications - Printer-specific Support Information
• 0
repeat • 1 to 255
• Printer.PARAM_DEFAULT
• LineDisplay.DM_D110
displaySeries
LineDisplay • LineDisplay.DM_D30
context -
data -
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang
• LineDisplay.PARAM_DEFAULT
addText • LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 19
y
• LineDisplay.PARAM_UNUSE
615
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T70II-DT2
Printer Specifications
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang
• Printer.MODEL_TAIWAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
616
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
• Printer.MODE_GRAY16
mode
• Printer. MODE_MONO_HIGH_DENSITY
addImage
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
617
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
618
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
619
Chapter 4 Device Specifications - Printer-specific Support Information
• 0
repeat • 1 to 255
• Printer.PARAM_DEFAULT
• LineDisplay.DM_D110
displaySeries • LineDisplay.DM_D30
LineDisplay
• LineDisplay.DM_D70
context -
data -
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang
• LineDisplay.PARAM_DEFAULT
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
620
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T88V-DT
Printer Specifications
Initial page mode area 360 x 831 dots 512 x 831 dots
Maximum page mode area 360 x 1662 dots 512 x 1662 dots
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang • Printer.MODEL_TAIWAN
• Printer.MODEL_KOREAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
621
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
• Printer.MODE_GRAY16
mode
• Printer. MODE_MONO_HIGH_DENSITY
addImage
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
622
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
623
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
624
Chapter 4 Device Specifications - Printer-specific Support Information
• 0
repeat • 1 to 255
• Printer.PARAM_DEFAULT
• LineDisplay.DM_D110
displaySeries
LineDisplay • LineDisplay.DM_D30
context -
data -
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang
• LineDisplay.PARAM_DEFAULT
addText • LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 19
y
• LineDisplay.PARAM_UNUSE
625
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T88VI-DT2
Printer Specifications
Initial page mode area 360 x 831 dots 512 x 831 dots
Maximum page mode area 360 x 1662 dots 512 x 1662 dots
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang • Printer.MODEL_TAIWAN
• Printer.MODEL_KOREAN
• Printer.MODEL_SOUTHASIA
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
626
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
• Printer.MODE_GRAY16
mode
• Printer. MODE_MONO_HIGH_DENSITY
addImage
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
627
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
628
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
type • Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
• Printer.SYMBOL_AZTECCODE_FULLRANGE
• Printer.SYMBOL_AZTECCODE_COMPACT
• Printer.SYMBOL_DATAMATRIX_SQUARE
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
addSymbol
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
• Printer.SYMBOL_DATAMATRIX_RECTANGLE_16
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
level
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Integer from 5 to 95
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
629
Chapter 4 Device Specifications - Printer-specific Support Information
• 0
repeat • 1 to 255
• Printer.PARAM_DEFAULT
• LineDisplay.DM_D110
displaySeries • LineDisplay.DM_D30
LineDisplay
• LineDisplay.DM_D70
context -
data -
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang
• LineDisplay.PARAM_DEFAULT
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
630
Chapter 4 Device Specifications - Printer-specific Support Information
TM-H6000IV-DT
Printer Specifications
Initial page mode area 360 x 831 dots 512 x 831 dots
Maximum page mode area 360 x 1662 dots 512 x 1662 dots
Parameter Restrictions
• Printer.MODEL_CHINESE
Printer lang
• Printer.MODEL_TAIWAN
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
631
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
• Printer.MODE_GRAY16
mode
• Printer. MODE_MONO_HIGH_DENSITY
addImage
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
632
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
633
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
• LineDisplay.DM_D110
displaySeries
LineDisplay • LineDisplay.DM_D30
context -
634
Chapter 4 Device Specifications - Printer-specific Support Information
• LineDisplay.LANG_EN (default)
• LineDisplay.LANG_JA
lang
• LineDisplay.PARAM_DEFAULT
addText • LineDisplay.PARAM_UNUSE
• Integer from 1 to 44
x
• LineDisplay.PARAM_UNUSE
• Integer from 1 to 19
y
• LineDisplay.PARAM_UNUSE
635
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T88IV
Printer Specifications
Monochrome print-
360 x 831 dots 512 x 831 dots
Initial page mode area ing
Monochrome print-
360 x 1662 dots 512 x 1662 dots
Maximum page mode area ing
Parameter Restrictions
• Printer.MODEL_ANK
Printer lang • Printer.MODEL_CHINESE
• Printer.MODEL_TAIWAN
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
636
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
addTextStyle
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
• Printer.COLOR_2
color
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color • Printer.COLOR_2
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
• Printer.MODE_GRAY16
mode
addImage • Printer. MODE_MONO_HIGH_DENSITY
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
637
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
type • Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.HRI_NONE (default)
addBarcode
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
638
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
type
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
addSymbol • Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
639
Chapter 4 Device Specifications - Printer-specific Support Information
TM-T90
Printer Specifications
Monochrome print-
420 x 738 dots 384 x 831 dots 576 x 738 dots
Initial page mode area ing
Two-color printing 420 x 369 dots 384 x 415 dots 576 x 369 dots
Monochrome print-
420 x 1476 dots 384 x 1662 dots 576 x 1476 dots
Maximum page mode area ing
Two-color printing 420 x 738 dots 384 x 831 dots 576 x 738 dots
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang • Printer.MODEL_TAIWAN
• Printer.MODEL_KOREAN
• Printer.MODEL_THAI
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
• Printer.FONT_B
addTextFont font
• Printer.FONT_C
• Printer.PARAM_DEFAULT
640
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
addTextStyle
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
• Printer.COLOR_2
color
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color • Printer.COLOR_2
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
• Printer.MODE_GRAY16
mode
addImage • Printer. MODE_MONO_HIGH_DENSITY
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
641
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
type • Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.HRI_NONE (default)
addBarcode • Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font • Printer.FONT_C
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
data -
• Printer.SYMBOL_PDF417_STANDARD
type
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
addSymbol • Printer.LEVEL_3
• Printer.LEVEL_4
level • Printer.LEVEL_5
• Printer.LEVEL_6
• Printer.LEVEL_7
• Printer.LEVEL_8
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
642
Chapter 4 Device Specifications - Printer-specific Support Information
643
Chapter 4 Device Specifications - Printer-specific Support Information
TM-L90
Printer Specifications
Monochrome print-
576 x 738 dots 560 x 738 dots
Initial page mode area ing
Monochrome print-
576 x 1476 dots 560 x 1476 dots
Maximum page mode area ing
ANK: 16
Baseline of Font B
Chinese characters: 15 dots from the top of the character
Parameter Restrictions
• Printer.MODEL_ANK
• Printer.MODEL_CHINESE
Printer lang • Printer.MODEL_TAIWAN
• Printer.MODEL_KOREAN
• Printer.MODEL_THAI
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
644
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
addTextStyle
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
• Printer.COLOR_2
color
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color • Printer.COLOR_2
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
• Printer.MODE_GRAY16
mode
addImage • Printer. MODE_MONO_HIGH_DENSITY
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
645
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
type • Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.HRI_NONE (default)
addBarcode
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
646
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
type • Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
• Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.LEVEL_0
• Printer.LEVEL_1
addSymbol • Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
647
Chapter 4 Device Specifications - Printer-specific Support Information
TM-H6000IV
Printer Specifications
Initial page mode area 360 x 831 dots 512 x 831 dots
Maximum page mode area 360 x 1662 dots 512 x 1662 dots
Parameter Restrictions
• Printer.MODEL_CHINESE
Printer lang
• Printer.MODEL_TAIWAN
context -
• Printer.LANG_EN (default)
• Printer.LANG_JA
• Printer.LANG_ZH_CN
• Printer.LANG_ZH_TW
addTextLang lang
• Printer.LANG_KO
• Printer.LANG_TH
• Printer.LANG_VI
• Printer.PARAM_DEFAULT
• Printer.FONT_A (default)
addTextFont font • Printer.FONT_B
• Printer.PARAM_DEFAULT
648
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.TRUE
• Printer.FALSE (default)
ul
• Printer.PARAM_UNSPECIFIED
addTextStyle • Printer.PARAM_DEFAULT
• Printer.TRUE
• Printer.FALSE (default)
em
• Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
• Printer.COLOR_1 (default)
color • Printer.PARAM_UNSPECIFIED
• Printer.PARAM_DEFAULT
data -
• Printer.COLOR_1
color
• Printer.PARAM_DEFAULT
• Printer.MODE_MONO
• Printer.MODE_GRAY16
mode
• Printer. MODE_MONO_HIGH_DENSITY
addImage
• Printer.PARAM_DEFAULT
• Printer.HALFTONE_DITHER
• Printer.HALFTONE_ERROR_DIFFUSION
halftone
• Printer.HALFTONE_THRESHOLD
• Printer.PARAM_DEFAULT
• Printer.COMPRESS_DEFLATE
• Printer.COMPRESS_NONE
compress
• Printer.COMPRESS_AUTO
• Printer.PARAM_DEFAULT
649
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.BARCODE_UPC_A
• Printer.BARCODE_UPC_E
• Printer.BARCODE_EAN13
• Printer.BARCODE_JAN13
• Printer.BARCODE_EAN8
• Printer.BARCODE_JAN8
• Printer.BARCODE_CODE39
• Printer.BARCODE_ITF
type
• Printer.BARCODE_CODABAR
• Printer.BARCODE_CODE93
• Printer.BARCODE_CODE128
• Printer.BARCODE_GS1_128
• Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
• Printer.BARCODE_GS1_DATABAR_TRUNCATED
• Printer.BARCODE_GS1_DATABAR_LIMITED
addBarcode
• Printer.BARCODE_GS1_DATABAR_EXPANDED
• Printer.HRI_NONE (default)
• Printer.HRI_ABOVE
• Printer.HRI_BELOW
hri
• Printer.HRI_BOTH
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.FONT_A (default)
• Printer.FONT_B
font
• Printer.PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Integer from 2 to 6
width
• Printer.PARAM_UNSPECIFIED
650
Chapter 4 Device Specifications - Printer-specific Support Information
• Printer.SYMBOL_PDF417_STANDARD
• Printer.SYMBOL_PDF417_TRUNCATED
• Printer.SYMBOL_QRCODE_MODEL_1
• Printer.SYMBOL_QRCODE_MODEL_2
• Printer.SYMBOL_MAXICODE_MODE_2
• Printer.SYMBOL_MAXICODE_MODE_3
type • Printer.SYMBOL_MAXICODE_MODE_4
• Printer.SYMBOL_MAXICODE_MODE_5
• Printer.SYMBOL_MAXICODE_MODE_6
• Printer.SYMBOL_GS1_DATABAR_STACKED
• Printer.SYMBOL_GS1_DATABAR_STACKED_
OMNIDIRECTIONAL
• Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
addSymbol • Printer.LEVEL_0
• Printer.LEVEL_1
• Printer.LEVEL_2
• Printer.LEVEL_3
• Printer.LEVEL_4
• Printer.LEVEL_5
• Printer.LEVEL_6
level • Printer.LEVEL_7
• Printer.LEVEL_8
• Printer.LEVEL_L
• Printer.LEVEL_M
• Printer.LEVEL_Q
• Printer.LEVEL_H
• Printer. PARAM_DEFAULT
• Printer.PARAM_UNSPECIFIED
• Printer.CUT_FEED
addCut type • Printer.CUT_NO_FEED
• Printer.PARAM_DEFAULT
651
Chapter 4 Device Specifications - Usage restriction by firmware version
❏ Supported by TM-DT software Ver. 2.5 and TM-i firmware 4.1 or later.
❏ Supported by TM-DT software Ver. 3.02 and TM-i firmware 4.4 or later.
MSR class - - -
OtherPeripheral class - - -
Discovery.TYPE_POS_KEYBOARD
Discovery.TYPE_OTHER_PERIPHERAL
652
Chapter 4 Device Specifications - Usage restriction by firmware version
addCreateScreen - -
addCreateScreenCustom - -
addCreateTextArea - -
addDestroyTextArea - -
addSetCurrentTextArea - -
addClearCurrentTextArea - -
lang LineDisplay.LANG_MULTII
r -
addText
g -
LineDisplay class
b -
addBackgroundColor - -
addStartSlideShow - -
addStopSlideShow - -
addDownloadImage - -
addRegisterDownloadImage - -
addNVImage - -
addClearImage - -
addSymbol - -
addClearSymbol - -
TM-m30
❏ Supported by TM-m30 firmware Ver. 1.40 ESC/POS or later.
653
Chapter 4 Device Specifications - Usage restriction by firmware version
TM-m30II-H/TM-m30II-NT/TM-m30II-S/TM-m30II-SL
❏ Supported by Firmware Ver.3.06A/3.06B ESC/POS or later.
addCreateScreen - -
addCreateScreenCustom - -
addCreateTextArea - -
addDestroyTextArea - -
addSetCurrentTextArea - -
addClearCurrentTextArea - -
lang LineDisplay.LANG_MULTI
r -
addText
g -
LineDisplay class
b -
addBackgroundColor - -
addStartSlideShow - -
addStopSlideShow - -
addDownloadImage - -
addRegisterDownloadImage - -
addNVImage - -
addClearImage - -
addSymbol - -
addClearSymbol - -
TM-T88VI
❏ Supported by TM-T88VI firmware Ver. 40.50 ESC/POS or later.
654
Chapter 4 Device Specifications - Usage restriction by firmware version
TM-T88VI-iHUB
❏ Supported with the following versions of firmware.
• TM-T88VI-iHUB firmware Ver. 50.52A ESC/POS or later
• TM-T88VI-iHUB firmware Ver. 50.52B ESC/POS or later
655
Chapter 5 Sample Programs - Functionality
Sample Programs
The sample programs provided with Epson ePOS SDK for Android are implementation samples of Android
applications.
Android Studio Android application projects that include the Java source files are provided.
The provided sample programs were created with sample API Level 14.
Functionality
The sample programs provide the following functionality.
ePOS2Printer
❏ Printer search and specification
• Specifies the connection type.
• Displays a list of search results.
• Retrieves target information required for the connection selected from the search results.
❏ Sample receipt printing
❏ Sample coupon printing
❏ Printer status confirmation
• Confirms the status of printers before printing.
• When the printer is not capable of printing, the program generates a notification message of the possible causes and
corresponding action of the error.
❏ Display of print results and printer status
• Sends notification of the print result after printing.
• The program generates a message corresponding to the printer status at the time that the printer result notification
was made.
• Notifies the users of an API error that occurred while searching for printers, or during printing sample receipts or cou-
pons.
❏ Log Output Settings
• Enables log output to terminal storage when displaying the main screen.
❏ Acquiring and setting the printer set values
656
Chapter 5 Sample Programs - Functionality
ePOS2Discovery
❏ Filter Option settings
❏ Search of printers and peripheral devices
❏ Search initiation
❏ Display of search results
❏ Search completion
❏ Error notification
• Notifies the users of an API error that occurred when starting a search, during searching, or in the process of completing
a search.
ePOS2LineDisplay
❏ Display of the specified text on the customer display
❏ Turns on or off the blinking display
❏ Error notification
• When failed to connect to the customer display, notifies the user of the connection error.
• Notifies the users of an API error that occurred while sending display data to the customer display.
657
Chapter 5 Sample Programs - Functionality
ePOS2Keyboard
❏ Starts and ends connection with the printer
• Connects to the specified keyboard.
• When failed to connect to the keyboard, notifies the user of the connection error.
❏ Display of text input with the keyboard in text boxes in the application
❏ Error notification
• Notifies the users of an API error that occurred while entering text with the keyboard.
ePOS2POSKeyboard
❏ Starts and ends connection with TM-DT
• Connects to the specified keyboard.
• When failed to connect to the keyboard, notifies the user of the connection error.
❏ Display of keycode input with the keyboard in text boxes in the application
❏ Error notification
• Notifies the users of an API error that occurred while entering keycode with the keyboard.
ePOS2BarcodeScanner
❏ Starts and ends connection with the printer
• Connects to a barcode scanner specified.
• When failed to connect to the barcode scanner, notifies the user of the connection error.
❏ Display of data read by the barcode scanner in text boxes in the application
❏ Error notification
• Notifies the users of an API error that occurred while reading data with the barcode scanner.
ePOS2MSR
❏ Starts and ends connection with TM-DT
• Starts connection with the MSR specified in the Target text boxes.
• Ends connection with the connected MSR.
❏ Display of data read by the MSR in text boxes in the application
❏ Error notification
• Notifies the users of an API error that occurred while reading data with the MSR.
658
Chapter 5 Sample Programs - Functionality
ePOS2SimpleSerial
❏ Starts and ends connection with the printer
• Connects to the specified serial communication device.
• When failed to connect to the serial communication device, notifies the user of the connection error.
❏ Transmission of data specified by the application to the serial communication device.
❏ Display of response commands from the serial communication device in the application
❏ Error notification
• Notifies the users of an API error that occurred while sending data to the serial communication device.
ePOS2GermanyFiscalElement
❏ Peripheral device settings
• Searches for the printer, and displays the search results in a list.
• Specifies the printer to be used.
• Specifies the German fiscal element (TSE) to be used.
• Specifies the customer display to be used.
• Sets up German fiscal element (TSE) to be used.
❏ Purchase of a product
• A product is selected by pushing a button.
• The barcode is read by the barcode scanner, and the product is selected.
• Displays the price of the selected product on the customer display.
• Writes the information of the selected product to German fiscal element (TSE).
❏ Payment for a product
• Displays the total price of the products on the customer display.
• Prints the receipt.
• Writes the information of the product for which payment is finished to German fiscal element (TSE).
❏ Export from German fiscal element (TSE)
• Exports the information written to German fiscal element (TSE).
❏ Information acquisition from German fiscal element (TSE)
• Acquires the information of German fiscal element (TSE).
❏ Printer firmware update
• Acquires the firmware version of the connected printer.
• Acquires the released version of printer firmware.
• Updates the printer firmware.
659
Chapter 5 Sample Programs - Functionality
ePOS2OtherPeripheral
❏ Starts and ends connection with TM-DT
• Starts connection with the device specified in the Target text boxes.
• Ends connection with connected device.
❏ Transmission of JSON data specified by the application to the device
❏ Display of response commands from the device in the text boxes
❏ Error notification
• Notifies the users of an API error that occurred at the timing when the process was run by the device.
ePOS2CommBox
❏ Starts and ends connection with the printer
• Connects to the communication box specified.
• When failed to connect to the communication box, notifies the user of the connection error.
❏ Transmission of messages to the member ID specified by the application
❏ Error notification
• Notifies the users of an API error that occurred when sending a message.
ePOS2EasySelect
❏ Easy connection with a printer by using its NFC tag or QR code.
• Acquires printer information from the NFC tag.
• Acquires printer information from the QR code.
• Opens the port by using the acquired printer information.
❏ Printing of a QR code that enables easy printer selection.
• Creates a QR code that contains the printer information from the printer search result.
660
Chapter 5 Sample Programs - Use Environment
Use Environment
Refer to Epson ePOS SDK for Android Development Environment and Application Operating Environment.
Installation Procedure
1 Extract the sample programs from the zip file and store the extracted files at any desired
location.
2 Start Android Studio and click Open an existing Android Studio Project.
661
Chapter 5 Sample Programs - Installation Procedure
3 Select a sample program you want to install from the sample programs you stored at
step 1, and then click OK.
662
Chapter 5 Sample Programs - Installation Procedure
663
Chapter 6 Application Guide - To connect via USB
Application Guide
To connect via USB
For a USB interface, we recommend obtaining access permission to USB devices in the application software.
To open a port using the connect without obtaining access permission to USB devices in advance, note the
following:
• When [OK] is pressed in the dialog box for access permission acquisition, it takes about 10 seconds to
open a port.
• When [Cancel] is pressed in the dialog box for access permission acquisition, the state of waiting for the
timeout lasts for 30 seconds.
664
Chapter 6 Application Guide - To search printers
To search printers
Starts searching
FilterOption filterOption = null;
filterOption = new FilterOption();
Starts searching
try {
Discovery.start(mContext, filterOption, mDiscoveryListener);
}
catch (Exception e) {
//Displays error messages
}
Notifies the detected devices
private DiscoveryListener mDiscoveryListener = new DiscoveryListener() {
@Override
public void onDiscovery(final DeviceInfo deviceInfo) {
runOnUiThread(new Runnable() {
@Override
public synchronized void run() {
//Display the detected device in the application software
}
});
}
};
Stops searching
private void stopDiscovery() {
try {
Discovery.stop();
}
catch (Epos2Exception e) {
//Displays error messages
}
}
665
Chapter 6 Application Guide - To monitor continuously
To monitor continuously
When application starts
Printer printer = null;
try {
printer = new Printer(printer.TM_T88, printer.MODEL_ANK, this);
}
catch (Exception e) {
//Displays error messages
}
printer.setStatusChangeEventListener(this);
try {
printer.connect("TCP:192.168.192.168", printer.PARAM_DEFAULT);
}
catch (Exception e) {
//Displays error messages
}
try {
printer.setInterval(3000);
printer.startMonitor();
}
catch (Exception e) {
//Displays error messages
}
Repeats
//Buffers the print data(addText..)
//Sends the print data (sendData)
666
Chapter 6 Application Guide - To monitor continuously
Refer to Error Status and countermeasures for the messages displayed on "Displays notification messages".
667
Chapter 6 Application Guide - To use the same printer from multiple mobile devices
The diagram below shows the process flow for controlling a TM printer.
1 : connect
3 : sendData
5 : disconnect
Printing processing
SUCCESS
6 : disconnect
668
Chapter 6 Application Guide - To specify a transaction
To specify a transaction
Put the set of print processing to be carried out consecutively (such as a single receipt or a single coupon)
between beginTransaction and endTransaction.
Application Printer
1 : connect
Transaction 2 : beginTransaction
3 : sendData
Printing processing
4 : sendData
Printing processing
5 : endTransaction
6 : disconnect
669
Chapter 6 Application Guide - To reconnect to the network automatically
The following uses a case where the barcode scanner is used as an example.
Printer Barcode
Applications Scanner
1: BarcodeScanner
2: setConnectionEventListener
4: connect
4.1: Cmd
Establishes the communication path
5: Device open
6: Scan
Network is cut off
7: disconnect
7.1: Cmd
Disconnects the communication path
8: Device close
9: Disconnection event
Notify the disconnection
670
Chapter 6 Application Guide - To transmit and receive the data between applications
1: CommBox
2: setReceiveEventListener
1: CommBox
Acquires
CommboxManager object
3: connect
3: connect
671
Chapter 6 Application Guide - To transmit and receive the data between applications
4: sendData
4.1: Designates client to forward the data to
Sends data
Forwards data
4.2: Message received event
Forwards data
5: disconnect
5: disconnect
5: disconnect
672
Chapter 6 Application Guide - To perform forward printing
1: sendData
1.1: Cmd
1.1.1: Print
If a request is sent to the printer equipped with the spooler function from the application when the spooler
function is enabled, the print job is stored in the print queue and a response is returned to the application before
printing completes.
1: sendData
1.1: send
2: Cmd
2.1: Print
Printing results
3: requestPrintJobStatus(printjobid)
3.1: requestPrintJobStatus
673
Chapter 6 Application Guide - To perform forward printing
If the destination printer cannot print, the printer equipped with the spooler function does not return the error
to the application. Enabling forward printing will allow for the printing task to be completed on a substitute
printer, with the application acquiring the printing results afterward. Refer to the sequence diagram below.
Printer equipped with Forwarding
Applications the spooler function Spooler Printer printer
1: sendData
1.1: send
2: Cmd
2.1: Print
674
Chapter 6 Application Guide - To select a printer using its NFC tag
Printer printer;
@Override
protected void onNewIntent(Intent intent) {
try {
// Initializes the Printer
printer = new Printer(printerSeries, Printer.MODEL_ANK, getApplicationContext());
// Exception processing
} catch (Epos2Exception e) {
// Write exception processing
}
}
675
Chapter 6 Application Guide - To select a printer using its NFC tag
if(printerName.equals("TM-T88V")){
printerSeries = Printer.TM_T88;
}else if(printerName.equals("TM-m10")){
printerSeries = Printer.TM_M10;
}else if(printerName.equals("TM-m30")){
printerSeries = Printer.TM_M30;
}else if(printerName.equals("TM-P20")){
printerSeries = Printer.TM_P20;
}else if(printerName.equals("TM-P60II")){
printerSeries = Printer.TM_P60II;
}else if(printerName.equals("TM-P80")){
printerSeries = Printer.TM_P80;
}else{
// Depending on the printer, add conversion processes
}
return printerSeries;
}
switch(easySelectInfo.deviceType){
case EasySelectDeviceType.TCP:
sb.append("TCP:");
break;
case EasySelectDeviceType.BLUETOOTH:
sb.append("BT:");
break;
}
sb.append(easySelectInfo.macAddress);
return sb.toString();
}
676
Chapter 6 Application Guide - To select a printer using its QR code
try {
// Initializes the Printer
printer = new Printer(printerSeries, Printer.MODEL_ANK, getApplicationContext());
// Exception processing
} catch (Epos2Exception e) {
// Write exception processing
}
}
if(printerName.equals("TM-T88V")){
printerSeries = Printer.TM_T88;
}else if(printerName.equals("TM-m10")){
printerSeries = Printer.TM_M10;
}else if(printerName.equals("TM-m30")){
printerSeries = Printer.TM_M30;
}else if(printerName.equals("TM-P20")){
printerSeries = Printer.TM_P20;
}else if(printerName.equals("TM-P60II")){
printerSeries = Printer.TM_P60II;
}else if(printerName.equals("TM-P80")){
printerSeries = Printer.TM_P80;
}else{
// Depending on the printer, add conversion processes
}
return printerSeries;
}
677
Chapter 6 Application Guide - To select a printer using its QR code
switch(easySelectInfo.deviceType){
case EasySelectDeviceType.TCP:
sb.append("TCP:");
break;
case EasySelectDeviceType.BLUETOOTH:
sb.append("BT:");
break;
}
sb.append(easySelectInfo.macAddress);
return sb.toString();
}
For the printers that can print the QR code on a status sheet
Some printers can print the QR code on a status sheet. For more details, refer to the Technical Reference Guide of
the printer.
For the printers that cannot print the QR code on a status sheet
Create the QR code by using createQR. Specify the created data by addSymbol to print the QR code.
Refer to "Creating QR code" in the Sample Programs.
678
Chapter 6 Application Guide - To perform check process
SinglePass
Check process start
initWithLang
connect
Preprocess
startMonitor
beginTransaction
readMicrData
Slip sheet
insertion
selectPaperType(ENDORSE)
sendData
Endorsement Endorsement
print print
onHybdReceive(SENDDATA)
selectPaperType(SLIP)
sendData
Slip print
Slip print
onHybdReceive(SENDDATA)
679
Chapter 6 Application Guide - To perform check process
ejectPaper
Remove
slip sheet
onHybdStatusChange
(SLIP_PAPER_EMPTY)
endTransaction
stopMonitor
Postprocess
disconnect
680
Chapter 6 Application Guide - To control multiple peripheral devices
• To connect/disconnect communication with the printer or peripheral devices, call connect API/
disconnect API from one thread to each peripheral device in order.
• The following process can be processed concurrently in one thread.
∗ Displaying data on the customer display
∗ Receipt printing
Application Customer
Printer display
new
Other thread
connect
connect
connected
sendData
sendData
onDispReceive
onPtrReceive
payed
new
Other thread
disconnect
disconnect
disconnected
681
Chapter 6 Application Guide - To control multiple peripheral devices
• To connect/disconnect communication with the printer or peripheral devices, call connect API/
disconnect API from one thread to each peripheral device in order.
• The following process can be processed concurrently in one thread.
∗ Displaying data on the customer display
∗ Receipt printing
Application Customer
Printer display
new
Other thread
connect
connect
connected
sendData
sendData
onDispReceive
onPtrReceive
payed
new
Other thread
disconnect
disconnect
disconnected
682
Chapter 6 Application Guide - To update the printer firmware version
onFirmwareListDownload
onFirmwareUpdate
write the firmware image
reboot
connect
connect
verifyUpdate
verify
onUpdateVerify
683
Appendix - Open Source Software Licensing
Appendix
Open Source Software Licensing
The following open-source software is used in the sample programs and libraries provided by the Epson ePOS
SDK for Android.
Sample Programs
ZXing(https://github.com/zxing/zxing)
ZXing is licensed based on Apache 2.0 license (http://www.apache.org/licenses/LICENSE-2.0.html).
libraries
libxml2
Except where otherwise noted in the source code (e.g. the files hash.c, list.c and the trio files, which are covered
by a similar license but with different Copyright notices) all the files are:
Copyright (C) 1998-2003 Daniel Veillard. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of
the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE DANIEL VEILLARD BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of Daniel Veillard shall not be used in advertising or otherwise to
promote the sale, use or other dealings in this Software without prior written authorization from him.
icu4c
ICU License - ICU 1.8.1 and later
COPYRIGHT AND PERMISSION NOTICE
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
684
Appendix - Open Source Software Licensing
rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Software, and to permit persons
to whom the Software is furnished to do so, provided that the above copyright notice(s) and this permission
notice appear in all copies of the Software and that both the above copyright notice(s) and this permission
notice appear in supporting documentation.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL
DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to
promote the sale, use or other dealings in this Software without prior written authorization of the copyright
holder.
zlib
zlib.h -- interface of the 'zlib' general purpose compression library
version 1.2.8, April 28th, 2013
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held
liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to
alter it and redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original
software. If you use this software in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the
original software.
3. This notice may not be removed or altered from any source distribution.
The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files
http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
685
Appendix - Open Source Software Licensing
LICENSE ISSUES
==============
The OpenSSL toolkit stays under a dual license, i.e. both the conditions of
the OpenSSL License and the original SSLeay license apply to the toolkit.
See below for the actual license texts.
OpenSSL License
---------------
/* ====================================================================
* Copyright (c) 1998-2016 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. All advertising materials mentioning features or use of this
* software must display the following acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
*
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For written permission, please contact
* openssl-core@openssl.org.
*
* 5. Products derived from this software may not be called "OpenSSL"
* nor may "OpenSSL" appear in their names without prior written
* permission of the OpenSSL Project.
*
* 6. Redistributions of any form whatsoever must retain the following
* acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit (http://www.openssl.org/)"
*
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
686
Appendix - Open Source Software Licensing
687
Appendix - Open Source Software Licensing
688