Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 14 of 16

680x Series Portable Printers Technical Reference Manual: Appendix B: Query

Pages 119 to 132 of 146, from 680x Series Portable Printers Technical Reference Manual

The original document is the PDF (15 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Intermec 6805 and Intermec 6806

Page 119

Appendix B

Query "

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

Introduction Queries can be sent to the 680x series portable printer via the infrared link or the RS--232 data link. The printer ’s reply to a query returns information about the printer or the print request. There are three steps involved. 1. Frame your query using the correct command format. 2. Send the Query (e.g. via an applications program or a terminal emulator such as “Terminal” in the Windows Accessories group). 3. Use the appropriate table to interpret the printer ’s reply.

Query Format Query Format Query Format: ESC {Query?} Reply Format: plyN}

{Query!Query1:Reply1;...QueryN:Re-

Function: The word “Query” in the Query Format above is replaced in each case by a specific command. For example, send the string {BT?}. Intermec Portable Printers Technical Reference Manual

B-1

Page 120

Query

APPENDIX B

Interpreting the Reply to a Query Consult the table for each Query command to interpret the reply. Each reply will contain several pairs of letters. The first letter or “query character.” is separated from the reply character by a colon “:” and the pair is followed by a semi-colon “;”. Example: E:N; (part of the reply to a STATUS query). According to the STATUS table, the “E” refers to “errors” in Easy Print Commands. An “N” means “no errors.”

Table B-1 Query Quick Reference Command

Format

Description

Status

ESC{ST?}

Returns information about ability of printer to print next image, and reports any errors from the last print request, e.g. paper condition, command errors, buffer size, battery voltage.

Configuration

ESC{CF?}

Returns information about configuration options, e.g. baud rate, default mode, time-out, etc.

Battery

ESC{BT?}

Returns current battery voltage, temperature, and conditions.

Version

ESC{VR?}

Returns version number of loaded firmware, boot code, and download files.

Memory

ESC{MY?}

Returns the size of all memory available, the amount used, and amount remaining for applications.

Print head

ESC{PH?}

Returns type of print head in use and number of dots across.

Infrared

ESC{IR?}

Returns information about IR settings.

Fonts

ESC{FN?}

Returns a list of fonts available.

Graphics

ESC{GR?}

Returns a list of downloaded graphics.

Formats

ESC{FM?}

Returns a list of all formats. Shows Easy Print commands with variable and fixed data that represent a unique print layout.

Demand

ESC{DQ?}

Returns remaining quantity of images.

B-2

Intermec Portable Printers Technical Reference Manual

Page 121

Query

APPENDIX B

Table B-1 (continued) Query Quick Reference Command

Format

Description

Cancel

ESC{CN!}

Cancels all demand printing.

Reset

ESC{RE!}

Resets printer.

" NOTE:

The order of the printer’s reply to a query may change, and new queries will be added. Therefore, the programmer should search for the “Query character” to find data whenever interpreting the reply to a query.

Status ESC{ST?} Query Format: ESC{ST?} Reply Format:

{ST!E:x;L:x;P:x;R:x;B:x;H:x}

Function: Shows whether next print request is doable, or returns info about errors from the last request. Reply Example: {ST!E:N;L:D;P:P;R:62;B:O,H:O} Reply Explanation: "

ST! This is a reply to a STATUS query.

"

E:N; There are no errors.

"

L:D; The paper release lever is down, ready to print.

"

P:P; Paper is present.

"

R:62;

"

B:O; Acceptable battery voltage and temperature.

"

H:O; Print head temperature is in acceptable range.

62K bytes remain in the input buffer.

*Rows marked with asterisk apply to Easy Print and Line Printer Mode. Rows without an asterisk apply only to Easy Print.

Intermec Portable Printers Technical Reference Manual

B-3

Page 122

Query

APPENDIX B

Table B-2 Status Reference Query

Reply Definition

E

N

N = no error*

E c c = command error (invalid command)

E d d = data error (e.g. letter in numeric--only bar code)

E f f = font not available

E g g = global parameter error

E o o = overrun of buffer*

E p p = field parameter error

E q q = qmark not found

E r r = row/column error

E s s = syntax error

L

U,D

Lever = Up or Down

P

P,N

Paper = Present or Not present

R nn

RAM buffer size remaining, in K bytes.

B

O,T,V

Battery condition -- O =OK; T = out of Temperature range; V = out of Voltage range.

H

O,T

Print head Temperature -- O = OK, T = out of range.

Configuration ESC{CF?} Query Format:

ESC{CF?}

Reply Format: {CF!L:x; B:x; P:x; N:x; H:x;D:x;Y:x;S:x;T:x} Function: able options .

Returns information about configur-

Reply Example:

{CF!L:LP;B:096;P:N;N:8;H:B;D:+10%;

Y:1;S:Y;T:0060} Reply Explanation: B-4

Intermec Portable Printers Technical Reference Manual

Page 123

Query

APPENDIX B

" " " " " "

" " " "

CF! L:LP; B:096; P: N; N:8; H:B; enabled. D:+10%; Y:1; S:Y; T:0060

This is a reply to a Configuration query. The default mode is Line Printer. The baud rate is 9600. No parity is set. There are 8 data bits. Hardware and software handshaking are The darkness (burn time) is set to +10%. The paper is 1 ply. The sound is on. The time--out is set for 60 seconds. Table B-3 Configuration Reference

Query

Reply

Definition

L

LP, EZ

Default mode -- Line Printer or Easy Print (EZ)

B

012,024,048, 096,192,384

Baud rate = 1200, 2400, 4800, 9600, 19.2K or 38.4 baud

P

N,E,O

Parity is None, Even, or Odd

N

7,8

Number or Data Bits is 7 or 8

H

N,H,S,B

Handshaking = None, Hardware, Software, or Both

D

--25% ...+35%

Darkness can be --25%, --20%, --15%, --10%, --05%, +10%, +15%, +20%, +25%, +35%

Y

1,2

Ply of paper = 1 or 2

S

Y,N

Beeper (Sound) = Y (Yes) or N (No)

T nnnn

Time out value in seconds (9999 = always on)

Battery ESC{BT?} Query Format:

ESC{BT?}

Intermec Portable Printers Technical Reference Manual

B-5

Page 124

Query

APPENDIX B

Reply Format:

{BT!V:x;Tx}

Function: and temperature.

Returns current battery voltage

Reply Example:

{BT!V:6.8;T:+25.8C,CH:C}

Reply Explanation: "

"

"

"

BT! query.

This is a reply to a BATTERY

V:6.8; Volts.

The current battery voltage is 6.8

T:+25.8 Centigrade. CH:C

Battery temperature is 25.8 degrees Complete charge. Table B-4 Battery Reference

Query

Reply

Definition

V n.n

Battery Voltage = n.n volts

T

±nn.nC

Battery Temperature = +nn.n degrees C or --nn.nn degrees C.

CH

D,F,I,N,T,W

C = Complete, F = Fast Charge, I = Initialization, N = No Charge, T = Trickle Charge, W = Wait to restart.

SBOO...SB nn

TBN

Reserved future option for smart battery data Query characters may change.

Version ESC{VR?}

B-6

Query Format:

ESC{VR?}

Reply Format:

{VR!F:x;B:x;D:x}

Function: file #.

Firmware, boot code, and download

Reply Example:

{VR!F:4.09;B:2.05;D:1.0}

Intermec Portable Printers Technical Reference Manual

Page 125

Query

APPENDIX B

Reply Explanation: "

"

" "

VR! This is a reply to a VERSION query. F:4:09; The firmware (main program) version is 4.09. B:2.05; The boot code version is 2.05. D:1.0; The download file version is 1.0. Table B-5 Version Reference

Query

Reply Definition

F n.nn

Firmware version is n.nn

B n.nn

Boot code version is n.nn

D n.n

Download (fonts, graphics, formats) version is n.nn

Memory ESC{MY?} Query Format: ESC{MY?} Reply Format: {MY!FS:x;FM:x;RS:x;DT:x;DR:x} Function: Returns the size of all memory available in the printer, including the amount used and the amount remaining for the application. Reply Example: {MY!FS:1M;FM:AMD;RS:1M;DT:049 152;DR:000512} Reply Explanation: " "

" " "

MY! This is a reply to a MEMORY query. FS:1M; This printer contains a 1M bit flash memory FM:AMD; The Flash Manufacturer is AMD. RS:1M; RAM Size = 1M. DT:049152; Total Flash area available for Download is 49,152 bytes. Intermec Portable Printers Technical Reference Manual

B-7

Page 126

Query

APPENDIX B

"

DR:000512; Download Flash memory Remaining. Out of the 49,152 bytes, 512 bytes remain available. Table B-6 Memory Reference

Query

Reply

Definition

FS

1 Meg, 4 Flash Size = 1 Meg (128K bytes) or 4 Meg Meg. (512K)

FM

AMD

Flash Manufacturer is AMD

RS

1 Meg

RAM Size = 1 Meg (128K bytes)

DT nnnnnn

Download Total area = nnnnnn bytes

DR nnnnnn

Download RAM remaining = nnnnnn bytes

Print Head ESC{PH?} Query Format:

ESC{PH?}

Reply Format:

{PH!TD:x;DD:x;T:x;M:x}

Function: Returns the type of print head in use in this printer and the total number of dots across. Reply Example: 25.6C;}

