This Blog was created to help people solve bar code and data collection applications with Microscan bar code readers and vision systems.

Monday, September 11, 2006

How to download an image from Microscan Mini



It took me a bit to figure out our cryptic information, and of course to filter out the stuff that can get you in trouble.

You can use the op,4 command. Here is how you’ll use it:

<op,4,arg> If you are loading a bitmap, just send <op,4> and the entire grayscale image will load.

Since you are concerned about time, I’ll assume you want jpeg. The easiest way to explain the format is to 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 upload the fastest, and will be a big grey blob. 100 will be high quality and will take a while to load.

<op,4,1280x1024_q1.jpg> = bad image, quick load time

<op,4,1280x1024_q100.jpg> = good image, long load time

Response format:

The image will load; you will need to write an application that can receive the image, split up the data, and write the file. The first portion of the data is format info, then it moves into image data, so an ASCII Terminal wont 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, of course)

Courtesy - Juan Worle www.microscan.com

www.esolutionscompany.com

3 comments:

Anonymous said...

Is there a way to download a compressed image with a Quadrus EZ?

heyhilbo said...

you can use FTP commands if you have the Ethernet version of the EZ. Let me know if you need them.

Anonymous said...

Hi,
I can read image from velocity with RS232. Bu I don't know when start my image in the byte array.How can I find it?