- 138 -
Device ID
The device ID is a character string that provides the ID, the type, and other information regarding the printer
connected to the interface. When the printer receives a request for a device ID from the host, it replies with
the following device ID:
<00>H<2E>H
MFG
:
CITIZEN;
CMD
:
ESC/POS;
MDL
:
BD2-2220;
CLS
:
PRINTER;
The first two bytes of the device ID indicate the length of the entire device ID. For a description of a request
for a device ID, refer to the “Negotiation” section.
When the host receives the device ID string of the length indicated by the first two bytes, it must do so
consecutively, without terminating the process until the entire device ID is received. If the process is
terminated halfway, the printer discards the rest of the string; when the printer receives a new request for
the device ID, it sends the device ID beginning from the first character of the ID. After receiving the ID of the
length indicated by the first two bytes, the host must carry out the termination even if the printer has data to
send (Data Available). If the host does not carry out Termination and tries to receive data, the printer sends
the printer status.
Termination
Termination is the process of returning to Compatibility mode from the Nibble or Byte modes. When
performing Termination, the host sets the signals as follows:
• IEEE 1284 Active (nSelectln): Low
• HostBusy (nAutoFd): High (Event 22)
There are two methods of Termination:
(1) Termination through a handshake between the host and the printer
(2) Immediate termination
(1) Termination through a handshake between the host and the printer:
When switching from Reverse mode to Compatibility mode, this termination method can be used if the
interface is activated (IEEE 1284 Active: High) and Event 22 has taken place.
1) The printer responds to IEEE 1284 Active by setting PtrBusy (Busy) and nDataAvail (nFault) to High.
(Event 23)
2) The printer then inverts Xflag (Select) and sets PtrClk (nAck) to Low. (Event 24)
3) The host sets HostBusy (nAutoFd) to Low. (Event 25)
4) The printer returns nDataAvail (nFault), Xflag (Select), and AckDataReq (PError) to the status given
in the Compatibility mode, and sets PtrClk (nAck) to High. (Events 26 and 27)
5) The host sets HostBusy (nAutoFd) to High to terminate the handshake and return the interface to the
Compatibility Mode Idle phase. (Event 28)
6) The printer changes PtrBusy (Busy) to be able to receive data from the host.
Содержание BD2-2220
Страница 1: ...Command Reference LINE THERMAL PRINTER MODEL BD2 2220 Rev 0 00 Issued on 2006 8 4...
Страница 2: ...REVISION Rev No Date Comment 0 00 2006 08 04 Newly issued...
Страница 71: ...69 Print Results No HRI characters Printed above Printed below Printed above and below 1 2 1 2 1 2 1 2...
Страница 126: ...124 3 1 10 Codepage 00H to 7FH PC864 Arabic...
Страница 128: ...126 3 1 12 Codepage 00H to 7FH Thai Code 18...