Infrared Communication Protocol - DCA Intertel s’print BT User Manual

Portable thermal printer
Table of Contents

Advertisement

EXAMPLE:
To use this protocol to print the text "CUSTOM" in double height and width,
send the following data to the printer
Start Command
Mode
0x1B 0x002
0x03
NOTE
The LED is always switched on (not flashing) when using the
infrared port.

2.2.2 InfraRed communication protocol

To utilize the IR communication protocol, the "IR Protocol" must first be set
to "Enabled" under setup.
The transfer protocol is structured as follows:
1 Byte
STX
STX [1byte] = 0x02 Start Transmission ID
LUNG [1byte] = number of bytes in the transmitted data field. The maximum
number of bytes to be transmitted must be <=48.
DATA [LUNG bytes] = data to be communicated to the printer.
The datafield may include both data to be printed and
command characters (see Section 3 "Printer Functions").
ID JOB [1byte] = ID of the data packet received. The 0x00 value of this data
field is reserved. This number must be different for each
transmission: a data packet with the same IDJOB as the
previous data packet is formally accepted (an ACK message
is transmitted), but it is not interpreted by the printer.
CKS [1byte] = Check sum of the transmitted bytes: the check sum is
calculated as an 8 bit sum of all previous fields (STX,
LUNG, DATI, IDJOB)
One of three responses may be sent back to the printer: ACK, NACK and
BUSY. The structure of these responses is as follows:
STX [1byte] = 0x02 Start Transmission ID
TYPE [1byte] = Response type: ACK (0x06), NACK (0x15) and
BUSY (0x13))
STS [1byte] = Printer status: the byte is structured like that
DCA
Intertel
0x43 0x55 0x53 0x54
C
U
S
1 Byte
Lung Bytes
LUNG
DATA
Data
0x4F
0x4D
T
O
M
1 Byte
ID JOB
29
Stop Command
Line
Feed
0x0A
0x1B 0x03
1Byte
CKS
DCA
Intertel

Advertisement

Table of Contents
loading

Related Products for DCA Intertel s’print BT

Table of Contents