User manual

28DCA Intertel DCA Intertel
DCA Intertel 29 DCA Intertel
EXAMPLE:
To use this protocol to print the text “CUSTOM” in double height and width,
send the following data to the printer
Start Command
Data Stop Command
Mode Line
Feed
0x1B 0x002 0x03 0x43 0x55 0x53 0x54 0x4F 0x4D 0x0A 0x1B 0x03
C U S T O M
NOTE
The LED is always switched on (not ashing) when using the
infrared port.
2.2.2 InfraRed communication protocol
To utilize the IR communication protocol, the “IR Protocol” must rst be set
to “Enabled” under setup.
The transfer protocol is structured as follows:
1 Byte 1 Byte Lung Bytes 1 Byte 1Byte
STX LUNG DATA ID JOB CKS
STX [1byte] = 0x02 Start Transmission ID
LUNG [1byte] = number of bytes in the transmitted data eld. The maximum
number of bytes to be transmitted must be <=48.
DATA [LUNG bytes] = data to be communicated to the printer.
The dataeld 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
eld 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 elds (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