Chapter 4:
Querying the Printer
52
O’Neil Programming Language Reference Manual
Infrared Query
Infrared Query
Query Format
ESC{IR?}
Reply Format
{IR!
P
:x;AV:x;
DV
:x;
IV
:x;
IN
:x;
ID
:x}
Function
Returns information about the current infrared settings. Also
returns a unique name for the printer, communication
capabilities, and peripherals.
Although not all printers have infrared capabilities, the
ESC{IR?} query is present in all printers to allow the user to
determine uniquely which printer type is attached.
Reply Example
{IR!P:IrDA;AV:00;DV:00;IV:1.02;IN:microFlash2;
ID:1234567890123456789}
Reply Example
Explanation
IR! - Reply to an infrared query.
P
:IrDA; - The IrDA protocol is on.
AV
:00; - The ASK version is 00.
DV
:00; - The DIRECT version is 00.
IV
:1.0-06; - The IrDA version specification supported is 1.0
and the firmware is version 06.
IN
:microFlash2; - The device nickname is microFlash2.
ID
: - The device name is 1234567890123456789.
Содержание microFlash2
Страница 3: ......