User`s manual

BD2-1220/1221 Users Manual
D
APPENDIX 3. DEVICE ID
If the bidirectional communication feature is used on the parallel interface, the host can receive character
strings that identify the types of devices attached to the interface.
When the control board receives a request for a device ID from the host, it replies with the following device
ID:
<00> H <2F> H
MFG : CBM ;
CMD : ESC / POS ;
MDL : BD2-1220 ;
CLS : PRINTER ;
The first two bytes of the device ID indicate the length of the entire device ID (Including the first two bytes
themselves).
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 control board discards the rest of the string; when the control board 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
control board has data to send (Data Available). If the host does not carry out Termination and tries to receive
data, the control board sends the control board status.
* Contact your CBM dealer for more details about bidirectional comunications.