Intermec PB50 Fingerprint Developer's Guide (old) - Page 53

Commands for Transferring Text and Binary Files, Using the TRANSFER KERMIT Statement

Page 53 highlights

Chapter 3 - Managing Files • COPY copies a file to another name and/or directory. • KILL deletes a file. • LOC returns the position in an OPENed file. • LOF returns the length in bytes of an OPENed file. Commands for Transferring Text and Binary Files Text files (such as program files and data files in ASCII format) can be downloaded to the printer via a communication program in the host. Text files can also be transferred back to the host, such as for backup purposes, by LOADing the file and LISTing it to a communication program in the host. Font files and certain image files in binary format can be downloaded from the host to the printer (or vice versa) using the Kermit or ZModem file transfer protocols, which are commonly used for binary transfer of data and are included in many communication programs. Binary files can also be downloaded to the printer using the FILE& LOAD statement. Using the TRANSFER KERMIT Statement The TRANSFER KERMIT statement allows you to specify direction (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. In this example, the printer is set up to receive a file on the standard IN channel: TRANSFER KERMIT "R" Note: There is a 30 second timeout between the issuing of the TRANSFER KERMIT "R" statement and the start of the transmission. Using the ZMODEM Protocol Files can be sent from host to printer (or vice versa) with the ZMODEM protocol. For more information, see the Fingerprint Command Reference Manual. Using a TRANSFER STATUS Statement After a file has been transferred using a TRANSFER KERMIT or TRANSFER ZMODEM statement, the transfer can be checked using the TRANSFER STATUS statement. The statement places the result into two one-dimensional arrays: 5-element numeric array (requires a DIM statement) 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 Intermec Fingerprint Developer's Guide 37

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187

Chapter 3 — Managing Files
Intermec Fingerprint Developer’s Guide
37
COPY copies a file to another name and/or directory.
KILL deletes a file.
LOC returns the position in an OPENed file.
LOF returns the length in bytes of an OPENed file.
Commands for Transferring Text and Binary Files
Text files (such as program files and data files in ASCII format) can be downloaded
to the printer via a communication program in the host. Text files can also be
transferred back to the host, such as for backup purposes, by LOADing the file and
LISTing it to a communication program in the host.
Font files and certain image files in binary format can be downloaded from the host
to the printer (or vice versa) using the Kermit or ZModem file transfer protocols,
which are commonly used for binary transfer of data and are included in many
communication programs. Binary files can also be downloaded to the printer using
the FILE& LOAD statement.
Using the TRANSFER KERMIT Statement
The TRANSFER KERMIT statement allows you to specify direction (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.
In this example, the printer is set up to receive a file on the standard IN channel:
TRANSFER KERMIT “R”
Using the ZMODEM Protocol
Files can be sent from host to printer (or vice versa) with the ZMODEM protocol.
For more information, see the
Fingerprint Command Reference Manual.
Using a TRANSFER STATUS Statement
After a file has been transferred using a TRANSFER KERMIT or TRANSFER
ZMODEM statement, the transfer can be checked using the TRANSFER STATUS
statement. The statement places the result into two one-dimensional arrays:
5-element numeric array (requires a DIM statement)
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
Note:
There is a 30 second timeout between the issuing of the TRANSFER
KERMIT “R” statement and the start of the transmission.