02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter —Image Transfer<br />

The image illustrated above contains 2 bytes (= 16 bits) in each horizontal<br />

line. By setting the absolute start position to x = 8, you can start counting<br />

from the start of the second byte, that is x = 8 in the matrix above. The<br />

first 3 bits (x-positions) are white, then comes one black bit followed by<br />

three white bits, and finally one black bit. Expressed in 0:s and 1:s, where 0<br />

represents a white bit and 1 a black bit, the pattern will be 00010001. This<br />

binary number can be expressed as 11 hex. The same pattern is repeated<br />

for each y-position from y = 1 thru y = 7 with the exception of position y<br />

= 4, where all bits are black except for the leading three, i.e. the pattern is<br />

00011111, which can be expressed as 1F hex. Use this hexadecimal values<br />

as input data as shown in the example below.<br />

Example The simplified image above is transmitted to the printer. Do not use XON/<br />

XOFF (11 hex/13 hex) protocol, since these characters may coincide with<br />

input data. Use RTS/CTS instead. Do not strip LF.<br />

10 STORE OFF<br />

20 OPEN ”uart1:” FOR INPUT AS #1<br />

30 QNAME$=”H.1”<br />

40 QWIDTH%=16<br />

50 QHEIGHT%=10<br />

60 QPRO$=”UBI10”<br />

70 STORE IMAGE QNAME$,QWIDTH%,QHEIGHT%,QPROT$<br />

80 STORE INPUT 900,4: ’Timeout 9 sec.<br />

90 CLOSE#1<br />

100 STORE OFF<br />

RUN<br />

The input string in line 80 should contain the following data. Carriage<br />

returns (↵ ) after each !SB set of data increments the y-position by 1 in<br />

consecutive order. It may also be sent as a continuous string.<br />

!BG ↵ (Begin graphic)<br />

!X8A ↵ (Set x-position)<br />

!Y1A!SB1W ↵ (Set y-position + data for y = 1)<br />

!SB1W ↵ (Data for y = 2)<br />

!SB1W ↵ (Data for y = 3)<br />

!SB1W ↵ (Data for y = 4)<br />

!SB1W ↵ (Data for y = 5)<br />

!SB1W ↵ (Data for y = 6)<br />

!SB1W!EG ↵ (Data for y = 7 + end graphics)<br />

!PRINT ↵ (End frame)<br />

<strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong> 07

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!