![background image](http://html1.mh-extra.com/html/3m/rte6701-oem/rte6701-oem_integration-manual_442625029.webp)
Page 29 of 39 RTE6701-OEM Integration Manual VC27U V1.03 DRAFT.doc
9.2
OEM Protocol
The following description applies to the standard OEM application 74-5246-01. This firmware reads all ICAO
9303 documents.
9.2.1
Data Format
All data is transmitted via the serial port at 8 data bits, 2 stop bits and no parity. The baud rate is set by the
jumpers on J6. Assuming three lines of data on a document, the data shall be transmitted to the host in the
following format.
<STX>[Flag byte][line 1 data]<CR>[line 2 data]<CR>[line 3
data]<CR>[barcode info]<CR><ETX>
If any OCR line is missing the <CR> byte associated with the line shall still be transmitted. If no barcode is
decoded then the [barcode info]<CR> field is not sent. e.g. line 1 data and barcode not found.
<STX>[Flag byte]<CR>[Line 2 data]<CR>[line 3 info]<CR><ETX>
If only a barcode is found then:
<STX>[Flag byte] <CR><CR><CR>[barcode info]<CR><ETX>
The bottom line of a document is always line 3 with line numbers descending up the document. The flag byte
provides additional information about the data and is described more fully in
section 9.2.4
below.
9.2.2
Character Set
OCR data shall be transmitted as standard ASCII.
Unrecognised characters are transmitted as
"*"(\x2A)
9.2.3
OCR Fonts
The following OCR fonts shall be recognised and their character sets given below:
OCRB Size 1
0-9, A-Z, <
9.2.4
Flag Byte
The flag byte shall always be transmitted and have one of the values defined below:
"0"
-
normal flag
Other values for this flag may be added in the future.