
A-34
MS-4Xi Imager User’s Manual
MS-4Xi Image Output
Bit Stream Method
A more difficult method is to parse and decode the bit stream data. The bit stream is a mix
of EXIF format & TIFF format. You will need to use the
<op,4>
command.
<op,4,arg>
To load a bitmap, send
<op,4>
and the entire grayscale image will load.
To load a JPEG, set
arg
for the full-size JPEG image, with adjustable quality:
<op,4,1280x1024_qnnn.jpg>
There is only one variable: nnn is a number from 1 to 100, and it represents the image
quality. 1 will load fastest, but will be extremely low-quality. 100 will load slowly, but will be
highest-quality.
<op,4,1280x1024_q1.jpg>
= low-quality image, short load time
<op,4,1280x1024_q100.jpg>
= high-quality image, long load time
Response Format
The user will need to write an application that can receive the image (8-bit format – 7 data
bit communication will not work), split up the data, and write the file. The data is format info
and then image data, so an ASCII terminal will not work.
The format of the data will be (_ added for readability):
SOH_DATALEN_FRAMETYPE_SCHEMA_DATA_CRC
SOH
= SOH character
DATALEN
= the length of data to follow, 32 bit integer from ‘00000000’ to ‘FFFFFFFF’
FRAMETYPE
= 1
SCHEMA
= 2
DATA
= image data
CRC
= CRC16 check digit at the end includes SOH, and everything after,
except the CRC
More information on these formats is available at:
http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf
and
http://www.exif.org/specifications.html
Summary of Contents for MS-4Xi
Page 1: ...MS 4Xi Imager User Manual P N 84 004444 Rev A ...
Page 12: ...xii MS 4Xi Imager User s Manual Statement of RoHS Compliance ...
Page 26: ...1 14 MS 4Xi Imager User s Manual Save Configuration in ESP ...
Page 44: ...2 18 MS 4Xi Imager User s Manual Using EZ Trax ...
Page 64: ...3 20 MS 4Xi Imager User s Manual Postamble ...
Page 110: ...5 28 MS 4Xi Imager User s Manual Setting Up the Imager for EZ Trax ...
Page 152: ...6 42 MS 4Xi Imager User s Manual Background Color ...
Page 256: ...10 30 MS 4Xi Imager User s Manual Morphological Operation and Operator Size ...
Page 306: ...13 26 MS 4Xi Imager User s Manual Other Operational Serial Commands ...
Page 329: ...MS 4Xi Imager User s Manual A 9 Appendices PNP Output for Host Input ...
Page 330: ...A 10 MS 4Xi Imager User s Manual Communication Protocol Commands PNP Output for External Load ...
Page 332: ...A 12 MS 4Xi Imager User s Manual Electrical Specifications PNP ...
Page 333: ...MS 4Xi Imager User s Manual A 13 Appendices Output Wiring ...