没有合适的资源?快使用搜索试试~ 我知道了~
ePOS_SDK_Android_um_en_revG文档1
需积分: 0 0 下载量 57 浏览量
2022-08-04
13:01:48
上传
评论
收藏 7.34MB PDF 举报
温馨提示
试读
306页
Epson ePOS SDK for AndroidUnauthorized duplication, copying, reproduction, or mo
资源详情
资源评论
资源推荐
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 or Google Inc.
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.
Other company names or product names are trademarks or registered trademarks of their respective companies.
ESC/POS® Command System
Epson has embarked on a global initiative by developing ESC/POS, a unique POS printer command system. ESC/
POS contains a wealth of unique commands, many of which are patent-protected. Our system enables the con-
figuration of versatile POS systems with a high level of scalability. In addition to being compatible with most
Epson POS printers and displays, the flexibility provided by this unique control system facilitates ease of future
upgrades. This functionality and convenience of use are appreciated around the world.
© Seiko Epson Corporation 2015-2017. All rights reserved.
3
Safety Precautions
Meaning of Symbols
The following symbols are used in this manual. Make sure to understand the meaning of these symbols before
using the product.
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.
About this Manual
Purpose of this Manual
This manual provides the information necessary to develop applications using Epson ePOS SDK for Android.
Organization of this Manual
This manual is organized into the following chapters.
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.
Describes additional explanation or other useful information.
Chapter 1 Functionality
Chapter 2 How to Use
Chapter 3 API Reference
Chapter 4 Device Specifications
Chapter 5 Sample Programs
Chapter 6 Application Guide
Appendix Open Source Software Licensing
4
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 ................................................................................10
■ Application Development in Epson ePOS SDK for Android ............................................... 10
Bluetooth® model................................................................................................................................................................................... 10
Network model........................................................................................................................................................................................ 11
TM intelligent printer model.............................................................................................................................................................. 11
USB model................................................................................................................................................................................................. 12
■ Epson ePOS SDK for Android Development Environment ................................................ 13
■ Application Operating Environment.................................................................................. 13
Supported printers................................................................................................................................................................................. 13
Controllable Peripheral Devices........................................................................................................................................................ 14
■ Downloadable Content ...................................................................................................... 15
■ Web Content....................................................................................................................... 15
■ Limitations ......................................................................................................................... 15
How to Use ....................................................................................16
■ Printer Connections ........................................................................................................... 16
■ Creating an Epson ePOS SDK for Android Project.............................................................. 16
■ Programming Guide........................................................................................................... 19
Programming Flow ................................................................................................................................................................................ 19
Effective range of command buffers for setting ......................................................................................................................... 25
Status .......................................................................................................................................................................................................... 25
API Reference ...............................................................................27
■ List of ePOS SDK API .......................................................................................................... 27
Printer class............................................................................................................................................................................................... 27
LineDisplay class..................................................................................................................................................................................... 30
Keyboard class......................................................................................................................................................................................... 31
BarcodeScanner class............................................................................................................................................................................ 31
SimpleSerial class ................................................................................................................................................................................... 31
CommBox class ....................................................................................................................................................................................... 32
Common to all classes .......................................................................................................................................................................... 32
5
Discovery class......................................................................................................................................................................................... 32
Epos2Exception class ............................................................................................................................................................................32
Log class..................................................................................................................................................................................................... 33
EasySelect class ....................................................................................................................................................................................... 33
EasySelectInfo class ............................................................................................................................................................................... 33
■ Printer class........................................................................................................................ 34
Printer ......................................................................................................................................................................................................... 34
connect ...................................................................................................................................................................................................... 36
disconnect................................................................................................................................................................................................. 38
startMonitor ............................................................................................................................................................................................. 39
stopMonitor.............................................................................................................................................................................................. 40
getStatus.................................................................................................................................................................................................... 41
sendData.................................................................................................................................................................................................... 44
beginTransaction.................................................................................................................................................................................... 45
endTransaction........................................................................................................................................................................................ 46
requestPrintJobStatus .......................................................................................................................................................................... 47
clearCommandBuffer............................................................................................................................................................................ 48
addTextAlign............................................................................................................................................................................................ 49
addLineSpace .......................................................................................................................................................................................... 50
addTextRotate ......................................................................................................................................................................................... 51
addText....................................................................................................................................................................................................... 52
addTextLang............................................................................................................................................................................................. 53
addTextFont.............................................................................................................................................................................................. 54
addTextSmooth....................................................................................................................................................................................... 55
addTextSize............................................................................................................................................................................................... 56
addTextStyle............................................................................................................................................................................................. 57
addHPosition............................................................................................................................................................................................ 59
addFeedUnit............................................................................................................................................................................................. 60
addFeedLine............................................................................................................................................................................................. 61
addImage .................................................................................................................................................................................................. 62
addLogo..................................................................................................................................................................................................... 66
addBarcode............................................................................................................................................................................................... 67
addSymbol................................................................................................................................................................................................ 71
addHLine ................................................................................................................................................................................................... 77
addVLineBegin ........................................................................................................................................................................................79
addVLineEnd............................................................................................................................................................................................ 81
addPageBegin.......................................................................................................................................................................................... 82
addPageEnd ............................................................................................................................................................................................. 83
addPageArea............................................................................................................................................................................................ 84
addPageDirection................................................................................................................................................................................... 86
addPagePosition..................................................................................................................................................................................... 87
addPageLine............................................................................................................................................................................................. 89
addPageRectangle................................................................................................................................................................................. 91
addCut........................................................................................................................................................................................................ 93
addPulse .................................................................................................................................................................................................... 94
addSound.................................................................................................................................................................................................. 96
addFeedPosition..................................................................................................................................................................................... 98
addLayout ................................................................................................................................................................................................. 99
addCommand........................................................................................................................................................................................103
forceRecover...........................................................................................................................................................................................104
forcePulse................................................................................................................................................................................................105
forceStopSound ....................................................................................................................................................................................107
forceCommand......................................................................................................................................................................................108
forceReset................................................................................................................................................................................................109
setStatusChangeEventListener .......................................................................................................................................................110
setReceiveEventListener....................................................................................................................................................................112
interval.................................................................................................................................................................
.....................................114
剩余305页未读,继续阅读
丛乐
- 粉丝: 31
- 资源: 312
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0