Intermec 6100 Reference Guide

Page of 328
SECTION 5
Communications and Device Support
PEN*KEY
R
 6100 Computer Programmer’s Reference Guide    5-5
The application determines the actual data in the session control file.  The data
fields shown in the preceding list represent a convention used in applications
from Intermec Technologies Corporation.  However, the session control header
always consists of 18 bytes.  Also, NORAND host communication packages
usually expect to find the HHC ID starting in byte 33 of the data stream.
Although, this location is configurable.
Download Request File
An HHC may directly request specific files from the host.  To do this, it sends a
download request file to the host immediately after sending the session control
file.  The requested files are not downloaded at that moment, but rather after
the line is turned around.
If a download request file is sent, the host does not use the HHC ID in the
session control file to determine which files to download to the HHC.  Only files
requested in the download request file are downloaded.
"
NOTE:
The download request file must be the first or second file sent.  Otherwise, it is not treated as
a special file by the host.
The format of the download request file is as follows:
<DDWNLRQnnnnnX016>[––filename1–––][––filename2–––] . . .
where:
               < = Beginning of file header
               D = File type (fixed)
          DWNLRQ = File name (fixed)
           nnnnn = Decimal number of records in file
               X = Data type (X for character)
             016 = Decimal number of bytes in record (fixed)
               > = End of file header
[––filename?–––] = Name of file to download, must be left-justified and blank-
padded to 16 characters
You can include as many filename records as are specified in the number of
records field of the header.  This permits requests for more than one file to be
batched together.
Upload and Download Files
The general format of a file header is as follows:
<tffffffmmmmmtnnntnnntnnn . . . >
where:
              < = Beginning of file header
              t = File type 
                  ‘D’ for unpacked data
                  ‘E’ for unpacked executable
                  ‘P’ for packed data
                  ‘B’ for packed executable
         ffffff = File name
          mmmmm = Decimal number of records in file, right-justified and zero-
padded
              t = Field data type (described below)
            nnn = Unpacked length of field, right-justified and zero-padded
              > = End of file header
          . . . = Additional HHC information
5. Communications
and Device Support