7167 Owner’s Manual Chapter 6: Commands
November 2003
246
Store Scan Image to Flash ROM GS ( G pL pH fn n [d1..dk] (when fn = 70)
Hogan makes busy status during store scan image. Host can’t send any data to Hogan at that time.
Command Description:
• If [d1..dk] is specified, it’s added to image file as image description (image tag data); if not
specified, use the one specified before. This string is included in the image file.
• Image file will be appended to the end of the last image stored in flash ROM.
• In each image file, the first 2 bytes hold file index (2 byte), the next 4 bytes store the length of
the file, followed by 2 blocks of scan information and image file data string.
• Original scan data are retrieved from working buffer, cropped, compressed and made into image
file based on current settings.
• The scanner locates all available flash ROM space and compares with the image size.
• If the image file size is smaller than ROM space, increase file index number and write file to
falsh ROM, send host “store information” block
• If ROM space is too small for image file, transmit “store information” block to host
• Max. number of files can be stored is 255.
• If bit6 of n(CropID) is 1, Hogan stores only image data that resides within the crop area.
ASCII FS ( g pL pH fn n [d1… dk]
Hex 1D 28 47 pL pH fn n [d1 …dk]
Decimal 29 40 71 pL pH fn n [d1… dk]
Range 2<=(pL + pH x 256) <= 257
fn = 70
n: CropID, n = 0, no cropping, or n<
10 and equal to CropID that is not defined, entire scan area
selected;
n = exist CropAreaID (0x00 to 0x0A), only selected crop area is processed and stored,
n = exist CropAreaID (0x41 to 0x4A), only selected crop area is processed and stored. The
stored data is only data that resides within the crop area.
n>10 (except 0x41 to 0x4A), all crop areas are selected
The storage information block is as follows:
Transmission Data Hexadecimal Decimal Amount of Data
Header 37H 55 1 byte
Identifier 77H 119 1 byte
Fixed Value 34H, 38H 52, 56 2 bytes
Separator 1FH 31 1 byte
Store Status 30-33H(*1) 48-51 1 byte
Separator 1FH 31 1 byte
FileIndex 30-39H 48-57 1-3 bytes
Separator 1FH 31 1 byte
Free ROM space 30 - 39H,
41 - 46H
48 - 57,
65 - 70
6 bytes
Separator 1FH 31 1 byte
NUL 00H 0 1 Byte
*1. Store Status: Successful 30H
Not enough memory 31H
Image file not exist 32H
Flash ROM is cleared 33H