Chapter 4 Software Utilities
PA-3211 SERIES USER MANUAL
Page: 4-67
"Cover Close!"
,
Toast.
LENGTH_SHORT
).show();
}
Printer_Control.
ClosePrinter();
Receiver Data - Attach
Public Boolean Attach();
Purpose
Receive Printer Data
Return
True (1) on success, False (0) on failure False (0)
Example
Receive Data fromPrinter.
Before use this function need to implements Observer Interface.
Observer = Current class.
publicclass
PrinterActivity
extends
Activity
implements
android.ThermalPrinter.Observer {
ThermalPrinter
Printer_Control
;
@Override
protectedvoid
onCreate(Bundle savedInstanceState) {
super
.onCreate(savedInstanceState);
setContentView(R.layout.
activity_msr
);
Printer_Control
=
new
ThermalPrinter();
Printer_Control.
Attach(
this
);
If( !Printer_Control
.OpenPrinter(115200))
{
//Port alrady open.
}
@Override
publicvoid
Update(
finalint
Device,
finalint
value)
{runOnUiThread(
new
Runnable() {
publicvoid
run() {
//Cover
if
(Device == 0x01)
{
if
(Value==0x01)
{
//
"Cover Open"
}
else
Содержание PA-3211
Страница 1: ...USER MANUAL PA 3211 10 1 POS Terminal Powered by ARM Cortex A 9 Processor PA 3211 M1...
Страница 15: ...Chapter 2 Getting Started PA 3211 SERIES USER MANUAL Page 2 4 2 2 3 Top View...
Страница 16: ...Chapter 2 Getting Started PA 3211 SERIES USER MANUAL Page 2 5 2 2 4 Bottom View 2 2 5 Quarter View...
Страница 17: ...Chapter 2 Getting Started PA 3211 SERIES USER MANUAL Page 2 6 2 2 6 Side View Unit mm 147 75...
Страница 19: ...Chapter 2 Getting Started PA 3211 SERIES USER MANUAL Page 2 8 2 3 3 Top View...
Страница 20: ...Chapter 2 Getting Started PA 3211 SERIES USER MANUAL Page 2 9 2 3 4 Bottom View 2 3 5 Quarter View...
Страница 21: ...Chapter 2 Getting Started PA 3211 SERIES USER MANUAL Page 2 10 2 3 6 Side View 147 75...
Страница 32: ...Chapter 3 Hardware Configuration PA 3211 SERIES USER MANUAL Page 3 8 Jumper diagrams Jumper settings...
Страница 144: ...Chapter 4 Software Utilities PA 3211 SERIES USER MANUAL Page 4 75 Step 3 Click Next to start the installation...
Страница 155: ...Chapter 4 Software Utilities PA 3211 SERIES USER MANUAL Page 4 86...