Chapter 3 Software
PA-6822 SERIES USER MANUAL
Page 88
Receiver Data - Attach
Public Boolean Attach();
Purpose
When class need to receiver serial port data need to use.
Return
True (1) on success, False (0) on failure False (0)
Example
Receive Data from serial port.
Before use this function need to implements Observer Interface.
Observer = Current class.
SP
SerialPortcontrol
=
new
SP();
SerialPortcontrol
.OpenSerialPort(19200);
SerialPortcontrol
.Attach(
this
);
@Override
public
void
Update(
final
byte
[] buffer,
final
int
size)
{runOnUiThread(
new
Runnable() {
public
void
run() {
if
(
mReception
!=
null
) {
mReception
.append(
new
String(buffer, 0, size));
When Close:
SerialPortcontrol.CloseSerialPort();SerialPortcontrol.Detach(
this
);
Receiver Data - Detach
Public Boolean Detach();
Purpose
Cancel Obsver from SerialPort Data
Return
True (1) on success, False (0) on failure False (0)
Summary of Contents for PA-6822
Page 1: ...USER S MANUAL PA 6822 15 POS Terminal Powered by Intel Celeron J1900 Quad Core PA 6822 M4...
Page 199: ...Chapter 3 Software PA 6822 Series User Manual Page 198...
Page 218: ...Chapter 4 System Assembly 01 05 02 03 06 07 08 09 04 PA 6822 Series User Manual Page 217...
Page 219: ...Chapter 4 System Assembly 01 05 02 03 06 07 08 04 PA 6822 Series User Manual Page 218...
Page 222: ...Chapter 4 System Assembly 01 05 02 03 06 07 04 PA 6822 Series User Manual Page 221...
Page 224: ...Chapter 4 System Assembly PA 6822 Series User Manual Page 223...
Page 225: ...Chapter 4 System Assembly 05 02 01 03 06 04 PA 6822 Series User Manual Page 224...
Page 226: ...Chapter 4 System Assembly 01 02 03 06 07 08 04 05 09 10 PA 6822 Series User Manual Page 225...
Page 228: ...Chapter 4 System Assembly COM Port 01 05 02 03 04 PA 6822 Series User Manual Page 227...
Page 229: ...Chapter 4 System Assembly Parallel Port 01 02 03 04 PA 6822 Series User Manual Page 228...
Page 239: ...Chapter 4 System Assembly 01 02 03 04 05 06 07 08 09 PA 6822 Series User Manual Page 238...
Page 240: ...Chapter 4 System Assembly 01 02 03 04 06 05 07 08 10 09 PA 6822 Series User Manual Page 239...
Page 250: ...Appendix A System Display Step 8 Finished view PA 6822 Series User Manual Page 249...