Programming instructions

58
Intermec Fingerprint 6.13 – Programmer's Guide
6. FILE SYSTEM, cont'd.
8. Transferring Binary
Files using Kermit
Outline font files and some image files come in binary format and
can be downloaded from the host to the printer or vice versa using
the Kermit file transfer protocol, which is commonly used for
binary transfer of data and is included in many communication
programs, e.g. DCA Crosstalk, MS Windows Terminal, and MS
Works.
Warning! Tests have shown that MS Windows Terminal versions
3.0 and 3.1 are unable to receive a file from the printer, even if they
are capable of sending a file to the printer.
More information on the Kermit protocol can be found in the
manual of the communication program or in the reference volume
“Kermit – A File Transfer Protocol” by Frank da Cruz (Digital
Press 1987, ISBN 0-932376-88-6).
TRANSFER KERMIT
The TRANSFER KERMIT statement allows you to specify direc-
tion (Send or Receive), file name, input device and output device.
By default, a file name designated "KERMIT.FILE" will be
transferred on the standard IN or OUT channel.
Example:
The printer is set up to receive a file on the standard IN channel.
TRANSFER KERMIT "R"
TRANSFER STATUS
After a file have been transferred by means of a TRANSFER
KERMIT statement, the transfer can be checked using the TRANS-
FER STATUS statement. The statement will place the result of the
check into two one-dimensional arrays:
5-element numeric array (requires a DIM stmt)
Element 0 returns: Number of packets
Element 1 returns: Number of NAKs
Element 2 returns: ASCII value of last character
Element 3 returns: Last error
Element 4 returns: Block check type used
2-element string array (requires no DIM stmt)
Element 0 returns: Type of protocol, i.e. "KERMIT"
Element 1 returns: Last file name received
Example:
10 TRANSFER KERMIT "R"
20 DIM A%(4)
30 TRANSFER STATUS A%,B$
40 PRINT A%(0), A%(1), A%(2), A%(4), A%(4)
50 PRINT B$(0), B$(1)
RUN
Standard IN and OUT Channels
Also see:
Chapter 7.1
Note that there is a 30 sec. timeout
between issuing the TRANSFER
KERMIT "R" statement and the start of
the transmission.
Arrays
Also see:
Chapter 6.10