- 449 -
Device ID
Thedevice ID isa character string that provides the ID, thetype, andother information regarding the printer connected tothe
interface. When the printer receivesa request for adevice IDfrom the host,itreplieswiththe following device ID:
<00>H<2E>H
MFG:CITIZEN;
CMD:ESC/POS;
MDL:CT-S300;(*)
CLS:PRINTER;
*This value differs by model and model name is returned.
ThefirsttwobytesofthedeviceIDindicatethelengthoftheentiredeviceID.ForadescriptionofarequestforadeviceID,refer
to the “Negotiation”section.
When thehostreceives thedevice IDstring of thelengthindicatedbythefirst twobytes,it must do soconsecutively, without
terminatingtheprocessuntiltheentiredeviceIDisreceived.Iftheprocessisterminatedhalfway,theprinterdiscardstherestof
thestring;whentheprinterreceivesanewrequestforthedeviceID,itsendsthedeviceIDbeginningfromthefirstcharacterof
the ID.After receivingtheIDof thelength indicated bythe first twobytes, thehost mustcarry outtheterminationeven if the
printer hasdata tosend (Data Available).If thehost doesnotcarry outTermination andtries toreceive data,the printer sends
the printer status.