{PH!TD:0384;DD:203;M:LPT3245T:+

Reply Explanation: "

"

" "

"

B-8

PH! query.

This is a reply to a PRINT HEAD

TD:0384; dots across.

The print head in this printer has 384

DD:203;

The dot density is 203 dots per mm.

M:LPT3245 LPT3245.

The print head model number is

T:+25.6C; The current print head temperature is +25.6 degrees Centigrade.

Intermec Portable Printers Technical Reference Manual

Page 127

Query

APPENDIX B

Table B-7 Print Head Reference Query

Reply

Definition

TD

Nnnn

Total Number of dots across this print head.

DD

Nnn

Dot Density of this print head (dots per mm)

M x...x (variable width

Model number of this print head.

T

±nn.nC

Current Temperature of print head.

Infrared ESC{IR?} 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. Reply Example:

{IR!P:IrDA;AV:00;DV:00;IV:1.02;

IN:6805a printer;ID:1234567890123456789} Reply Explanation: IR! query.

This is a reply to an INFRARED

P:IrDA; turned on.

This printer has the IrDA protocol

"

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:6805a printer; The device nickname is 6805a. ID: The device name is 1234567890123456789. Intermec Portable Printers Technical Reference Manual

B-9

Page 128

Query

APPENDIX B

Table B-8 Infrared Reference Query

Reply

Definition p

OFF, IrDA, ASK, ASC-CRC, DIRECT, DIRECT--CRC

Protocol selected is OFF, IrDA, ASK, ASK with CRC, DIRECT or DIRECT with CRC.

AV nn

ASK software Version = nn

DV nn

DIRECTS software Version = nn

IV n.n--mm

Version of IrDA specifications supported is n.n; firmware version of IrDA loaded into this printer is mm.

IN x..x (up to 19 IrDA Nickname chars) 6805a, 6806, 6804, 6804DM

ID x..x (up to 19 IrDA Device name chars)

Fonts ESC{FN?} Query Format:

ESC{FN?}

Reply Format: {FN!N5:x,N1:x,L:x,UV:x, UD:x,US:x, CPI:x} Function: Returns a list of fonts, both permanent and downloaded. Within a complete font definition, each query character is separated from the next with a comma. A semicolon, carriage return and line feed (“;”<CR>, <LF>) separates each font. Reply Example:

{FN!N5:MF107,N1:&(26),L:R,UV:1,

UD:01/02/96,US:96CHARS BLOCKBOLD, CPI:10.7; N5:MF204, N1:!(21),L:D,UV:1, UD:01/02/96, US:224 CHR BLOCK NORMAL, CPI:20.4} Reply Explanation: B-10

Intermec Portable Printers Technical Reference Manual

Page 129

Query

APPENDIX B

" " "

" " " "

" "

FN! This is a reply to a FONT query. N5:MF107, The first font has the name MF107. N1:&(26), The one--character name is ”&”, or 26H. L: The first font is a resident font. UV:1, The user version is 1. UD:01/02/96 The user date is 01/02/96. US:96chars blockbold The font is a 96 character block bold font. CPI:10.7 The font has 10.7 characters per inch. N5:MF204, The next font begins and is read similarly. Table B-9 Fonts Reference

Query

Reply

Definition

N5 xxxxx

5 character Name is xxxxx

N1 x(nn)

1 character Name -- also in HEX

L

R,D

Location is Resident or Download

UV x

User Version number

UD mm/dd/yy

User Date -- month, day, year

US x.. (20 chars) User Descriptive Summary of font

CPI nn.n

Characters Per Inch is nn.nn

Graphics ESC{GR?} Query Format: ESC{GR?} Reply Format: {GR!N5:x,N1:x,L:D,UV:x,UD:x,US:x} Function: Returns a list of all graphics currently downloaded to the printer. The response is similar to that for FONTS, without the FONT related information: Reply Example: {GR!N5:LOGO1,N1:z(7A),L:D, UV:1,UD:05/29/96,US:Big Logo } Intermec Portable Printers Technical Reference Manual

B-11

Page 130

Query

APPENDIX B

Reply Explanation: " "

"

" " " "

GR! This is a reply to a GRAPHICS query. N5:LOGO1, The graphic has a five--character name, “LOGO1.” N1:z(7A), The graphic has a one--character name of ”z”, or 7AH. L:D, This is a downloaded graphic. UV:1, The user version is 1. UD:05/29/96 The user date is 5/29/96. US:Big Logo The user descriptive summary is Big Logo. Table B-10 Graphics Reference

Query

Reply

Definition

N5 xxxxx

5 character Name is xxxxx

N1 x(nn)

1 character Name -- also in HEX

L

R,D

Location is Resident or Download

UV x

User Version number

UD xx/xx/xx

User Date

US x.. (20 chars) User Descriptive Summary of font

Formats ESC {FM?} Query Format:

ESC{FM?}

Reply Format:

{FM!N5:x,L:x,UV:x,UD:x,US:x}

Function: Returns a list of all formats currently downloaded to the printer. The response is similar to that for FONTS, without the FONT related information: Reply Example: {FM!N5:LABEL, L:D,UV:1,UD:05/29/96, US:PROPERTY ID LABEL--BC} Reply Explanation: B-12

Intermec Portable Printers Technical Reference Manual

Page 131

Query

APPENDIX B

FM! This is a reply to a FORMATS query. The format has a 5 character name " N5:LABEL, of LABEL. The format is a downloaded format. " L:D, The user version is 1. " UV:1, The user date is 05/29/96. " UD:05/29/96, The user descriptive summary is " US:PROPERTY PROPERTY ID ID LABEL--BC LABEL--BC. There is no other format loaded. "

Table B-11 Formats Reference Query

Reply

Definition

N5 xxxxx

5 character Name is xxxxx

L

R,D

Location is Resident or Download

UV x

User Version number

UD xx/xx/xx

User Date

US x.. (20 chars) User Descriptive Summary of font

Demand Quantity ESC{DQ?} Query Format:

ESC{DQ?}

Reply Format:

nnn

Function:

Returns remaining quantity of images

Cancel ESC{CN!} Query Format:

ESC{CN!}

Reply Format:

ESC{CN!}

Function:

Cancels demand printing Intermec Portable Printers Technical Reference Manual

B-13

Page 132

Query

APPENDIX B

Reset ESC{RE!} Query Format:

ESC{RE!}

Reply Format:

ESC{RE!}

Function:

Resets printer.

Status Card Reader ESC{RS?} Query Format:

ESC{RS?}

Reply Format:

ESC{RS!}

Function:

Returns Card Reader Status.

Read Magnetic Card ESC{MR?}

B-14

Query Format:

ESC{MR?}

Reply Format:

ESC{MR!}

Function:

Returns Magnetic Card Reader Data.

Intermec Portable Printers Technical Reference Manual