The text of a manual · part 29 of 46
TE 2000 VT/ANSI Terminal Emulation Programmer's Guide: Chapter 5: Customizing Your Configuration, pages 238 to 247
Pages 238 to 247 of 400, from TE 2000 VT/ANSI Terminal Emulation Programmer's Guide
The original document is the PDF (3.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 5020
Page 238
Chapter 5, Customizing Your Configuration remap=<0059>=“string” /* Y key*/ remap=<005a>=“string” /* Z key*/ remap=<005b>=“string” remap=<005c>=“string” remap=<005d>=“string” remap=<005e>=“string” remap=<005f>=“string” remap=<0060>=“string”
/* [ key */ /* \ key */ /* ] key */ /* ^ key */ /* _ key */ /* ‘ key */ remap=<0061>=“string” remap=<0062>=“string” remap=<0063>=“string” remap=<0064>=“string” remap=<0065>=“string” remap=<0066>=“string” remap=<0067>=“string” remap=<0068>=“string” remap=<0069>=“string” remap=<006a>=“string” remap=<006b>=“string” remap=<006c>=“string” remap=<006d>=“string” remap=<006e>=“string” remap=<006f>=“string” remap=<0070>=“string” remap=<0071>=“string” remap=<0072>=“string” remap=<0073>=“string” remap=<0074>=“string” remap=<0075>=“string” remap=<0076>=“string” remap=<0077>=“string” remap=<0078>=“string” remap=<0079>=“string” remap=<007a>=“string”
/* a key*/ /* b key*/ /* c key*/ /* d key*/ /* e key*/ /* f key*/ /* g key*/ /* h key*/ /* i key*/ /* j key*/ /* k key*/ /* l key*/ /* m key*/ /* n key*/ /* o key*/ /* p key*/ /* q key*/ /* r key*/ /* s key*/ /* t key*/ /* u key*/ /* v key*/ /* w key*/ /* x key*/ /* y key*/ /* z key*/ remap=<007b>=“string” remap=<007c>=“string” remap=<007d>=“string” remap=<007e>=“string” remap=<007f>=“string”
/* { key */ /* | key */ /* } key */ /* ~ key */ /* Del key */ remap=<1031>=“string” remap=<1032>=“string” remap=<1033>=“string” remap=<1034>=“string” remap=<1035>=“string” remap=<1036>=“string” remap=<1037>=“string” remap=<1038>=“string” remap=<1039>=“string”
/* F1 key */ /* F2 key */ /* F3 key */ /* F4 key */ /* F5 key */ /* F6 key */ /* F7 key */ /* F8 key */ /* F9 key */
TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide
213
Page 239
Chapter 5, Customizing Your Configuration remap=<1042>=“string” remap=<1044>=“string” remap=<1045>=“string” remap=<1049>=“string”
/* Back Tab key */ /* Del key */ /* Enter key */ /* Insert key */ remap=<104c>=“string” remap=<1055>=“string” remap=<1056>=“string” remap=<105a>=“string”
/* Left key */ /* Up key */ /* Down key */ /* Right key */ remap=<1061>=“string” remap=<1062>=“string” remap=<1063>=“string” remap=<1064>=“string” remap=<1065>=“string” remap=<1066>=“string” remap=<1067>=“string” remap=<1068>=“string” remap=<1069>=“string” remap=<106a>=“string” remap=<106b>=“string” remap=<106c>=“string” remap=<106d>=“string” remap=<106e>=“string” remap=<106f>=“string”
/* F10 key */ /* F11 key */ /* F12 key */ /* F13 key */ /* F14 key */ /* F15 key */ /* F16 key */ /* F17 key */ /* F18 key */ /* F19 key */ /* F20 key */ /* F21 key */ /* F22 key */ /* F23 key */ /* F24 key */ remap=<1075>=“string” /* Page down key */ remap=<1076>=“string” /* Page up key */ remap=<2041>=“string” /* Auto-Login Restart key */ remap=<206c>=“string” /* Menu key */
214 remap=<304c>=“string” remap=<3055>=“string” remap=<3056>=“string” remap=<305a>=“string”
/* Window/viewport left key */ /* Window/viewport up key */ /* Window/viewport down key */ /* Window/viewport right key */ remap=<3061>=“string” remap=<3062>=“string” remap=<3063>=“string” remap=<3064>=“string” remap=<3065>=“string” remap=<3066>=“string”
/* Find key */ /* Insert here key */ /* Remove key */ /* Select key */ /* Previous screen key */ /* Next screen key */ remap=<3067>=“string” remap=<3068>=“string” remap=<3069>=“string” remap=<306a>=“string” remap=<306b>=“string” remap=<306c>=“string” remap=<306d>=“string” remap=<306e>=“string” remap=<306f>=“string” remap=<3070>=“string”
/* Keypad key */ /* Keypad Enter key */ /* Keypad 0 key */ /* Keypad 1 key */ /* Keypad 2 key*/ /* Keypad 3 key*/ /* Keypad 4 key*/ /* Keypad 5 key*/ /* Keypad 6 key*/ /* Keypad 7 key*/
TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide
Page 240
Chapter 5, Customizing Your Configuration remap=<3071>=“string” /* Keypad 8 key*/ remap=<3072>=“string” /* Keypad 9 key*/ remap=<3073>=“string” /* Keypad . key*/ remap=<3075>=“string” /* Page left key */ remap=<3076>=“string” /* Page right key */ remap=<3077>=“string” /* Keypad - key*/ remap=<3078>=“string” /* Keypad + key*/
TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide
215
Page 241
Chapter 5, Customizing Your Configuration
Remapping Characters You can use display character translation files to remap characters as they are written to the display. The translation file name for VT/ANSI TE must be VT220.XLT. For instructions on how to download the file to the terminal, see “Downloading Files” on page 217. Display character translation files are binary files consisting of ordered pairs of eight bit values. Each pair of values remaps a displayable character to a different displayable character. S The first byte of a pair is the ASCII value of the character to be replaced. S The second byte of a pair is the ASCII value that replaces the first. These translations are only made when a character is written to a display device. If the character is sent to the host (such as keystroke or scan data) or sent to an external device (such as a printer), it is sent as the original, untranslated value. Suppose you want a terminal running VT/ANSI emulation to replace the uppercase B with the Greek letter beta, and replace the uppercase Z with the Greek letter omega. Create a file named VT220.XLT that is four bytes long (two ordered pairs of two bytes each). The file should contain the 0x42, 0xE1, 0x5A, and 0xEA bytes in this order. These represent the ASCII display character set values for B, beta, Z, and omega, respectively.
216
TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide
Page 242
Chapter 5, Customizing Your Configuration
Downloading Files 2415, 2425, 2435A, 2455, 2475, 248X Terminal You can use one of several methods to download a file to a 2415, 2425, 2435A, 2455, 2475, or 248X Terminal, including: S LOADER.EXE file loader utility. Note that using this utility will automatically restart the TE 2000 application. S T24FCOPY.EXE through a serial connection from your Trakker Antares terminal to your personal computer S The Download Server feature on the DCS 300 to a Trakker Antares terminal loaded with UDP Plus S A TFTP application on a personal computer or host to a Trakker Antares terminal loaded with TCP/IP To use these methods, refer to your terminal’s user manual for help. To restart your TE application, do one of the following: S Scan the following bar code label. You can also send the Reset Firmware command over the network. For help, refer to your terminal’s user manual. Reset Firmware
*/M.* *-.*
S Use the TRAKKER Antares 2400 Menu System to configure the Resume Execution command to resume “not allowed.” Choose Terminal Menu from the Configuration Menu and then choose Power Management. Each time you press œ to turn on the Trakker Antares terminal, it boots and restarts your application. See the terminal’s user manual. S Access the TRAKKER Antares 2400 Menu System and select the TE application through the File Manager option. For help, see your terminal’s user manual. The Trakker Antares terminal restarts your TE application using the configuration saved in CONFIG.DAT.
5020 Data Collection PC or 700 Series Computer From your web browser, use the ftp://<IP address> URL to download files. For the 700 Series Computer, use the Microsoft ActiveSync application like described on page 169.
TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide
217
Page 243
Chapter 5, Customizing Your Configuration
6400 Computer or 5055 Data Collection PC Before you can download a file to a 6400 Computer or , configure INTERLNK on a desktop or laptop PC. INTERLNK, part of MS-DOS, is a device driver that connects your 6400 Computer or 5055 PC and personal computer through their serial ports. This connection enables you to exchange files. It also enables you to edit the 6400 or 5055 configuration files, such as CONFIG.DAT. INTERSVR is the INTERLNK server and is a communications option on your 6400 Computer or 5055 PC. INTERLNK and INTERSVR are provided with DOS and shipped with your 6400 or 5055 or toolkit. For complete installation instructions, refer to the README.TXT file provided with 6400 Computers and 5055 PCs.
Reprogramming Flash Memory Flash upgrades can be ordered on diskette from Intermec (contact a representative), or downloaded from the Intermec Knowledge Central (see Before You Begin). Read all instructions before proceeding. Note: Keep terminals on charge when setting up, reprogramming, or reflashing.
Prerequisites for INTERLNK Flash Update S A working 6400 Computer or 5055 PC to do this procedure(if the flash is corrupted, perform a serial master mode boot). S A RAM drive (D:) of at least 960 KB. S A disk file contains the flash archive, 50BDXXXX.EXE. The last four numbers indicate the flash version (0129 indicates flash version 1.29). S A standard host PC for connecting to the 6400 Computer or 5055 PC. INTERLNK.EXE must be loaded by the CONFIG.SYS file. For more detailed information on running INTERLNK, refer to a DOS manual. S A NULL modem cable to connect the host PC’s communications port to the 6400 Computer or 5055 PC with a single dock or communication adapter.
INTERLNK Installation Use the following instructions if you have a version of flash that includes INTERSVR as a possible Comm option on your 6400 Computer or 5055 PC. If you do not have INTERSVR, you must update the flash using a serial master mode boot. The following instructions assume that you have placed all files from the self-extracting archive in a directory (on your host personal computer) called C:\PENKEY\FLASH. If you choose to place these files in a different location, adjust the instructions accordingly. Note: Delete the self-extracting file from this directory once the files are extracted.
218
TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide
Page 244
Chapter 5, Customizing Your Configuration
Your host personal computer must be running INTERLNK, which is part of MS-DOS. Load INTERLNK as a device driver in your CONFIG.SYS file, using the following statement, at the end of the CONFIG.SYS file (after any other statement that creates a drive letter): DEVICE=C:\DOS\INTERLNK.EXE /DRIVES:3
The previous statement assumes that MS-DOS is located in the host PC C:\DOS directory. The /DRIVES: 3 parameter allows mapping of three drives from the 6400 Computer or 5055 PC.
INTERLNK and INTERSVR INTERLNK is a device driver that interconnects a 6400 Computer or 5055 PC and a host personal computer through serial ports. INTERSVR is the INTERLNK server, a communication option in the Norand Utilities program. These two resources are provided with ROM DOS 6.22 and are shipped with the 6400 Computer or 5055 PC toolkit. A standard null modem cable connects the personal computer to the 6400 Computer or 5055 PC. A TTY TCOM cable also works. A dock is needed for the 6400 Computer or 5055 PC or a communication adapter that plugs onto the bottom end of the terminal. INTERLNK causes the 6400 Computer or 5055 PC drives to appear as virtual drives on the host personal computer, with drive letters immediately beyond the highest drive letter currently used on the host personal computer. Typing “INTERLNK” from the host personal computer command line displays the designations of the redirected drives. For details of INTERLNK and INTERSVR topics, refer to the DOS on-line help text. INTERLNK is installed on a host PC, using the following statement in the CONFIG.SYS file: device=c:\dos\interlnk.exe /drives:4
After installation, you can copy the application files to the 6400 Computer or 5055 PC. To terminate INTERSVR, press [ALT] + [F4].
59XX, 17XX, or 11XX Terminal For a 59XX, 17XX, or 11XX Terminal, use utility program CHECKCFG.EXE to verify the correctness of your configuration.
Using CHECKCFG to Compile and Decompile Custom Configurations CHECKCFG reads your configuration and literal files, and reports any syntax errors. It also converts your data files to the proper format for the TE program. The ASCII text of the configuration file converts to a compressed binary format to save space in the terminal. CHECKCFG can reverse the operation by converting a binary file into its ASCII source. CHECKCFG can also list set-up parameters, their types, and their allowable values. To display the program version number and a short message that lists the different command line formats for the program, type checkcfg TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide
219
Page 245
Chapter 5, Customizing Your Configuration
Converting Files from ASCII to Binary To convert an ASCII parameter file into binary format before downloading it to a terminal, use the following command line: checkcfg <input config file>cfglit.dat<output config file>
S <input config file> is the name of your ASCII text parameter file S <output config file> is the name of the file that you must append to your TE hex file. The output file must be named CONFIG.DAT.
Converting Files from Binary to ASCII To convert a binary parameter file back into its ASCII equivalent, use the following command line: checkcfg -r <config file> cfglit.dat <output file>
S <config file> is the name of your binary parameter file S CFGLIT.DAT is the name of your terminal literal file S <output file> is the name of the file that will contain the converted ASCII output
Listing Parameters and Values To display a list of all possible set up parameters and their values, use the following command line: checkcfg -p cfglit.dat Note: The output from this command is about seven hundred lines long. You may want to redirect it into another file for viewing.
Using FLSHCONV.EXE to Build Customized HEX Files FLSHCONV.EXE is a utility program that creates Intel-hex files in the proper format for downloading to an 11XX, 17XX, or 59XX Terminal. FLSHCONV can do the following: S Locate and append .EXE programs for download in an Intel-hex file S Append data and configuration files to an existing Intel-hex file (FLSHCONV cannot locate and append .EXE programs to an existing hex file) To display the program version number and a short message that lists command line formats, type: flshconv The following lists FLSHCONV command line options, where <hexnum> represents a hexadecimal segment address and <number> represents a decimal number. S –f<hexnum> <hexnum> is the starting address of Flash memory for the terminal. Default: 8000 (absolute address 0x80000). S –e<hexnum> <hexnum> is the ending address of Flash. If you omit this parameter, FLSHCONV does not report an error if your Flash image is too big. S –d<hexnum> <hexnum> is the starting address of memory space for .EXE programs. Default: 200 (absolute address 0x2000). You should ordinarily use 60 (absolute address 0x600).
220
TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide
Page 246
Chapter 5, Customizing Your Configuration
S –o<filename> <filename> is the Intel-hex output file name. S –v<number> <number> indicates “verbosity.” Default: 0, meaning no information appears on the standard output device. Intermec recommends a value of 1 to generate a report of where each file is located. You can use higher values, but they may not produce useful information for the end user. S –a This option tells FLSNCONV to append data files to an existing Intelhex file. The hex file must be the first file name on the command line. The following chart lists FLSHCONV command line arguments. Terminal
-f<hexnum>
-e<hexnum>
-d<hexnum>
11XX, 256K Flash
-f8000
-eC000
-d60
11XX, 512K Flash
-f8000
-eFFC0
-d60
17XX, 512K Flash
-f8000
-eFFC0
-d60
5928-5948, 384K Flash
-f9000
-eE000
-d60
Locating and Appending .EXE Files As an example, suppose you are building a customized version of the 17XX Flash program FWP170H0.HEX. As a minimum, you must have the following files: S 1700BIOS.EXE
17XX BIOS program
S KERNEL.EXE
Intermec multitasking services
S FWP170H0.EXE
17XX VT/ANSI TE program
S NORAND.FNT
Display character font file. This may be the standard font file or a customized user replacement.
S CFGLIT.DAT
Terminal literal file. This may be the standard literal file or a customized user replacement.
To bind these files into an Intel-hex file that is ready for download to a 17XX, use the following single command line to build a file called NEW.HEX: flshconv -f8000 -effcO -d60 1700bios.exe kernel.exe fwp170h0.exe norand.fnt cfglit.dat -onew.hex
Or, you can create a file that contains each file name on a separate line. Assuming that file was named 1700FILE.LST, use the following command line for the same results: flshconv -f8000 -effc0 -d60 @1700file.lst
TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide
221
Page 247
Chapter 5, Customizing Your Configuration
Appending Data Files To Intel-Hex Files In the above example, you could have bound the .EXE files together by typing the following (single) command line: flshconv -f8000 -effc0 -d60 1700bios.exe kernel.exe fwp170h0.exe -o1700exe s.hex
You can then customize the 1700EXES.HEX file with different font files and literal files by typing the following (single) command line: flshconv -effc0 -a 1700exes.hex norand.fntcfglit.dat –onewlang.hex
You can provide keyboard translation file pairs to change the default key values. The (single) command line is: flshconv -effc0 -a newlang.hex vt220eml.key vt220eml.xlt -onewkeys.hex
You can specify more than one file pair. For example, you could provide all four file pairs (eight files) to modify the keyboard for each of the four data streams.
Downloading a Hex File Use these to download a .HEX file to 59XX, 17XX, 11XX Terminals: S PROGDUX.EXE (provided with the terminal’s Flash) S Personal computer S INTERMECr cable P/N: 216-806-001, which is a powered Flash cable that plugs into the personal computer’s COM port (note that power is not required for download) To download a .HEX file: 1 Ensure the terminal is powered ON and PROGDUX.EXE is loaded on the personal computer. 2 Use cable P/N: 216-806-001 to connect the 11XX or 17XX Terminal to the PC. Use cable P/N: 216-831-001 to connect the 59XX Terminal to the personal computer. Power the terminal off. For help, refer to the terminal’s user manual. Power is not required for download. 3 To receive the .HEX file, the terminal must be in download mode. To enter this mode, press and hold down the terminal’s [I] key as you power up the terminal. For the 17XX 37-key keyboard, press and hold down the [F1] key as you power up the terminal. 4 At the DOS prompt, type: progdux -? to display a list of command line options. 5 Erase the terminal’s original Flash and download the new .HEX file by typing: progdux -e <newfile> where <newfile> is the name of the .HEX file. A successful download will boot the terminal into the TE application. If communications is interrupted, PROGDUX.EXE will send out a negative acknowledgement (NAK) and reset itself to try sending again. No interaction is required except to restore communications.
222
TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide